mirror of
https://github.com/Z3Prover/z3
synced 2025-05-16 20:24:45 +00:00
added pareto utility
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
55863b4bb5
commit
20cb8a3092
8 changed files with 477 additions and 104 deletions
|
@ -115,11 +115,15 @@ namespace opt {
|
|||
return l_true;
|
||||
}
|
||||
|
||||
void optsmt::update_lower(unsigned idx, rational const& r) {
|
||||
inf_eps v(r);
|
||||
if (m_lower[idx] < v) {
|
||||
void optsmt::update_lower(unsigned idx, inf_eps const& v, bool override) {
|
||||
if (m_lower[idx] < v || override) {
|
||||
m_lower[idx] = v;
|
||||
if (m_s) m_s->get_model(m_model);
|
||||
}
|
||||
}
|
||||
|
||||
void optsmt::update_upper(unsigned idx, inf_eps const& v, bool override) {
|
||||
if (m_upper[idx] > v || override) {
|
||||
m_upper[idx] = v;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue