Abstract The secondary frequency modulation of the unit, that is, the automatic generation control (AGC), is the process of increasing or decreasing the power of the power generation unit by the power plant unit according to the dispatching command issued by the power grid dispatching center, and then using the frequency modulator to restore the frequency. Based on the principle of AGC, this paper establishes a frequency dynamic response model of the secondary frequency modulation of the traditional unit and the wind storage participation system including load frequency control (LFC) and traditional proportional-integral-derivative (PID) controllers, determines the frequency modulation control strategy of wind storage, and uses the distribution mode based on Area Control Error (ACE) signal to assist in the secondary frequency modulation. In order to solve the parameter optimization problem of the classical PID controller when the wind-storage combined system participates in the secondary frequency modulation under the large load disturbance, a parameter optimization model of the controller with PID was established, and the ITAE evaluation index was finally selected as the fitness function by comparing different fitness evaluation indexes. To overcome the problem that the conventional Particle Swarm Optimization (PSO) is prone to local extremum, the inertia weights and learning factors are adjusted nonlinearly to balance and optimize the global and local optimization capabilities and improve the search efficiency, and the parameters of the PID controller are optimized by the improved PSO algorithm. The simulation results show that the proposed algorithm improves the secondary frequency modulation effect under the background of a high proportion of renewable energy connected to the power grid.