Reputation: 25
Does Z3Opt have a functionality to provide a sub-optimal solution for the objective within a certain time bound specified by the user?
Upvotes: 1
Views: 49
Reputation: 8359
You can set a timeout or interrupt the opt context. You can then query the opt context for lower and upper bounds of the objective values. You can also query it for the current model and it will return the model for the best possible bound so far.
Upvotes: 1