XPRSsetdefaultcontrol (SETDEFAULTCONTROL)
XPRSsetdefaultcontrol |
SETDEFAULTCONTROL |
Purpose
Sets a single control to its default value.
Synopsis
int XPRS_CC XPRSsetdefaultcontrol(XPRSprob prob, int ipar);
SETDEFAULTCONTROL controlname
Arguments
prob
|
The current problem.
|
ipar
|
Integer, double or string control parameter whose default value is to be set.
|
controlname
|
Integer, double or string control parameter whose default value is to be set.
|
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); XPRSmipoptimize(prob, ""); XPRSwriteprtsol(prob); XPRSsetdefaultcontrol(prob, XPRS_PRESOLVE); XPRSmipoptimize(prob, "");
Further information
A full list of all controls may be found in Chapter
Control Parameters, or from the list in the
xprs.h header file.
Related topics