Introduction Microgrids are gaining popularity as a reliable and efficient way to generate and distribute electricity in various settings, from remote communities to urban areas. One of the key components of a microgrid system is the diesel generator, which plays a crucial role in providing backup power and ensuring stability