/

Omdena and Carryt built an AI-driven route optimization system to make last-mile logistics more efficient and sustainable. Using Graph Theory and a modified A algorithm*, the solution reduced travel distance, fuel use, and GHG emissions by up to 15%, supporting global sustainability goals under the Paris Agreement.
The effects of a changing climate are visible: droughts, reduced harvests, destruction of critical infrastructure, and displacement of communities. Situations like those are forcing different countries to commit to achieving carbon neutrality by 2050 (Paris Agreement). As a consequence, the digital transformation of different sectors (energy, transportation, etc), to attain sustainability, becomes an urgent necessity.
Globally, the transportation sector is one of the most difficult to decarbonize. Electric vehicles are often cited as a mitigation strategy for Greenhouse Gas (GHG) emissions. But there are other factors to take into account that go from the material used in batteries and electronic equipment, to whether the infrastructure for the distribution of electrical energy depends on fossil sources. Furthermore, other palliative approaches such as ride-sharing and autonomous vehicles may potentially increase GHG emissions due to the Jevons’ effect.
Perhaps an effective method is route optimization, as passenger and freight transportation are responsible for about half of transport GHG emissions and much of this mileage occurs inefficiently which ultimately increases the amount of traffic on the roads. Machine Learning (ML) combined with Operations Research (OR) can help both by making long trips less necessary and avoiding congestion, and by optimizing the complex interaction of shipment sizes and transport modes.
Carryt, the project organizer, is a last-mile logistics provider with a technology product empowering the gig economy, providing drivers with a livable wage, and offering delivery services to customers. They joined Omdena’s incubator for impact startups.
The delivered project consisted of building a solution to find optimal routes (least total distance) for a fleet of vehicles that either deliver packages picked from a depot to a set of sites, or pick up and deliver packages from and to a set of locations; while honoring a set of constraints:
1. Vehicle start and stop locations (longitude and latitude).
2. Vehicle capacity: the maximum capacity of items they can transport.
3. Pickup time interval for each pickup location (start and end times in HH:MM, e.g. 08:00 to 14:00).
4. Dropoff time interval for each dropoff location (start and end times).
5. Time spent at each location (considering the time it takes to service a location).
6. Priority: the vehicles must pay a penalty for each visit that is dropped.
Therefore, the purpose of this article is:
Last-mile is the final step of the delivery process, in other words, the point at which the packet arrives at the buyer’s door. It is the most expensive and time-consuming part of the shipping process because it requires numerous stops with low drop sizes. For example, in urban areas there are constant delays because of traffic congestion; meanwhile, in rural areas, the delivery locations could be several miles apart with only a couple of parcels for each one. Other key problems are failed deliveries and poor granular tracking.
Customers have progressively turned to e-commerce for all their purchasing needs, forcing retailers and logistics partners to develop new technologies and to assume the costs for fast and free delivery. Therefore, by optimizing routing, the number of vehicle miles traveled and fuel costs can be reduced and, as a collateral effect, transportation GHG emissions. Around the world, innovative logistics companies are using technology and data-driven solutions to make supply chains more sustainable and efficient. Discover the top companies in logistics and supply chain that are leading the transformation toward greener, smarter delivery systems.

It is the study of graphs, which are diagrams involving lines (edges) and points (nodes), used to model pairwise relations between objects. For example, identifying optimal routes in logistics planning like Vehicle Routing Problem (VRP) and its variations. Graphs vary in type (see Figure 2), have many attributes, and exhibit different classes of algorithms.



There are 3 areas of analysis: a) Pathfinding and search, b) Centrality computation, and c) Community detection. Being the first one relevant for this Omdena challenge.
A* is an extension of Dijkstra’s algorithm, but it achieves better performance by using heuristics to guide its search. Despite its major drawback which is storing all generated nodes in memory (making it computation-intensive), it is still the best solution in many cases.
It is a combinatorial optimization that entails finding an optimal set of routes for a fleet of vehicles to serve a set of customers. The objective is to minimize the global transportation cost, which can be monetary, distance, or the number of vehicles needed to serve all customers.
Several variations exist, for example:
The length of time it takes to solve VRPs grows exponentially with the size of the problem. Therefore, finding an optimal solution may take several years. Consequently, any routing software must return a solution that is good enough but not the best one.

In this Omdena challenge, a directed graph was created from the files provided by the client:
In other words, the road network was described using a graph where the edges are roads and nodes are vertices between them. The direction of edges specifies whether the connection between a pair of nodes is both ways or one (like road intersections in a typical city). Meanwhile, the nodes represent intersections and waypoints along a stretch of road. The weights (costs) on the edges correspond to the total time it will take to traverse them (distance/speed); making the global cost the sum of these on the shortest path. The A* algorithm was modified to include the list of .osm restrictions, and it was used to find the optimal route.

Numerous models and algorithms have been proposed to solve VRP problems, yet few have reached a satisfactory level. The majority of existing research focuses on the use of mathematical models that are associated with unrealistic assumptions. Making it difficult to use them in real-world scenarios. To tackle the issue, there is an emerging study direction that combines ML tools with conventional optimisation-based techniques. Some approaches are:
As VRPs search space grows with respect to the problem size, finding an optimal solution becomes challenging. A common strategy is to divide the problem into sub-problems.
In VRP, customer demands and vehicle travel time are not deterministic. Therefore, a solution based on ML algorithms can be used to predict them.
VRP algorithms have a great number of hyperparameters that need to be carefully adjusted to obtain a good performance. For example, clustering was employed for fine-tuning a multi-depot vehicle routing problem.
The transportation sector is one of the most difficult to decarbonize. Different approaches have been proposed in order to mitigate GHG emissions such as ride-sharing and autonomous vehicles. But due to the Jevons Paradox those solutions may potentially worsen the situation.
Route optimization is perhaps a better fix, as freight transportation increases traffic on roads and is responsible for about half of GHG emanations. In this project, Graph Theory was used for modeling a last-mile logistics delivery application to identify optimal routes for a fleet of vehicles. Also, an adapted version of the A* algorithm was implemented.
VRP is one of the most studied combinatorial optimization problems because of its relevance in the transportation sector. As there are not yet satisfactory solutions, a new research branch has appeared combining ML with VRP algorithms. The end goal is to automate the modeling process and algorithmic performance for real-life VRP scenarios.
You might also like