Creates and returns an IRange object. The new IRange object is initialized to represent the constraint -b <= expr <= +b.

Namespace: ILOG.CP
Assembly: ILOG.CP (in ILOG.CP.dll)

Syntax

C#
public virtual IRange Range(
	INumExpr expr,
	double b
)
Visual Basic
Public Overridable Function Range ( _
	expr As INumExpr, _
	b As Double _
) As IRange

Parameters

expr
Type: ILOG.Concert..::..INumExpr
Expression of the new IRange constraint.
b
Type: System..::..Double
Bound of the new IRange constraint.

Return Value

A new IRange object initialized to represent the constraint -b <= expr <= +b

See Also