Skip to content

Load Factor Curves

LoadFactorCurve

Bases: Named

LF Curve specifies the load factor at which to close a booking class. This is designed to simulate a naive LCC that really doesn't have automated RM

Source code in passengersim/config/load_factor_curves.py
class LoadFactorCurve(Named, extra="forbid"):
    """
    LF Curve specifies the load factor at which to close a booking class.
    This is designed to simulate a naive LCC that really doesn't have automated RM
    """

    algorithm: str
    min_accordion: float
    max_accordion: float
    target_load_factor: float
    convergence_constant: float
    curve: dict[str, float]
    """Define a Load Factor curve.

    Example
    -------
    ```{yaml}
    - name: lf_curve_1
      curve:
        Y0: 1.0
        Y1: 0.85
        Y2: 0.75
    ```
    """

algorithm instance-attribute

algorithm: str

convergence_constant instance-attribute

convergence_constant: float

curve instance-attribute

curve: dict[str, float]

Define a Load Factor curve.

Example
- name: lf_curve_1
  curve:
    Y0: 1.0
    Y1: 0.85
    Y2: 0.75

max_accordion instance-attribute

max_accordion: float

min_accordion instance-attribute

min_accordion: float

target_load_factor instance-attribute

target_load_factor: float