Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions highs/mip/HighsTransformedLp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ bool HighsTransformedLp::transform(std::vector<double>& vals,
mip.mipdata_->implications.cleanupVub(col, bestVub[col].first,
bestVub[col].second, ub, redundant,
infeasible, false);
if (redundant) {
bestVub[col].first = -1;
ubDist[col] = simpleUbDist[col];
boundDist[col] = std::min(lbDist[col], ubDist[col]);
}
}

// the code below uses the difference between the column upper and lower
Expand All @@ -210,6 +215,11 @@ bool HighsTransformedLp::transform(std::vector<double>& vals,
mip.mipdata_->implications.cleanupVlb(col, bestVlb[col].first,
bestVlb[col].second, lb, redundant,
infeasible, false);
if (redundant) {
bestVlb[col].first = -1;
lbDist[col] = simpleLbDist[col];
boundDist[col] = std::min(lbDist[col], ubDist[col]);
}
}

// store the old bound type so that we can restore it if the continuous
Expand Down