Smart Management of Smart Grids (Finished)