ILOG CPLEX .NET Reference Manual

IMPModeler.NumVarArray Method (ColumnArray, Double, Double, NumVarType)

Creates and returns modeling variables, all of the same specified type, all with same upper bound, all with the same lower bound, as specified, for column-wise modeling.

INumVar[] NumVarArray(
   ColumnArray cols,
   double lb,
   double ub,
   NumVarType type
);

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.
type
The type of the new modeling variables.

Return Value

The array of new modeling variables.

Remarks

This method creates new modeling variables, each with the same specified bounds and type, 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.NumVarArray Overload List