Skip to content

Commit f902c28

Browse files
committed
Simplify
1 parent bd51a80 commit f902c28

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4588,11 +4588,8 @@ HPresolve::Result HPresolve::dualFixing(HighsPostsolveStack& postsolve_stack,
45884588
newBound = direction > 0 ? computeWorstCaseLowerBound(col)
45894589
: -computeWorstCaseUpperBound(col);
45904590

4591-
// return if no bound was found
4592-
if (newBound == -kHighsInf) return false;
4593-
4594-
// stop if bound is too large
4595-
if (newBound >= currentBound - primal_feastol ||
4591+
// return if no bound was found or bound is too large
4592+
if (newBound == -kHighsInf || newBound >= currentBound - primal_feastol ||
45964593
std::abs(newBound) > hugeBound)
45974594
return false;
45984595

0 commit comments

Comments
 (0)