Skip to content

Commit 4a004bf

Browse files
committed
Skip redundant rows
1 parent 3b8074d commit 4a004bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4539,12 +4539,16 @@ HPresolve::Result HPresolve::dualFixing(HighsPostsolveStack& postsolve_stack,
45394539

45404540
// check coefficients
45414541
for (const auto& nz : getColumnVector(col)) {
4542+
// skip redundant rows
4543+
if (isRedundant(nz.index())) continue;
4544+
45424545
// update number of locks
45434546
if (hasImpliedBound(nz.index(), HighsInt{1}, nz.value())) {
45444547
// implied lower bound -> downlock
45454548
numDownLocks++;
45464549
downLockRow = nz.index();
45474550
}
4551+
45484552
if (hasImpliedBound(nz.index(), HighsInt{-1}, nz.value())) {
45494553
// implied upper bound -> uplock
45504554
numUpLocks++;

0 commit comments

Comments
 (0)