ILOG CPLEX .NET Reference Manual

IMPModeler.SemiContVarArray Method (Int32, Double, Double, NumVarType, String[])

Creates and returns n semi-continuous modeling variables, all with the same type, semi-continuous lower bound, and upper bound, but with individually specified names.

ISemiContVar[] SemiContVarArray(
   int n,
   double sclb,
   double ub,
   NumVarType type,
   string[] name
);

Parameters

n
The number of new semi-continuous variables to create.
sclb
The semi-continuous lower bound of the new modeling variables.
ub
The upper bound of the new modeling variables.
type
The type of the new modeling variables.
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 n new semi-continuous modeling variables, each with the same specified bounds and type, and returns them in an array. Each new variable is assigned a separate name, with variable i assigned name[i].

See Also

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