---
title: "MilleMiglia: A realistic instance generator for middle-mile logistics"
description: "MilleMiglia is an open-source C++ instance generator that produces realistic, privacy-preserving benchmarks for middle-mile logistics, where shipments are relayed across multiple vehicles between distribution centers over multi-day horizons."
url: "https://swe.quest/articles/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics-6dcc1ed2fd92bea0"
canonical: "https://research.google/blog/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics/"
source: "Google Research"
published: "2026-09-18"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 8
tags: ["algorithms","scientific-computing","c-cpp","open-source"]
---

# MilleMiglia: A realistic instance generator for middle-mile logistics

A post on [Google Research](https://swe.quest/sources/google-research.md), published 2026-09-18, 8 min read, Announcement. Original: [https://research.google/blog/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics/](https://research.google/blog/millemiglia-a-realistic-instance-generator-for-middle-mile-logistics/)

## Summary

MilleMiglia is an open-source C++ instance generator that produces realistic, privacy-preserving benchmarks for middle-mile logistics, where shipments are relayed across multiple vehicles between distribution centers over multi-day horizons. Middle-mile delivery is modeled as a multi-commodity flow problem on a space-time graph with hard constraints (fixed vehicle schedules, distribution-center throughput limits, and cross-vehicle synchronization), which standard VRP solvers cannot handle. The generator places distribution centers via gravity models or spatial clustering, samples origin-destination demand, builds structured vehicle rotations, and serializes each instance to a single Protocol Buffers file. Instance sizes range from toy problems for exact algorithms to continent-scale ones needing metaheuristics, with the aim of creating a CVRPLIB-style benchmark suite.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [Scientific computing](https://swe.quest/tags/scientific-computing.md) (Domains)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- vehicle routing problem ([easy posts on Maps & geospatial](https://swe.quest/tags/geospatial.md?difficulty=easy))
- network flow optimization ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

MilleMiglia, multi-commodity flow, vehicle routing problem, Protocol Buffers, OR-Tools, CVRPLIB

## Related posts

- [How we use formal modeling, lightweight simulations, and chaos testing to design reliable distributed systems](https://swe.quest/articles/how-we-use-formal-modeling-lightweight-simulations-and-chaos-testing-to-design-aca03cf9b6abf48d.md): Datadog Engineering · 2024-11-20 · Hard · 23 min read · Formal methods, Queues & messaging, Distributed systems, Chaos engineering, Multi-tenancy
  Datadog validated the design of Courier, a multi-tenant message queue built on multiple FoundationDB clusters after its March 2023 outage, by combining TLA+ formal modeling, lightweight simulations and chaos testing.
- [Open-Sourcing Rebalancer: A Generic, High-Performance Library for Solving Assignment Problems](https://swe.quest/articles/open-sourcing-rebalancer-a-generic-high-performance-library-for-solving-d79479af3daad1e0.md): Meta Engineering · 2026-09-21 · Medium · 8 min read · Algorithms, Scheduling, Open source, Datacenters, Performance engineering
  Meta has open-sourced Rebalancer, an assignment-problem solver used for nine years to place hardware, services, tasks and traffic across its infrastructure.
- [Lazy gas, hot gas, and a thousand robots](https://swe.quest/articles/lazy-gas-hot-gas-and-a-thousand-robots-6f7a6530e96fde6f.md): Amazon Science · 2026-11-24 · Hard · 6 min read · Algorithms, Scientific computing, Machine learning
  Anonymous multiagent pathfinding (MAPF) for warehouse robots can be solved to optimality in polynomial time by formulating it as multimarginal optimal transport (MMOT) whose constraint matrices stay totally unimodular.
- [Using Chakra execution traces for benchmarking and network performance optimization](https://swe.quest/articles/using-chakra-execution-traces-for-benchmarking-and-network-performance-df350406c5269052.md): Meta Engineering · 2023-09-07 · Hard · 6 min read · Model training, Performance engineering, Networking, Open source
  Chakra execution traces are an open, graph-based schema for AI/ML workload execution that capture compute, memory and communication operations along with their data and control dependencies, timing and resource constraints.
- [Open-sourcing TAOBench: An end-to-end social network benchmark](https://swe.quest/articles/open-sourcing-taobench-an-end-to-end-social-network-benchmark-d1487a3fe445aa76.md): Meta Engineering · 2022-09-07 · Easy · 3 min read · Distributed databases, Performance engineering, Open source
  TAOBench is an open-source benchmark that reproduces Meta's social graph workload from TAO, a read-optimized, geo-distributed store serving over 10 billion requests per second on petabytes of data.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
