Initializing help system before first use

# XSLPreadprob

Purpose
Read an Xpress NonLinear extended MPS format matrix from a file into an SLP problem
Topic areas
File IO, Problem Creation
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:
l | only filename.lp is searched for;
v | use the provided filename verbatim, without appending the .mps, .mat or .lp extension;
z | read a compressed input file.

Example
The following example reads the problem from file "Matrix.mat".

    XSLPreadprob(prob, "Matrix", "");

Further information
1. 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.
2. 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.
3. For details of the format of the file, see the section on Extended MPS file format.
Related topics
Extended MPS file format, XSLPwriteprob
Parent Topic Library functions and the programming interface

© 2001-2026 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.