Initializing help system before first use

# 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.
Topic areas
File IO, Save Restore
Synopsis
`int XPRS_CC XPRSsave(XPRSprob prob);`
`int XPRS_CC XPRSsaveas(XPRSprob prob, const char *filename);`
`SAVE`
Arguments

prob | The current problem.
filename | The name of the file (without .svf) to save to.

Example 1 (Library)

    XPRSsave(prob);

Example 2 (Console)

    SAVE

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). 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
XPRSrestore ( RESTORE).
Parent Topic Console and Library Functions

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