Introduction In recent years, there has been a growing interest in microgrid systems as a way to enhance energy resilience, improve energy efficiency, and integrate renewable energy sources into the existing grid infrastructure. One key component of many microgrid systems is the diesel generator, which plays a crucial role in