5. Export to CVRPLIB .vrp¶
Solvers that read the classic TSPLIB-derived CVRPLIB text instead of .vrp.json get a byte-identical export from
the CLI, the workbench and the website.
uv run mamut-routing export vrp benchmarks/Sintef2008/VRPTW/n=25/C101.vrp.json # writes C101.vrp next to it
uv run mamut-routing --benchmarks-dir benchmarks export vrp \
--problem-type VRPTW --benchmark-name Sintef2008 --output-dir ./vrp-out # a whole family, mirrored
Defaults and options:
EDGE_WEIGHT_TYPE : EXPLICITwith the full matrix, so the solver sees exactly the published costs; VRPTW files useTYPE : CVRPTWwith time-window and service-time sections (the dialect VRPLIB and PyVRP read).--edge-weight-type EUC_2Ddrops the matrix; readers then computenint(hypot), which is not the published cost, so BKS values do not transfer.--format solomonwrites the Solomon.txtdialect for VRPTW instead of.vrp. Both are refused unless the coordinates define the costs (Sintef2008 and the euclidean collections: Dimacs2021's integer costs aretrunc(10 × hypot), so onlyEXPLICITdescribes them).- Time-dependent instances have no static matrix and are refused.
The full contract is on the CVRPLIB export page. On the website, the
.vrp ↓ chip of any static instance does the same in the browser.
Next: Tour the tools, to generate, solve and view an instance of your own with mamut-tools.