This method returns a constraint that states that whenever both interval variables prev and next are present, interval variable prev must be ordered immediately before interval variable next in the sequence variable seq.

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

Syntax

C#
public IConstraint Previous(
	IIntervalSequenceVar seq,
	IIntervalVar prev,
	IIntervalVar next
)
Visual Basic
Public Function Previous ( _
	seq As IIntervalSequenceVar, _
	prev As IIntervalVar, _
	next As IIntervalVar _
) As IConstraint

Remarks

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

See Also