Initializing help system before first use

XSLPwriteprob

Purpose
Write the current problem to a file in extended MPS or text format
Topic areas
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 LP format when ".lp" 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 LP format, similar to the LP format written by XPRSwriteprob, with more SLP specific information
"scrambled" names (the default is to use the names provided on input);
use the provided filename verbatim, without appending the .mps or .lp extension;
write a compressed file.
Example
The following example reads a problem from file, augments it and writes the augmented (linearized) matrix in text form to file "output.lp":
XSLPreadprob(prob, "Matrix", "");
XSLPconstruct(prob);
XSLPwriteprob(prob, "output", "l");
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.