mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
different strategies for weighted
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
26237a3727
commit
0deb951873
15 changed files with 352 additions and 123 deletions
|
@ -51,6 +51,7 @@ namespace opt {
|
|||
}
|
||||
|
||||
if (m_msolver) {
|
||||
m_msolver->updt_params(m_params);
|
||||
is_sat = (*m_msolver)();
|
||||
if (is_sat == l_true) {
|
||||
m_msolver->get_model(m_model);
|
||||
|
@ -149,6 +150,10 @@ namespace opt {
|
|||
void maxsmt::updt_params(params_ref& p) {
|
||||
opt_params _p(p);
|
||||
m_maxsat_engine = _p.maxsat_engine();
|
||||
m_params = p;
|
||||
if (m_msolver) {
|
||||
m_msolver->updt_params(p);
|
||||
}
|
||||
}
|
||||
|
||||
void maxsmt::collect_statistics(statistics& st) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue