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.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.