XPRSsetdefaultcontrol


Purpose
Sets a single control to its default value.
Synopsis
int XPRS_CC XPRSsetdefaultcontrol(XPRSprob prob, int ipar);
Arguments
prob 
The current problem.
ipar 
Integer, double or string control parameter whose default value is to be set. A full list of all controls may be found in Control Parameters, or from the list in the xprs.h header file.
Example
The following turns off presolve to solve a problem, before resetting it to its default value and solving it again:
XPRSsetintcontrol(prob, XPRS_PRESOLVE, 0);
XPRSmaxim(prob, "g");
XPRSwriteprtsol(prob);
XPRSsetdefaultcontrol(prob, XPRS_PRESOLVE);
XPRSmaxim(prob, "g");
Related topics
XPRSsetdefaults, XPRSsetintcontrol, XPRSsetdblcontrol, XPRSsetstrcontrol.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.