ILOG CPLEX .NET Reference Manual

Cplex.GetSlacks Method (IRange[])

Returns slack values for an array of range constraints.

public virtual double[] GetSlacks(
   IRange[] rng
);

Parameters

rng
An array of constraints whose slack values are being queried. These range constraints must be in the active model, either directly or through an instance of ILPMatrix.

Return Value

An array containing the slack values for the constraints in rng. If s is the array returned by this method, s[i] will be the slack value for the range constraint rng[i].

Remarks

UnknownObjectException A constraint in 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 | Cplex.GetSlacks Overload List