ILOG CPLEX .NET Reference Manual

Cplex.GetInfeasibilities Method (INumVar[])

Returns infeasibility values for an array of variables.

public virtual double[] GetInfeasibilities(
   INumVar[] var
);

Parameters

var
The array of variables whose infeasibilities are being queried. These variables must be in the active model.

Return Value

An array containing the infeasibility values for the variables in var. If infeas is the array returned by this method, infeas[j] will be the infeasibility value for variable var[j]. The infeasibility value returned is 0 (zero) if the variable bounds are satisfied. If the infeasibility value is negative, it indicates the amount by which the lower bound of the variable must be changed; if it is positive, it indicates the amount by which the upper bound of the variable must be changed.

Remarks

UnknownObjectException One of the variables specified in var 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