Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Research 8 min read Announcement easyNovice

MilleMiglia: A realistic instance generator for middle-mile logistics

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.

Related posts

  • How we use formal modeling, lightweight simulations, and chaos testing to design reliable distributed systems

    Datadog Engineering hardMaster

    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. Each tenant is sharded across 4 of 8 FoundationDB clusters so that no two tenants share the same set, and brokers health-check clusters and route around failures. The TLA+ spec models brokers, senders and receivers with weak fairness, and TLC checks properties such as at-least-once delivery across every reachable state. Simulations then cover what model checking cannot, such as latency, cost and scalability. Together these give design-level confidence that unit tests miss, at the cost of keeping models and simulations in sync with the design.

  • Open-Sourcing Rebalancer: A Generic, High-Performance Library for Solving Assignment Problems

    Meta Engineering mediumAdept

    Meta has open-sourced Rebalancer, an assignment-problem solver used for nine years to place hardware, services, tasks and traffic across its infrastructure. Problems are specified with objects, bins, dimensions, partitions, scopes and reusable specs (e.g. CapacitySpec, BalanceSpec), then compiled into an expression graph. That graph either drives a parallelized local search with an O(objects+bins) neighborhood or is translated into a MIP for Xpress, Gurobi or HiGHS, which shrinks models with variable aggregation and symmetry breaking but can still grow O(objects×bins). Rebalancer solves about 40 million problems a day, with a P99 of 12 seconds at 265k objects and 3.2k bins, and ships alongside Explorer, a Dockerized debugging UI.

  • Lazy gas, hot gas, and a thousand robots

    Amazon Science hardMaster

    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. A linear program then returns integer, collision-free paths, about O(n^1.68) in practice. On a 150×150 grid with 1,125 robots (3.4M variables, T=30), this takes 478 seconds, while the NP-hard non-TU formulation often fails to find a feasible solution in 12 hours. An entropic relaxation equivalent to a Schrödinger bridge (the 'hot gas' model) is solved with Sinkhorn iterations to find likely corridors, then pruned back to integral paths. This cuts runtime to 67 seconds, scaling roughly O(n^1.15), at a cost of staying within 6.5% of optimal.

  • Using Chakra execution traces for benchmarking and network performance optimization

    Meta Engineering hardMaster

    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. They address problems with full-workload benchmarks like MLPerf: high GPU cost, the inability to evaluate systems that don't exist yet, and slow adaptation to new workloads. Meta collects traces from production daily, replays them with tools such as Mystique and PARAM, and uses them to find imbalanced collective message sizes across ranks. Planned work with the MLCommons Chakra working group includes system-independent pre-execution traces and generative models that produce representative, IP-obfuscated traces.

  • Open-sourcing TAOBench: An end-to-end social network benchmark

    Meta Engineering easyNovice

    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. A small set of parameters, including transaction size, key-to-shard mapping and operation-type frequencies, is enough to downscale production request patterns and model emergent application behavior, and the workloads are validated against production. Meta uses it to test new transaction use cases, lock contention, new APIs and high fan-out transactions. The release includes results for Cloud Spanner, CockroachDB, PlanetScale, TiDB and YugabyteDB, which show how the benchmark exposes performance tradeoffs.

The quest for software engineering knowledge.

Look:
Layout: