-
Notifications
You must be signed in to change notification settings - Fork 140
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
Resetting the solver after finding optimal solutions #444
Comments
I will add a model.clearObjective() at the beginning of findSolution() |
I think reset should be calling model.clearObjective? |
I would say that this is a different debate. As findOptimalSolution sets the objective, it makes sense to me that findSolution and findAllSolutions make an objective clearance. As said in my commit post: For step-by-step solver.reset is supposed to focus on the solver object / the solving process. Does it make sense to you? I am open to discussion :-) |
Makes sense. Thanks for the clarification. |
Consider the following example:
This will print
The findSolution call failed even though the solver was reset?
The text was updated successfully, but these errors were encountered: