ILOG CPLEX .NET Reference Manual

ILinearNumExpr.Add Method 

Adds all the terms found in the scalar product passed as argument to the invoking object.

void Add(
   ILinearNumExpr sc
);

Parameters

sc
The scalar product expression, the terms of which are added to the invoking object.

Remarks

The caller must ensure that the variables being added are not yet part of the invoking IloScalProd.

No checks are performed to ensure that the invoking ILinearNumExpr object does not contain terms with variables that also appear in the scalar product expression being added. This method can potentially create duplicate terms ... + a_i * x + ... + a_k * x + ... that could be joined to a single term ... + (a_i + a_k) * x + ....

Duplicates do not generate errors but require more memory and more runtime when iterating through the terms of an ILinearNumExpr.

See Also

ILinearNumExpr Interface | ILOG.Concert Namespace