Interval Variables: Start, Size, End

Introduction to interval variables in constraint programming. An interval variable models a task by its start ss, size dd, and end ee, linked by the fundamental relation s+d=es + d = e. We learn to compute any one quantity from the other two, and to propagate bounds among their domains.

Step 1 of 157%

Tutorial

Introduction

In constraint programming, an interval variable models a task that occupies a contiguous span of time. Every interval variable has three attributes:

  • the start ss — the time the task begins,
  • the size dd — the duration of the task,
  • the end ee — the time the task finishes.

These attributes are linked by the fundamental relation

s+d=e.s + d = e.

For example, a task that starts at s=4s = 4 and has size d=3d = 3 ends at

e=s+d=4+3=7,e = s + d = 4 + 3 = 7,

and we picture the task as occupying the time slots from 44 up to (but not including) 77.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle