mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
parent
49141c7813
commit
8744c62fca
|
@ -230,11 +230,14 @@ namespace opt {
|
|||
get_model(m_model);
|
||||
inf_eps val2;
|
||||
m_valid_objectives[i] = true;
|
||||
TRACE("opt", tout << (has_shared?"has shared":"non-shared") << "\n";);
|
||||
TRACE("opt", tout << (has_shared?"has shared":"non-shared") << " " << val << "\n";);
|
||||
if (!m_models[i]) {
|
||||
set_model(i);
|
||||
}
|
||||
if (m_context.get_context().update_model(has_shared)) {
|
||||
if (!val.is_finite()) {
|
||||
// skip model updates
|
||||
}
|
||||
else if (m_context.get_context().update_model(has_shared)) {
|
||||
if (has_shared && val != current_objective_value(i)) {
|
||||
decrement_value(i, val);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue