ILOG CPLEX .NET Reference Manual

Cplex.GetDuals Method (IRange[], Int32, Int32)

Returns dual solution values for num consecutive range constraints, starting from the index specified by start.

public virtual double[] GetDuals(
   IRange[] rng,
   int start,
   int num
);

Parameters

rng
An array containing the constraints whose dual solution values are being queried. These constraints must be in the active model, either added directly or through an instance of ILPMatrix.
start
The index of the first constraint in rng for which to query the dual solution value.
num
The number of consecutive constraints in rng for which to query the dual solution value.

Return Value

An array containing the dual solution values for the specified constraints. If pi is the array returned by this method, pi[i] will be the dual solution value for the range constraint rng[i+start].

Remarks

UnknownObjectException One of the specified constraints 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