Path
accumulate_forecasts_vn
Adds the path fcst to each leg / bucket, using the Virtual Nesting mapping
adjust_forecasts
adjust_forecasts(
algorithm: str,
last_ts: int,
current_ts: int,
end_tf_ts: int,
departure_ts: int,
snapshot_instruction: "SnapshotInstruction | None" = None,
) -> None
Adjust the forecast for this path and any path-class items it has, using in daily reoptimization
allocate_q_demand
First step in Q-forecasting
check_avail
Is this fare available on the Path? Used for unit testing
compute_q_equivalent
compute_q_equivalent(
frat5: Frat5,
dcp_index: int,
max_cap: float = 10.0,
snapshot_instruction: "SnapshotInstruction | None" = None,
) -> float
First step in Q-forecasting
forecast
forecast(
dcp_index: int,
algorithm: str,
event_time: int,
snapshot_instruction: "SnapshotInstruction | None" = None,
) -> float
Run the forecast models for this path and any path-class items it has
get_class_decision_fare
Get the decision fare amount for a class, either by class name (string) or index (int)
get_class_fcst_mean
Get the demand forecast for a class, either by class name (string) or index (int)
get_class_sold
Get the number sold for a class, either by class name (string) or index (int)
get_class_std_dev
Get the demand forecast std. dev. for a class, either by class name (string) or index (int)
hybrid_forecast
hybrid_forecast(
dcp_index: int,
algorithm: str,
snapshot_instruction: "SnapshotInstruction | None",
frat5: Frat5,
max_cap: float = 10,
) -> float
Run the forecast models for this path and any path-class items it has
num_classes
Return the number of booking classes that are tracked for this Path
print_class_history
Print some historical data to stdout, mostly for debugging
set_class_decision_fare
Set the decision fare amount for a class, either by class name (string) or index (int)
set_class_fcst_mean
Set the demand forecast for a class, either by class name (string) or index (int)
set_class_sold
Set the number sold for a class, either by class name (string) or index (int)
set_class_std_dev
Set the demand forecast std. dev.for a class, either by class name (string) or index (int)