ILOG CPLEX .NET Reference Manual

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

Creates and returns a linear expression representing the scalar product of the given variables.

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

Parameters

vars1
The first array of variables involved in the new scalar product.
vars2
The second array of variables involved in the new scalar * product.
start
The index of the first element to use in the multiplication.
num
The number of elements to use in the multiplication, starting from the element indicated by start.

Return Value

The new linear expression.

Implements

IModeler.ScalProd

See Also

CplexModeler Class | ILOG.CPLEX Namespace | CplexModeler.ScalProd Overload List