ILOG CPLEX .NET Reference Manual

Cplex.GetReducedCosts Method (INumVar[])

Returns reduced costs for an array of variables.

public virtual double[] GetReducedCosts(
   INumVar[] var
);

Parameters

var
The array of variables whose reduced costs are being queried. These variables must be in the active model.

Return Value

An array containing the reduced cost values for the variables in var. If dj is the array returned by this method, dj[j] will be the reduced cost for variable var[j].

Remarks

UnknownObjectException One of the variables specified in var 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.GetReducedCosts Overload List