ILOG CPLEX .NET Reference Manual

IMPModeler.SetLinearCoef Method (IRange, Double, INumVar)

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

void SetLinearCoef(
   IRange rng,
   double val,
   INumVar var
);

Parameters

rng
The range constraint 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