ILOG CPLEX .NET Reference Manual

Cplex.GetSlacks Method (IRange[], Int32, Int32)

Returns slack values for num consecutive constraints, starting from the index specified by start, from an array rng.

public virtual double[] GetSlacks(
   IRange[] rng,
   int start,
   int num
);

Parameters

rng
An array containing the constraints whose slack 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 rng whose slack values are being queried.
num
The number of consecutive constraints in rng for which to query the slack values.

Return Value

An array containing the slack values for the specified constraints. If s is the array returned by this method, s[i] will be the slack value for the range constraint rng[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.GetSlacks Overload List