Isolated microgrid stability reinforcement using optimally controlled STATCOM