Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 2175 #2177

Merged
merged 1 commit into from
Feb 12, 2025
Merged
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
16 changes: 12 additions & 4 deletions src/mip/HighsTransformedLp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,18 @@ bool HighsTransformedLp::transform(std::vector<double>& vals,
if (ub - lb <= 1.5 || boundDist[col] != 0.0 || simpleLbDist[col] == 0 ||
simpleUbDist[col] == 0) {
// since we skip the handling of variable bound constraints for all
// binary and some general-integer variables, the bound type used should
// be a simple lower or upper bound
assert(oldBoundType == BoundType::kSimpleLb ||
oldBoundType == BoundType::kSimpleUb);
// binary and some general-integer variables here, the bound type used
// should be a simple lower or upper bound
if (simpleLbDist[col] < simpleUbDist[col] - mip.mipdata_->feastol) {
boundTypes[col] = BoundType::kSimpleLb;
} else if (simpleUbDist[col] <
simpleLbDist[col] - mip.mipdata_->feastol) {
boundTypes[col] = BoundType::kSimpleUb;
} else if (vals[i] > 0) {
boundTypes[col] = BoundType::kSimpleLb;
} else {
boundTypes[col] = BoundType::kSimpleUb;
}
i++;
continue;
}
Expand Down
Loading