getprobstat
getprobstat |
Purpose
Synopsis
function getprobstat:integer
Return value
Status of the problem currently held in the Optimizer:
XPRS_OPT
|
|
XPRS_UNF
|
|
XPRS_INF
|
|
XPRS_UNB
|
|
XPRS_OTH
|
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
Module