ILOG CPLEX .NET Reference Manual

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

Creates and returns modeling variables with the individual type specified by the corresponding entry in the array type, with individual upper and lower bounds as specified in those arrays, with the name specified individually by the corresponding entry in the array name, for column-wise modeling.

INumVar[] NumVarArray(
   ColumnArray cols,
   double[] lb,
   double[] ub,
   NumVarType[] type,
   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 constructed with a lower bound of lb[i].
ub
The upper bounds of the new modeling variables. Variable i is constructed with a upper bound of lb[i].
type
The types of the new modeling variables. Variable i is constructed with a type of type[i].
name
The names of the new modeling variables. Variable i is assigned name[i].

Return Value

The array of new modeling variables.

Remarks

This method creates new modeling variables, each with its own bounds and type, and returns them in an array. The number of new variables is determined by the size of the ColumnArray argument cols. Variable i is constructed with bounds lb[i] and ub[i] and type type[i], and it is assigned name[i]. The new variables are installed in existing modeling objects, as defined by the cols argument.

See Also

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