Skip to content

Commit eb46451

Browse files
committed
Rename a local variable
1 parent a7932ed commit eb46451

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4191,11 +4191,12 @@ HPresolve::Result HPresolve::detectDominatedCol(
41914191
return checkLimits(postsolve_stack);
41924192
} else if (analysis_.allow_rule_[kPresolveRuleForcingCol]) {
41934193
// get bound on column dual using original bounds on row duals
4194-
double sum = direction > 0 ? -impliedDualRowBounds.getSumUpperOrig(
4195-
col, -model->col_cost_[col])
4196-
: -impliedDualRowBounds.getSumLowerOrig(
4197-
col, -model->col_cost_[col]);
4198-
if (sum == 0.0) {
4194+
double boundOnColDual = direction > 0
4195+
? -impliedDualRowBounds.getSumUpperOrig(
4196+
col, -model->col_cost_[col])
4197+
: -impliedDualRowBounds.getSumLowerOrig(
4198+
col, -model->col_cost_[col]);
4199+
if (boundOnColDual == 0.0) {
41994200
// remove column and rows
42004201
if (logging_on) analysis_.startPresolveRuleLog(kPresolveRuleForcingCol);
42014202
postsolve_stack.forcingColumn(

0 commit comments

Comments
 (0)