Use grids strategically

optimize use of grid energy and as a resource to ensure reliability