Incomplete MaxSAT #5158
-
I have a problem where I am considering to use incomplete MaxSAT algorithms. Are there any incomplete MaxSMT solvers implemented in z3? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can register a callback with the Optimize object that returns intermediary solutions. The option is called enable_lns=true, example:
From the command-line use “opt.enable_lns=true”. You can also get intermediary solutions from a callback in Python
Then:
|
Beta Was this translation helpful? Give feedback.
-
You can download bits from "nightly" releases. |
Beta Was this translation helpful? Give feedback.
You can register a callback with the Optimize object that returns intermediary solutions.
So far I support the callback for the python API. You can also enable the parameter "opt.enable_lns", which when used from the default maxsat solver uses some improved search for intermediary solutions. While it remains to be further tuned, it can offer much higher quality solutions than the default option on hard MaxSAT problems.
The option is called enable_lns=true, example:
From the command-line use “opt.enable_lns=true”.
You can also get intermediary solutions from a callback in Python