Decentralized energy systems that can operate autonomously or in coordination with the main grid, serves a discrete geographic footprint, such as residential, commercial, college campus, hospital complex, and business/industrial buildings. These systems typically consist of local generation sources like solar panels, wind turbines, or cogeneration plants and Energy storage units such as batteries, and control systems that manage power distribution. The growth of microgrids in buildings is being driven by the need for enhanced energy resilience, cost reduction, and environmental sustainability.