Hierarchical Control for Virtual Oscillator Based Grid-Connected and Islanded Microgrids | Synapse