ILOG CPLEX .NET Reference Manual

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

Returns the slack values of a set of constraints for the solution of the current node.

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

Parameters

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

Return Value

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

See Also

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