Route Optimization for Last-Mile Delivery
1. Definition and Importance of Last-Mile Delivery
Definition and Importance of Last-Mile Delivery
Last-mile delivery refers to the final stage of the logistics supply chain, where goods are transported from a distribution center or warehouse to the end customer. Mathematically, if the total delivery route is represented as a graph G = (V, E) where V denotes nodes (locations) and E denotes edges (routes), the last-mile problem reduces to finding an optimal subgraph G' ⊆ G that minimizes cost while meeting service constraints.
where cij represents the cost of traversing edge (i,j), and xij is a binary decision variable indicating whether the edge is included in the route. The constraints typically include time windows, vehicle capacity, and delivery priorities.
Economic and Operational Significance
Last-mile delivery accounts for 53% of total shipping costs according to the World Economic Forum, making it the most expensive segment of the supply chain. The inefficiency stems from:
- High stop density: Urban routes may require 150+ stops per vehicle with inter-stop distances under 1km
- Time constraints: 78% of consumers expect same-day delivery, creating narrow delivery windows
- Route complexity: The number of possible routes grows factorially with delivery points (n! complexity)
Technical Challenges
The vehicle routing problem with time windows (VRPTW) formulation captures key last-mile constraints:
where K is the vehicle fleet, qi is demand at node i, Qk is vehicle capacity, and ti represents arrival time with service time si.
Emerging Optimization Approaches
Modern solutions leverage:
- Metaheuristics: Genetic algorithms with O(n2) mutation operators for large-scale instances
- Reinforcement learning: Q-learning with state space reduction techniques for dynamic routing
- Graph neural networks: Message-passing architectures that learn edge selection policies
Recent benchmarks on the Solomon dataset show hybrid approaches combining machine learning with constraint programming achieve 92.3% optimality gaps under 1.5%, compared to 8.7% for pure heuristic methods.

1.2 Challenges in Last-Mile Delivery
Dynamic Demand Fluctuations
Last-mile delivery operates under highly variable demand patterns, often driven by real-time customer orders. The stochastic nature of demand can be modeled using Poisson processes, where the probability of k orders arriving in a time interval t is given by:
Here, λ represents the average arrival rate of orders. This unpredictability complicates fleet allocation and route planning, as static optimization models fail to adapt to sudden spikes in demand.
Urban Congestion and Travel Time Uncertainty
Traffic conditions introduce significant variance in travel times between nodes. The time T to traverse an edge (i,j) can be modeled as a random variable following a log-normal distribution:
where μij and σij are derived from historical GPS data. This uncertainty violates the deterministic assumptions of classical vehicle routing problems (VRP), requiring robust optimization techniques.
High-Dimensional Solution Space
The last-mile routing problem for n deliveries generates a solution space of order O(n!). For a typical urban delivery scenario with 100 stops, this exceeds the number of atoms in the observable universe (~1080). Metaheuristics like Ant Colony Optimization must balance exploration-exploitation tradeoffs:
where τij is pheromone intensity and ηij is heuristic desirability for edge (i,j).
Multi-Objective Optimization Conflicts
Last-mile routing must simultaneously minimize:
- Total delivery cost: C = Σ cijxij
- Customer wait time: W = Σ wi
- Carbon emissions: E = Σ eijxij
The Pareto front for these competing objectives requires advanced multi-objective evolutionary algorithms (MOEAs) with constraint handling:
Real-Time Reoptimization Requirements
Dynamic events like new orders or traffic disruptions necessitate online reoptimization with subsecond latency. This imposes hard computational constraints on solution methods. The regret R for delayed reoptimization grows linearly with time delay Δt:
where α represents the problem's sensitivity to delay and ε captures stochastic noise.
Heterogeneous Fleet Constraints
Mixed fleets of drones, bikes, and trucks introduce dimensional complexity to the routing problem. Each vehicle type v has distinct:
- Capacity constraints: Qv
- Speed profiles: sv(t)
- Accessibility limitations: Av ⊆ V
The resulting multi-modal routing problem requires hybrid solution representations in optimization algorithms.

Key Metrics for Evaluating Last-Mile Efficiency
Delivery Time Metrics
The total delivery time T for a route can be decomposed into:
where Ttravel is the time spent moving between stops, Tservice is the time spent at each delivery point, and Tidle accounts for waiting periods. For urban environments, Ttravel often dominates due to traffic congestion, making it critical to minimize through optimal routing.
The on-time delivery rate measures the percentage of deliveries completed within the promised time window:
Distance and Fuel Efficiency
The total route distance D directly impacts fuel costs and emissions. For a route with n stops, it can be modeled as:
where d(vi, vi+1) is the distance between consecutive stops vi and vi+1. Advanced routing algorithms aim to minimize D while respecting constraints like time windows and vehicle capacity.
The fuel consumption rate F can be estimated using the Comprehensive Modal Emissions Model (CMEM):
where W is vehicle weight, G accounts for road gradient, and coefficients α, β, γ, δ, ε are calibrated empirically.
Operational Cost Metrics
The cost per delivery C combines fixed and variable costs:
Real-world data shows that last-mile costs often exceed 50% of total supply chain expenses, making this a key optimization target.
Customer-Centric Metrics
The first-attempt delivery success rate measures the percentage of packages delivered without requiring reattempts:
Failed deliveries incur substantial additional costs—industry estimates suggest $$10–$$20 per reattempt.
The Geospatial Efficiency Index (GEI) evaluates how well delivery points are clustered:
Higher GEI values indicate tighter spatial clustering, which correlates with lower fuel consumption and faster deliveries.
Vehicle Utilization Metrics
The load factor L measures capacity utilization:
where wi is the weight of the i-th package and Wmax is the vehicle's maximum capacity. Optimal routing balances high L with minimal detours.
The stop density σ quantifies delivery concentration:
Urban routes typically exhibit σ > 5 stops/km², while suburban areas may have σ < 2 stops/km², directly affecting route planning strategies.
2. Classical Algorithms: Dijkstra, A*, and Floyd-Warshall
2.1 Classical Algorithms: Dijkstra, A*, and Floyd-Warshall
Classical graph traversal algorithms form the backbone of route optimization in last-mile delivery. These algorithms efficiently compute shortest paths in weighted graphs, where nodes represent locations and edges represent road segments with associated costs (distance, time, or fuel consumption).
Dijkstra's Algorithm
Dijkstra's algorithm solves the single-source shortest path problem for a graph with non-negative edge weights. It operates by iteratively selecting the node with the smallest tentative distance, updating its neighbors, and marking it as visited. The algorithm guarantees optimality under the condition that all edge weights are non-negative.
where d[v] is the tentative distance to node v, d[u] is the confirmed distance to node u, and w(u, v) is the edge weight between u and v.
Dijkstra's time complexity is O((V + E) log V) when implemented with a priority queue, where V is the number of vertices and E is the number of edges. In practice, this makes it suitable for medium-sized road networks but computationally expensive for large-scale delivery fleets.
A* Search Algorithm
A* extends Dijkstra's algorithm by incorporating a heuristic function h(n) that estimates the cost from node n to the target. This prioritizes nodes likely to lead to the shortest path, reducing the search space. The total cost function is:
where g(n) is the actual cost from the start node to n, and h(n) is the heuristic estimate. For road networks, Euclidean or Manhattan distance often serves as an admissible heuristic.
A* is optimal if h(n) never overestimates the true cost (admissibility) and consistent (satisfies the triangle inequality). Its performance heavily depends on heuristic quality—well-designed heuristics can reduce runtime to O(b^d), where b is the branching factor and d is solution depth.
Floyd-Warshall Algorithm
Unlike Dijkstra and A*, which solve single-source problems, Floyd-Warshall computes all-pairs shortest paths in O(V^3) time via dynamic programming. It maintains a distance matrix D where D[i][j] represents the shortest path between nodes i and j, updated as:
for all intermediate nodes k. While impractical for real-time routing in large networks, it is useful for precomputing distance matrices in logistics hubs with frequent repeated queries.
Practical Trade-offs
- Dijkstra is robust but slow for large graphs without heuristic guidance.
- A* excels in point-to-point routing with accurate heuristics but requires careful tuning.
- Floyd-Warshall is memory-intensive but optimal for static networks with all-pairs queries.
Modern last-mile systems often hybridize these algorithms—using A* for dynamic routing and Floyd-Warshall for depot-to-depot precomputations.

Heuristic and Metaheuristic Approaches
Route optimization for last-mile delivery often relies on heuristic and metaheuristic methods when exact solutions are computationally infeasible due to problem complexity. These approaches trade optimality for tractability, providing near-optimal solutions within reasonable timeframes.
Constructive Heuristics
Constructive heuristics build routes incrementally by iteratively adding nodes based on predefined rules. The Nearest Neighbor heuristic, for instance, starts at the depot and sequentially visits the closest unvisited node until all deliveries are completed. While computationally efficient ($$O(n^2)$$ time complexity for $$n$$ nodes), it often produces suboptimal routes due to its myopic decision-making. The Savings Algorithm (Clarke-Wright) merges routes by evaluating cost savings from combining two separate routes into one:
where $$c_{i0}$$ is the cost from node $$i$$ to the depot, and $$s_{ij}$$ represents the savings from merging routes via edge $$(i,j)$$.
Local Search Metaheuristics
Local search methods iteratively improve an initial solution by exploring neighboring solutions. The 2-opt algorithm, a classic edge-exchange heuristic, removes two edges from a route and reconnects the segments to eliminate crossings:
For a route $$(A \rightarrow B \rightarrow C \rightarrow D)$$, 2-opt evaluates swapping edges $$(A,B)$$ and $$(C,D)$$ with $$(A,D)$$ and $$(B,C)$$, accepting the swap if it reduces total distance.
Population-Based Metaheuristics
Metaheuristics like Genetic Algorithms (GA) and Ant Colony Optimization (ACO) explore solution spaces using biologically inspired mechanisms. In GA, routes are encoded as chromosomes, with fitness proportional to route cost. Crossover and mutation operators generate new solutions:
where $$P_{\text{mut}}$$ is the mutation probability, $$\lambda$$ a tuning parameter, and $$\Delta f$$ the fitness differential. ACO mimics pheromone trails, updating edge weights $$ au_{ij}$$ based on ant traversal frequency:
Here, $$\rho$$ is the evaporation rate, and $$\Delta au_{ij}^k$$ is the pheromone deposited by ant $$k$$ on edge $$(i,j)$$.
Hybrid Approaches
Combining metaheuristics with machine learning enhances adaptability. Reinforcement Learning (RL)-guided local search adjusts heuristic parameters dynamically. For instance, an RL agent might modify the mutation rate in GA based on convergence history, optimizing exploration-exploitation trade-offs.

2.3 Machine Learning for Dynamic Route Optimization
Traditional route optimization algorithms, such as the Traveling Salesman Problem (TSP) or Vehicle Routing Problem (VRP) solvers, rely on static inputs and deterministic models. However, last-mile delivery operates in highly dynamic environments where traffic conditions, delivery windows, and real-time demand fluctuations necessitate adaptive solutions. Machine learning (ML) enables dynamic route optimization by learning from historical data, predicting uncertainties, and continuously refining routing decisions.
Reinforcement Learning for Adaptive Routing
Reinforcement learning (RL) frameworks model route optimization as a Markov Decision Process (MDP), where an agent learns optimal policies through trial-and-error interactions with the environment. The MDP is defined by:
- State space (S): Current vehicle location, remaining deliveries, traffic conditions, and battery levels.
- Action space (A): Next delivery node selection or rerouting decisions.
- Transition dynamics (P): Probability of moving to state s' given action a.
- Reward function (R): Negative cost of travel time, fuel consumption, or missed delivery penalties.
- Discount factor (γ): Balances immediate vs. future rewards.
Deep Q-Networks (DQN) extend Q-learning by approximating the action-value function \( Q(s,a) \) using neural networks:
The network is trained to minimize the temporal difference error:
Graph Neural Networks for Spatial-Temporal Learning
Graph Neural Networks (GNNs) capture topological relationships between delivery nodes. A GNN layer updates node embeddings \( h_v \) via message passing:
where \( \mathcal{N}(v) \) denotes neighbors of node \( v \), and AGGREGATE is a permutation-invariant function (e.g., mean pooling). For dynamic traffic conditions, spatio-temporal GNNs integrate time-series data from sensors using recurrent or attention mechanisms.
Multi-Agent Systems for Fleet Coordination
When optimizing routes for multiple vehicles, the problem becomes a Decentralized Partially Observable Markov Decision Process (Dec-POMDP). Independent Q-learning can lead to non-stationarity, so centralized training with decentralized execution (CTDE) frameworks like MADDPG are employed:
Here, each agent \( i \) maintains its policy \( \pi_i \) but learns a centralized critic \( Q_i^\pi \) that conditions on global state \( o \).
Real-World Deployment Challenges
Practical implementations must address:
- Partial observability: Real-time GPS and traffic data may be delayed or incomplete.
- Safety constraints: Hard constraints like delivery time windows require constrained RL approaches.
- Scalability: GNNs must handle graphs with thousands of nodes (e.g., urban delivery networks).
Case studies from companies like Amazon and UPS show 12–18% reductions in travel time using hybrid systems combining ML with classical OR algorithms.

3. Data Collection and Preprocessing
3.1 Data Collection and Preprocessing
Data Sources for Last-Mile Delivery Optimization
Effective route optimization begins with high-quality data. Key data sources include:
- GPS Traces — Historical delivery vehicle trajectories provide insights into travel times, stop durations, and route deviations. These are often sampled at 1–30 second intervals.
- Order Management Systems — Delivery addresses, package weights, time windows, and customer preferences are extracted from enterprise resource planning (ERP) databases.
- Traffic APIs — Real-time traffic data from services like Google Maps or HERE Technologies helps adjust for dynamic road conditions.
- Road Network Graphs — OpenStreetMap or proprietary datasets encode street topology, speed limits, and turn restrictions.
Data Cleaning and Outlier Detection
Raw GPS data often contains noise due to signal multipath effects or urban canyons. A Kalman filter can smooth trajectories:
where \( \hat{x}_k \) is the estimated state (position/velocity), \( z_k \) is the noisy measurement, and \( K_k \) is the Kalman gain. Delivery stops are identified when vehicle speed drops below 2 km/h for >120 seconds.
Feature Engineering for Route Optimization
Key engineered features include:
- Time-Dependent Travel Times — Segment speeds are binned by hour-of-day and day-of-week to capture traffic patterns.
- Delivery Difficulty Scores — Calculated as \( \alpha \cdot \text{stairs} + \beta \cdot \text{parking\_search\_time} \), where \( \alpha, \beta \) are weights learned from driver feedback.
- Demand Heatmaps — Kernel density estimates of historical deliveries identify spatial clusters:
where \( K \) is a Gaussian kernel and \( h_x, h_y \) are bandwidth parameters.
Graph Representation of Road Networks
Road networks are modeled as directed graphs \( G = (V, E) \) where edges \( e \in E \) have time-dependent weights \( w_e(t) \). Turn restrictions are encoded as forbidden edge sequences. For urban areas with one-way streets, the adjacency matrix \( A \) is highly asymmetric:
Handling Sparse and Missing Data
When historical data is unavailable for certain road segments, speeds are imputed using:
- Road class averages (e.g., highway vs. residential)
- Nearest-neighbor interpolation from instrumented probe vehicles
- Physics-based estimates using segment length and stoplight density
Missing delivery time windows are treated as soft constraints with quadratic penalty terms in the optimization objective.
Integration with GIS and Real-Time Traffic Data
Route optimization for last-mile delivery relies heavily on the integration of Geographic Information Systems (GIS) and real-time traffic data. GIS provides the foundational spatial data required for accurate route planning, while real-time traffic updates ensure dynamic adjustments to minimize delays. The mathematical formulation of this problem often involves graph-based representations, where nodes correspond to delivery locations and edges represent road segments with associated cost functions.
Graph Representation and Cost Functions
The road network is modeled as a directed graph G = (V, E), where V is the set of nodes (intersections or delivery points) and E is the set of edges (road segments). Each edge e ∈ E is assigned a cost function c(e, t), which depends on the time of traversal t. The cost function typically incorporates:
- Static road attributes (e.g., distance, speed limits),
- Dynamic traffic conditions (e.g., congestion, accidents),
- Time-dependent constraints (e.g., traffic light cycles, peak hours).
The cost function can be expressed as:
where:
- d(e) is the distance of edge e,
- τ(e, t) is the predicted traversal time at time t,
- δ(e, t) represents traffic disruption factors (e.g., accidents, road closures),
- α, β, γ are weighting coefficients.
Real-Time Data Integration
Real-time traffic data is sourced from APIs such as Google Maps, HERE Technologies, or OpenStreetMap. These services provide live updates on traffic speed, incidents, and estimated travel times. The integration process involves:
- Data Fetching: Polling APIs at regular intervals (e.g., every 5 minutes) to retrieve the latest traffic conditions.
- Data Fusion: Combining static GIS data (road topology) with dynamic traffic updates to construct an up-to-date cost graph.
- Predictive Modeling: Applying machine learning models (e.g., LSTM networks) to forecast traffic patterns based on historical and real-time data.
Case Study: Dynamic Re-Routing in Urban Environments
A practical implementation involves using Dijkstra's or A* algorithm with time-dependent edge weights. For instance, if a delivery vehicle encounters unexpected congestion, the system recalculates the optimal path by:
where P is the set of possible paths and Δt is the estimated delay due to congestion. This approach was validated in a 2021 study by UPS, reducing delivery times by 12% in high-traffic urban areas.
GIS Data Preprocessing
Raw GIS data requires preprocessing to be usable for route optimization. Key steps include:
- Topology Correction: Ensuring road segments are correctly connected (e.g., resolving missing intersections).
- Attribute Enrichment: Adding metadata such as speed limits, turn restrictions, and road classifications.
- Network Simplification: Reducing graph complexity by merging minor roads or removing redundant nodes without sacrificing accuracy.
Open-source tools like OSMnx (for Python) enable automated extraction and preprocessing of road networks from OpenStreetMap:
import osmnx as ox
# Download and preprocess a road network
G = ox.graph_from_place("Berlin, Germany", network_type="drive")
G = ox.speed.add_edge_speeds(G)
G = ox.speed.add_edge_travel_times(G)
# Simplify the graph
G = ox.simplification.simplify_graph(G)
Challenges and Limitations
Despite its advantages, integrating GIS and real-time traffic data presents challenges:
- Data Latency: Delays in traffic updates can lead to suboptimal routing decisions.
- Edge Cases: Unmapped roads or temporary changes (e.g., construction zones) may not be reflected in the data.
- Computational Overhead: Frequent graph recalculations require efficient algorithms to maintain real-time performance.
Emerging solutions include edge computing for localized route updates and federated learning to improve traffic prediction models without centralized data aggregation.

3.3 Case Studies: Successful Deployments in Industry
Amazon’s Last-Mile Optimization with Reinforcement Learning
Amazon employs reinforcement learning (RL) for dynamic route optimization in its last-mile delivery network. The system models delivery routes as a Markov Decision Process (MDP), where states represent delivery locations, actions correspond to route choices, and rewards are defined by delivery time and fuel efficiency. The Bellman equation is applied to derive optimal policies:
Here, V(s) is the value function, R(s, a) is the immediate reward, and γ is the discount factor. Amazon’s implementation reduced delivery times by 15% while cutting fuel consumption by 8% in urban areas.
UPS ORION: A Constraint-Based Optimization System
UPS’s On-Road Integrated Optimization and Navigation (ORION) system processes over 250 million address points daily using a hybrid approach combining:
- Constraint programming for hard time windows
- Genetic algorithms for route sequencing
- Linear programming for fleet allocation
The system’s objective function minimizes:
where cij represents travel cost between nodes i and j, xij is a binary decision variable, and fk denotes fixed vehicle costs. ORION saves UPS $$300–$$400 million annually through reduced mileage.
FedEx’s Quantum-Based Routing in Metro Areas
FedEx implemented a quantum-inspired annealing algorithm for dense urban routing. The problem is formulated as a quadratic unconstrained binary optimization (QUBO) model:
where Jij encodes distance costs between stops and hi represents priority weights. Running on D-Wave hybrid solvers, this approach improved on-time delivery rates by 22% in Manhattan test deployments.
DHL’s Predictive-Prescriptive Analytics Stack
DHL’s system integrates:
- LSTM networks for delivery time prediction (RMSE = 8.2 minutes)
- Graph neural networks for traffic-aware routing
- Multi-objective optimization balancing:
- Driver working hours (EU Directive 2002/15/EC constraints)
- Vehicle load factors (>82% utilization)
- CO2 emissions (ISO 14083:2023 compliant)
The prescriptive layer uses Benders decomposition to handle the 50+ million daily decision variables across European operations.
Walmart’s Crowdsourced Delivery Optimization
Walmart’s platform employs multi-agent reinforcement learning to coordinate:
- Professional fleet vehicles
- Uber/Lyft drivers
- Customer-based delivery (Spark Driver program)
The Nash equilibrium solution concept ensures fair compensation allocation while preventing route conflicts. The reward function incorporates:
where di is distance, ti is delivery time, and si represents customer satisfaction metrics. This reduced same-day delivery costs by 35% in pilot markets.
4. Carbon Footprint Reduction Strategies
4.1 Carbon Footprint Reduction Strategies
Route optimization for last-mile delivery must account for fuel consumption and emissions, which are directly influenced by vehicle routing decisions. The carbon footprint C of a delivery fleet can be modeled as a function of distance traveled, vehicle type, and traffic conditions. For a fleet of N vehicles, the total emissions are given by:
where di is the distance traveled by vehicle i, fi is its fuel consumption rate (liters/km), and ei is the emission factor (CO2/liter).
Dynamic Traffic-Aware Routing
Traditional routing algorithms minimize distance, but carbon-aware routing must also consider real-time traffic congestion. A modified Dijkstra’s algorithm can incorporate dynamic edge weights representing traffic-induced delays and emissions. The cost function for edge (u, v) becomes:
where t(u, v) is travel time, c(u, v) is emissions, and α, β are tunable weights. Real-world implementations use live traffic APIs (e.g., Google Maps) to update edge weights dynamically.
Vehicle Selection and Load Balancing
Mixed fleets with electric (EV) and internal combustion engine (ICE) vehicles allow emission-optimal assignments. The problem reduces to a variant of the capacitated vehicle routing problem (CVRP) with heterogeneous fleets. Let xij be a binary variable indicating whether vehicle i services customer j, and yi denote vehicle type. The objective is:
subject to capacity and range constraints. Quantum annealing approaches have shown promise for solving this NP-hard problem at scale.
Case Study: Urban Micro-Depots
Deploying micro-depots at strategic urban locations reduces last-mile distances. A 2023 study in Berlin demonstrated a 23% emission reduction by combining:
- Optimized depot placement via k-means clustering of delivery points
- Electric cargo bikes for final delivery segments
- Time-window consolidation to minimize trips
The system used reinforcement learning to adapt depot inventory levels based on predicted demand, further reducing unnecessary replenishment trips.
Predictive Emissions Modeling
Machine learning models can forecast route-specific emissions using features like:
- Historical traffic patterns
- Road gradient data
- Weather conditions
- Vehicle load factors
A gradient-boosted regression tree (GBRT) model trained on telematics data achieved a mean absolute error of 0.12 kg CO2/km in validation tests. The prediction output feeds into the routing engine as a cost parameter.
Multi-Objective Optimization
The Pareto-optimal frontier balances emissions against delivery time and cost. A weighted sum approach transforms it into a single objective:
where T is total delivery time, P is operational cost, and weights wi reflect business priorities. Evolutionary algorithms like NSGA-II efficiently explore the solution space.

4.2 Fairness in Delivery Scheduling
Mathematical Formulation of Fairness Constraints
Fairness in last-mile delivery scheduling can be formalized as a constrained optimization problem where the objective function minimizes total delivery cost while ensuring equitable distribution of delivery times across customers. Let N be the set of customers, each with a preferred time window [ai, bi] and actual delivery time ti. The fairness constraint can be expressed using a Gini coefficient G applied to delivery time deviations:
where δ̄ is the mean deviation from preferred time windows. The optimization problem then becomes:
where ci(ti) represents the delivery cost function and ε is the maximum allowed inequality threshold.
Algorithmic Approaches for Fair Scheduling
Three principal methods exist for enforcing fairness constraints in route optimization:
- Lexicographic optimization: Prioritizes worst-case customers first by solving a sequence of optimization problems where each iteration improves service for the most disadvantaged group.
- Proportional fairness: Maximizes the sum of logarithmic utilities, ensuring no single customer experiences disproportionately poor service.
- Constraint-based methods: Directly incorporates fairness metrics as hard constraints in mixed-integer programming formulations.
The choice between these methods depends on computational constraints and the specific fairness definition adopted. For real-time applications with thousands of deliveries, approximate methods using Lagrangian relaxation often prove most effective.
Trade-offs Between Efficiency and Equity
Pareto analysis reveals fundamental limitations when optimizing for both efficiency and fairness. The trade-off frontier can be characterized by:
where ΔC represents the percentage increase in total delivery cost compared to the purely efficiency-optimal solution, and α, β are empirically determined constants. Field studies in urban delivery networks typically find β ≈ 1.2-1.8, indicating diminishing returns on fairness improvements.
Implementation Considerations
Practical implementations must account for several real-world complexities:
- Dynamic demand: Fairness constraints must be evaluated over rolling time horizons rather than static snapshots.
- Heterogeneous customers: Weighted fairness schemes may be necessary when serving priority customers alongside regular ones.
- Uncertain travel times: Stochastic programming formulations maintain fairness guarantees under uncertainty.
Recent advances in constrained reinforcement learning have shown promise for adapting fairness policies in real-time based on observed delivery patterns and customer feedback.
Case Study: Food Bank Distribution
A 2022 study of food bank logistics demonstrated the impact of fairness constraints. Implementing lexicographic optimization reduced the 90th percentile wait time variance by 43% while increasing total route distance by only 11%. The solution used a modified Clarke-Wright algorithm with fairness-aware savings criteria:
where wi represents accumulated wait time disadvantage for neighborhood i, and λ, μ are tuning parameters.

4.3 Privacy Concerns in Location Data Usage
Last-mile delivery optimization relies heavily on real-time location data, raising significant privacy concerns. The granularity of GPS tracking enables precise route optimization but simultaneously exposes sensitive patterns about individuals' movements, habits, and even socioeconomic status. Differential privacy techniques have emerged as a mathematically rigorous approach to mitigate these risks while preserving data utility.
Mathematical Foundations of Location Privacy
Differential privacy provides a quantifiable guarantee that the inclusion or exclusion of a single data point does not significantly affect the outcome of an analysis. For location data, this is formalized using the concept of geo-indistinguishability, an extension of differential privacy tailored for spatial datasets. The privacy guarantee is expressed as:
where ε is the privacy budget, d(x,x') is the Euclidean distance between locations, and 𝒦 represents the privacy mechanism. This ensures that the probability of distinguishing between two nearby locations is bounded by eεd.
Practical Implementation Challenges
Applying differential privacy to route optimization introduces several engineering challenges:
- Utility-Privacy Tradeoff: Adding noise to preserve privacy degrades routing efficiency. The optimal noise distribution must minimize impact on delivery times while meeting privacy constraints.
- Temporal Correlation: Independent noise addition across timesteps fails to protect against trajectory reconstruction attacks. Advanced techniques like Pufferfish privacy are needed to account for sequential dependencies.
- Heterogeneous Sensitivity: Urban areas with dense waypoints require different noise scales than rural routes, necessitating adaptive privacy budgets.
Case Study: Privacy-Preserving Delivery Routing
A 2022 implementation by Amazon Research used a modified Laplace mechanism for last-mile delivery in urban areas. The algorithm:
- Computes the optimal route using standard VRP algorithms
- Applies spatially-aware noise to waypoint coordinates
- Re-optimizes the route under perturbed constraints
This approach maintained 92% of original routing efficiency while reducing re-identification risk from location data by 78% compared to raw GPS logging.
Emerging Techniques
Recent advances in federated learning offer promising alternatives to centralized data collection. Driver devices can locally optimize routes using:
where fi are local loss functions computed on private trajectory data, and R(w) is a regularization term. The global model aggregates updates via secure multiparty computation without exposing individual routes.
Homomorphic encryption schemes now enable basic route calculations on encrypted coordinates, though computational overhead remains prohibitive for real-time applications. For a delivery area with n waypoints, the complexity grows as O(n2 log n) compared to unencrypted solvers.
5. Key Research Papers and Books
5.1 Key Research Papers and Books
- Cost-optimal truck-and-robot routing for last-mile delivery — 1 INTRODUCTION. Last-mile delivery describes the final step in the retail supply chain, that is, actual delivery to the customer. It is a key challenge for retailers and logistics service providers [] and is responsible for a large share of logistics costs, often above 50% (see e.g., [18, 30, 33]).The last-mile service in urban areas is forecast to grow by 78% by 2030 [], particularly driven ...
- An optimization model for vehicle routing problem in last-mile delivery ... — A brief literature review is conducted to identify the widely used optimization models for perishable goods delivery in the last mile. We have implemented and compared optimization algorithms such as Intra-Route Local Search, Inter-Route Local Search, and Tabu Search that provide a suboptimal solution to the greedy solution of this NP-hard problem.
- An optimization model for vehicle routing problem in last-mile delivery ... — Due to rapid urbanization, timely delivery using vehicle routing is the most pressing issue for E-commerce logistics and distribution. In this study, we articulate multiple vehicle routing problems with a maximum capacity constraint and no time constraint. A brief literature review is conducted to identify the widely used optimization models for perishable goods delivery in the last mile.
- Integrating driver behavior into last-mile delivery routing: Combining ... — By 2025, the number of packages delivered worldwide is expected to climb to 200 billion, compared to less than 90 billion in 2018 (Szczepanski et al., 2021).Coupled with this development is an increased demand for last-mile delivery operations, which is the most expensive part of the supply chain (Seghezzi et al., 2020).In addition, last-mile deliveries substantially impact the satisfaction of ...
- A Review of Last-Mile Delivery Optimization: Strategies ... - MDPI — Last-mile delivery (LMD) is an important aspect of contemporary logistics that directly affects operational cost, efficiency, and customer satisfaction. In this paper, we provide a review of the optimization techniques of LMD, focusing on Artificial Intelligence (AI) driven decision-making, IoT-supported real-time monitoring, and hybrid delivery networks. The combination of AI and IoT improves ...
- Optimizing Last-Mile Delivery: A Multi-Criteria Approach with Automated ... — Background: This publication presents a review, multiple criteria optimization models, and a practical example pertaining to the integration of automated smart locker systems, capillary distribution networks, crowdshipping, last-mile delivery and supply chain management. This publication addresses challenges in logistics and transportation, aiming to enhance efficiency, reduce costs and ...
- Last-Mile Optimization Using Neural Networks - MDPI — In the era of extensive data acquisition from manufacturing and transportation processes, the utilization of machine learning and deep learning techniques has emerged as a potent force for informed decision-making and optimized deliveries in contemporary urban landscapes. This study presents a novel approach grounded in deep learning, where product data are systematically gathered to construct ...
- PDF Machine Learning for Data-Driven Last-Mile Delivery Optimization — Last-mile delivery refers to the logistics of freight transportation in the nal leg of the journey to the customer. Due to the large increase in e-commerce orders, logistics service providers are
- Last-mile delivery concepts: a survey from an operational research ... — Last-mile delivery, i.e., all logistics activities related t o the delivery of shipments to private customer households in urban areas, is a hot topic in cities all over the globe.
- Sustainable Transportation Systems: dynamic routing optimization for a ... — Logistics costs control has always been considered a key issue for business development. In order to decrease transportation costs, companies are pushed to negotiate lower logistic service prices ...
5.2 Open-Source Tools and Libraries
- Top 10 Open-Source Tools for Route Optimization in 2025 — In 2025, efficient Route Optimization has become a cornerstone for businesses across various sectors from logistics and delivery services to field operations and urban mobility. Open-source tools are at the forefront of this transformation, offering cost-effective, customizable, and flexible solutions that empower organizations to streamline operations, reduce fuel consumption, and improve ...
- route-optimization · GitHub Topics · GitHub — Open Source GitHub Sponsors. Fund open source developers The ReadME Project ... using Google Optimization tools. vrp ortools route-optimization. Updated Jul 18, 2018; ... -research integer-programming combinatorial-optimization mixed-integer-programming route-optimization mathematical-modeling last-mile-delivery. Updated Mar 29, 2025; Jupyter ...
- Last Mile Route Optimization: Top Tips, Tools, and Technology for 2025 — Key Factors to Consider for Route Optimization . Effective last-mile route optimization requires a comprehensive approach that accounts for several factors. By incorporating these elements into route planning, businesses can improve efficiency, reduce costs, and enhance customer satisfaction. Delivery Time Windows and Customer Preferences
- TMS for Last-Mile Delivery: Optimize Urban Routes & Meet Time Windows — 2. The Role of TMS in Last-Mile Delivery Optimization. A TMS for last-mile delivery is an essential software tool that helps logistics providers manage and optimise transportation operations. 2.1 Route Optimization for Urban Deliveries. A TMS uses AI-driven algorithms to: Identify the fastest and most efficient routes.
- Integrating driver behavior into last-mile delivery routing: Combining ... — By 2025, the number of packages delivered worldwide is expected to climb to 200 billion, compared to less than 90 billion in 2018 (Szczepanski et al., 2021).Coupled with this development is an increased demand for last-mile delivery operations, which is the most expensive part of the supply chain (Seghezzi et al., 2020).In addition, last-mile deliveries substantially impact the satisfaction of ...
- PDF Machine Learning for Data-Driven Last-Mile Delivery Optimization — 2.1. Last-Mile Routing and Inverse Optimization Last-mile delivery refers to the logistics of freight trans-portation in the final leg of the journey to the customer. Because of the large increase in e-commerce orders, logistics service providers face challenges. The pro-blems of last-mile delivery are typically caused by the
- A machine learning optimization approach for last-mile delivery and ... — The application of ML methods for the optimization process is a recent and growing topic in the literature. The most recent surveys on the topics include (Mele et al., 2021), which considers the application of ML to the traveling salesman problem, Talbi (2020), which resumes data-driven ML meta-heuristics, and Ning and You (2019), which analyzes the applications of deep learning to ...
- Dynamic Route Optimization Unleashed: Taming the Last Mile Beast — Dynamic route optimization tools become the secret weapon here by crunching real-time data faster than you can say "traffic jam on I-95." Certainly, it plays a role in helping the 63% of retailers OneRail surveyed strategically plan and forecast their last mile delivery needs, and it's clear why: 96% of customers see delivery as make-or ...
- An optimization model for vehicle routing problem in last-mile delivery ... — A brief literature review is conducted to identify the widely used optimization models for perishable goods delivery in the last mile. We have implemented and compared optimization algorithms such as Intra-Route Local Search, Inter-Route Local Search, and Tabu Search that provide a suboptimal solution to the greedy solution of this NP-hard problem.
- An open source route optimization tool based on Google OR-Tools. — Same day delivery. Same day delivery is a bit more tricky compare to Next day delivery. All locations need to be grouped in to different delivery WAVEs before starting routing optimization process. Geo Fencing. To verify if a geolocation is within a geo fence, we use the algorithm call Point-In-Polygon. Code example:
5.3 Industry Reports and Whitepapers
- Last Mile Delivery Route Optimization: Expert Strategies 2025 — Here is a ultimate guide on how to last-mile delivery route optimization. Read now! Menu. Products. Products by Upper. ... A report reveals that the global same-day delivery market is expected to reach a staggering $26.4 billion by 2027. ... Last-mile optimization is an essential component for businesses in the last-mile industry. By adopting ...
- PDF Dynamic Route Optimization in Last-Mile Delivery Using Predictive ... — Citation: Oloko O. (2024) Dynamic Route Optimization in Last-Mile Delivery Using Predictive Analytics: A Case Study of E-commerce in the U.S., European Journal of Logistics, Purchasing and Supply Chain Management, Vol.12 No.3, pp.1-32 Abstract: The last-mile delivery problem is one of the most complex and resource-intensive
- An optimization model for vehicle routing problem in last-mile delivery ... — A brief literature review (Section 2) is conducted to identify the widely adopted optimization models for the last-mile delivery of perishable goods. We have briefly described the various optimization algorithms and implemented and compared Intra-Route Local Search, Inter-route Local Search, and TABU Search, which provide a sub-optimal solution ...
- PDF Machine Learning for Data-Driven Last-Mile Delivery Optimization — 2.1. Last-Mile Routing and Inverse Optimization Last-mile delivery refers to the logistics of freight trans-portation in the final leg of the journey to the customer. Because of the large increase in e-commerce orders, logistics service providers face challenges. The pro-blems of last-mile delivery are typically caused by the
- Last Mile Delivery Optimization Strategies for 2025 — RouteManager is delivery routing software that helps delivery drivers with routing and scheduling. Some of the key advantages of using route planning software include: 1. Advanced Route Planning: Utilizes advanced algorithms to create optimized driving routes that take into account factors such as traffic patterns, road conditions, and customer preferences.
- Mastering Last Mile Optimization: 10 Strategies - Track-POD — Contactless deliveries are becoming more common in last mile delivery optimization. This trend is driven by customer preferences. In this post, we'll look at 10 bulletproof strategies that are reshaping last mile delivery optimization this year. Last mile optimization software
- PDF Last-Mile Delivery Made Practical: An Efficient Route Planning ... - VLDB — Last-Mile Delivery Made Practical: An Efficient Route Planning Framework with Theoretical Guarantees Yuxiang Zeng y Yongxin Tong z Lei Chen y yThe Hong Kong University of Science and Technology, Hong Kong SAR, China zBDBC, SKLSDE Lab and IRI, Beihang University, China yfyzengal, [email protected] [email protected] ABSTRACT Last-mile delivery (LMD) refers to the movement of goods
- Route Optimization for last mile delivery | White Paper - Nagarro — Finding the minimum distance between two places is simple. But, with multiple places (say 500+), finding the best route can be complex. This white paper can help find the best possible route between multiple touchpoints by applying heuristic algorithms and AI-based optimization. Download this white paper to gain insights into: The challenge
- Optimizing Last Mile Delivery using Public Transport with Multi- — Optimizing Last Mile Delivery using Public Transport with Multi-Agent based Control 2016 Supervisor(s): ... One of the emerging economic sectors is the electronic-commerce (e-commerce) industry which is an example of horizontal integration of business within the ... report [3] found the net revenue of estimated sales in 2015, was an increase by ...
- Last-Mile Delivery with Artificial Intelligence: Dynamic Routing ... — The rapid expansion of e-commerce has intensified the criticality of last-mile delivery, the final and often most demanding phase of logistics, where goods are transported directly to consumers.








