Skip to content

Commit a5cbd8d

Browse files
committed
Add missing assert. Re-enable cuts for all aggrs
1 parent 7ca70f0 commit a5cbd8d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ bool HighsCutGeneration::separateLiftedFlowCover() {
575575
break;
576576
}
577577
}
578+
assert(ld.m[ld.t] == ld.mp);
578579
ld.t++;
579580

580581
auto getAlphaBeta = [&](double vubcoef) {

highs/mip/HighsPathSeparator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void HighsPathSeparator::separateLpSolution(HighsLpRelaxation& lpRelaxation,
351351
// generate cut
352352
double rhs = 0;
353353
success = cutGen.generateCut(transLp, baseRowInds, baseRowVals, rhs,
354-
false, currPathLen == 1);
354+
false, true);
355355

356356
lpAggregator.getCurrentAggregation(baseRowInds, baseRowVals, true);
357357
if (!aggregatedPath.empty() || bestOutArcCol != -1 ||
@@ -361,7 +361,7 @@ void HighsPathSeparator::separateLpSolution(HighsLpRelaxation& lpRelaxation,
361361
// generate reverse cut
362362
rhs = 0;
363363
success |= cutGen.generateCut(transLp, baseRowInds, baseRowVals, rhs,
364-
false, currPathLen == 1);
364+
false, true);
365365

366366
if (success || (bestOutArcCol == -1 && bestInArcCol == -1)) break;
367367

0 commit comments

Comments
 (0)