Solve Gurobi multiple times avoid infeasible model
回答済みHi,
I created a python loop to solve a model with gurobi iteratively. In each iteration, i just change different parameters. However, sometimes, the new parameters will cause the model infeasible. The whole program stops. I hope to skip those infeasible models and continue to run the program. How shall i achieve that? Thanks.
0
-
正式なコメント
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,
You can use the model Status attribute to check the optimization status of the recent optimization run. You can see an example application in the mip2.py example.
Best regards,
Jaromił0
投稿コメントは受け付けていません。
コメント
2件のコメント