mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 22:03:39 +00:00
fix #7493
This commit is contained in:
parent
99cbfa715c
commit
17d47ca8c7
3 changed files with 14 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue