This method creates an interval variable. The start and end of the new interval variable range from 0 to the constant CP.IntervalMax. The size of the new interval variable is fixed and equal to sz. The created interval variable is present; if you need an optional interval variable, you need to use the method SetOptional. As no intensity function is specified, the size of the interval variable will be equal to its length.

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

Syntax

C#
public IIntervalVar IntervalVar(
	int sz,
	string name
)

Parameters

sz
Type: System..::..Int32
name
Type: System..::..String

See Also