ILOG CPLEX .NET Reference Manual

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

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

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

Parameters

vals
An array containing the values to use for building the scalar product.
vars
An array containing the variables 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