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: ILOG.CP (in ILOG.CP.dll)
Syntax
| C# |
|---|
public IIntervalVar IntervalVar( int sz, string name ) |
| Visual Basic |
|---|
Public Function IntervalVar ( _ sz As Integer, _ name As String _ ) As IIntervalVar |
Parameters
- sz
- Type: System..::..Int32
- name
- Type: System..::..String