XPRScopyprob


Purpose
Copies information defined for one problem to another.
Synopsis
int XPRS_CC XPRScopyprob(XPRSprob dest, XPRSprob src, const char *probname);
Arguments
dest 
The new problem pointer to which information is copied.
src 
The old problem pointer from which information is copied.
probname 
A string of up to 200 characters to contain the name for the copied problem. This must be unique when file writing is to be expected, and particularly for global problems.
Example
The following copies the problem, its controls and it callbacks from prob1 to prob2:
XPRSprob prob1, prob2;
...
XPRScreateprob(&prob2);
XPRScopyprob(prob2,prob1,"MyProb");
XPRScopycontrols(prob2,prob1);
XPRScopycallbacks(prob2,prob1);
Further information
XPRScopyprob copies only the problem and does not copy the callbacks or controls associated to a problem. These must be copied separately using XPRScopycallbacks and XPRScopycontrols respectively.
Related topics
XPRScopycallbacks, XPRScopycontrols, XPRScreateprob.


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