Reset solver state but keep constraints #6610
-
If I query the solver for a model x, add a constraint forbidding x, and then ask for a new model y I’m finding that x and y are “close” to one another. Is this because the solver is reusing work it did when it found x? How can I stop this from happening? Ideally, I’d like y to be a random satisfying assignment, completely independent of x. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
NikolajBjorner
Feb 26, 2023
Replies: 1 comment 2 replies
-
Here is a short discussion around controlling model outputs: https://z3prover.github.io/papers/z3internals.html#sec-there-are-no-deep-knobs-to-control-model-values |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
egolf-cs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a short discussion around controlling model outputs: https://z3prover.github.io/papers/z3internals.html#sec-there-are-no-deep-knobs-to-control-model-values