Based on the analysis of the characteristics of the user-side microgrid, the principles of energy storage capacity and power allocation in the microgrid are summarized. Through the analysis of the output of the photovoltaic power station, the goal function of maximizing user income is established by using the characteristics of the energy storage system to track the output of the photovoltaic power, and the power balance requirements of the power generation system, the state of energy (SOE) constraints of the distributed energy storage system The power and capacity constraints of the distributed energy storage system adopt the linear decreasing inertia weight particle swarm optimization algorithm, aiming to seek the micro-electric network management and control strategy under the existing constraints, and enhance the distributed energy absorption capacity.