fix solar sell pri male zaporne cene
This commit is contained in:
13
db/migration/V074__site_grid_block_export_negative_sell.sql
Normal file
13
db/migration/V074__site_grid_block_export_negative_sell.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Tvrdý zákaz grid exportu při záporné efektivní prodejní ceně v LP (odděleně od GEN cut-off přepínače na invertoru).
|
||||
|
||||
alter table ems.site_grid_connection
|
||||
add column if not exists block_export_on_negative_sell boolean not null default false;
|
||||
|
||||
comment on column ems.site_grid_connection.block_export_on_negative_sell is
|
||||
'LP (solve_dispatch): při effective sell < 0 vynutit ge[t]=0. Nezávislé na deye_gen_microinverter_cutoff_enabled. Zapínat jen u lokalit bez nutnosti vést přebytek neriťitelného PV pole B do sítě (jinak hrozí infeasible); př. KV1 vs home-01.';
|
||||
|
||||
update ems.site_grid_connection sgc
|
||||
set block_export_on_negative_sell = true
|
||||
from ems.site s
|
||||
where sgc.site_id = s.id
|
||||
and s.code = 'KV1';
|
||||
Reference in New Issue
Block a user