Time Windows for Vehicle Routing
In this short Timefold Academy video, Geoffrey De Smet explains how time windows work in vehicle routing. He covers what the solver does when a technician arrives too early, and what happens when a visit can't finish in time.
A time window is a minimum start time and a maximum end time
Every visit gets a minimum start time and a maximum end time. In the video, visit A must happen in the afternoon, between 1 PM and 5 PM. The solver makes it Carl's third visit of the day. He arrives at 2 PM, starts immediately and finishes at 3:30 PM, inside the window.
Arriving early means waiting, and waiting can be the efficient choice
When Carl arrives at noon and nobody can let him in until 1 PM, the plan doesn't break a hard constraint. Carl waits and starts the job at 1 PM. Soft constraints that minimize makespan then push the solver to fill that waiting time with other visits.
The video also shows a paradox. If Carl waits at visit B, he finishes all his visits that day. If he drives to visit C first to avoid waiting, he runs out of time. The extra driving costs more than the wait.
Finishing late is a hard constraint
If a visit is due by 1 PM and Carl only finishes at 2 PM, the plan is infeasible. The model penalizes that as a hard constraint, so the solver schedules the visit earlier or leaves it unassigned.
Learn more
- Time windows are built into the Field Service Routing model.
- Read how visit time windows work in the documentation.
- Watch Alternative shifts explained: one job, multiple time windows.

When scheduling works, everything works.
Less waste. More control. Teams that trust the plan.









































