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.
2 parents 960231e + f9441d1 commit 4955990Copy full SHA for 4955990
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& vlb) { numVlbs++; });
722
+ numVarBounds -= numVubs + numVlbs;
723
vlbs[col].clear();
724
vubs[col].clear();
725
return;
0 commit comments