Initializing help system before first use

# getprobstat

Purpose
Get the Optimizer problem status.
Synopsis
`function getprobstat:integer`
Return value
Status of the problem currently held in the Optimizer:

XPRS_OPT | Solved to optimality
XPRS_UNF | Unfinished
XPRS_INF | Infeasible
XPRS_UNB | Unbounded
XPRS_OTH | Unsolved or objective worse than cutoff

Example
The following procedure displays the current problem status:

    procedure print_status
     declarations
      status: string
     end-declarations

     case getprobstat of
      XPRS_OPT: status:="Optimum found"
      XPRS_UNF: status:="Unfinished"
      XPRS_INF: status:="Infeasible"
      XPRS_UNB: status:="Unbounded"
      XPRS_OTH: status:="Failed"
      else status:="???"
     end-case

     writeln("Problem status: ", status)
    end-procedure

Further information
More detailed information than what is provided by this function can be obtained with function getparam, retrieving the problem attributes XPRS_presolvestate, XPRS_lpstatus, and XPRS_mipstatus (see the Xpress Optimizer Reference Manual).
Related topics
getparam.
Module
mmxprs
Parent Topic Procedures and functions

© 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.