mamut_routing_tools.bks_campaign.spec¶
BKS campaign specification (TOML, validated with pydantic).
.. code-block:: toml
[campaign]
name = "mamut2026-bks-4"
out = "runs/mamut2026-bks-4" # relative to this file; never inside a benchmark collection
authors = "Jane Doe (jdoe)" # credited in every BKS the harvest writes
# solvers_config = "solvers.toml" # default: the user's solvers config
[select]
benchmarks_dir = "../benchmarks"
problem_types = ["CVRP"]
families = ["Mamut2026"]
metrics = ["euclidean"]
min_n = 700
# max_n, name_regex, instance_ids
# [select.objective] # per problem type; default: the family's published objective
# VRPTW = "HierarchicalVehicleCost"
[budget] # T(n) = clamp(per_customer_s * n, min_s, max_s) * time_scale
per_customer_s = 21.6
min_s = 7200
max_s = 86400
# fixed_s = 600 # instead of per_customer_s
time_scale = 1.0
[[runs]]
solver = "filo2"
seeds = "1-5"
[[runs]]
solver = "pyvrp"
kind = "pyvrp-polish"
seeds = "3000-3003"
budget_factor = 1.5
warm_start = "best" # from the best archived run or the stored BKS, looked up
# when the run starts: after the other runs of its instance
[resources]
workers = 90
memory_gb = "auto" # 80 % of MemAvailable, or a number
nice = 5
BudgetSpec
¶
Bases: _Strict
seconds
¶
The wall-clock budget for an instance with num_customers customers.
Source code in MAMUT-routing-tools/src/mamut_routing_tools/bks_campaign/spec.py
parse_seeds
¶
"1-5,7" -> [1, 2, 3, 4, 5, 7]; a list or an int passes through.
Source code in MAMUT-routing-tools/src/mamut_routing_tools/bks_campaign/spec.py
load_spec
¶
Read and validate a campaign spec; paths become absolute, out is refused inside a collection.