Initializing help system before first use

# setsolstat

Purpose
Set the problem status.
Synopsis
`void setsolstat(XPRMcontext ctx, XPRMnlpdata nlpdata, int status, double objval);`
Arguments

ctx | Mosel's execution context
nlpd | Problem information as generated by loadprob
status | Bit encoded problem status:
XPRM_PBSOL | A solution is available,
XPRM_PBOPT | Optimal solution found,
XPRM_PBUNF | Optimization interrupted,
XPRM_PBINF | Problem is infeasible,
XPRM_PBUNB | Problem is unbounded,
XPRM_PBOTH | Optimization failed
objval |

Further information
This function sets the problem status in Mosel. It is usually invoked after an optimization procedure in order to tell Mosel the result of the operation and whether a solution is available. Note that the status XPRM_PBSOL can be combined with the other status values ( e.g. XPRM_PBOPT|XPRM_PBSOL).
Parent Topic Implementing a specific nonlinear solver interface

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