← Latest papers
🤖 machine learning

Deep Reinforcement Learning solution for pickup and delivery routing problems with time window and capacity constraints

This paper presents a novel deep reinforcement learning approach, based on a modified JAMPR model, that effectively solves medium-sized Pickup and Delivery problems with capacity and time window constraints (CPDPTW) in real-time and provides fast suboptimal solutions for large-scale instances exceeding 200 nodes.

Original authors: Andrew Soroka, Alex Meshcheryakov, Sergey Gerasimov

Published 2026-08-17
📖 4 min read☕ Coffee break read

Original authors: Andrew Soroka, Alex Meshcheryakov, Sergey Gerasimov

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are the captain of a fleet of delivery trucks in a bustling, ever-growing city. Your job is to drop off packages and pick up returns for hundreds of customers, but you have a strict set of rules: your trucks can only carry so much cargo, and every customer has a specific window of time when they are home to receive a package. If you arrive too early or too late, or if you try to stuff too many boxes into the back of a van, the plan fails. This is the "Pickup and Delivery Problem," a massive puzzle that gets harder the more people you add to the mix.

For decades, computers have tried to solve this by acting like super-fast calculators, testing millions of possible routes one by one to find the perfect path. But as cities grow and the number of stops explodes, these calculators get stuck. They take hours to figure out a route that a human could sketch in minutes, or worse, they give up entirely and say, "I can't solve this." This is where a new kind of computer brain steps in: Deep Reinforcement Learning. Think of this not as a calculator, but as a video game character that learns by playing. Instead of calculating every single possibility, it plays the delivery game thousands of times, getting faster and smarter with every round, learning to spot the best moves without needing to check every single option.

In this paper, Andrew Soroka and his team at Moscow State University and the Space Research Institute of RAS decided to teach this "video game brain" how to handle the messy, real-world rules of delivery: limited truck space and strict time windows. They took an existing smart model called JAMPR and gave it a special upgrade to understand the "pickup and delivery" rules, where a truck might need to grab a package at one stop and drop it off at another, all while juggling capacity limits.

The researchers found that their upgraded model is a speed demon for small to medium-sized cities (with 50 to 200 stops). In these scenarios, the AI can spit out a nearly perfect route in the first few seconds, beating the traditional "calculator" methods that take much longer to even start. It's like having a delivery driver who knows the city so well they can instantly shout out the best route, while the old-school computer is still trying to read the map.

However, the story gets a bit more complicated when the city gets huge (400 to 1,000 stops). Here, the AI still wins the race for speed, offering a "good enough" solution almost instantly, while the traditional methods struggle to find any valid route in the first minute. But, the AI isn't perfect yet. To get the absolute best route for these giant cities, the AI needs to "train" for days, which is a long time. Even after training, for the largest problems, the AI's final route is still about 20% more expensive (in terms of distance) than the very best solution a traditional method could eventually find if given unlimited time. In fact, once the optimization time passes just a few minutes, the traditional methods actually overtake the AI, finding better routes that the AI cannot match without significantly more training.

The team also tested how tough their AI is when the rules change. They found that the AI is incredibly reliable within the specific test conditions used: it never failed to give some solution, even when the traditional computer gave up and said "impossible" for the same distribution of problems. However, if the city layout changes drastically—say, from a random spread of houses to a pattern where everyone lives in a tight circle—the AI's performance dips a bit, though it still manages to beat the traditional methods for the first hour of solving.

In short, the paper suggests that this deep learning approach is a powerful new tool for real-time logistics. It doesn't replace the old methods entirely, especially for the biggest, most complex puzzles where the absolute perfect answer is needed. But for situations where you need a fast, reliable answer right now—like a courier service reacting to traffic or a sudden surge in orders—this AI is a game-changer, offering a robust, fast solution where traditional tools often stall or fail.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →