-
Notifications
You must be signed in to change notification settings - Fork 439
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
Problems in retrieving the solution when setting a MIP gap #815
Comments
Hello Matteo, I googled a bit your issue as both GLPK and Gurobi find almost the same objective value. Looks like setting the MIPgap in GLPK results in a solution whose status is not well returned by GLPK, whereas it is properly handled by Gurobi. Hence the unknown status with GLPK. Is your GLPK up to date? If yes, I think the above link may give clues on what needs to be fixed in GLPK. |
I have the version 5.0, that post is more than 10 years old, I hope they solved that in the meantime :) |
I want to add that it works with HiGHS, I can set |
I am using PyPSA 0.26 and Linopy 0.2.6 on Windows.
I have a unit commitment problem that takes some time and I have decided to stop the simulation setting a MIP gap (~3%, but the number is not important, I have the same issue when setting a maximum time limit).
If I do this with GLPK (using
mipgap
), when the simulation stops I get a statusunknown
:If I use cbc with
ratioGap
the status at the end iswarning
but I cannot access the solution:Instead with gurobi (and
MIPGap
) I get as final statusok
and I can access eventually the solution:Is this a bug?
The text was updated successfully, but these errors were encountered: