mamut_routing_lib.solvers.pyvrp_adapter¶
PyVRP as a registry solver (pyvrp).
This module never imports PyVRP itself: the registry lists the solver (as
unavailable) when the [pyvrp] extra is missing, and solve imports
mamut_routing_lib.solvers.pyvrp lazily. It calls solve_instance through
that module's attribute so unittest.mock.patch targets keep working.
PyVRPSolver
¶
PyVRP's iterated local search: CVRP (MonoCost) and VRPTW (MonoCost, hierarchical).
availability
¶
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/pyvrp_adapter.py
supports
¶
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/pyvrp_adapter.py
solve
¶
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/pyvrp_adapter.py
method_result_to_solve_result
¶
Pass the PyVRP objective report and returned routes to the registry.