Skip to content

Demand

base_demand instance-attribute

base_demand: float

business instance-attribute

business: bool

dest instance-attribute

dest: str

distance instance-attribute

distance: float

fares instance-attribute

fares: Iterator[Fare]

generated_demand instance-attribute

generated_demand: float

gt_demand instance-attribute

gt_demand: float

gt_eliminated_chose_nothing instance-attribute

gt_eliminated_chose_nothing: int

gt_eliminated_no_offers instance-attribute

gt_eliminated_no_offers: int

gt_eliminated_wtp instance-attribute

gt_eliminated_wtp: int

gt_revenue instance-attribute

gt_revenue: float

gt_sold instance-attribute

gt_sold: int

orig instance-attribute

orig: str

price instance-attribute

price: float

reference_fare instance-attribute

reference_fare: float

revenue instance-attribute

revenue: float

scenario_demand instance-attribute

scenario_demand: float

segment instance-attribute

segment: str

sold instance-attribute

sold: int

unsold instance-attribute

unsold: int

__init__

__init__(
    orig: str,
    dest: str,
    segment: str = None,
    base_demand: float = 0,
    scenario_demand: float = 0,
)

add_choice_model

add_choice_model(choicemodel: ChoiceModel)

Add a choice model to this market segment

add_curve

add_curve(curve: BookingCurve)

Add a booking curve to this market segment

add_fare

add_fare(fare: Fare)

Add a fare to this market segment

add_group_sizes

add_group_sizes(group_sizes: list[float])

Group sizes is an array, with proportion for each, i.e [0.5, 0.4, 0.1] has 40% of bookings with 2 passengers

add_path

add_path(path: Path)

Add an itinerary path to this market segment

get_airline_revenue

get_airline_revenue(airline_code: str)

Get revenue for the specified airline code

get_airline_sold

get_airline_sold(airline_code: str)

Get sold for the specified airline code

get_demand_dcp

get_demand_dcp(dcp: int)

Get demand for the specified DCP