XSLPcopyprob
PurposeCopy an existing SLP problem to anotherSynopsisint 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.ExampleThe 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 informationNormally 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
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.