Skip to content

Commit

Permalink
patch to fix #5145
Browse files Browse the repository at this point in the history
underlying issue is that model updates for multi-objective and single objective solving are too brittle to serve its use cases among different plugins.
For maxlex, the last model is always the best and it doesn't use multiple objectives.
  • Loading branch information
NikolajBjorner committed Apr 2, 2021
1 parent cebf83c commit c0e74f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/opt/opt_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ namespace opt {
r = adjust_result(r);
if (r == l_true) {
m_context.get_model(m_last_model);
if (m_models.size() == 1)
m_models.set(0, m_last_model.get());
}
m_first = false;
if (dump_benchmarks()) {
Expand Down

0 comments on commit c0e74f9

Please sign in to comment.