Returns slack values for the constraints corresponding to the rows of an LP matrix.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public virtual double[] GetSlacks(
	ILPMatrix matrix
)
Visual Basic
Public Overridable Function GetSlacks ( _
	matrix As ILPMatrix _
) As Double()

Parameters

matrix
Type: ILOG.Concert..::..ILPMatrix
The LP matrix for the constraints of which to query the slack values. This LP matrix must be in active model.

Return Value

An array of slack values for the constraints the LP matrix. If s is the array returned by this method, s[i] will be the slack value for the range constraint corresponding to row i 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