-
Notifications
You must be signed in to change notification settings - Fork 15
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
ValueError is raised with pymzn but working with MinizincIDE #44
Comments
Indeed the parser is expecting a floating point to look like |
Thank you @paolodragone! Yes, the solver is For the versions:
the output when I run is:
That is why I don't understand this parsing error, I don't see any '1' alone anywhere,. |
I had the same issue with floating point numbers and interestingly it works with output_mode='json' Is there a fix for this coming soon? |
I'm encountering the same (or a similar) issue running the first example in section 2.2 of the MiniZinc Handbook (@vrvarma's workaround works for me):
|
Hi,
I am trying to use the
cbc
solver throughpymzn
. I have two filesLP.mzn, Fourier.dzn
. These files are running properly when I use the Minizinc IDE but the errorValueError: Value '1' is not a float.
is raised with pymzn.Here is the full error stacktrace:
The function
inf555.minizinc
is just a simple wrapper callingpymzn.minizinc
:I call the solver with:
My
LP.mzn
file is:and finally my
Fourier.dzn
file is:Thank you for your help!
The text was updated successfully, but these errors were encountered: