mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-11-25 15:06:20 +01:00
fix(genetic): plan the running slot only for the remaining time
A run within a slot (e.g. 10:45 with hourly slots) planned slot 0 as a full slot, although the SoC is measured at the run time. Slot 0 now moves only the remaining part of the slot energy: battery, EV and inverter energy caps, SoC power limit tables and the slot's PV and load forecast are scaled by first_slot_fraction; efficiency curves are read at the power of that part. The plan's SoC headroom clamp of the AC charge factor uses the same part, and the GENETIC result reports first_slot_fraction. A run on a slot boundary is unchanged. Additional changes Pin GENETIC test start times to the full hour; their results now depend on seconds within the slot Document first_slot_fraction for consumers of GENETIC results Refs: #1543 Signed-off-by: SchaafAlexander <86607129+SchaafAlexander@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
committed by
Bobby Noelte
co-authored by
Claude Opus 5.5
parent
7e10f64048
commit
0bf9f50b97
@@ -91,6 +91,11 @@ time, charging power and supported charge rates.
|
||||
|
||||
- Runtime forecast arrays start at local midnight and use the configured slot interval.
|
||||
Energy is **Wh per slot**, not W or kWh. A constant 1,000 W load uses 250 Wh in 15 minutes.
|
||||
- A run within a slot plans the first slot only for the time left in it, given as
|
||||
`first_slot_fraction` in the GENETIC result (0.25 for a run at 10:45 with hourly
|
||||
slots). The energies, costs and SoC change of that slot cover only that part, and its
|
||||
charge/discharge factors are the power for the remaining time. A run on a slot
|
||||
boundary plans a full first slot (`first_slot_fraction` 1.0).
|
||||
- Runtime purchase and sale prices are **currency per Wh**: 0.30 EUR/kWh is 0.00030 EUR/Wh.
|
||||
Provider power forecasts are converted by EOS; do not convert them a second time.
|
||||
- Read returned timestamps and interval information instead of assuming 24 hourly values
|
||||
|
||||
Reference in New Issue
Block a user