ILOG CPLEX .NET Reference Manual

IModeler.ScalProd Method (INumVar[], INumVar[], Int32, Int32)

Creates and returns a linear expression representing the scalar product of the variables provided as arguments.

INumExpr ScalProd(
   INumVar[] vars1,
   INumVar[] vars2,
   int start,
   int num
);

Parameters

vars1
The first array of variables involved in the new scalar product expression.
vars2
The second array of variables involved in the new scalar product expression.
start
The index of the starting term for the multiplication.
num
The total number of terms in the multiplication.

Return Value

The new linear expression.

Remarks

This signature of the method allows you to indicate a starting point and a number of consecutive terms for the scalar multiplication. In other words, the entire array vars1 will not be involved in the scalar multiplication. The method will take into account only the term at the starting point and num consecutive terms in total.

See Also

IModeler Interface | ILOG.Concert Namespace | IModeler.ScalProd Overload List