Initializing help system before first use

XSLPgetintcontrol

XSLPgetintcontrol


Purpose
Retrieve the value of an integer problem control
Synopsis
int XPRS_CC XSLPgetintcontrol(XSLPprob Prob, int Param, int *iValue);
Arguments
Prob 
The current SLP problem.
Param 
control (SLP or optimizer) whose value is to be returned.
iValue 
Address of an integer variable to receive the value.
Example
The following example retrieves the value of the Xpress NonLinear control XSLP_ALGORITHM and of the optimizer control XPRS_DEFAULTALG:
int Algorithm, DefaultAlg;
XSLPgetintcontrol(Prob, XSLP_ALGORITHM, &Algorithm);
XSLPgetintcontrol(Prob, XPRS_DEFAULTALG, &DefaultAlg);
Further information
Both SLP and optimizer controls can be retrieved using this function. If an optimizer control is requested, the return value will be the same as that from XPRSgetintcontrol.
Related topics