Optimization
Plan generation, grid and demand together and stop paying for lost power.
We think generation, grids and demand should be planned in one model. A utility should know where its power is lost before it decides what to build. World Bank data show that about 7% of the world's electricity output was lost in transmission and distribution in 2023, and close to 19% in low-income countries. Energy intensity, the main global indicator of energy efficiency, improved 1.5% worldwide in 2023, against about 4.2% a year now needed to meet the UN target for 2030.
How can AI help plan an electricity grid?
AI helps only when it works on a tested model of the whole power system. extendfuture would build that model from open grid data, weather records and demand history, then use open-source tools such as PyPSA to find the mix of generation, storage and grid upgrades that meets demand at the lowest cost. AI agents, software that sets up model runs and drafts summaries, compare the scenarios. Engineers check every result, and officials and utility boards decide what gets built.
Plan every piece of the system together
A plan can only find the least cost if every piece of the system is in the model. Generation, transmission, distribution and demand are often planned by different bodies on different cycles. The result can be a solar farm waiting for a grid connection, or a district whose old cables lose more power than they should. The UN's 2026 SDG report says renewables supplied over 30% of global electricity consumption in 2023, and wind and solar output moves with the weather, which makes planning each piece alone harder. World Bank authors in the same report call least-cost electrification planning essential for using scarce public resources well.
Start from open data, then add the utility's records
A first model can start from open data and cover plants, storage, lines and hourly demand by area.
- Power lines and substations mapped in OpenStreetMap, which PyPSA-Earth uses to build the grid topology, meaning the map of how lines connect
- Weather data turned into hourly wind and solar output with atlite
- Plant capacity and demand statistics published by national statistics offices and regulators
- Meter, outage and loss records from the utility, added in a second stage
- Electrification and building plans from the city or ministry, used to forecast new demand
Match today's grid before planning tomorrow's
We would build the network and run a power flow, the standard calculation of how current moves through the lines, to check that the model matches the flows and voltages the utility measures. Then we would replay a past year hour by hour. Where the model's flows or losses differ from recorded values, we fix the data or state the gap. Only then would the optimization search for the cheapest plan that meets demand and reliability limits. Each plan is rerun under several weather years, so planners see which choices hold up.
Let every investment compete on the same terms
Cutting losses or moving demand should compete with new plants and lines on cost and power saved. A ministry, regulator or utility would get evidence it can take to a board.
- A ranked list of investments with cost, losses avoided and emissions for each
- Lines and substations near their limits, and where efficiency programs or moving demand to other hours would delay an upgrade
- An estimate of where losses are physical, such as heat in old cables, and where they may come from theft or billing errors
- A plain-language summary of each scenario, checked by an engineer
- The full model and data, so the utility's engineers can rerun it
A lower average cost can still raise someone's bill
A tariff or investment that lowers average cost may still raise bills for one group, and the report shows when it does. The model works with demand totals by district or by feeder, the line that supplies a neighborhood. Household meter readings stay in the utility's systems. Every run is logged with its inputs and versions, and engineers and officials approve every decision.
Open tools let regulators check the plan
A grid plan that the public pays for should be open to regulators and the public. Each tool below is open source or open data.
- PyPSA, an open framework for simulating and optimizing power and energy systems, including investment planning and dispatch, the choice of which plants run each hour
- PyPSA-Earth, an open optimization model for energy system futures around the world, with data drawn from open sources
- pandapower, a network calculation program for the analysis and optimization of power systems
- atlite, which turns weather data into renewable power potentials and time series
- HiGHS, an MIT-licensed solver for large linear and mixed-integer optimization problems
- OpenStreetMap, for mapped power lines and substations
Can this work where grid data is limited?
Yes, as a first pass. PyPSA-Earth was built to study energy systems around the world with data drawn from open sources. A first model shows which data gaps change the answer, which tells the utility what to measure next.
Does it cover rooftop solar, batteries and electric vehicles?
Yes. They enter the model as supply and demand on the distribution network, with forecasts of how fast they may grow. The scenarios show where they relieve the grid and where they add load at peak hours.
Will the model operate the grid?
No. It is a planning tool and never sends commands to equipment or changes a tariff. Grid operators keep their own control systems.
How is this different from commercial planning software?
Commercial tools are mature and remain the right choice for many tasks. The open-source model can run beside them, test questions they were not set up for, and be shared with regulators and the public without license limits.
What about the cost to consumers?
Every scenario reports the cost per unit of electricity delivered and how that cost would split across customer groups.
Talk to the people who build.
One call. An honest read on what AI can do for this, and the number it has to beat.