Initializing help system before first use

XSLPreadprob

Purpose
Read an Xpress NonLinear extended MPS format matrix from a file into an SLP problem
Synopsis
int XPRS_CC XSLPreadprob(XSLPprob prob, char *filename, char *flags);
Arguments
prob 
The current SLP problem.
filename 
Character string containing the name of the file from which the matrix is to be read.
flags 
Character string containing any flags needed for the input routine:
only filename.lp is searched for;
use the provided filename verbatim, without appending the .mps, .mat or .lp extension;
read a compressed input file.
Example
The following example reads the problem from file "Matrix.mat".
XSLPreadprob(prob, "Matrix", "");
Further information

XSLPreadprob tries to open the file with an extension of "mat" or, failing that, an extension of "mps". If both fail, the file name will be tried with no extension.

XSLPreadprob is capable to read most Ampl .nl files. To specify that a .nl file is to be read, provide the full filename including the .nl extension.

For details of the format of the file, see the section on Extended MPS file format.


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.