摘要:To solve problems such as the high cost of microgrids (MGs), balance between supply and demand, stability of system operation, and optimizing the MG planning model, the energy storage system (ESS) and harmony search algorithm (HSA) are proposed. First, the conventional MG planning optimization model is constructed and the constraint conditions are defined: the supply and demand balance and reserve requirements. Second, an ESS is integrated into the optimal model of MG planning. The model with an ESS can solve and identify parameters such as the optimal power, optimal capacity, and optimal installation year. Third, the convergence speed and robustness of the ESS are optimized and improved. A case study comprising three different cases concludes the paper. The results show that the modified HSA (MHSA) can effectively improve the stability and economy of MG operation with an ESS.