Skip to content

Possible bug: correct optimum but model is inconsistent #2523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fraleo opened this issue Aug 28, 2019 · 1 comment
Closed

Possible bug: correct optimum but model is inconsistent #2523

fraleo opened this issue Aug 28, 2019 · 1 comment
Labels

Comments

@fraleo
Copy link

fraleo commented Aug 28, 2019

Hello there,

I'm using Z3 (commit 2e6908b) to find the optimal solution to the following formula: formula.txt

After solving, Z3 returns 14 as the optimum, which is correct. However the model returned seems to be inconsistent with the value of the objective function (see: model_z3.txt). The same behaviour can be observed also when using the Python API.

Just to make sure, I ran OptiMathsat on the same formula and obtained a solution where the optimum is indeed 14 and the model agrees with that (see: model_optimathsat.txt).

What could be the reason for this? Any help would be much appreciated :)

Thanks!

@NikolajBjorner
Copy link
Contributor

bug indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants