XSLPcopycontrols
XSLPcopycontrols |
Purpose
Copy the values of the control variables from one SLP problem to another
Synopsis
int XPRS_CC XSLPcopycontrols(XSLPprob NewProb, XSLPprob OldProb);
Arguments
NewProb
|
The SLP problem to receive the controls.
|
OldProb
|
The SLP problem from which the controls are to be copied.
|
Example
The following example creates a new problem and copies only the Xpress NonLinear controls from the existing problem (not the Optimizer library ones).
XSLPprob nProb; XPRSprob xProb; int Control; XSLPcreateprob(&nProb, &xProb); Control = 1<<1; XSLPsetintcontrol(Prob, XSLP_CONTROL, Control); XSLPcopycontrols(nProb, Prob);
Note that
XSLP_CONTROL is set in the
old problem, not the new one.
Further information
Normally
XSLPcopycontrols copies both the Xpress NonLinear controls and the Optimizer Library controls for the underlying problem. If only the Xpress NonLinear controls are required, set the integer control variable
XSLP_CONTROL appropriately.
Related topics