ILOG CPLEX .NET Reference Manual

IMPModeler.AddRange Method (Double, Double)

Creates, returns, and adds to the invoking model an empty IRange object.

IRange AddRange(
   double lb,
   double ub
);

Parameters

lb
The lower bound of the new IRange constraint.
ub
The upper bound of the new IRange constraint.

Return Value

A new IRange object initialized to represent the constraint lb <= 0 <= ub.

Remarks

The new IRange object is initialized to represent the constraint lb <= 0 <= ub, and is added to the invoking model. This method is typically used in an application that applies column-wise modeling to fill in the expression for the ranged constraint while creating the variables.

See Also

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