Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
option variables cause undefined translated variables or other errors #133
The attached file fjs1.mzn is a variation on a flexible jobshop example from somewhere, with specific data added and a data flag to say whether to use disjunctive or cumulative.
When I try to run it under MiniZinc 2.1.2 with the or-tools solver, which has a var opt implementation for disjunctive, the generated flatzinc contains references to undefined variables:
$ mzn-ortools fjs1.mzn -Duse_disjunctive=true
With a different solver, I can run either variant (presumably there is no var opt implementation there).
$ mzn-chuffed fjs1.mzn -Duse_disjunctive=true
If I change it to use "let" variables, I get a different error: