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

Unwanted use of --intermediate-solutions #193

Open
informarte opened this issue Jan 18, 2025 · 1 comment
Open

Unwanted use of --intermediate-solutions #193

informarte opened this issue Jan 18, 2025 · 1 comment

Comments

@informarte
Copy link

When instance.solve is called with intermediate_solutions = False, minizinc is called with --intermediate-solutions.

@Dekker1
Copy link
Member

Dekker1 commented Jan 21, 2025

This was a conscious decision as we found that many solvers didn't abide by the time limit give, but would not output their final solution when the CTRL-C event was passed into the solver. We currently work around this by just evaluating all solutions and storing the most recent one.

We could already change the flags for when no time limit is given, in which case there is indeed no need to evaluate all solutions. I'm, however, wary of changing this general behaviour as it caused a lot of problems in the past.

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

No branches or pull requests

2 participants