ILOG CPLEX .NET Reference Manual

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

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

IIntExpr ScalProd(
   IIntVar[] vars1,
   IIntVar[] 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
First element in vars1 and vars2 to be used for the scalar product.
num
Number of elements in vars1 and vars2 to be used for the scalar product.

Return Value

The new linear expression.

See Also

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