Creates and returns integer modeling variables, all with the same specified upper bound and lower bound, with individually specified names, for column-wise modeling.

Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
IIntVar[] IntVarArray(
	ColumnArray cols,
	int lb,
	int ub,
	string[] name
)
Visual Basic
Function IntVarArray ( _
	cols As ColumnArray, _
	lb As Integer, _
	ub As Integer, _
	name As String() _
) As IIntVar()

Parameters

cols
Type: ILOG.Concert..::..ColumnArray
An ColumnArray object defining where to install the new variables.
lb
Type: System..::..Int32
The lower bound of the new modeling variables.
ub
Type: System..::..Int32
The upper bound of the new modeling 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 integer modeling variables.

Remarks

This method creates new modeling variables of type NumVarType.Int, 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. Each new variable is assigned a separate name, with variable i being assigned name[i]. The new variables are then installed in existing modeling objects as defined by the ColumnArray argument cols.

See Also