ILOG CPLEX .NET Reference Manual

IMPModeler.SetLinearCoefs Method (IObjective, INumVar[], Double[])

Sets linear coefficients for variables in the expression of the specified IObjective object.

void SetLinearCoefs(
   IObjective obj,
   INumVar[] var,
   double[] val
);

Parameters

obj
The objective to modify.
var
The array of variables for which to set linear coefficients. A variable may only appear once in this array.
val
The array of linear coefficient values. The linear coefficient of variable var[i] is set to val[i].

See Also

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