Skip to content

Commit 7327b68

Browse files
committed
Change when vbcoef is used
1 parent 76a3407 commit 7327b68

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

highs/mip/HighsCutGeneration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ bool HighsCutGeneration::separateLiftedFlowCover() {
632632
}
633633
assert(i == ld.r && ld.M[i] <= vubcoef + snfr.lambda + 1e-8);
634634
return static_cast<double>(ld.r * HighsCDouble(snfr.lambda) + vubcoef -
635-
ld.M[i]);
635+
ld.M[ld.r]);
636636
};
637637

638638
// Calculate the lifted simple generalized flow cover cut

highs/mip/HighsTransformedLp.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,7 @@ bool HighsTransformedLp::transformSNFRelaxation(
753753
snfr.origBinColCoef[bestVlb[col].first], lb, ub,
754754
false)) {
755755
boundTypes[col] = BoundType::kSimpleLb;
756-
} else if (vals[i] > 0 ||
757-
simpleLbDist[col] > lbDist[col] + mip.mipdata_->feastol) {
756+
} else if (simpleLbDist[col] > lbDist[col] + mip.mipdata_->feastol) {
758757
boundTypes[col] = BoundType::kVariableLb;
759758
snfr.binColUsed[bestVlb[col].first] = true;
760759
} else
@@ -764,8 +763,7 @@ bool HighsTransformedLp::transformSNFRelaxation(
764763
snfr.origBinColCoef[bestVub[col].first], lb, ub,
765764
true)) {
766765
boundTypes[col] = BoundType::kSimpleUb;
767-
} else if (vals[i] < 0 ||
768-
simpleUbDist[col] > ubDist[col] + mip.mipdata_->feastol) {
766+
} else if (simpleUbDist[col] > ubDist[col] + mip.mipdata_->feastol) {
769767
boundTypes[col] = BoundType::kVariableUb;
770768
snfr.binColUsed[bestVub[col].first] = true;
771769
} else {

0 commit comments

Comments
 (0)