Skip to content

Commit 64cadd9

Browse files
committed
Address Mark's comment
1 parent 6eafa1b commit 64cadd9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

highs/presolve/HPresolve.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4885,12 +4885,9 @@ HPresolve::Result HPresolve::enumerateSolutions(
48854885
std::vector<HighsInt> vars;
48864886
std::vector<branch> branches;
48874887
std::set<HighsInt> worstCaseBounds;
4888-
std::vector<double> worstCaseLowerBound;
4889-
std::vector<double> worstCaseUpperBound;
4890-
worstCaseLowerBound.resize(model->num_col_, kHighsInf);
4891-
worstCaseUpperBound.resize(model->num_col_, -kHighsInf);
4892-
std::vector<HighsInt> numWorstCaseBounds;
4893-
numWorstCaseBounds.resize(model->num_col_);
4888+
std::vector<double> worstCaseLowerBound(model->num_col_, kHighsInf);
4889+
std::vector<double> worstCaseUpperBound(model->num_col_, -kHighsInf);
4890+
std::vector<HighsInt> numWorstCaseBounds(model->num_col_);
48944891

48954892
// lambda for branching (just performs initial lower branch)
48964893
auto doBranch = [&](HighsDomain& domain, const std::vector<HighsInt>& vars,

0 commit comments

Comments
 (0)