Demands
Demand
Bases: BaseModel
Source code in passengersim/config/demands.py
choice_model
class-attribute
instance-attribute
The name of the choice model that is applied for this demand.
choice_model_
property
Choice model, falling back to segment name if not set explicitly.
curve
class-attribute
instance-attribute
The name of the booking curve that is applied for this demand.
Each demand is attached to a booking curve that describes the temporal distribution of customer arrivals.
dest
instance-attribute
Destination location for this demand.
This is commonly a three letter airport code, but it need not be limited to airports. It can be any location that is relevant to the simulation.
If using 'places' for locations, this should match the 'name' field of a Place object.
deterministic
class-attribute
instance-attribute
Whether the total amount of demand generated in each sample should be constant.
If this is true, there will be no variance in the total demand generated, Which will be equal to the base demand modified by any market multipliers. There still can be some randomness in the timeframe arrival distribution of this demand, but the total demand generated in each sample will be the same.
dwm_tolerance
class-attribute
instance-attribute
The Decision Window is the shortest elapsed time, plus the tolerance (random draw).
group_sizes
class-attribute
instance-attribute
Probability of each group size. i.e. [0.5, 0.3, 0.2] will give 50% one pax, 30% 2 pax, etc
orig
instance-attribute
Origin location for this demand.
This is commonly a three letter airport code, but it need not be limited to airports. It can be any location that is relevant to the simulation.
If using 'places' for locations, this should match the 'name' field of a Place object.
overrides
class-attribute
instance-attribute
overrides: list[DemandOverride] = []
Used for some specialized tests. Each dictionary should have 'carrier', 'discount_pct' and 'pref_adj'
prob_num_days
class-attribute
instance-attribute
Probability of durations. [0.1, 0.3, 0.4, 0.2] will have durations of 1, 2, 3, 4 days and probability of each is specified explicitly Using this for choice modeling and CP experiments
prob_saturday_night
class-attribute
instance-attribute
Probability that the customer has a R/T itinerary with a Saturday night stay. Using this for choice modeling and CP experiments
segment
instance-attribute
Customer segment that this demand belongs to.
For many applications, segments include 'business' and 'leisure', but they are not limited to these two categories.
todd_curve
class-attribute
instance-attribute
Time Of Day curve to be used in the choice model. These can vary by length of haul, day of week, E-W directionality, etc. If specified here, it will override the curve in the ChoiceModel
curve_integer_name
Booking curves can have integer names, treat as string.
DemandOverride
Bases: BaseModel
Source code in passengersim/config/demands.py
discount_pct
class-attribute
instance-attribute
Discount percentage to apply for this override.