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

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

Syntax

C#
public IConstraint SameCommonSubsequence(
	IIntervalSequenceVar seq1,
	IIntervalSequenceVar seq2,
	string name
)

Parameters

seq1
Type: ILOG.Concert..::..IIntervalSequenceVar
seq2
Type: ILOG.Concert..::..IIntervalSequenceVar
name
Type: System..::..String

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]. You can specify a name of your own choice for the constraint.

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