assign and check
AnsweredHey,
does Gurobi now support solution assign and check. That is I assign a solution to the model and would like to see if it satisfies all the constraints. I think it would be super useful for debugging. Sometimes the model is big and would be really difficult for us to find which one causes the `infeasible or unbound`.
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Jason,
Gurobi does not support this directly. However, you can easily import a solution as MIP start and see if Gurobi takes it. If it is not feasible Gurobi will let you know in the log file.
A second way to achieve this is to explicitly fix the bounds of the variables to the values of the solution in one of the APIs and call model.optimize().
Best,
Sonja
1
Post is closed for comments.
Comments
2 comments