A mathematical model for the dynamic simulation of low size cogeneration gas turbines within smart microgrids