mamut_routing_tools.bks_campaign.archive¶
The run archive: one JSON record per run, written atomically, the unit of resumption.
Layout under campaign.out::
runs/<key>.json one record per finished run (winner or not), schema_version 2
raw/<key>/ the solver's log and solution file (external solvers)
baseline.csv the stored BKS before the campaign (``baseline``)
ledger.csv one row per run (``report``)
cross-solver.csv per instance: best per kind, gaps, seed spread (``report``)
harvest.json what the last single-writer harvest did
harvests/NNNN-<time>.json every harvest, numbered (the ledger's bks_action reads them all)
run.DONE summary of the last ``run`` invocation
A run is done when its record exists; an interrupted run leaves no record and
is picked up by the next run. The run key is
<instance_id>__<objective>__<kind>__seed<S>__t<T>: the budget is part of it,
so changing time_scale schedules new runs instead of mixing budgets.
group_runs
¶
The records of one instance and objective, read without scanning the whole archive.
Run keys start with <instance_id>__<objective>__, so the files are found by name; the
records' own fields then decide (two ids can sanitise to the same key prefix).