We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I use assignment of arrays in comprehensions like this
array[int, int] of int: foos = [| 1, 0 |]; output [ show([ r[1] | t=foos, i in index_set_1of2(t), r=t[i, ..] ]), % error show([ r[1] | i in index_set_1of2(foos), t=foos, r=t[i, ..] ]), % error show([ r[1] | i in 1..1, t=foos, r=t[i, ..] ]), % error "\n", ];
playground.mzn
I end up with
MiniZinc: evaluation error: index_set: wrong dimension
in MiniZinc 2.8.4+ in MiniZinc 2.8.3- it's instead
Error: evaluation error: arrays of arrays not supported
Possibly related to issue #807
The text was updated successfully, but these errors were encountered:
interestingly, this is OK
show([ r | i in index_set_1of2(foos), t=foos, r=t[i, 1] ]), % OK
but this is not
show([ r | t=foos, i in index_set_1of2(t), r=t[i, 1] ]), % error
Sorry, something went wrong.
Fix type inst for array assignment generators
60240d8
Fixes #858
No branches or pull requests
If I use assignment of arrays in comprehensions like this
playground.mzn
I end up with
in MiniZinc 2.8.4+
in MiniZinc 2.8.3-
it's instead
Possibly related to issue #807
The text was updated successfully, but these errors were encountered: