XSLPreminim
XSLPreminim |
Purpose
Continue the minimization of an SLP problem
Synopsis
int XPRS_CC XSLPreminim(XSLPprob Prob, char *Flags);
Arguments
Prob
|
The current SLP problem.
|
Flags
|
These have the same meaning as for
XSLPminim.
|
Example
The following example optimizes the SLP problem for up to 10 SLP iterations. If it has not converged, it saves the file and continues for another 10.
int Status; XSLPsetintcontrol(Prob, XSLP_ITERLIMIT, 10); XSLPminim(Prob,""); XSLPgetintattrib(Prob, XSLP_STATUS, &Status); if (Status & XSLP_MAXSLPITERATIONS) { XSLPsave(Prob); XSLPsetintcontrol(Prob, XSLP_ITERLIMIT, 20); XSLPreminim(Prob,""); }
Further information
This allows Xpress NonLinear to continue the minimization of a problem after it has been terminated, without re-initializing any of the parameters. In particular, the iteration count will resume at the point where it previously stopped, and not at 1.
Related topics