Skip to content

Bucket

alloc instance-attribute

alloc: float

fcst_mean instance-attribute

fcst_mean: float

fcst_revenue instance-attribute

fcst_revenue: float

fcst_std_dev instance-attribute

fcst_std_dev: float

force_closed instance-attribute

force_closed: bool

forecast instance-attribute

forecast: Forecast

gt_revenue instance-attribute

gt_revenue: float

gt_sold instance-attribute

gt_sold: int

name instance-attribute

name: str

price instance-attribute

price: float

protection instance-attribute

protection: int

revenue instance-attribute

revenue: float

sold instance-attribute

sold: int

untruncated_demand instance-attribute

untruncated_demand: float

__init__

__init__(
    name: str,
    alloc: float = 0,
    price: float = 0,
    sold: float = 0,
    revenue: float = 0,
    fcst_mean: float = 0,
    fcst_std_dev: float = 0,
    *,
    history: History | dict | None = None,
)

capture_history

capture_history(dcp_index: int)

get_history_closed

get_history_closed(period: int, dcp_index: int) -> float

get_history_demand

get_history_demand(period: int, dcp_index: int) -> float

get_history_num_dcp

get_history_num_dcp() -> int

get_history_num_dep

get_history_num_dep() -> int

get_history_sold

get_history_sold(period: int, dcp_index: int) -> float

push_history

push_history()

set_history_demand

set_history_demand(dcp_index: int, demand: float)