Optimal Route · Monthly problem #01

Fuel-aware routing for a heterogeneous fleet

Published 1 November 2026Closes 30 November 2026Solution next monthClosed
Download instancesHow to submitLeaderboard

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 i∈{1,…,n}i \in \{1,\dots,n\} with coordinates and demand qiq_i; one depot at (50,50)(50, 50).
  • Vehicle types kk with capacity QkQ_k, an available count mkm_k and fuel parameters αk,βk\alpha_k, \beta_k.
  • Distance dijd_{ij} is Euclidean.
  • A vehicle leaves the depot carrying the total demand of its route and drops qiq_i at each stop. On an arc driven with load ℓ\ell, a type-kk vehicle uses dij(αk+βkℓ)d_{ij}(\alpha_k + \beta_k \ell) litres.
min⁡∑routes r  ∑(i,j)∈rdij (αk(r)+βk(r) ℓij)\min \sum_{\text{routes } r} \;\sum_{(i,j) \in r} d_{ij}\,\big(\alpha_{k(r)} + \beta_{k(r)}\, \ell_{ij}\big)

subject to: every customer is visited exactly once; every route starts and ends at the depot; the load of a route never exceeds QkQ_k; and at most mkm_k routes use type kk.

Type Capacity Fuel per km, empty (α\alpha) Extra per km per unit of load (β\beta)
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

  1. 1Download the instancesPick one, two or all three instance files above.
  2. 2Write your solution fileSave it as your-name-small.json in the format shown above (one file per instance).
  3. 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

Leaderboard

#SolverMethodFuel (litres)Gap to bestWrite-up
–BaselineNearest neighbour, trucks first133.85—–

The baseline is not ranked. It is there so you know where the bar starts.

Have a problem from your work?

Suggest it, anonymized. Good ones become a month’s problem, with credit.

Suggest a problem →