Skip to content

Commit a79ca1b

Browse files
committed
Suggestion from Mark
1 parent e282757 commit a79ca1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,9 @@ HPresolve::Result HPresolve::dominatedColumns(
13061306
bool tryToStrengthenBounds =
13071307
(isDominatingBoundFinite || isDominatedBoundFinite) && sameVarType;
13081308
if (tryToFix || tryToStrengthenBounds) {
1309+
// increment counter for number of domination checks due to predictive
1310+
// bound analysis
1311+
if (!tryToFix) numDomChecksPredBndAnalysis++;
13091312
// check for domination
13101313
if (checkDomination(direction, col, direction_k, k)) {
13111314
if (tryToFix &&
@@ -1335,9 +1338,6 @@ HPresolve::Result HPresolve::dominatedColumns(
13351338
dominatingBound, direction * direction_k));
13361339
}
13371340
}
1338-
// increment counter for number of domination checks due to predictive
1339-
// bound analysis
1340-
if (!tryToFix) numDomChecksPredBndAnalysis++;
13411341
}
13421342
return Result::kOk;
13431343
};

0 commit comments

Comments
 (0)