Creates an array of length n
initialized to n new modeling variables
of type NumVarType.Float.
Namespace: ILOG.Concert
Assembly: ILOG.Concert (in ILOG.Concert.dll) Version: 22.1.0.0
Syntax
| C# |
|---|
INumVar[] NumVarArray( int n, double[] lb, double[] ub, string[] name ) |
| Visual Basic |
|---|
Function NumVarArray ( _ n As Integer, _ lb As Double(), _ ub As Double(), _ name As String() _ ) As INumVar() |
Parameters
- n
- Type: System..::..Int32
- lb
- Type: array<System..::..Double>[]()[][]
The lower bound of the new modeling variable.
- ub
- Type: array<System..::..Double>[]()[][]
The upper bound of the new modeling variable.
- name
- Type: array<System..::..String>[]()[][]
The names of the new modeling variables. Variable i is assigned the name name[i].
Return Value
The array new modeling variables.
Remarks
This method creates n new modeling variables of the type NumVarType.Float, each with the same specified bounds, and returns them in an array. Each new variable is assigned a name; variable i is assigned the name name[i].