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

Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)

Syntax

C#
void Add(
	ILinearIntExpr sc
)

Parameters

sc
Type: ILOG.Concert..::..ILinearIntExpr
The scalar product expression, the terms of which are added to the invoking object.

Remarks

No checks are performed to verify that the invoking ILinearIntExpr object does not contain terms with the same variable var. This method can 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 running time when iterating through the terms of an ILinearIntExpr.

See Also