Background primer
How residential solar panels and battery systems work, and why optimizing them is hard.
Fundamentals
Solar panels convert sunlight into electricity through the photovoltaic effect.
Photons strike silicon cells.
The energy knocks electrons loose.
The moving electrons create current.
An inverter converts it to usable AC.
The catch
Storage
Panels generate the most power at noon, but a home often needs the most electricity at 7 PM, the timing mismatch problem. A battery is essentially a water tank for electricity: solar fills it, the home drains it, and you choose when to do each. The key specs:
The hard part
Every 15 minutes, the system decides whether to use, store, sell, or buy power. The factors stack up fast.
Peak (5–9 PM) $0.30–0.40/kWh, off-peak (11 PM–6 AM) $0.10–0.15/kWh, solar hours sometimes negative.
Will tomorrow be sunny or cloudy?
When will the household actually use power?
Can't charge/discharge too fast or exceed capacity.
Every time you store energy, you lose some.
Total possible schedules
Over 10¹⁰
(10 billion) combinations for a single day
Now you know the basics