Initializing help system before first use

# problem.getProbStatus

Purpose
This subroutine is deprecated and will be removed in a future release. Use problem.attributes.solvestatus and problem.attributes.solstatus instead.
Returns the problem status before or after a call to problem.optimize.
Synopsis
`s = problem.getProbStatus()`
Example

    p = xpress.problem()
    p.read("example2", "")
    p.optimize()
    print("solution status code: ", p.getProbStatus(), " -->",
           p.getProbStatusString())

Further information
The returned number corresponds to the one of the problem status attributes described in the Xpress Optimizer reference manual: problem.attributes.lpstatus if the problem is an LP, problem.attributes.mipstatus if the problem is a MIP, or problem.attributes.nlpstatus if the problem is nonlinear.
Related topics
problem.optimize, problem.getSolution, problem.getDuals, problem.getSlacks, problem.getRedCosts, problem.getProbStatusString.
Parent Topic Deprecated functionality

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.