problem.getProbStatus
problem.getProbStatus |
Purpose
Returns the problem status before or after a
solve () command. The returned number corresponds to the problem status described in the Xpress Optimizer reference manual. If the problem is an LP, the returned value is equal to
p.attributes.lpstatus if the problem is an LP, and to
p.attrobutes.mipstatus if the problem is a MIP.
Synopsis
s = problem.getProbStatus ()
Example
p = xpress.problem () p.read ("example2", "") p.solve () print ("solution status code: ", p.getProbStatus (), " -->", p.getProbStatusString ())
Related topics
problem.solve,
problem.getSolution,
problem.getDual,
problem.getSlack,
problem.getRCost,
problem.getProbStatusString.