Status of Solution
回答済みHi there,
I have a program that solves problems by CPLEX and I want to change it to Gurobi. I am wondering what would be the equivalent of code below for Gurobi:
if (IloCplex::Optimal == cplex->getCplexStatus())
Thanks
Masoud
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Masoud,
In Gurobi C++ API, you can use:
if (model.get(GRB_IntAttr_Status) == GRB_OPTIMAL)
Best regards,
Maliheh
0 -
Thanks, Maliheh, for your help!
Masoud
0 -
Hi,
I am wondering about the equivalent to this in python API
Amal
0
投稿コメントは受け付けていません。
コメント
4件のコメント