3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 22:03:39 +00:00
This commit is contained in:
Nikolaj Bjorner 2025-02-02 15:00:31 -08:00
parent 99cbfa715c
commit 17d47ca8c7
3 changed files with 14 additions and 5 deletions

View file

@ -241,6 +241,7 @@ namespace opt {
smt::theory_var v = m_objective_vars[i];
bool has_shared = false;
m_last_model = nullptr;
blocker = nullptr;
//
// compute an optimization hint.
// The hint is valid if there are no shared symbols (a pure LP).
@ -256,6 +257,7 @@ namespace opt {
if (!m_models[i])
m_models.set(i, m_last_model.get());
TRACE("opt", tout << "maximize " << i << " " << val << " " << m_objective_values[i] << " " << blocker << "\n";);
if (val > m_objective_values[i]) {
m_objective_values[i] = val;
}