mamut_routing_lib.td.checker¶
Time-dependent checking under the td-binary64-exact-v1 family profile.
TD_OBJECTIVES
module-attribute
¶
TDRouteEvaluation
¶
Bases: BaseModel
Exact duration and earliest minimizing departure of one feasible route.
TDSolutionCheckResult
¶
Bases: SolutionCheckResult
The checked solution and its route witnesses in canonical route order.
route_evaluations
class-attribute
instance-attribute
¶
compute_route_duration
¶
compute_route_duration(
instance: AnyTDBenchmarkInstance,
atfs: InstanceATFs,
route: list[int],
*,
backend: ExactBackend = "native",
) -> TDRouteEvaluation
Compute the minimum duration and earliest attaining departure of a single route.
Source code in MAMUT-routing-tools/MAMUT-routing-lib/src/mamut_routing_lib/td/checker.py
compute_solution_cost
¶
compute_solution_cost(
instance: AnyTDBenchmarkInstance,
atfs: InstanceATFs,
routes: list[list[int]],
objective_function: ObjectiveFunction | None = None,
*,
backend: ExactBackend = "native",
) -> Fraction
Price a complete TD solution under its family's default objective or the specified objective.
Source code in MAMUT-routing-tools/MAMUT-routing-lib/src/mamut_routing_lib/td/checker.py
check_td_solution
¶
check_td_solution(
loaded: LoadedTDInstance,
solution: BenchmarkSolution | BenchmarkBKS,
objective_function: ObjectiveFunction | None = None,
*,
backend: ExactBackend = "native",
) -> TDSolutionCheckResult
Check the loaded TD solution with its family objective and the selected exact backend.