Initializing help system before first use

XSLPsetdefaults

XSLPsetdefaults


Purpose
Set the values of all SLP controls to their default values
Synopsis
int XPRS_CC XSLPsetdefaults(XSLPprob Prob);
Argument
Prob 
The current SLP problem.
Example
The following example reads a problem from file, sets some controls, optimizes the problem and then reads and optimizes another problem using the default settings.
XSLPreadprob(Prob, "Matrix1", "");
XSLPsetintcontrol(Prob, XSLP_LOG, 4);
XSLPsetdblcontrol(Prob, XSLP_CTOL, 0.001);
XSLPsetdblcontrol(Prob, XSLP_ATOL_A, 0.005);
XSLPmaxim(Prob, "");
XSLPsetdefaults(Prob);
XSLPreadprob(Prob, "Matrix2", "");
XSLPmaxim(Prob, "");
Further information
This function does not reset the optimizer controls. Use XPRSsetdefaults as well to reset all the controls to their default values.
Related topics