This constructor creates a no-overlap constraint on the sequence variable seq. This constraint states that the interval variables of the sequence do not overlap and that the order of intervals in the sequence is the order implied by the relative position of the start and end points of the non-overlapping intervals. A transition distance tdist is used to specify a minimal distance between two interval variables in the sequence. If direct is true, the transition distance holds between an interval and its immediate successor in the sequence otherwise, if direct is false, the transition distance holds between an interval and all its successors in the sequence. By default, the name of the no-overlap constraint is the empty string, but you can specify a name of your own choice.

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

Syntax

C#
public INoOverlap NoOverlap(
	IIntervalSequenceVar seq,
	ITransitionDistance tdist,
	bool direct,
	string name
)

Parameters

seq
Type: ILOG.Concert..::..IIntervalSequenceVar
tdist
Type: ILOG.Concert..::..ITransitionDistance
direct
Type: System..::..Boolean
name
Type: System..::..String

Remarks

For more information on interval variable sequencing, see the concept Interval variable sequencing in the C++ Reference Manual.

Note: This constraint cannot be used in a logical constraint.

See Also