This method creates a same-sequence constraint between sequence variables seq1 and seq2. Sequence variables seq1 and seq2 should be of the same size n. The mapping between interval variables of the two sequences is specified by arrays a1 and a2. Arrays a1 and a2 should be of same size n. The constraint states that the two sequences seq1 and seq2 are identical modulo a mapping between intervals a1[i] and a2[i]. You can specify a name of your own choice for the constraint.

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

Syntax

C#
public IConstraint SameSequence(
	IIntervalSequenceVar seq1,
	IIntervalSequenceVar seq2,
	IIntervalVar[] a1,
	IIntervalVar[] a2,
	string name
)

Parameters

seq1
Type: ILOG.Concert..::..IIntervalSequenceVar
seq2
Type: ILOG.Concert..::..IIntervalSequenceVar
a1
Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
a2
Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
name
Type: System..::..String

Remarks

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