Creates and returns an array of Boolean (or binary)
modeling variables with names for column-wise modeling.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
IIntVar[] BoolVarArray( ColumnArray cols, string[] name ) |
| Visual Basic |
|---|
Function BoolVarArray ( _ cols As ColumnArray, _ name As String() _ ) As IIntVar() |
Parameters
- cols
- Type: ILOG.Concert..::..ColumnArray
The ColumnArray object defining where to install the new variables.
- name
- Type: array<System..::..String>[]()[][]
The names of the new modeling variables. Variable i is assigned name[i].
Return Value
The array of new Boolean modeling variables.
Remarks
This method creates new modeling variables of type NumVarType.Bool and returns them in an array. The number of new variables is determined by the size of the ColumnArray argument cols. Variable i will be assigned name[i]. The new variables are installed in existing modeling objects as defined by the cols argument.