site_solutions.SolutionComparator
site_solutions.SolutionComparator(
solution_set_a,
solution_set_b,
labels=('Set A', 'Set B'),
)Tools to compare two SiteSolutionSet objects.
Methods
| Name | Description |
|---|---|
| compare_top_results | Compares the top N solutions from both sets. |
| get_metric_summary | Returns a comparison of descriptive statistics for a specific objective. |
| compare_site_allocation | Compare site_allocation_summary() between set_a and set_b, |
| site_reallocation_matrix | Cross-tabulate each demand location’s closest site under set_a |
| population_impact_summary | How many people’s journey actually changed between set_a and |
| population_impact_phrase | Stakeholder-facing sentence summarising population_impact_summary(), |
| population_impact_worst_affected | The n demand locations hit hardest by the change between set_a |
| population_impact_by_equity_group | population_impact_summary(), split by equity band – e.g. “of the |
| decision_summary | A single stakeholder-facing summary bundling everything a decision- |
| find_balanced_solution | Finds the most similar top solutions from each set to approximate |
| site_overlap | Analyzes how many sites are common between the top N solutions |
| plot_comparison | Plot solutions from both solution sets side-by-side. |
| plot_site_reallocation_matrix | Heatmap of site_reallocation_matrix(): rows = set_a’s selected |
| plot_population_impact_summary | Two-panel bar chart pairing population_impact_summary()’s |
| plot_population_impact_histogram | Overlaid before/after distribution of per-region travel cost – |
| plot_population_impact_map | Map version of population_impact_worst_affected() – |
| plot_population_impact_by_equity_group | Bar chart of population_impact_by_equity_group()’s rate- |