Advanced Controller Utilizing Natural Gas Engines for Microgrid Systems