ILOG CPLEX .NET Reference Manual

Cplex.GetReducedCost Method 

Returns the reduced cost for a variable.

public virtual double GetReducedCost(
   INumVar ivar
);

Parameters

ivar
The variable whose reduced cost is being queried. This variable must be in the active model.

Return Value

The reduced cost for variable var.

Remarks

UnknownObjectException The variable 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