XPRSwriteslxsol (WRITESLXSOL)
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.
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):
|
Example 1 (Library)
XPRSwriteslxsol(prob,"lpsolution","");
This saves the MIP solution if the problem contains global 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
XPRSreadslxsol (
READSLXSOL,
XPRSwriteprtsol (
WRITEPRTSOL),
XPRSwritebinsol (
WRITEBINSOL),
XPRSreadbinsol (
READBINSOL).