Time settings define when certain routing events should take place for vehicles and stops. This can include the hours of operation for vehicles, the ideal time a vehicle should service a stop, the exact time a vehicle should service a stop, and how long it takes a vehicle to service a stop. Time settings impact the order in which stops get serviced by vehicles as well as the application of penalties. They are also used to schedule vehicle break times.
Target times
Target times define a specific time a vehicle should service a stop. This time setting is useful for encouraging vehicle timeliness at stops in ride sharing or food transportation scenarios.
Target times are exact times rather than windows or ranges of time. Target times are defined per stop. They are only enforced when earliness and lateness penalties are defined.
Hard windows
Hard windows are ranges of time a vehicle must service a stop within. This time setting is useful for enforcing strict timeliness for vehicles servicing stops. For example, a ride-sharing service may only want to pick up passengers within a specific time frame to catch a flight at the airport.
Hard windows are hard constraints, i.e., if a stop is assigned to a route it's time window must be met. Otherwise, the stop gets unassigned. Priorities of stops with conflicting windows can be controlled by introducing unassigned penalties. Waiting at a stop for the window to open is allowed by default and can be limited by setting waiting times.
Waiting times
Waiting time is the maximum amount of time a vehicle is allowed to wait at a stop for the time window to open. For example, a customer was informed about a package delivery between 2 and 4 p.m. Setting a maximum waiting Time (max_wait
) to 1800s (30min) the vehicle is allowed to arrive as early as 1:30 p.m. but can start servicing the stop only as soon as the time window opens at 2 p.m.
Waiting time is a hard constraint that is defined at the stop level (default or individually). Note, if waiting time is defined, a hard window must also be defined.
Shift start and end
Shift start and end indicates a range of time a vehicle is available to service stops. This time setting is useful for enforcing availability of a given vehicle for a defined shift while also accounting for breaks.
Shift start and end are hard constraints. They are defined at the vehicle level (default or individually) and will influence how unassigned penalties are applied to the value function.
Stop duration
Stop duration is the estimated amount of time in seconds a vehicle needs to service a stop. For example, a vehicle might need less time to service a stop for a ride-sharing scenario than it would for loading large quantities of produce in a sourcing scenario.
They are defined at the stop level (default or individually).
Stop duration multiplier
It may be the case that some vehicles within your fleet need considerably longer time to service a stop. In order to introduce this information to the model, you can use the stop_duration_multiplier
at the vehicle level to increase or decrease the given service time for the stop.