Initializing help system before first use

getprobstat

getprobstat


Purpose
Get the optimization problem status.
Synopsis
function getprobstat:integer
Return value
Status of the last problem solved:
NL_OPT 
Solved to optimality
NL_UNF 
Unfinished
NL_INF 
Infeasible
NL_UNB 
Unbounded
NL_OTH 
Unsolved or failure during processing
Example
The following procedure displays the current problem status:
procedure print_status
 declarations
  status: string
 end-declarations

 case getprobstat of
  NL_OPT: status:="Solved"
  NL_UNF: status:="Unfinished"
  NL_INF: status:="Infeasible"
  NL_UNB: status:="Unbounded"
  NL_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 solver status value in NL_status.
Related topics
Module