Smart Grids Balance Supply And Demand In Real Time