-
Notifications
You must be signed in to change notification settings - Fork 140
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
Minizinc 2.8.1 compatibility issues #1074
Comments
Hello Can you compile your model with choco and show it here? |
Hi, After testing some more I discovered it is actually not the Element constraint that causes the error but just compiling any model for Choco on v.2.8.1 of MiniZinc. For version 2.8.0 it does work fine. Kind regards, |
Thank you for the investigation. |
Hi, Kind regards, |
This issue stems from a new check in the MiniZinc compiler that ensures that all predicates that are "solver builtins" (i.e., calls no longer being rewritten), are valid FlatZinc. Although there are no invalid declarations that are declared in the Choco library itself. It currently does not have any definitions for the following declarations.
These definitions would be expected in redefinitions-2.5.2.mzn. Likely it was the intention to have the same definitions as the MiniZinc standard library:
Note that it is expected that solvers override all predicates in |
Thank you @Dekker1 for the details. |
Yes, I'm sorry that this hasn't always been very clear. We've done our best to keep the changes for solvers as minimal as possible, but there have been a lot of (unspoken) assumptions about MiniZinc solver libraries and FlatZinc that we've been trying to make more explicit. Apart from the forced simple types ( The There are still new globals being added to the standard library, these are mentioned in the changelog, and new |
Dear,
I'm using Choco v 4.10.14 through the MiniZinc interface on MiniZinc v.2.8.1 and I am encountering an error when trying to compile a model with an element constraint.
Below is a minimal working example:
Output:
The problem remains when trying to change the type of the array or x-variable to
int
.Kind regards,
Ignace
The text was updated successfully, but these errors were encountered: