startAtStart

OPL constraint (scheduling) to restrict the relative positions of interval variables.

context type
Model files (.mod)
boolean

Syntax

startAtStart (a,b[,z]);

Where:

dexpr int z;
dvar interval a;
dvar interval b;

Description

This constraint is used to state that the start of a given interval variable a (modified by an optional time value z) equals the start of a given interval variable b: s(a) + z = s(b).

If one or both of the interval variables of the precedence constraint is absent, then the precedence is systematically considered to be true and, thus, it does not impact the schedule.

Note: This constraint cannot be used in a meta-constraint.

Example

The following precedence constraint states that the start of interval c plus 5 time units equals the start of interval d.

startAtStart(c,d,5);