Performance based approach for electricity generation in smart grids