dalsi pokus o fix nevyliti baterky pred zapornou cenou
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user