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 SimulationTables
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.
PosixPath('saved-output/simple-sim.20250221-122545.pkl.lz4')
from passengersim import SimulationTables
summary = SimulationTables.from_pickle("saved-output/simple-sim")
summary.fig_carrier_revenues()
Mileage¶
SimulationTables.fig_carrier_mileage
Display the available seat miles (ASM) and average revenue passenger miles (RPM) by carrier.
summary.fig_carrier_mileage()
Load Factors¶
SimulationTables.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.
summary.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.
summary.fig_carrier_load_factors(load_measure="avg_leg_lf")
Load Factor Distributions¶
SimulationTables.fig_leg_load_factor_distribution
Display the distribution of leg load factors. This can be done
for all carriers individually (by_carrier=True
, or omitted as
this is the default), or across carriers in aggregate
(by_carrier=False
), for a specific carrier (by_carrier='AL1'
).
summary.fig_leg_load_factor_distribution()
Local Passenger Percentages¶
Display the percentage of local passengers by carrier. By default, this
is the percentage of bookings that are local (i.e. flying on only a single
leg). Alternatively, this method accepts a load_measure
argument that
can be set to 'leg_pax', which will report the percentage of leg passengers
who are local -- the numerator of this ratio is the same, but the denominator
is larger (assuming there are any connecting passengers in the network).
summary.fig_carrier_local_share()
summary.fig_carrier_local_share("leg_pax")
Yields¶
SimulationTables.fig_carrier_yields
Display the average yield (revenue per passenger mile) by carrier.
summary.fig_carrier_yields()
summary.fig_fare_class_mix()
Contrasting Multiple Runs¶
Similar figures are available contrasting the results of multiple runs, by
bundling multiple
SimulationTables
objects in a
Contrast
instance.
from passengersim.contrast import Contrast
comps = Contrast(
Simple=summary,
Untruncated=SimulationTables.from_pickle("saved-output/untruncated-sim"),
)
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()