Microgrids are becoming increasingly popular in the energy industry as they offer a more efficient and…