This repository is the small, reviewable source of truth for which minimum-cost-flow problem families we intend to benchmark. It deliberately does not commit large instances, solver code, benchmark results, or a concrete size/seed ladder.
The current core profile contains 13 families:
| Family | Acquisition |
|---|---|
| NETGEN | generated locally |
| GOTO | generated locally |
| Lee-Orlin GridGen | generated locally |
| Local regular grids | generated locally |
| GRIDGRAPH square/long/wide | generated locally |
| RMFGEN | generated locally |
| Time-expanded networks | generated locally |
| Kovacs ROAD | downloaded |
| Kovacs VISION | downloaded |
| DIMACS9 road conversions | download topology, then convert |
| Network Repository road conversions | download topology, then convert |
| Bonn Legalization | downloaded; optional size-controlled slicing |
| Bonn TCT | downloaded; normalization required |
catalog/families.json is authoritative. profiles/core.json is the exact
default scope. Candidate and excluded families remain recorded so that their
absence is an explicit decision rather than an accident.
Python 3.10+ and CMake 3.18+ are sufficient. The management CLI uses only the Python standard library.
./mcfbench validate
./mcfbench list --status active
./mcfbench plan
./mcfbench download --all-core --dry-run
./mcfbench buildOn Windows, use mcfbench.cmd or py -3 tools\mcfbench.py.
Large data is stored below data/, which is ignored by Git.
Download one family or source:
./mcfbench download road-kovacs
./mcfbench download vision-kovacs
./mcfbench download bonn
./mcfbench download road-dimacs9
./mcfbench download road-networkrepositoryDownload everything needed by the core profile:
./mcfbench download --all-core
./mcfbench verify --all-core --checksumsThe downloader:
- uses the source registry in
catalog/sources.json; - writes through
.partfiles and atomically replaces completed downloads; - verifies SHA-256 where a known local reference hash is available;
- tries documented mirrors in order; and
- never writes downloaded data into Git-tracked directories.
Kovacs links are historically unstable. The CLI uses the URLs published by the LEMON benchmark page and reports each failed mirror clearly. The registry retains the primary page so a replacement mirror can be reviewed without changing the family decision.
Historical DIMACS GTE/BCJL is a candidate rather than part of the core:
./mcfbench download dimacs-historical./mcfbench buildThe resulting native executables are written below build/bin/:
netgen: project-local feasible NETGEN variants and regular grids;classic_netgen: classical CommaLAB NETGEN;goto: Goldberg's Grid-On-Torus generator;gridgen: Lee-Orlin GridGen;rmfgen: layered RMFGEN;gridgraph: Resende GRIDGRAPH, when a Fortran compiler is available.
Python generators and transformations need no build:
generators/time_expanded/time_expanded_mcf.pygenerators/road/road_to_mcf.pygenerators/road/networkrepository_road_to_mcf.pygenerators/bonn/make_bonn_legalization_slices.pygenerators/transforms/normalize_dimacs_min.pygenerators/transforms/force_dimacs_terminal_demand.py
The exact Kovacs generator parameter files are retained in recipes/kovacs/.
Complete, copyable commands for every included generator and converter are in
GENERATOR_USAGE.md.
Local NETGEN-8 and NETGEN-SR:
build/bin/netgen --family netgen_8 --nodes 100000 --arcs 800000 \
--seed 1 --out data/generated/netgen8.min
build/bin/netgen --family netgen_sr --nodes 100000 --arcs 200000 \
--seed 1 --out data/generated/netgen-sr.minRegular grid:
build/bin/netgen --family gridgen --rows 1000 --cols 1000 \
--seed 1 --out data/generated/grid-1000x1000.minGOTO:
printf '100000 800000 1000 10000 1\n' |
build/bin/goto > data/generated/goto8.minTime-expanded network:
python3 generators/time_expanded/time_expanded_mcf.py \
--rows 50 --cols 100 --horizon 120 --seed 1 \
--out data/generated/time-expanded.minDownloaded DIMACS9 road graph to MCF:
python3 generators/road/road_to_mcf.py \
--input data/dimacs9-road/USA-road-t.NY.gr.gz \
--out data/generated/road-ny.min --seed 1 --flow-density 0.02Network Repository road conversion:
python3 generators/road/networkrepository_road_to_mcf.py \
--input data/networkrepository-road/road-roadNet-CA.zip \
--out data/generated/road-ca.min --seed 1 \
--demand-mode cut_saturating --cut-saturation 0.95 \
--cut-backup-hubUse --help on the Python generators for all available controls. The legacy
native generators describe their input formats in the adjacent README files
and the Kovacs recipes.
Do not edit this README as the primary way to change scope. Change
catalog/families.json and profiles/core.json in the same review, then run:
./mcfbench validate
python3 -m unittest discover -s testsThe review criteria and explicit exclusions are documented in DECISIONS.md.
Licensing and provenance notes are in LICENSES.md.