Carrier-level Summaries¶
This page provides an overview of the carrier-level summary visualizations available in PassengerSim.
One Simulation Run¶
The results from a simulation run are stored in a SummaryTables
instance, which
is returned from Simulation.run
or can be loaded from a stored database of results.
This object has a number of methods to generate visualizations for the results
of the simulation.
from passengersim import SummaryTables
summarytables = SummaryTables.from_sqlite("simple.sqlite", additional="*")
summarytables.fig_carrier_revenues()
Mileage¶
SummaryTables.fig_carrier_mileage
Display the available seat miles (ASM) and average revenue passenger miles (RPM) by carrier.
summarytables.fig_carrier_mileage()
Load Factors¶
SummaryTables.fig_carrier_load_factors
Display the average system load factors by carrier. The system load factor is calculated based on ASM and RPM figures for the carrier, which weights larger capacity vehicles and longer distance legs more heavily, to reflect their larger relative importance in evaluating carrier performance.
summarytables.fig_carrier_load_factors()
Alternatively, this function can also display the average leg load factor, which considers the fraction of capacity sold on each leg, and weights all legs uniformly.
summarytables.fig_carrier_load_factors(load_measure="avg_leg_lf")
Yields¶
SummaryTables.fig_carrier_yields
Display the average yield (revenue per passenger mile) by carrier.
summarytables.fig_carrier_yields()
summarytables.fig_fare_class_mix()
Contrasting Multiple Runs¶
Similar figures are available contrasting the results of multiple runs, by
bundling multiple
SummaryTables
objects in a
Contrast
instance.
from passengersim.contrast import Contrast
comps = Contrast(
Simple=summarytables,
Untruncated=SummaryTables.from_sqlite("untruncated.sqlite", additional="*")
)
comps.fig_carrier_revenues()
Load Factors¶
Contrast.fig_carrier_load_factors
.
Display the average system load factors by carrier. The system load factor is calculated based on ASM and RPM figures for the carrier, which weights larger capacity vehicles and longer distance legs more heavily, to reflect their larger relative importance in evaluating carrier performance.
comps.fig_carrier_load_factors()
comps.fig_carrier_load_factors(load_measure="avg_leg_lf")
Yields¶
Display the average yield (revenue per passenger mile) by carrier.
comps.fig_carrier_yields()
comps.fig_fare_class_mix()