ILOG CPLEX .NET Reference Manual

IMPModeler.NumVarArray Method (ColumnArray, Double, Double, String[])

Creates and returns continuous modeling variables, all of type Float, with the same specified bounds, but with individually specified names, for column-wise modeling.

INumVar[] NumVarArray(
   ColumnArray cols,
   double lb,
   double ub,
   string[] name
);

Parameters

cols
An ColumnArray object defining where to install the new variables.
lb
The lower bounds of the new modeling variables. Variable i is assigned lower bound lb[i].
ub
The upper bounds of the new modeling variables. Variable i is assigned upper bound ub[i].
name
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 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, where variable i is assigned name[i]. The new variables are then installed in existing modeling objects as describe by the ColumnArray argument cols.

See Also

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