Modeling, simulation, and control of a medium-scale power system. (2017)