-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Switching solver malfunctioning #2074
Labels
Comments
You can do optimize!(mp, with_optimizer(Gurobi.Optimizer))
set_optimizer(mp, with_optimizer(Ipopt.Optimizer))
optimize!(mp) The error message could be improved. Or we could even make it work. |
The second argument to |
👍 on removing this in favor of |
mlubin
added a commit
that referenced
this issue
Oct 19, 2019
mlubin
added a commit
that referenced
this issue
Oct 20, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Previous to v.0.19 to switch from a solver to another, or modify the solver parameter, all we have to do is: (the following is an example)
Once JuMP was upgraded, MOI employs the solver in this way:
Now if I change the solver by running optimize! again, it throws me an error. Here is the code I run to generate this error:
Here is the printout of the error. The first solve is successful and then the second fails. If I want to solve the model again, I have to use Gurobi.Optimizer without changing any parameters/to another solver. It appears the same if I set up an optimizer when setting up the JuMP model instead of leaving it blank initially.
The text was updated successfully, but these errors were encountered: