Creates an array of length n
initialized to n new integer variables,
each variable with its own bounds.
Namespace: ILOG.Concert
Assembly: ILOG.Concert (in ILOG.Concert.dll) Version: 22.1.0.0
Syntax
| C# |
|---|
IIntVar[] IntVarArray( int n, int[] min, int[] max, string[] name ) |
| Visual Basic |
|---|
Function IntVarArray ( _ n As Integer, _ min As Integer(), _ max As Integer(), _ name As String() _ ) As IIntVar() |
Parameters
- n
- Type: System..::..Int32
- min
- Type: array<System..::..Int32>[]()[][]
The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of min[i].
- max
- Type: array<System..::..Int32>[]()[][]
The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of max[i].
- name
- Type: array<System..::..String>[]()[][]
The names of the new modeling variables. Variable i will be assigned the name name[i].
Return Value
The array of new modeling variables.
Remarks
Variable i will be constructed with bounds min[i] and max[i] and will be assigned the name name[i].