 The proposed method is a novel approach to optimizing the capacity configuration of energy storage systems in microgrids. It takes into account the energy mapping relationship between the frequency domain and time domain, the smoothing fluctuations of different energy storage components and the annual comprehensive cost of the Hess. This allows for a more efficient and economical configuration of energy storage capacity in microgrids. This article was authored by Shuang Lei, Yu He, Jing Zhang, and others.