The Capacitated Vehicle Routing Problem (CVRP) is a logistics optimization problem: Find the most efficient routes for a fleet of vehicles with limited capacity to serve all customers and return to the depot.
This is an extension of the Traveling Salesperson Problem with additional constraints: each customer has a demand, and your vehicles have limited capacity. You'll need to balance:
Select a difficulty level from the dropdown menu:
Each customer's demand is randomly generated based on the vehicle capacity. Higher capacities mean more complex routes.
For beginners, start with the "Beginner" level to learn the mechanics, then gradually increase the difficulty.
On the game board, you'll see:
The capacity bar at the top shows how much cargo your current vehicle is carrying relative to its maximum capacity.
Try to group nearby customers with similar demands into the same route to minimize vehicle trips.
To create routes:
As you build routes, customers change color to show they've been visited, and the capacity bar updates.
If you're about to exceed capacity, you can either return to the depot to finish your route or use the "Undo" button to change your last selection.
Your goal is to serve all customers using the fewest vehicles and shortest total distance.
After all customers are served, the game shows your performance compared to algorithmic solutions.
Your score considers both total distance and number of vehicles used.
The game provides three algorithm solutions for comparison:
A classic CVRP algorithm that starts with individual routes and merges them based on "savings" when combined.
A geometric approach that clusters customers by angle from the depot, then solves TSP for each cluster.
Uses multiple optimization techniques including local search and advanced route improvement for a high-quality solution.
Try to beat the Sweep Algorithm first, then aim for the Clarke-Wright solution. Beating the Enhanced Solution is extremely difficult and often requires multiple attempts!
Use these controls to aid your gameplay:
The Capacitated Vehicle Routing Problem has important real-world applications:
By playing this game, you're experiencing the same challenges faced by logistics planners worldwide!