mamut_routing_tools.generation.vrptw¶
VRPTW derivation from generated CVRP instances (port of the workbench route_centered / reachable_interval time-window synthesis).
stable_seed
¶
Deterministic cross-run seed from arbitrary parts (replaces Julia's
hash(tuple); values differ from Julia by design, determinism within
Python is the contract).
Source code in MAMUT-routing-tools/src/mamut_routing_tools/generation/vrptw.py
derive_vrptw_from_cvrp
¶
derive_vrptw_from_cvrp(
folder: str | Path,
base: str,
*,
tw_method: str = DEFAULT_TW_METHOD,
horizon_start: int = HORIZON_START,
horizon_end: int = HORIZON_END,
place_slug: str = "",
source_seed: int = 0,
) -> dict[str, Any]
Derive the fastest-metric VRPTW twin next to a generated CVRP base.
Reads <base>_fastest.vrp, synthesizes service times + time windows on
the fastest travel times, and writes <base>_fastest.cvrptw.vrp plus a
<base>_vrptw_manifest.json describing the derivation.