Open SYury opened 1 month ago
That's because the flatzinc parser of choco-solver does not support float variables and constraints.
That's because the flatzinc parser of choco-solver does not support float variables and constraints.
That's unfortunate. Is there any way to pass a model with float variables to choco-solver without writing the Java code by hand?
Sadly, no, it requires to update the parser in order to support float variables and float constraints declaration. It is probably not too difficult, a copying-and-pasting strategy could be applied, but I already have two projects underway.
Describe the bug Consider the following MiniZinc model:
When I run Choco on this model in MiniZinc IDE, it crashes with the following stacktrace:
It looks like the line
array [1..2] of float: X_INTRODUCED_2_ = [-2.0,-3.0];
in generated flatzinc representation kills the parser. When I change the variables to ints it works. Environment (please complete the following information):