Initializing help system before first use

XPRScopyprob

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 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

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.