mirror of
https://github.com/Z3Prover/z3
synced 2025-08-21 18:50:26 +00:00
add to_string and get_help methods to optimize API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7884b2ab31
commit
4d6aa1a0f3
6 changed files with 170 additions and 7 deletions
|
@ -62,6 +62,10 @@ namespace opt {
|
|||
m_weights.push_back(w);
|
||||
}
|
||||
|
||||
unsigned size() const { return m_soft_constraints.size(); }
|
||||
expr* operator[](unsigned idx) const { return m_soft_constraints[idx]; }
|
||||
rational weight(unsigned idx) const { return m_weights[idx]; }
|
||||
|
||||
void commit_assignment();
|
||||
inf_eps get_value() const;
|
||||
inf_eps get_lower() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue