Status of Solution
AnsweredHi 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
-
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
Please sign in to leave a comment.
Comments
3 comments