ILOG CPLEX .NET Reference Manual

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

Creates and returns a new linear expression representing the scalar product of the num variables in vars starting at element start with the corresponding values in vals.

public virtual ILinearNumExpr ScalProd(
   INumVar[] vars,
   int[] vals,
   int start,
   int num
);

Parameters

vars
An array containing the variables to use for building the scalar product.
vals
An array containing the values to use for building the scalar product.
start
The index of the first element to use in vals and vars.
num
The number of elements to use in vals and vars.

Return Value

An expression representing the scalar product of the specified values and variables.

See Also

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