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 ) |
| Visual Basic |
|---|
Function NumVarArray ( _ n As Integer, _ lb As Double(), _ ub As Double() _ ) As INumVar() |
Parameters
- n
- Type: System..::..Int32
- lb
- Type: array<System..::..Double>[]()[][]
The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of lb[i].
- ub
- Type: array<System..::..Double>[]()[][]
The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of lb[i].
Return Value
The array of new modeling variables.
Remarks
This method creates n new modeling variables of the type NumVarType.Float, each with its own bounds, and returns them in an array. Variable i will be constructed with bounds lb[i] and ub[i].