Initializing help system before first use

XSLPwriteprob

XSLPwriteprob


Purpose
Write the current problem to a file in extended MPS or text format
Synopsis
int XPRS_CC XSLPwriteprob(XSLPprob Prob, char *Filename, char *Flags);
Arguments
Prob 
The current SLP problem.
Filename 
Character string holding the name of the file to receive the output. The extension ".mat" will automatically be appended to the file name, except for "text" format when ".txt" will be appended.
Flags 
The following flags can be used:
write the current approximation (linearized) matrix (the default is to write the non-linear matrix including formulae);
one coefficient per line (the default is up to two numbers or one formula per line);
write the matrix in the tradition LP like format. Similar to the "text" format, with more SLP specific information
"scrambled" names (the default is to use the names provided on input);
write the matrix in "text" (the default is to write extended MPS format).
use hexadecimal numbers in the mps output (eliminate floating point representation error).
Example
The following example reads a problem from file, augments it and writes the augmented (linearized) matrix in text form to file "output.txt":
XSLPreadprob(Prob, "Matrix", "");
XSLPconstruct(Prob);
XSLPwriteprob(Prob, "output", "lt");
Further information
The t flag is used to produce a "human-readable" form of the problem. It is similar to the lp format of XPRSwriteprob, but does not contain all the potential complexities of the Extended MPS Format, so the resulting file cannot be used for input. A quadratic objective is written with its true coefficients (not scaled by 2 as in the equivalent lp format).
Related topics