ILOG CPLEX .NET Reference Manual

Cplex.GetSlacks Method (ILPMatrix, Int32, Int32)

Returns slack values for a range of num consecutive rows, starting from the index specified by start, of an LP matrix.

public virtual double[] GetSlacks(
   ILPMatrix matrix,
   int start,
   int num
);

Parameters

matrix
The LP matrix for rows which to query slack values. This LP matrix must be in the active model.
start
The index of the first row whose slack value is being queried.
num
The number of consecutive rows for which to query the slack value.

Return Value

An array containing the slack vector for the constraints corresponding to the specified rows of the LP matrix. If s is the array returned by this method, s[i] will be the slack value for the constraint corresponding to row i+start of matrix.

Remarks

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