mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
A rudimentary version of MathSAT optimization
Remarks: (1) The core procedure accepts maximization only (2) Add lazy initialization to min_maximize_cmd (3) The procedure isn't working with composite objective yet.
This commit is contained in:
parent
898609a3ef
commit
a44044fb15
8 changed files with 114 additions and 33 deletions
|
@ -24,8 +24,9 @@ Notes:
|
|||
namespace smt {
|
||||
class theory_opt {
|
||||
public:
|
||||
virtual bool max_min(theory_var v, bool max) { UNREACHABLE(); return false; };
|
||||
virtual bool max(theory_var v) { UNREACHABLE(); return false; };
|
||||
virtual theory_var add_objective(app* term) { UNREACHABLE(); return null_theory_var; }
|
||||
virtual optional<rational> get_objective_value(theory_var v) { UNREACHABLE(); optional<rational> r; return r;}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue