ILOG CPLEX .NET Reference Manual

Cplex.GetInfeasibilities Method (IConstraint[], Int32, Int32)

Returns infeasibility values for num consecutive constraints, starting from the index specified by start, from an array con of constraints.

public virtual double[] GetInfeasibilities(
   IConstraint[] con,
   int start,
   int num
);

Parameters

con
An array containing the constraints whose infeasibility values are being queried. These constraints must be in the active model, either added directly or through an instance of ILPMatrix.
start
The index of the first constraint in con whose infeasibility value is being queried.
num
The number of consecutive constraints in con for which to query the infeasibility values.

Return Value

An array containing the infeasibility values for the specified constraints. If infeas is the array returned by this method, infeas[i] will be the infeasibility value for the range constraint con[i+start].

Remarks

UnknownObjectException One of the specified constraints is not in the active model. ILOG.Concert.Exception If the method fails, an exception of type ILOG.Concert.Exception, or one of its derived classes, is thrown.

See Also

Cplex Class | ILOG.CPLEX Namespace | Cplex.GetInfeasibilities Overload List