dalsi pokus o fix nevyliti baterky pred zapornou cenou
Some checks failed
CI and deploy / migration-check (push) Failing after 17s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-23 20:20:10 +02:00
parent 1ec92bdf79
commit da52cf168b
4 changed files with 78 additions and 34 deletions

View File

@@ -786,12 +786,12 @@ class PlanningDispatchMilpTests(unittest.TestCase):
tuv_delta_stats=None,
operating_mode="AUTO",
)
first_neg = 2
pre_neg_soc = [results[i].battery_soc_target for i in range(first_neg)]
self.assertLessEqual(
min(pre_neg_soc),
6.0,
msg="anchor at morning peak should drive SoC near planner floor before first negative sell",
peak_t = _pre_neg_peak_sell_idx(slots, 2)
self.assertIsNotNone(peak_t)
self.assertLess(
results[peak_t].grid_setpoint_w,
-500,
msg="ranní peak: export baterie/FVE před sell<0",
)
def test_anchor_uses_planner_floor_even_without_extreme_buy(self) -> None: