Microgrids are becoming an essential part of modern energy systems, providing enhanced energy resilience and reducing energy losses while supporting the transition to renewable power. They operate either independently or in Off-grid microgrid parallel with the main grid, ensuring a reliable power supply even during natural disasters or grid outages