diff --git a/src/opt/opt_cores.cpp b/src/opt/opt_cores.cpp index 83cca8d5a6b..124df63d7bf 100644 --- a/src/opt/opt_cores.cpp +++ b/src/opt/opt_cores.cpp @@ -381,6 +381,7 @@ namespace opt { scoped_update _upd1(*this, "max_conflicts", UINT_MAX, m_max_conflicts); m_cores.reset(); m_weight.reset(); + m_best_cost = -1; for (expr* s : ctx.soft()) m_weight.insert(s, ctx.weight(s));