Creates, returns, and adds to the invoking model an empty IRange object with the name specified by name.

Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)

Syntax

C#
IRange AddRange(
	double lb,
	double ub,
	string name
)

Parameters

lb
Type: System..::..Double
The lower bound of the new IRange constraint.
ub
Type: System..::..Double
The upper bound of the new IRange constraint.
name
Type: System..::..String
The name assigned to 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 lt;= ub, and is added to the invoking IModel. The new IRange object is assigned name as its name.

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