The increasing demand for reliable, efficient, and sustainable energy solutions has accelerated the adoption of microgrids integrated with renewable energy sources and advanced energy storage systems. However, the variability of renewable generation and fluctuating load demands present significant challenges in ensuring optimal microgrid performance and energy management. This study