Creates and returns continuous modeling variables, all of type
Float, all with same upper bound, all with the same
lower bound, 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 ) |
| Visual Basic |
|---|
Function NumVarArray ( _ cols As ColumnArray, _ lb As Double, _ ub As Double _ ) As INumVar() |
Parameters
- cols
- Type: ILOG.Concert..::..ColumnArray
An ColumnArray object defining where to install the new variables.
- lb
- Type: System..::..Double
The lower bound of the new modeling variables.
- ub
- Type: System..::..Double
The upper bound of the new modeling variables.
Return Value
The array of new continuous modeling variables.
Remarks
This method creates new modeling variables of type NumVarType.Float, each with the same specified bounds, and returns them in an array. The number of new variables is determined by the size of the ColumnArray argument cols. The new variables are then installed in existing modeling objects as defined by the ColumnArray argument cols.