XSLPcopyprob
XSLPcopyprob |
Purpose
Copy an existing SLP problem to another
Synopsis
int XPRS_CC XSLPcopyprob(XSLPprob NewProb, XSLPprob OldProb, char *ProbName);
Arguments
NewProb
|
The SLP problem to receive the copy.
|
OldProb
|
The SLP problem from which to copy.
|
ProbName
|
The name to be given to the problem.
|
Example
The following example creates a new Xpress NonLinear problem and then copies an existing problem to it. The new problem is named "ANewProblem".
XSLPprob nProb; XPRSprob xProb; XSLPcreateprob(&nProb, &xProb); XSLPcopyprob(nProb, Prob, "ANewProblem");
Further information
Normally XSLPcopyprob copies both the Xpress NonLinear problem and the underlying Optimizer Library problem. If only the Xpress NonLinear problem is required, set the integer control variable XSLP_CONTROL appropriately.
This function does not copy controls or callbacks. These must be copied separately using XSLPcopycontrols and XSLPcopycallbacks if required.
Related topics