ILOG CPLEX .NET Reference Manual

Cplex.GetReducedCosts Method (INumVar[], Int32, Int32)

Returns reduced costs for num consecutive variables, starting from the index specified by start.

public virtual double[] GetReducedCosts(
   INumVar[] var,
   int start,
   int num
);

Parameters

var
An array of variables whose reduced costs are being queried. These variables must be in the active model.
start
The index of the first variable in var for which to query the reduced cost.
num
The number of consecutive variables in var for which to query the reduced cost.

Return Value

The reduced costs for the specified variables. If dj is the array returned by this method, dj[j] will be the reduced cost for variable var[j+start].

Remarks

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