ILOG CPLEX .NET Reference Manual

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

Returns the slack values for num consecutive constraints, starting from the index specified by start, in the array rng for the proposed incumbent solution.

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

Parameters

rng
An array containing the constraints whose slack values are being queried.
start
The index of the first constraint in rng for which to query the slack values.
num
The number of consecutive constraints in rng for which to query the slack values.

Return Value

An array of double values containing the slack values for the proposed incumbent solution for the specified constraints. If the returned array is called s, s[i] contains the slack value for constraint rng[i+start].

See Also

Cplex.IncumbentCallback Class | ILOG.CPLEX Namespace | Cplex.IncumbentCallback.GetSlacks Overload List