This method creates a synchronization constraint between interval variable a and the set of interval variables in the array bs.

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

Syntax

C#
public ISynchronize Synchronize(
	IIntervalVar a,
	IIntervalVar[] bs,
	string name
)

Parameters

a
Type: ILOG.Concert..::..IIntervalVar
bs
Type: array<ILOG.Concert..::..IIntervalVar>[]()[][]
name
Type: System..::..String

Remarks

A synchronization constraint between an interval variable a and a set of interval variables {b1,...,bn} makes all present intervals in {b1,...,bn} start and end together with interval a, if it is present.

For more information about synchronization constraints, refer to the concept Constraints on Groups of Interval Variables in the C++ Reference Manual.

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

The use of this method is deprecated since V20.1. Please use combination of StartAtStart(IIntervalVar, IIntervalVar) and EndAtEnd(IIntervalVar, IIntervalVar) constraints instead.

See Also