Unknown status returned by CPLEX

117 views
Skip to first unread message

Romain Montagné

unread,
May 30, 2020, 5:50:31 PM5/30/20
to pulp-or-discuss
Hello,
I am running a LP with pulp and cplex, and get the following error : 

pulp.solvers.PulpSolverError: Unknown status returned by CPLEX: integer optimal solution

So I understand the status is not recognized by pulp. Have the cplex statuses evolved ? If so should it be added to pulp's list of statuses?

Or maybe the error comes from somewhere else. Any help is welcome. 

Romain Montagné

unread,
May 31, 2020, 4:33:58 AM5/31/20
to pulp-or-discuss
I checked the git repo and found these lines in the cplex api file :
     
   # TODO: check status for Integer Feasible
        cplexStatus
= {
           
"optimal": constants.LpStatusOptimal,
           
}
       
if statusString not in cplexStatus:
           
raise PulpSolverError("Unknown status returned by CPLEX: "+statusString)

So I guess the status "integer optimal solution" is new and should be added to cplexStatus for checks.

Franco Peschiera

unread,
May 31, 2020, 5:26:36 AM5/31/20
to pulp-or-discuss
It's quite possible. If you can create a ticket with a reproducible example, that would be great. Also with the version of CPLEX you're using.

We have a dictionary of CPLEX codes that we may need to upgrade.

Romain Montagné

unread,
May 31, 2020, 11:08:19 AM5/31/20
to pulp-or-discuss
Sure, will do ! 
Reply all
Reply to author
Forward
0 new messages