Event triggered control of an islanded network of microgrids via hybrid dynamical systems