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

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

Syntax

C#
public IConstraint SameCommonSubsequence(
	IIntervalSequenceVar seq1,
	IIntervalSequenceVar seq2
)
Visual Basic
Public Function SameCommonSubsequence ( _
	seq1 As IIntervalSequenceVar, _
	seq2 As IIntervalSequenceVar _
) As IConstraint

Remarks

Sequence variables seq1 and seq2 should be of the same size. The mapping between interval variables of the two sequences is given by the order of the interval variables in the arrays a1 and a2 used in the definition of the sequences. 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