ILOG CPLEX .NET Reference Manual

IMPModeler.SetLinearCoef Method (IObjective, Double, INumVar)

Sets linear coefficient for variable var to val in the expression of the specified IObjective object.

void SetLinearCoef(
   IObjective obj,
   double val,
   INumVar var
);

Parameters

obj
The objective to modify.
val
The coefficient to set.
var
The variable for which to set the coefficient.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.SetLinearCoef Overload List