Introduction In recent years, the demand for reliable and sustainable energy sources has been on the rise. Microgrids have emerged as a viable solution to meet this demand by providing localized power generation and distribution. Diesel generators are a key component of many microgrid systems, offering a reliable and cost-effective