Creates and returns continuous modeling variables, all of type
Float with individually
specified upper bound, lower bound, and name, for column-wise
modeling.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
INumVar[] NumVarArray( ColumnArray cols, double[] lb, double[] ub, string[] name ) |
| Visual Basic |
|---|
Function NumVarArray ( _ cols As ColumnArray, _ lb As Double(), _ ub As Double(), _ name As String() _ ) As INumVar() |
Parameters
- cols
- Type: ILOG.Concert..::..ColumnArray
An ColumnArray object defining where to install the new variables.
- lb
- Type: array<System..::..Double>[]()[][]
The lower bounds of the new modeling variables. Variable i is constructed with a lower bound of lb[i].
- ub
- Type: array<System..::..Double>[]()[][]
The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[i].
- name
- Type: array<System..::..String>[]()[][]
The names of the new modeling variables. Variable i is assigned name[i].
Return Value
The array of new continuous modeling variables.
Remarks
This method creates new modeling variables of type NumVarType.Float, each with its own bounds, and returns them in an array. The number of new variables is determined by the size of the ColumnArray argument cols. Variable i is constructed with bounds lb[i] and ub[i]. and it is assigned name[i]. The new variables are installed in existing modeling objects as defined by the cols argument.