mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-08-31 12:46:38 +00:00
feat(optimization): model battery LCOS and probabilistic bypass
This commit is contained in:
@@ -337,4 +337,9 @@ def test_quarter_hour_discharge_calls_share_one_power_budget():
|
||||
|
||||
assert first_delivered == pytest.approx(200.0)
|
||||
assert second_delivered == pytest.approx(50.0)
|
||||
assert battery.discharged_energy_wh(0) == pytest.approx(250.0)
|
||||
assert battery.soc_wh == pytest.approx(9_750.0)
|
||||
|
||||
battery.reset()
|
||||
|
||||
assert battery.discharged_energy_wh(0) == 0.0
|
||||
|
||||
Reference in New Issue
Block a user