Primary control in AC microgrid