XPRScopyprob
XPRScopyprob |
Purpose
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 1024 characters (including
NULL terminator) containing the name for the problem copy. 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