Industrial and commercial microgrids use photovoltaic power generation on the roof of factories and energy storage to optimize the peak and valley of electricity consumption, reduce the cost of electricity bills for enterprises, and ensure the continuous operation of production lines, especially suitable for power-intensive scenarios such as high-energy-consuming manufacturing and data centers.