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

Extend MiniZinc API with better solution parsing and options #812

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

lingmar
Copy link
Contributor

@lingmar lingmar commented Dec 14, 2023

This PR extends the MiniZinc API so that

  • all status codes ("unsatisfiable", "satisfied", etc.) are parsed, not only "optimal solution"
  • all intermediate solutions are parsed and returned, not only the last solution like before
  • it's possible to pass options to the solving process, e.g. to choose solver and timeout
  • satisfaction and maximization problems are directly supported (not just minimization problems)

Additionally, I have included some minor fixes for tuning:

  • Renamed a variable that could potentially become a name conflict
  • Fixed a bug that gave a crash on externals
  • Added type checking and test cases for independence annotations

@david-broman david-broman merged commit d53408c into miking-lang:develop Dec 15, 2023
2 checks passed
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 this pull request may close these issues.

2 participants