This method creates a same-sequence constraint between sequence variables
seq1 and seq2.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public IConstraint SameSequence( 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 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.
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.