tune oversell before negative buy slots
Some checks failed
CI and deploy / migration-check (push) Failing after 15s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-04-26 01:54:24 +02:00
parent c6ca68b263
commit 40b2ff2ff9
2 changed files with 83 additions and 0 deletions

View File

@@ -613,6 +613,11 @@ def solve_dispatch(
+ heat_pump.rated_heating_power_w
)
# Záporný prodej (sell < 0): nevybíjet baterii do sítě pro arbitráž.
# Export v tomto okně může vzniknout jen z přebytku FVE (pv_a/pv_b), ne z bd.
if s.sell_price < 0:
prob += w_arb[t] == 0
soc_prev_expr = current_soc_wh if t == 0 else soc[t - 1]
arb_t = arb_floor_series[t]
soc_low_t = soc_panel_min[t]