Gurobi solver halt the program when the optimization problem is infeasible
AnsweredHello,
I am solving a Quadratic Program problem with Gurobi solver within a while loop. Because some parameters within my constraint are random variables (served as exploration purposes for my algorithm), the QP will frequently becomes infeasible and thus stops the while loop. Is there a way for me to let Gurobi continue the program when the QP is infeasible (maybe just return "infeasible" as a string, instead of halt the entire program)?
-
Hi,
you should probably check the status of the model whether gurobi determined it being infeasible and catch that situation by doing something else compared to the normal case where the model is solved.
See http://www.gurobi.com/documentation/8.1/refman/optimization_status_codes.html#sec:StatusCodes for the different states a model can have after solving is stopped.
0
Please sign in to leave a comment.
Comments
1 comment