Dynamic modeling of microgrids | Synapse