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.
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.
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