TradingEnv๏ƒ

TradingEnv: day-ahead bidding on top of the rolling-origin loop.

The action gains a "bid" column (MWh per settlement period, committed to the day-ahead market at the origin). Settlement follows HEFTCom24โ€™s rules: each period earns

bid ร— DA_price + (actual โˆ’ bid) ร— SS_price โˆ’ 0.07ยท(actual โˆ’ bid)ยฒ

so imbalances settle at the system price plus a quadratic penalty (verified against the official per-period revenues in the competition archive). Reward is the (positive) revenue, credited only once both the generation actuals and the prices are knowable โ€” you find out how a trade went when the settlement data lands, exactly as in reality.

class emflow.envs.trading.TradingEnv(*args, prices_field: str = 'prices', da_column: str = 'da_price', ss_column: str = 'ss_price', **kwargs)[source]๏ƒ

Bases: ForecastEnv

ForecastEnv + market settlement.

Extra parameters: prices_field (an actual field with day-ahead and system-price columns) and the two column names.