In order to solve the problem of oil extraction efficiency and energy consumption of oilfield pumping unit, the single-well multi-mode flexible controller is developed and developed on the basis of frequency conversion energy-saving control technology of pumping unit. A Scheme for Centralized Control of Congested Well Group. By selecting a reasonable optimization algorithm, the combination of single well flexible control and well group centralized optimization control is realized, and the overall energy efficiency of the well group is improved. The field test results show that the flexible centralized control system of the cluster pumping unit can adapt to the working conditions of the field and realize the optimal control of the pumping unit group system, and can achieve better control effect and energy saving effect.