ILOG CPLEX .NET Reference Manual

Cplex.GetSlack Method 

Returns the slack value for a range constraint.

public virtual double GetSlack(
   IRange rng
);

Parameters

rng
The range constraint whose slack value is being queried. This range constraint must be in the active model, either directly or through an instance of ILPMatrix.

Return Value

The slack value for a range constraint.

Remarks

UnknownObjectException rng 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