Skip to content

Commit 4d45a72

Browse files
committed
Correct mineff for conflicts
1 parent 3856a5d commit 4d45a72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,11 @@ bool HighsCutGeneration::tryGenerateCut(std::vector<HighsInt>& inds_,
19511951
rhs = tmpRhs;
19521952
} else {
19531953
// accept cut and increase minimum efficiency requirement for cmir cut
1954-
minMirEfficacy = std::max(minEfficacy, efficacy) + feastol;
1954+
if (allowRejectCut) {
1955+
minMirEfficacy = std::max(minEfficacy, efficacy + feastol);
1956+
} else {
1957+
minMirEfficacy = efficacy + feastol;
1958+
}
19551959
std::swap(tmpRhs, rhs);
19561960
}
19571961
}

0 commit comments

Comments
 (0)