Creates and returns a linear expression
representing the scalar product of the
values provided in coefs[start]...coefs[start+num-1]
with the variables
provided in vars[start]...vars[start+num-1].
Namespace: ILOG.Concert
Assembly: ILOG.Concert (in ILOG.Concert.dll) Version: 22.1.0.0
Syntax
| C# |
|---|
ILinearNumExpr ScalProd( double[] coefs, INumVar[] vars, int start, int num ) |
| Visual Basic |
|---|
Function ScalProd ( _ coefs As Double(), _ vars As INumVar(), _ start As Integer, _ num As Integer _ ) As ILinearNumExpr |
Parameters
- coefs
- Type: array<System..::..Double>[]()[][]
An array containing the values to be used for the scalar product.
- vars
- Type: array<ILOG.Concert..::..INumVar>[]()[][]
An array containing the variables to be used for the scalar product.
- start
- Type: System..::..Int32
The first element in coefs/vars to use for the scalar product.
- num
- Type: System..::..Int32
The number of elements in coefs/vars to use for the scalar product.