File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments