dal load first
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-05-21 17:58:52 +02:00
parent d9ecc70980
commit fff7fdb7c4
2 changed files with 2 additions and 1 deletions

View File

@@ -1034,6 +1034,7 @@ def solve_dispatch(
# Vybíjení do domu až po pv_ld (Deye load-first); v exportních slotech smí bd→síť.
if t not in discharge_export_slots:
prob += bd[t] <= load_site_expr - pv_ld[t]
prob += pv_ld[t] >= load_site_expr - gi[t] - bd[t]
# Plná bilance (pv_ld+pv_sp rozpad je ortogonální k tokům přebytku).
prob += (
pv_a_net + pv_b_effective + gi[t] + bd[t]