ILOG CPLEX .NET Reference Manual

IMPModeler.SetLinearCoef Method (IRange, INumVar, Double)

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

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

Parameters

rng
The range constraint to modify.
var
The variable for which to set the coefficient.
val
The coefficient to set.

See Also

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