posun dovybiti tesnep red zapornou cenu
This commit is contained in:
12
db/migration/V060__planner_discharge_relax_prewindow.sql
Normal file
12
db/migration/V060__planner_discharge_relax_prewindow.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Plánovač: zpoždění hluboké relaxace SoC až do okna před prvním extrémně záporným nákupem (15min sloty).
|
||||
|
||||
ALTER TABLE ems.asset_battery
|
||||
ADD COLUMN IF NOT EXISTS planner_discharge_relax_prewindow_slots integer;
|
||||
|
||||
COMMENT ON COLUMN ems.asset_battery.planner_discharge_relax_prewindow_slots IS
|
||||
'Počet 15min slotů před prvním buy <= planner_extreme_buy_threshold, ve kterých už platí hluboký planner floor; '
|
||||
'dál v čase drží LP spodek na rezervě (arb). NULL = 8 (2 h).';
|
||||
|
||||
UPDATE ems.asset_battery
|
||||
SET planner_discharge_relax_prewindow_slots = 8
|
||||
WHERE planner_discharge_relax_prewindow_slots IS NULL;
|
||||
@@ -41,6 +41,7 @@ begin
|
||||
)::numeric,
|
||||
'planner_extreme_buy_threshold_czk_kwh', coalesce(ab.planner_extreme_buy_threshold_czk_kwh, -5.0),
|
||||
'planner_discharge_floor_percent', ab.planner_discharge_floor_percent,
|
||||
'planner_discharge_relax_prewindow_slots', coalesce(ab.planner_discharge_relax_prewindow_slots, 8),
|
||||
'charge_efficiency', ab.charge_efficiency,
|
||||
'discharge_efficiency', ab.discharge_efficiency,
|
||||
'degradation_cost_czk_kwh', ab.degradation_cost_czk_kwh,
|
||||
|
||||
Reference in New Issue
Block a user