mamut_routing_lib.solvers.report¶
The solver's reported objective and its binary64 display in family cost units.
make_solver_report
¶
make_solver_report(
objective,
value,
*,
encoding,
unit=None,
routing_cost_component=None,
) -> dict
Build a report. The optional routing component uses the same unit as the objective.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/report.py
solver_cost_display
¶
Validate the report and round the comparable component times its unit once, ties to even.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/report.py
solver_report_metadata
¶
Return the optional JSON fields shared by run outputs and BKS metadata.
Source code in MAMUT-routing-lib/src/mamut_routing_lib/solvers/report.py
checked_solver_metadata
¶
Check a supplied display against the report. Legacy records without a report remain readable.