Our last three posts told how we built Energyplan, why planning a home's energy is hard and how we ship a planner you can trust. We wrote them for engineers. These four films are for everyone else.
Energyplan is Sourceful's energy planner. Every quarter hour it decides when a home charges its car and its battery, so the home buys electricity when it is cheap. That sounds simple. The films show why it is not, and what it takes to do it well.
Each film runs about three minutes, with narration and English subtitles. All four follow the same real home in southern Sweden on the same Sunday in November, and use that home's own data. Where a film uses made-up numbers, it says so on screen. Watch them in order, or start with part 2 for the overview.
Part 1: What is a plan?
A plan is a timetable: for every quarter hour, how hard to charge the car and the battery. The film builds one rule at a time, each with an everyday picture. Kilowatts and kilowatt-hours as a tap and a bucket. A price that changes every quarter hour. A battery that wants the same cheap quarter hours as the car. A house that can draw 13.8 kW at once, and no more.
Add a charger with only eleven settings, a fee some grid companies charge for the month's highest hours, three wires with a fuse each and a forecast that is only a guess. Then count: with eleven choices every quarter hour until midnight tomorrow, one car has about 10¹³⁰ possible timetables.
Part 2: Plan Again
The overview. On a Raspberry Pi 4 in the home, Energyplan made tonight's plan for the car in 1.43 seconds, and showed that no timetable is more than 0.1 % cheaper.
Then the day changes. The house uses more than the guess, the sun comes out, tomorrow's prices arrive. So the home follows each plan for fifteen minutes and then plans again: 117 times that Sunday.
That is why speed matters. FTW keeps its own standard planner, a classic method, and runs it beside Energyplan to compare. In a month, both planners made the same 124 car plans on the same Pi. The classic method ran out of its ten seconds with no plan 94 times. Energyplan made all 124, in about 1.3 seconds.
Part 3: The forecast
Every plan rests on a guess: how much sun the panels will catch, and how much the house will use. On this morning the forecast said cloud, so for half past nine the plan counted on just over half a kilowatt of sun. At 09:32 the clouds broke, and within minutes the panels gave 4.1 kW.
FTW, Sourceful's software in the home, keeps a running tally of such misses. Seven minutes after the clouds broke it asked for a new plan. The new plan filled the battery from the roof by noon and bought nothing from the grid.
A guess at the house misses by about half of what it uses, an hour ahead as much as a day ahead. So FTW does not wait for a better guess. It plans again from what is true now, about twenty times a day on top of the plan every quarter hour.
Part 4: The search
No computer can try 10¹³⁰ timetables. With made-up numbers, this film sketches the textbook idea of how a planner finds a good one anyway. Rule out whole groups of timetables at once. Pretend the charger has no steps, to get a quick floor under the cost. Keep two numbers, the cheapest plan found and the least any plan could cost, and watch them close in. The gap between them is the proof.
For tonight's plan the gap was a tenth of a percent: ten öre on every hundred kronor. The battery on its own has no steps, so there Energyplan finds the exact cheapest plan every time, typically in about two thousandths of a second on the same Pi. That is more than 300 times quicker than a classic textbook method.
Read more
The three posts behind the films go deeper:
- How we built Energyplan: the story, from research in 2017 to 0.7.0 "ROBUST".
- Why planning a home's energy is hard, and how we measure it: six hard parts, and our tests against HiGHS, SCIP and real homes.
- How we ship a planner you can trust: the rules for every release, and the AI agents that work under them.
Energyplan is Sourceful's proprietary planner. It ships with FTW, whose Core, clients and drivers are open code under AGPLv3. Energyplan itself has its own licence: free for your own private household with FTW, and under a written Sourceful licence for commercial use or for bundling with other products. Talk to us if you want it in yours.
