ILOG CPLEX .NET Reference Manual

Cplex.Goal.GetObjCoef Method 

Returns the linear objective function coefficient for variable var in the model being solved.

protected double GetObjCoef(
   INumVar var
);

Parameters

var
The variable whose linear objective coefficient is being queried.

Return Value

The linear objective coefficient for variable var in the model being solved.

See Also

Cplex.Goal Class | ILOG.CPLEX Namespace