Skip to content

Commit 00d6c59

Browse files
committed
Return min-eff-diff to 10 * feastol
1 parent abb145b commit 00d6c59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,10 +1392,10 @@ bool HighsCutGeneration::generateCut(HighsTransformedLp& transLp,
13921392
}
13931393

13941394
// try to generate a cut
1395-
if (!tryGenerateCut(inds_, vals_, hasUnboundedInts, hasGeneralInts,
1396-
hasContinuous,
1397-
std::max(flowCoverEfficacy - feastol, 10 * feastol),
1398-
onlyInitialCMIRScale)) {
1395+
if (!tryGenerateCut(
1396+
inds_, vals_, hasUnboundedInts, hasGeneralInts, hasContinuous,
1397+
std::max(flowCoverEfficacy - (10 * feastol), 10 * feastol),
1398+
onlyInitialCMIRScale)) {
13991399
cmirSuccess = false;
14001400
goto postprocess;
14011401
}
@@ -1957,7 +1957,7 @@ bool HighsCutGeneration::tryGenerateCut(std::vector<HighsInt>& inds_,
19571957
if (allowRejectCut) {
19581958
minMirEfficacy = std::max(minEfficacy, efficacy + feastol);
19591959
} else {
1960-
minMirEfficacy = efficacy + feastol;
1960+
minMirEfficacy = efficacy + (10 * feastol);
19611961
}
19621962
std::swap(tmpRhs, rhs);
19631963
}

0 commit comments

Comments
 (0)