Skip to content

Commit cd819df

Browse files
authored
Merge pull request #2679 from ERGO-Code/fix-propagate-flag
Check correct index for skipping cut propagation
2 parents 7ff42d0 + 4d0fc37 commit cd819df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highs/mip/HighsDomain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,9 +2460,9 @@ bool HighsDomain::propagate() {
24602460
numproprows, std::make_pair(HighsInt{0}, HighsInt{0}));
24612461

24622462
auto propagateIndex = [&](HighsInt k) {
2463-
// first check if cut is marked as deleted
2464-
if (cutpoolprop.propagatecutflags_[k] & 2) return;
24652463
HighsInt i = propagateinds[k];
2464+
// first check if cut is marked as deleted
2465+
if (cutpoolprop.propagatecutflags_[i] & 2) return;
24662466

24672467
HighsInt Rlen;
24682468
const HighsInt* Rindex;

0 commit comments

Comments
 (0)