ILOG CPLEX .NET Reference Manual

IMPModeler.IntVarArray Method (ColumnArray, Int32, Int32)

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

IIntVar[] IntVarArray(
   ColumnArray cols,
   int lb,
   int ub
);

Parameters

cols
An ColumnArray object defining where to install the new variables.
lb
The lower bound of the new modeling variables.
ub
The upper bound of the new modeling variables.

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. The new variables are then installed in existing modeling objects as defined by the ColumnArray argument cols.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.IntVarArray Overload List