As power generation from sources like solar and wind increases, along with the introduction of devices such as heat pumps and batteries, a new optimization tool will help the UK plan for a greener electricity network. The researchers developed an algorithm to model how these smaller networks distributed electricity — factoring in how local grids could become unbalanced by adding too many heat pumps in a single area or generating more electricity than the grid could accept.