ILOG CPLEX .NET Reference Manual

Cplex.GetDuals Method (IRange[])

Returns dual solution values for an array of range constraints.

public virtual double[] GetDuals(
   IRange[] rng
);

Parameters

rng
The array of constraints whose dual solution values are being queried. These constraints must be in the active model, either directly or through an instance of ILPMatrix.

Return Value

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

Remarks

UnknownObjectException A constraint in rng 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