This method creates a same-common-subsequence constraint between sequence variables seq1 and seq2.

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

Syntax

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.

See Also