ilog.cplex
Class IloCplex.IIS
java.lang.Object
|
+--ilog.cplex.IloCplex.IIS
- public static class IloCplex.IIS
- extends java.lang.Object
Objects of the class IIS
represent an irreducibly inconsistent
set (IIS
). They can be generated for an infeasible LP
problem by using method IloCplex.getIIS()
, and then queried
to identify the cause of the infeasibility.
An IIS
is a part of the infeasible IloCplex
model consisting only of those constraints and bounds neccessary to
maintain the infeasibility. In other words, removing any of the bounds or
constraints of an IIS
will cause the remaining problem to
become feasible.
The set is coded giving the explicit list of ranged constraints
participating in the IIS
and by assigning each variable an
IIS
status (type IloCplex.IIS.Status
) indicating
which bounds of that variable are relevant for the
IIS
. This information can be queried from an
IIS
object.
- See Also:
IloCplex.getIIS()
,
IloCplex.IIS.Status
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getNumVars
public IloNumVar[] getNumVars()
- Gets the variables of the
IIS
corresponding to the
statuses returned by getVarStatuses()
.
- Returns:
- The variables corresponding to the
getVarStatuses()
statuses.
getNumVarStatuses
public IloCplex.IIS.Status[] getNumVarStatuses()
- Gets the
IIS
statuses of the IIS
corresponding to the variables returned by getNumVars()
.
- Returns:
- The
IIS
statuses corresponding to the
getNumVars()
variables.
getRanges
public IloRange[] getRanges()
- Gets the ranged constraints of the
IIS
corresponding to
the statuses returned by getRangeStatuses()
.
- Returns:
- The
IIS
ranged constraints corresponding to
the getRangeStatuses()
statuses.
getRangeStatuses
public IloCplex.IIS.Status[] getRangeStatuses()
- Gets the
IIS
statuses of the IIS
corresponding to the ranged constraints returned by
getRangeStatuses()
.
- Returns:
IIS
statuses corresponding to the ranged
constraints returned by getRangeStatuses()
.