Namespace: ILOG.CP
Assembly: ILOG.CP (in ILOG.CP.dll)
Syntax
| C# |
|---|
public IConstraint SameCommonSubsequence( IIntervalSequenceVar seq1, IIntervalSequenceVar seq2, IIntervalVar[] a1, IIntervalVar[] a2 ) |
| Visual Basic |
|---|
Public Function SameCommonSubsequence ( _ seq1 As IIntervalSequenceVar, _ seq2 As IIntervalSequenceVar, _ a1 As IIntervalVar(), _ a2 As IIntervalVar() _ ) As IConstraint |
Parameters
- seq1
- Type: ILOG.Concert..::..IIntervalSequenceVar
- seq2
- Type: ILOG.Concert..::..IIntervalSequenceVar
- a1
- Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
- a2
- Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
Remarks
The mapping between interval variables of the two sequences is specified by arrays a1 and a2, those two arrays should be of the same size. Array a1 must only contain interval variables of sequence seq1 without any duplicate and array a2 must only contain interval variables of sequence seq2 without any duplicate. The constraint states that the sub-sequences defined by seq1 and seq2 by only considering the pairs of present intervals (a1[i],a2[i]) are identical modulo the mapping between intervals a1[i] and a2[i].
For more information on this constraint, see the concept Interval variable sequencing in the C++ Reference Manual.
Note: This constraint cannot be used in a logical constraint.