ILOG CPLEX .NET Reference Manual

Cplex.GetInfeasibility Method (INumVar)

Returns the infeasibility for a variable.

public virtual double GetInfeasibility(
   INumVar ivar
);

Parameters

ivar
The variable whose infeasibility is being queried. This variable must be in the active model.

Return Value

The infeasibility for variable var. 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 The variable 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.GetInfeasibility Overload List