Initializing help system before first use

XPRScopyprob

Purpose
Copies information defined for one problem to another.
Topic area
Synopsis
int XPRS_CC XPRScopyprob(XPRSprob dest, XPRSprob src, const char *name);
Arguments
dest 
The new problem pointer to which information is copied.
src 
The old problem pointer from which information is copied.
name 
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 MIP 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);
See also examples addmipsol.c, globjpar.c, glrhspar.c.
Further information
XPRScopyprob copies only the problem and controls and does not copy the callbacks associated to a problem. These must be copied separately using XPRScopycallbacks.
Related topics

© 2001-2025 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.