To improve the power quality of distribution network and realize the regulation of distribution network load level,the optimized allocation method of distributed photovoltaic distribution network energy storage based on genetic algorithm is proposed.Under the premise of analyzing the working principle of composite energy storage and optimization of battery energy storage peak adjustment,a two-stage energy storage optimization allocation model is constructed.In the first stage optimization allocation model,the minimum voltage fluctuation and network loss are taken as the objective function,to determine the optimal access location of battery storage.In the second stage optimization allocation model,the minimum total capacity of energy storage equipment accessed by the distribution network is taken as the objective function,to realize the optimal allocation of energy storage equipment capacity.The genetic process is optimized through adaptive changes in the optimal retention strategy,crossover,and mutation rate.The improved genetic algorithm is used to solve the two-stage energy storage optimal allocation model,to determine the best allocation scheme and operation optimization strategy of energy storage.The experimental results show that after the method optimizes the allocation of energy storage in the distribution network,the voltage fluctuation index of the distribution network decreases significantly to 1.95%,the network loss value and voltage fluctuation index reduce significantly.The method can realize the peak adjustment of all kinds of loads and has the effect of peak shaving and valley filling.