Demand
distance
instance-attribute
Market distance.
This is a pass-through attribute of the market object.
identifier
instance-attribute
The unique identifier of this demand, in the form of "orig~dest@segment".
__init__
__init__(
orig: str | None = None,
dest: str | None = None,
segment: str = "",
base_demand: float = 0,
scenario_demand: float = 0,
market: Market | None = None,
)
add_choice_model
add_choice_model(choicemodel: ChoiceModel)
Add a choice model to this market segment
add_group_sizes
Group sizes is an array of proportions, i.e [0.5, 0.4, 0.1] has 40% of bookings with 2 passengers
get_carrier_revenue
Get revenue for the specified carrier code