Model and Simulation of Frequency Regulation in the Power Electric System