Initializing help system before first use

XPRSreadslxsol (READSLXSOL)

XPRSreadslxsol

READSLXSOL


Purpose
Reads an ASCII solution file ( .slx) created by the XPRSwriteslxsol function.
Synopsis
int XPRS_CC XPRSreadslxsol(XPRSprob prob, const char *filename, const char *flags);
READSLXSOL -[flags] [filename]
Arguments
prob 
The current problem.
filename 
A string of up to MAXPROBNAMELENGTH characters containing the file name to which the solution is to be read. If omitted, the default problem_name is used with a .slx extension.
flags 
Flags to pass to XPRSwriteslxsol ( WRITESLXSOL):
read the solution as an LP solution in case of a MIP problem;
read the solution as a solution for the MIP problem;
reads multiple MIP solutions from the .slx file and adds them to the MIP problem;
Example 1 (Library)
XPRSreadslxsol(prob,"lpsolution","");
 
This loads the solution to the MIP problem if the problem contains global entities, or otherwise loads it as an LP (barrier in case of quadratic problems) solution into the problem.
Example 2 (Console)
READSLXSOL lpsolution
Further information
1. When XPRSreadslxsol is called before a MIP solve, the loaded solutions will not be checked before calling XPRSmipoptimize. By default, only the last MIP solution read from the .slx file will be stored. Use the a flag to store all MIP solutions read from the file.
2. When using the a flag, read solutions will be queued similarly to the user of the XPRSaddmipsol function. Each name string given by the NAME field in the .slx file will be associated with the corresponding solution. Any registered usersolnotify callback will be fired when the solution has been checked, and will include the read name string as one of its arguments.
3. Refer to the Appendix on Log and File Formats for a description of the ASCII Solution (.slx) File format ASCII Solution (.slx) Files.
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.