Initializing help system before first use

# 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
NL_status.
Module
nlsolv
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.