Skip to content

Commit d737abd

Browse files
committed
Add missing vlb / vub check
1 parent 7327b68 commit d737abd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

highs/mip/HighsTransformedLp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,8 @@ bool HighsTransformedLp::transformSNFRelaxation(
629629
if (bincol == -1) return false;
630630
if (snfr.binColUsed[bincol]) return false;
631631
if (abs(vb.coef) >= 1e+6) return false;
632+
if (isVub && lb < vb.constant) return false;
633+
if (!isVub && ub > vb.constant) return false;
632634
const double sign = coef >= 0 ? 1 : -1;
633635
if (isVub) {
634636
double val = sign * ((coef * vb.coef) + origbincoef);

0 commit comments

Comments
 (0)