Purpose
Writes an LP/MPS/CSV file containing a given Irreducible Infeasible Set (IIS). If 0 is passed as the IIS number parameter, the initial infeasible subproblem is written.
Topic areas
Synopsis
int XPRS_CC XPRSiiswrite(XPRSprob prob, int iis, const char *filename, int filetype, const char *flags);
Arguments
prob
|
The current problem.
|
iis
|
The ordinal number of the IIS to be written.
|
filename
|
The name of the file to be created.
|
filetype
|
Type of file to be created:
0
|
creates an lp/mps file containing the IIS as a linear programming problem;
|
1
|
creates a comma separated (csv) file containing the description and supplementary information on the given IIS.
|
|
flags
|
Flags passed to the
XPRSwriteprob function.
|
Example
This writes the first IIS (if one exists and is already found) as an lp file.
XPRSiiswrite(prob,1,"iis.lp",0,"l")
Further information
1. Calling
IIS
-w [iis] filename and
IIS
-e [iis] filename from the console have the same effect as this function.
2. Please note that there are problems on the boundary of being infeasible or not. For such problems, feasibility or infeasibility often depends on tolerances or even on scaling. This phenomenon makes it possible that after writing an IIS out as an LP file and reading it back, it may report feasibility. As a first check it is advised to consider the following options:
- turn presolve off (e.g. in console presolve = 0) since the nature of an IIS makes it necessary that during their identification the presolve is turned off.
- use the primal simplex method to solve the problem (e.g. in console LPOPTIMIZE -p).
- Tighten the feasibility tolerances FEASTOL or MIPTOL.
3. Note that the original sense of the original objective function plays no role in an IIS.
4. Even though an attempt is made to identify the most infeasible IISs first by the
XPRSiisfirst (
IIS),
XPRSiisnext (
IIS
-n) and
XPRSiisall (
IIS
-a) functions, it is also possible that an IIS becomes just infeasible in problems that are otherwise highly infeasible. In such cases, you may try to deal with the more stable IISs first, and consider to use the infeasibility breaker tool if only slight infeasibilities remain.
5. The LP or MPS files created by
XPRSiiswrite corresponding to an IIS contain no objective function, since infeasibility is independent of the objective.
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.