The story
A city operates a mixed fleet from one depot: a few large trucks that carry a lot but burn more fuel, and smaller vans that are cheap to run but fill up quickly. Every morning each customer has a known demand. Fuel use on a trip grows with how much the vehicle is carrying, so the order of stops matters as much as which vehicle makes them: drop the heavy orders early and the rest of the route gets cheaper.
Your job: plan the routes that serve every customer with the least total fuel.
The model
- Customers with coordinates and demand ; one depot at .
- Vehicle types with capacity , an available count and fuel parameters .
- Distance is Euclidean.
- A vehicle leaves the depot carrying the total demand of its route and drops at each stop. On an arc driven with load , a type- vehicle uses litres.
subject to: every customer is visited exactly once; every route starts and ends at the depot; the load of a route never exceeds ; and at most routes use type .
| Type | Capacity | Fuel per km, empty () | Extra per km per unit of load () |
|---|---|---|---|
| van | 40 | 0.08 | 0.004 |
| truck | 120 | 0.22 | 0.0025 |
The available number of each type differs per instance and is given in the instance file.
Data format
Each instance is a JSON file:
{
"name": "small",
"depot": { "x": 50.0, "y": 50.0 },
"customers": [ { "id": 1, "x": 77.96, "y": 88.17, "demand": 5 }, ... ],
"vehicle_types": [
{ "id": "van", "count": 3, "capacity": 40, "alpha": 0.08, "beta": 0.004 },
{ "id": "truck", "count": 2, "capacity": 120, "alpha": 0.22, "beta": 0.0025 }
]
}
A solution lists routes by vehicle type and the customer ids in visiting order. The depot is implied at both ends:
{
"author": "Your Name",
"method": "ALNS with 2-opt",
"instance": "small",
"writeup": "https://link-to-your-explanation (optional)",
"routes": [
{ "type": "van", "stops": [4, 9, 1] },
{ "type": "truck", "stops": [7, 2, 12, 5] }
]
}
Rules
- One file per instance. Enter one, two or all three instances.
- Any method is allowed: exact, heuristic, learned or by hand.
- Infeasible solutions are not ranked. Ties go to the earlier submission.
- Scores are total fuel in litres, rounded to four decimals.
- After the problem closes, the reference solution and the best write-ups are published here.
Instances
How to submit
- 1Download the instancesPick one, two or all three instance files above.
- 2Write your solution fileSave it as your-name-small.json in the format shown above (one file per instance).
- 3Email itAttach the file and add a sentence on your method. Every feasible solution is checked, scored and added to the leaderboard.
Want to check feasibility yourself first? The checker is a short Python script you can get by email.
Ready? Email your solution