mirror of
https://github.com/Z3Prover/z3
synced 2025-05-16 20:24:45 +00:00
bug fixes to pb; working on model extraction
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
26bf64a0c3
commit
2c577a304d
15 changed files with 348 additions and 197 deletions
|
@ -121,6 +121,7 @@ namespace opt {
|
|||
inf_eps v(r);
|
||||
if (m_lower[idx] < v) {
|
||||
m_lower[idx] = v;
|
||||
s->get_model(m_model);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -261,6 +262,10 @@ namespace opt {
|
|||
return m_is_max[i]?m_upper[i]:-m_lower[i];
|
||||
}
|
||||
|
||||
void optsmt::get_model(model_ref& mdl) {
|
||||
mdl = m_model.get();
|
||||
}
|
||||
|
||||
// force lower_bound(i) <= objective_value(i)
|
||||
void optsmt::commit_assignment(unsigned i) {
|
||||
inf_eps mid(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue