The application discloses a wind farm
virtual inertia optimization
distribution method based on an improved
particle swarm algorithm, and steps are as follows: firstly, the critical
inertia of a
power grid for maintaining frequency dynamic stability is solved according to a
power grid frequency safety constraint index, and a
power grid inertia compensation target is obtained in combination with an actual
inertia of the power grid. Then, the minimum
system maximum
frequency deviation is taken as an optimization target, the wind farm
virtual inertia compensation target is taken as an optimization object, the power grid inertia level constraint, the wind
turbine virtual inertia support capability constraint and the
system frequency stability are taken as constraint conditions, and an optimization
distribution model is established. Then, the model is solved by using the improved
particle swarm algorithm, and the virtual inertia optimization distribution scheme of each wind farm is obtained. Finally, the
correctness and effectiveness of the method are verified in an IEEE-39 node example
system. Under the premise of ensuring that the power grid inertia is at a safe level and the wind
turbine runs stably, the optimal distribution scheme of the virtual inertia of each wind farm can be obtained, and the
algorithm has strong convergence and high solution accuracy.