3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-17 08:42:15 +00:00

first implementation of maxres

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-07-21 22:24:34 +02:00
parent 465eafbf45
commit 582dbe509c
4 changed files with 251 additions and 17 deletions

18
src/opt/maxres.h Normal file
View file

@ -0,0 +1,18 @@
namespace opt {
class maxres : public maxsmt_solver {
struct imp;
imp* m_imp;
public:
maxres(ast_manager& m, solver& s, expr_ref_vector& soft_constraints);
~maxres();
virtual lbool operator()();
virtual rational get_lower() const;
virtual rational get_upper() const;
virtual bool get_assignment(unsigned index) const;
virtual void set_cancel(bool f);
virtual void collect_statistics(statistics& st) const;
virtual void get_model(model_ref& mdl);
virtual void updt_params(params_ref& p);
};
};