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

Usage of Minizinc Globals #35

Open
dbinkele opened this issue May 3, 2021 · 1 comment
Open

Usage of Minizinc Globals #35

dbinkele opened this issue May 3, 2021 · 1 comment

Comments

@dbinkele
Copy link

dbinkele commented May 3, 2021

Hi,

looking at your Java-API for Minizinc, I see it is solid work. One thing I could not immediately spot is the ability to use globals (as are listed here https://www.minizinc.org/doc-2.4.3/en/lib-globals.html). This is quite essential for writing efficient Minizinc programs. Did I simply overlook it?!

Thanks in advance
Daniel

@rtaupe
Copy link
Collaborator

rtaupe commented May 5, 2021

Hi Daniel,

Thanks for this issue!
Unfortunately, in the current version, you can use global constraints only in external files, which can then be included in your model (by using IncludeItem). Using them directly in JMiniZinc would require an extension of BooleanExpression.
We have no plans to implement this, but you are very welcome to open a pull request if you have resources for it!

Best regards,
Richard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants