Skip to content
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

2.8.2: objective variable replaced by constant, but still occuring in minimize expression #773

Closed
ptal opened this issue Dec 27, 2023 · 0 comments
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release

Comments

@ptal
Copy link

ptal commented Dec 27, 2023

Hi,

On the spot5.mzn / 404.dzn instance, given constraint objective = 136; in the model, the flattening phase outputs:

solve :: seq_search([int_search(p,first_fail,indomain_min,complete),int_search([136],input_order,indomain_min,complete)]) minimize objective;

But it replaced the variable objective by its value and therefore minimize objective fails to parse because it is not declared anymore.

This bug was discovered when using mzn-bench to check the solutions produced by my solver.

spot5.zip

@Dekker1 Dekker1 added the bug label Jan 1, 2024
@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

3 participants