Skip to content

Commit 7e3fbc5

Browse files
committed
Change eff requirement. Simply logic
1 parent c9ee426 commit 7e3fbc5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,12 +1440,8 @@ bool HighsCutGeneration::generateCut(HighsTransformedLp& transLp,
14401440
continue;
14411441
sqrnorm += vals_[i] * vals_[i];
14421442
}
1443-
if (sqrnorm == 0) {
1444-
efficacy = 0;
1445-
} else {
1446-
efficacy = viol / sqrt(sqrnorm);
1447-
}
1448-
if (flowCoverEfficacy > 1.2 * efficacy) {
1443+
if (sqrnorm > 0) efficacy = viol / sqrt(sqrnorm);
1444+
if (flowCoverEfficacy > efficacy + feastol) {
14491445
rhs_ = flowCoverRhs;
14501446
std::swap(vals_, flowCoverVals);
14511447
std::swap(inds_, flowCoverInds);

0 commit comments

Comments
 (0)