We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543e011 commit 0672e05Copy full SHA for 0672e05
highs/mip/HighsImplications.cpp
@@ -715,8 +715,11 @@ void HighsImplications::cleanupVarbounds(HighsInt col) {
715
double lb = mipsolver.mipdata_->domain.col_lower_[col];
716
717
if (ub == lb) {
718
- numVarBounds -= vlbs.size();
719
- numVarBounds -= vubs.size();
+ HighsInt numVubs = 0;
+ vubs[col].for_each([&](HighsInt vubCol, VarBound& vub) { numVubs++; });
720
+ HighsInt numVlbs = 0;
721
+ vlbs[col].for_each([&](HighsInt vlbCol, VarBound& vub) { numVlbs++; });
722
+ numVarBounds -= numVubs + numVlbs;
723
vlbs[col].clear();
724
vubs[col].clear();
725
return;
0 commit comments