LiveIndependent · Optimization2026

Ta'am طعام

Real-time food-rescue logistics for Riyadh · live lab and pilot apps

+18%meals rescued, same volunteers, 20% less driving
01The problem

Why it exists

On a Thursday night in wedding season, hundreds of halls, hotels and restaurants have surplus food at unpredictable times, with hours before it is unsafe. Ta'am plans every volunteer's route in real time with adaptive large neighbourhood search written from scratch in Go, on a digital twin of Riyadh's roads, and shares the food fairly between charities. The live lab runs the same night twice in the browser: dispatched like a group chat, and by Ta'am.

02The system

What I built

Riyadh road twinOpenStreetMap, traffic profile
Surplus foodsafety deadlines, capacity
Route solverALNS + annealing
Fairnessbetween charities
Custody loghash-chained handovers
  1. A Riyadh digital twin from OpenStreetMap: 12,878 intersections, one-way-aware roads, 567 sites, a travel-time matrix and an evening traffic profile
  2. A dynamic pickup-and-delivery solver with food-safety deadlines, fridges, car and charity capacity, shift ends and drop-outs, using three destroy and two repair operators with simulated annealing
  3. Proportional fairness between charities, and a hash-chained custody log of every handover
  4. A benchmark against greedy dispatch, cheapest insertion and a hindsight bound, plus tests proving zero unsafe deliveries
  5. A live pilot: venue, volunteer, charity and dispatcher apps with coded handovers, one Durable Object per night, the planner running in the dispatcher's browser and every plan validated by the server
03The result

What it achieved

Over 10 simulated nights: 81.5% of meals rescued vs 69.3% for greedy dispatch (+18%) with 20% less driving, 47% more meals per driving hour, fairness 0.63 → 0.82 and zero deliveries after the safety deadline, closing 80% of the gap to a planner that knows the whole night in advance. A forecast for pre-positioning volunteers did not help, which is reported as an honest negative result.

Stack

GoVehicle routing (ALNS)OpenStreetMapSimulationWebAssemblyWeb WorkersFairness

Timeline

2026

My role

Engineering + research