Considering the drawbacks of flexible adjustment of PI controller control parameters in the constant pressure control system of doubly fed fans, a PI controller control parameter flexible adjustment method considering ant colony optimization algorithm (ACO) is proposed. This method uses the proportional coefficient and integration time parameters in the PI controller as the ants in the ant colony optimization algorithm, and the ultimate optimization goal is to control the absolute error integration function. During the control process, the parameters of the PI controller are dynamically adjusted. When the electrified wire netting IR-drop and wind velocity changes, a comparative analysis of the dynamic tuning PI controller parameters and the non-dynamic tuning method was conducted. At last, the simulation studies have shown that the constant voltage control system using the PI parameter Flexible adjustment control method found on ACO can rapidly improve the grid voltage stability of double-fed wind turbines and reduce response time.