Choice Models
ChoiceModel
module-attribute
ChoiceModel = Annotated[
PodsChoiceModel | LogitChoiceModel,
Field(discriminator="kind"),
]
Two types of choice models are available in PassengerSim.
Use the kind
key to select which kind of choice model you wish to parameterize.
CommonChoiceModel
Bases: Named
A common base class for choice models.
Defines restrictions and other parameters that are common to all choice models.
Source code in passengersim/config/choice_model.py
LogitChoiceModel
Bases: CommonChoiceModel
Source code in passengersim/config/choice_model.py
emult
class-attribute
instance-attribute
Using for WTP, a bit of a quick and dirty until we have a better approach
intercept
class-attribute
instance-attribute
This is the alternative specific constant for the no-purchase alternative.
price
class-attribute
instance-attribute
This is the parameter for the price of each alternative.
tod_sin2p
class-attribute
instance-attribute
Schedule parameter.
If \(t\) is departure time (in minutes after midnight local time) divided by 1440, this parameter is multiplied by \(sin( 2 \pi t)\) and the result is added to the utility of the particular alternative.
tod_sin4p
class-attribute
instance-attribute
Schedule parameter.
If \(t\) is departure time (in minutes after midnight local time) divided by 1440, this parameter is multiplied by \(sin( 4 \pi t)\) and the result is added to the utility of the particular alternative.
PodsChoiceModel
Bases: CommonChoiceModel
Source code in passengersim/config/choice_model.py
airline_pref_seat_share
class-attribute
instance-attribute
airline_pref_seat_share: TwoFloats = None