PassengerSim

Below are a handful of top-level functions from the PassengerSim API. For most operations, please refer to the API reference for the individual sub-modules.

Modules

passengersim.callbacks

Callback hooks triggered at key points during a simulation.

passengersim.config

Configuration classes for PassengerSim simulations.

passengersim.connection_builder

Tools for building itinerary connections between flight legs.

passengersim.contrast

Compare results across multiple PassengerSim simulations.

passengersim.core

Low-level interface to the PassengerSim C++ simulation engine.

passengersim.database

Database interface for persisting and querying simulation results.

passengersim.driver

Main simulation driver for PassengerSim.

passengersim.experiments

Run structured sets of PassengerSim simulations as experiments.

passengersim.rm

Revenue management systems and algorithms for PassengerSim.

passengersim.summaries

This subpackage is for defining the SimulationTables class and its items.

passengersim.tracers

Tracers for recording detailed simulation data.

passengersim.transforms

This module provides various transformations for PassengerSim configurations.

Functions

passengersim.demo_network(name: str) Path[source]
passengersim.demo_output(name: str) Path[source]
passengersim.info()[source]
passengersim.from_file(path: str | Path | PathLike[str]) Config[source]

Load a PassengerSim file.

The type of file is determined by the extension. The following file types are supported:

  • .pxsim: SimulationTables

  • .yaml, .yml, or either also with .gz or .lz4: Config

Parameters:
path : str

Path to the file to load. The file type is determined by the extension.