ILOG CPLEX .NET Reference Manual

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

Creates and returns n semi-continuous modeling variables, with individually specified type, semi-continuous lower bound, and upper bound.

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

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].

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].

See Also

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