NO FRAMES

CPXiiswrite

int CPXPUBLIC CPXiiswrite(CPXCENVptr env, CPXLPptr lp, const char * filename_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXiiswrite is used to write an LP format file containing the rows and columns in the Irreducibly Inconsistent Set (IIS) of an infeasible LP. Note that the infeasibility must previously have been detected by a simplex optimizer. If an IIS has already been obtained using the same method as is currently specified by the IIS algorithm indicator CPXPARAM_IISIND, CPXiiswrite simply writes an LP format file containing the existing IIS. If no IIS has been computed, or the IIS algorithm differs from the one used to compute the available IIS, CPXiiswrite first computes an IIS, then writes its LP format representation out.

Example

 status = CPXiiswrite (env, lp, "myprob.iis");

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

filename_str

A character string containing the name of the file to which the IIS should be written.

Returns:

The routine returns zero on success and nonzero if an error occurs.