ILOG CPLEX .NET Reference Manual

Cplex.GetReducedCosts Method (ILPMatrix, Int32, Int32)

Returns reduced costs for the variables corresponding to a range of num columns of LP matrix, starting from the column specified by start.

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

Parameters

matrix
The LP matrix for which to query the reduced costs. This LP matrix must be in the active model.
start
The index of the first column in matrix for which to query the reduced cost.
num
The number of consecutive columns for which to query the reduced cost.

Return Value

The reduced costs for the specified columns of LP matrix. If dj is the array returned by this method, dj[j] will be the reduced cost for the variable corresponding to column j+start of 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.GetReducedCosts Overload List