mirror of
https://github.com/Z3Prover/z3
synced 2025-08-03 01:40:22 +00:00
use only maxres if there is a lexicographic objective, fix #6697
- maxlex.enable heuristic does not work if it is chained among multiple objectives. Only maxres is set up to commit the proper constraints.
This commit is contained in:
parent
7a689c3298
commit
fdd5c923ed
3 changed files with 6 additions and 6 deletions
|
@ -137,7 +137,7 @@ namespace opt {
|
|||
params_ref m_params;
|
||||
public:
|
||||
maxsmt(maxsat_context& c, unsigned id);
|
||||
lbool operator()();
|
||||
lbool operator()(bool committed);
|
||||
void updt_params(params_ref& p);
|
||||
void add(expr* f, rational const& w);
|
||||
unsigned size() const { return m_soft.size(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue