Creates an array of length n
initialized to n new integer variables,
each variable with its own bounds.
Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
IIntVar[] IntVarArray( int n, int[] min, int[] max, string[] name ) |
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].