Files
ems/db/migration/V062__planner_terminal_soc_value_factor.sql
Dusan Vojacek 5f96a4cf01
Some checks failed
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped
tuning BA81
2026-04-26 20:12:28 +02:00

10 lines
513 B
SQL

alter table ems.asset_battery
add column if not exists planner_terminal_soc_value_factor numeric not null default 0.9;
comment on column ems.asset_battery.planner_terminal_soc_value_factor is
'Váha terminal SoC shadow price v LP solveru.
0 = solver nemá motivaci držet energii v baterii na konci horizontu (agresivnější arbitráž / vybití).
1 = odpovídá ~průměrné nákupní ceně (konzervativní držení energie).
Používá se v backend/services/planning_engine.py (terminal_soc_kcz_per_wh).';