Skip to content

Commit

Permalink
Correct calculation of num_domain_fixed in HighsMipSolverData::runSet…
Browse files Browse the repository at this point in the history
…up()
  • Loading branch information
jajhall committed Dec 12, 2024
1 parent c9888c9 commit 8185413
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mip/HighsMipSolverData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,11 +882,17 @@ void HighsMipSolverData::runSetup() {
for (HighsInt i = 0; i != mipsolver.numCol(); ++i) {
switch (mipsolver.variableType(i)) {
case HighsVarType::kContinuous:
if (domain.isFixed(i)) continue;
if (domain.isFixed(i)) {
num_domain_fixed++;
continue;
}
continuous_cols.push_back(i);
break;
case HighsVarType::kImplicitInteger:
if (domain.isFixed(i)) continue;
if (domain.isFixed(i)) {
num_domain_fixed++;
continue;
}
implint_cols.push_back(i);
integral_cols.push_back(i);
break;
Expand Down

0 comments on commit 8185413

Please sign in to comment.