ILOG CPLEX .NET Reference Manual

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

Creates and returns n semi-continuous modeling variables, all of the same type, with the same semi-continuous lower bound and upper bound, and 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 bounds of the new modeling variables. Variable i is constructed with a semi-continuous lower bound of sclb[i].
ub
The upper bounds of the new modeling variables. Variable i is constructed with an upper bound of ub[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 semi-continuous modeling variables, each with its own bounds and type, and returns them in an array. Variable i is constructed with bounds sclb[i] and ub[i] and type type[i], and it is assigned name name[i].

See Also

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