Initializing help system before first use

setprobstat

setprobstat


Purpose
Set the problem status.
Synopsis
void setprobstat(XPRMcontext ctx, int status, double objval);
Arguments
ctx 
Mosel's execution context
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).
Related topics