z3 icon indicating copy to clipboard operation
z3 copied to clipboard

Feature Request: Start optimization from given model

Open mmjb opened this issue 10 years ago • 1 comments

It would be nice to have a z3-opt API like optimize(model_ref& base_model), which starts optimisation from the given base model. Currently, optimize() always calls into a fresh solver to get a solution on the hard constraints before starting the optimisation procedure, which can be wasteful in some situations.

mmjb avatar Oct 05 '16 14:10 mmjb

It is unclear how this could be leveraged: internally the formulas asserted to the solvers may have been rewritten and be using fresh variables.

NikolajBjorner avatar Oct 08 '16 17:10 NikolajBjorner