tuning BA81
Some checks failed
CI and deploy / migration-check (push) Failing after 13s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-26 20:12:28 +02:00
parent 4875c31338
commit 5f96a4cf01
5 changed files with 37 additions and 2 deletions

View File

@@ -130,6 +130,13 @@ begin
raise exception 'No site_grid_connection for site_id=%', p_site_id;
end if;
-- LP tuning (battery-level): terminal SoC shadow price factor
v_b := jsonb_set(
v_b,
'{planner_terminal_soc_value_factor}',
to_jsonb(coalesce((v_b->>'planner_terminal_soc_value_factor')::numeric, 0.9))
);
select coalesce(
jsonb_agg(
jsonb_build_object(