The application discloses a CO2 flooding oil pumping
machine well production operation optimization method and
system, relates to the oil and gas
field development technical field, and comprises the following steps: a CO2 flooding oil pumping
machine well lifting
system mechanism
simulation model is constructed in advance, and basic sample data is output; taking oilfield measured data as a
core sample set,
supplementary data is generated in combination with the mechanism
simulation model, missing value filling is realized through variance weight correction, scene deviation optimization mechanism model data is introduced, and a training sample set covering overall and balanced distribution is constructed. The XGBoost-PSO collaborative optimization framework is constructed, the quantitative guidance provided by the prediction model is taken as support, the
global optimization capability of the PSO
algorithm is used, real-time adaptive collaborative optimization of
stroke, frequency and casing pressure is realized, the adverse effects of high gas-
liquid ratio on the lifting
system in the gas breakthrough stage of the CO2 flooding oil pumping
machine well can be effectively relieved, pump efficiency and productivity are improved, and efficient and stable operation of the lifting system is ensured.