This technology is what would be nessesary for adapting the existing grid to new energy sources like solar. Worth reading
https://www.vox.com/energy-and-environment/2018/6/5/17373314/electricity-technology-efficiency-software-waste-3dfs