ILOG CPLEX .NET Reference Manual

Cplex.GetDuals Method (ILPMatrix, Int32, Int32)

Returns dual solution values for the constraints corresponding to a range of num rows of an LP matrix.

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

Parameters

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

Return Value

An array containing the dual solution values for the constraints corresponding to the specified rows of LP matrix. If pi is the array returned by this method, pi[i] will be the dual solution value for the constraint corresponding to row i+start of the ILPMatrix matrix.

Remarks

UnknownObjectException The LP matrix 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.GetDuals Overload List