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.0: Two-dimensional arrays in FlatZinc solve goals #750

Closed
informarte opened this issue Nov 19, 2023 · 0 comments
Closed

2.8.0: Two-dimensional arrays in FlatZinc solve goals #750

informarte opened this issue Nov 19, 2023 · 0 comments
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release

Comments

@informarte
Copy link

For three problems from past MiniZinc challenges (roster-sickness, roster-shifts-bool, and rotating-workforce-scheduling), MiniZinc 2.8.0 generates FlatZinc solve goals with two-dimensional arrays, resulting in parser errors from all backends I tried, for example:

> minizinc roster-shifts-bool/bool-model.mzn roster-shifts-bool/small.dzn 

Error: Unknown character in line no. 30976
Error: Unknown character in line no. 30976
Error: syntax error, unexpected FZ_BOOL_LIT, expecting ']' in line no. 30976
=====ERROR=====

The FlatZinc solve goal looks like this:

solve :: bool_search([|false,X_INTRODUCED_2_,X_INTRODUCED_3_,...|],input_order,indomain_max,complete) maximize objective;
@cyderize cyderize added the bug label Nov 19, 2023
@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label Nov 23, 2023
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

2 participants