XPRSsetdefaults (SETDEFAULTS)
XPRSsetdefaults |
SETDEFAULTS |
Purpose
Sets all controls to their default values. Must be called before the problem is read or loaded by
XPRSreadprob,
XPRSloadglobal,
XPRSloadlp,
XPRSloadqglobal,
XPRSloadqp.
Synopsis
int XPRS_CC XPRSsetdefaults(XPRSprob prob);
SETDEFAULTS
Argument
prob
|
The current problem.
|
Example
The following turns off presolve to solve a problem, before resetting the control defaults, reading it and solving it again:
XPRSsetintcontrol(prob, XPRS_PRESOLVE, 0); XPRSmipoptimize(prob, ""); XPRSwriteprtsol(prob); XPRSsetdefaults(prob); XPRSreadprob(prob); XPRSmipoptimize(prob, "");
Related topics