XPRSsave, XPRSsaveas |
SAVE |
Purpose
Saves the current data structures, i.e. matrices, control settings and problem attribute settings to file and terminates the run so that optimization can be resumed later.
Synopsis
int XPRS_CC XPRSsave(XPRSprob prob);
int XPRS_CC XPRSsaveas(XPRSprob prob, char *filename);
SAVE
Arguments
prob
|
The current problem.
|
filename
|
The name of the file to save to.
|
Example 1 (Library)
Example 2 (Console)
Further information
1. The data structures are written to the file
problem_name
.svf. Optimization may recommence from the same point when the data structures are restored by a call to
XPRSrestore (
RESTORE). Under such circumstances, the file
problem_name
.sol and, if a branch and bound search is in progress, the global files
problem_name
.glb and
problem_name
.ctp are also required. These files will be present after execution of
XPRSsave (
SAVE), but will be modified by subsequent optimization, so no optimization calls may be made after the call to
XPRSsave (
SAVE). Note that the
.svf files created are particular to the release of the Optimizer used to create them. They can only be read using the same release Optimizer as used to create them.
2. The function
XPRSsaveas is equivalent to
XPRSsave with the exception of allowing to adjust the name of the file created. The name of the file must not be greater than
MAXPROBNAMELENGTH.
Related topics
© 2001-2019 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.