Skip to content

Commit 39c52a2

Browse files
committed
Remove local variable
1 parent e550c81 commit 39c52a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,7 +3369,6 @@ HPresolve::Result HPresolve::rowPresolve(HighsPostsolveStack& postsolve_stack,
33693369
// performed in HPresolve::addToMatrix).
33703370
for (HighsInt rowiter : rowpositions) {
33713371
HighsInt col = Acol[rowiter];
3372-
double coef = Avalue[rowiter];
33733372
assert(Arow[rowiter] == row);
33743373

33753374
// skip binary column
@@ -3422,11 +3421,12 @@ HPresolve::Result HPresolve::rowPresolve(HighsPostsolveStack& postsolve_stack,
34223421
// nonzCol = colLb + (colUb - colLb)(binCol - binLb)
34233422
// nonzCol =
34243423
// colLb - binLb*(colUb - colLb) + (colUb - colLb)*binCol
3425-
remDoubletonEq(col, binCol,
3426-
std::signbit(binCoef) == std::signbit(coef)
3427-
? HighsInt{1}
3428-
: HighsInt{-1},
3429-
col_lower, col_upper);
3424+
remDoubletonEq(
3425+
col, binCol,
3426+
std::signbit(binCoef) == std::signbit(Avalue[rowiter])
3427+
? HighsInt{1}
3428+
: HighsInt{-1},
3429+
col_lower, col_upper);
34303430
}
34313431

34323432
removeRow(row);

0 commit comments

Comments
 (0)