3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 01:40:22 +00:00

add option to "rotate" cores during core finding

enable to find multiple cores in a round and at the same time facilitate rotation around satisfiable subsets to explore neighborhoods for improved assignments.
This commit is contained in:
Nikolaj Bjorner 2022-05-01 20:58:11 +02:00
parent 5a9b0dd747
commit b5c7f000de
6 changed files with 510 additions and 25 deletions

View file

@ -31,6 +31,13 @@ namespace opt {
typedef vector<rational> const weights_t;
struct weighted_core {
ptr_vector<expr> m_core;
rational m_weight;
weighted_core(ptr_vector<expr> const& c, rational const& w):
m_core(c), m_weight(w) {}
};
class maxsat_context;
class maxsmt_solver {