This method creates a span constraint between interval variable a and the set
of interval variables in the array bs.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public ISpan Span( IIntervalVar a, IIntervalVar[] bs ) |
Parameters
- bs
- Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
Remarks
A span constraint between an interval variable a and a set of interval variables {b1,...,bn} states that interval a spans over all present intervals from the set {b1,...,bn}. That is: interval a starts together with the first present interval from {b1,...,bn} and ends together with the last one. Interval a is absent if and only if all intervals in {b1,...,bn} are absent.
For more information about span constraints, refer to the concept Constraints on Groups of Interval Variables in the C++ Reference Manual.
Note: This constraint cannot be used in a logical constraint.