An advanced neural network based solution to enforce dispatch continuity in smart grids