Initializing help system before first use

XPRSwriteslxsol (WRITESLXSOL)

Purpose
Creates an ASCII solution file ( .slx) using a similar format to MPS files. These files can be read back into the Optimizer using the XPRSreadslxsol function.
Topic areas
Synopsis
int XPRS_CC XPRSwriteslxsol(XPRSprob prob, const char *filename, const char *flags);
WRITESLXSOL -[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 written. If omitted, the default problem_name is used with a .slx extension.
flags 
Flags to pass to XPRSwriteslxsol ( WRITESLXSOL):
write the LP solution in case of a MIP problem;
write the MIP solution;
use full precision for numerical values (obsolete as this is now default behavior);
including slack variables;
LP solution only: including dual variables;
LP solution only: including reduced cost;
use the provided filename verbatim, without appending the .slx extension;
compress the output file.
Example 1 (Library)
XPRSwriteslxsol(prob,"lpsolution","");
 
This saves the MIP solution if the problem contains MIP entities, or otherwise saves the LP (barrier in case of quadratic problems) solution of the problem.
Example 2 (Console)
WRITESLXSOL lpsolution
Which is equivalent to the library example above.
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.