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-SLP 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-SLP problem and the underlying Optimizer Library problem. If only the Xpress-SLP 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
XSLP_CONTROL


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.