mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 02:16:40 +00:00
max/min
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9e4b9ea98b
commit
5b31f54501
4 changed files with 136 additions and 193 deletions
|
@ -114,6 +114,17 @@ namespace qe {
|
|||
void collect_statistics(statistics& st) const;
|
||||
};
|
||||
|
||||
class max_min_opt {
|
||||
struct imp;
|
||||
imp* m_imp;
|
||||
public:
|
||||
max_min_opt(ast_manager& m, params_ref const& p = params_ref());
|
||||
~max_min_opt();
|
||||
void add(expr* e);
|
||||
void add(expr_ref_vector const& fmls);
|
||||
lbool check(svector<bool> const& is_max, app_ref_vector const& vars, app* t);
|
||||
};
|
||||
|
||||
lbool maximize(expr_ref_vector const& fmls, app* t, opt::inf_eps& value, model_ref& mdl, params_ref const& p);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue