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

Minizinc crashes on integers outside of range (-2147483646..2147483646) #270

Closed
Wout4 opened this issue Mar 31, 2023 · 1 comment · Fixed by #282
Closed

Minizinc crashes on integers outside of range (-2147483646..2147483646) #270

Wout4 opened this issue Mar 31, 2023 · 1 comment · Fixed by #282

Comments

@Wout4
Copy link
Collaborator

Wout4 commented Mar 31, 2023

So minizinc python just rejects integers bigger than 2147483646, as constants or as bounds for expressions.

Seems like the only thing we can do is catch this and throw our own exception?

@Wout4
Copy link
Collaborator Author

Wout4 commented Mar 31, 2023

big = intvar(0,20000000000)
Model([iv[0] == big + big]).solve("minizinc")
or Model[big == 20000000000].solve("minizinc")

@Wout4 Wout4 linked a pull request Apr 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant