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

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
protected virtual double GetObjCoef(
	INumVar var
)
Visual Basic
Protected Overridable Function GetObjCoef ( _
	var As INumVar _
) As Double

Parameters

var
Type: ILOG.Concert..::..INumVar
The variable whose linear objective coefficient is being queried.

Return Value

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

See Also