Freight Routing

Ant Colony Optimization for Logistics / Case

AAI Labs partnered with Packsender, a logistics company focused on enhancing freight efficiency, to create an advanced route optimization system.

The project addressed a critical logistics challenge: reducing empty or underutilized truck journeys — a persistent issue that affects around 30-40% of freight operations. Frequently, trucks carry partial loads or even return empty, leading to wasted fuel, increased emissions, and reduced cost-effectiveness. To solve these inefficiencies AAI Labs developed a system based on the Ant Colony Optimization (ACO) algorithm, which mimics the foraging behavior of ants.

Project scope

The team began with data collection and preparation, gathering over 15,000 entries from Cargo.lt and Trans.eu. This data included essential logistics details, such as distances, routes, pricing, and journey times. These datasets were carefully preprocessed and transformed into formats suitable for ACO-based optimization models, filtering out data points irrelevant to the route optimization model. The heart of the project was the ACO algorithm implementation, where we simulated ant foraging behaviors to help identify the shortest and most efficient routes. This algorithm used simulated pheromones to represent optimal paths, which, in logistics terms, translate into optimally loaded and routed trucks that reduce empty or partially filled backhauls. This model simulated thousands of paths, dynamically adjusting to route changes and load capacities to achieve optimal routes in real-time. Finally, we collaborated closely with the client’s IT team to integrate the ACO algorithm into their logistics platform through a custom API, allowing for seamless data exchange and ensuring up-to-date route adjustments based on load availability and truck locations.

Technological innovation and challenges

One of the primary challenges was processing extensive datasets while maintaining real-time route adaptability. We overcame this by employing Bayesian hyper-parameter optimization, which enhanced the model's capacity to manage large, dynamically changing data while ensuring high responsiveness. Another challenge involved integration with existing logistics platforms, addressed by building a flexible API-based architecture. This design allowed for straightforward implementation, enabling the system to be compatible with a range of logistical data sources. Unlike static route planning tools, the ACO algorithm adapts to real-time fluctuations in truck availability and load capacity, offering accurate and dynamic routing recommendations that respond to the logistics sector's ever-shifting conditions.

Future vision

This system has delivered significant benefits, including cost reductions and improved environmental impact by minimizing empty backhauls, thereby reducing fuel consumption and emissions. The solution’s dynamic load management function optimizes truck space, enhancing logistical efficiency. Built to scale, this system offers flexibility for expansion as logistics needs evolve, establishing it as a valuable, long-term solution. Looking forward, we plan to enhance the model further with advanced real-time tracking features and potential integrations with additional logistics networks, broadening its application across other logistics providers facing similar efficiency and sustainability challenges.

Client

Previous
Previous

AI Preventive Maintenance for Historic Buildings

Next
Next

Engine for Health Insights Platform