LegDP¶
- class passengersim.rm.specialty_systems.leg_dp.LegDP[source]¶
Bases:
RmSysA Leg Dynamic Programming RM system.
Initialize the RM system.
- Parameters:
- carrier : str
The carrier code for which this RM system is configured.
- cfg : Config, optional
The top level configuration object for the simulation, which is also used to help initialize this system. For example, the collection of data collection points (DCPs) given as days prior to departure, is used for steps that have a frequency of “DCP” to identify which days to run.
- **kwargs
Additional keyword arguments to configure the RM actions in this system.
- Raises:
ValueError – If availability_control is not defined, or if no actions are defined, or if any provided keyword argument does not match any action’s configuration options.
Attributes
This RM system uses bid price availability controls.
List of RM actions (or action factories) to execute in this RM system.
-
availability_control : Literal['leg', 'cabin', 'bp', 'bp_loose', 'classless', None] =
'bp'¶ This RM system uses bid price availability controls.
-
actions : list[RmActionFactory | type[RmAction]] =
[<passengersim.rm._common.RmActionFactory object>, <passengersim.rm._common.RmActionFactory object>, <passengersim.rm._common.RmActionFactory object>]¶ List of RM actions (or action factories) to execute in this RM system.
Each item in this list should be either an RmActionFactory instance, or an RmAction subclass. If an RmAction subclass is provided, its configure() class method will be called to create an RmActionFactory with no configurable parameters.
Subclasses of RmSys must set this class variable to a non-empty list of actions to be executed in order when this RM system runs.