Introduction
The Capacitated Vehicle Routing Problem with Time Windows (cVRPTW) is a cornerstone of logistics optimization. While standard research often assumes overlapping and complex time windows, real-world Attended Home Delivery (AHD) services—such as grocery delivery—frequently utilize "structured" time windows. In these scenarios, customers are grouped into non-overlapping slots (e.g., 8:00 AM–10:00 AM). This paper introduces specialized "sweep" algorithms designed to exploit this structure, enabling the generation of high-quality delivery schedules for up to 2,000 customers in seconds.
Methodology
The authors adopt a "cluster-first, route-second" strategy. The process begins by grouping customers into clusters and subsequently determining the optimal delivery path within each group.
Sweep Variants
Three distinct sweep heuristics were developed to handle different operational constraints:
- Simple Sweep: A generalization of the classic radial sweep algorithm. It rotates a line around the depot, assigning customers to a vehicle until capacity or time limits are reached.
- Window-wise Sweep: Specifically tailored for structured time windows, this variant performs separate sweeps for different time slots. This approach is more intuitive for AHD services where time windows are the primary constraint.
- Corrective Sweep: Optimized for scenarios where vehicle capacity is the tighter bottleneck. It starts with capacity-focused clustering and applies angular corrections to ensure time-window feasibility.
Algorithmic Enhancements
To bolster performance, the authors integrated several advanced techniques:
- MILP Integration: A Mixed-Integer Linear Program (MILP) serves as a sub-routine to ensure cluster feasibility and find optimal routes.
- Tree-Feasibility Check: To avoid the computational cost of MILP for impossible clusters, a quick graph-theory check (spanning arborescence) is used to instantly reject infeasible groupings.
- Local Improvement Heuristics: After the initial sweep, the algorithm iteratively adjusts cluster angles to minimize travel time and shift duration.
Experimental Setup
To evaluate these algorithms, a new benchmark dataset was created to reflect modern AHD environments. The simulation environment consists of a 20km x 20km grid with 250 to 2,000 customers. Two primary scenarios were tested: one where vehicle capacity is the bottleneck ($C=200$) and another where time windows are the bottleneck ($C=400$).
Key Results and Discussion
The experimental results highlight the efficiency and scalability of the proposed methods. For large-scale instances, initial feasible solutions were found in seconds.
As shown in the table above, the choice of algorithm depends heavily on the primary bottleneck. When time windows are the limiting factor ($C=400$), the Window-wise Sweep significantly outperforms the Simple Sweep, reducing the required vehicle count ($\lambda_1$) from approximately 42 to 35. Conversely, when capacity is the bottleneck ($C=200$), the Corrective Sweep and Simple Sweep yield similar vehicle counts, but the Corrective Sweep maintains better feasibility control.
The "With Improvement" results demonstrate that while local refinement rarely reduces the number of vehicles, it is highly effective at optimizing secondary objectives. Total shift duration ($\lambda_2$) and travel time ($\lambda_3$) often saw reductions of 10-15% after the improvement phase. While the improvement phase increases runtime ($t$), high-quality schedules for large instances were still produced in under 25 minutes.
Conclusion
By treating the structured nature of time windows as a feature rather than a constraint, this research provides a fast and effective framework for large-scale AHD routing. Future work will explore scaling the MILP subproblem for larger vehicle capacities and adapting the algorithms for dynamic environments where orders arrive in real-time.
Summary updated