Skip to content

Commit

Permalink
MP2NL: fix out-suffixes #237
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Oct 30, 2024
1 parent 705a892 commit 4994538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solvers/mp2nl/mp2nlmodelapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ class MP2NLSolverImpl
return;
}
int i0 = sparse_entry.first;
if (0 == (kind & 4)) // variable suffix
if (0 == (kind & 3)) // variable suffix
i0 = mapi_.GetOldVarIndex(i0);
suf[i0] = sparse_entry.second;
}
Expand Down

0 comments on commit 4994538

Please sign in to comment.