A CO2 reinjection strategy optimization evaluation method based on multi-objective interaction

Through the multi-objective interactive CO2 reinjection strategy optimization method, combined with the least squares support vector machine and NSGA-Ⅱ algorithm, the injection and production parameters are optimized, which solves the problems of high cost and single goal of CO2 reinjection parameter optimization in the existing technology. , achieving efficient CO2 utilization and optimization of development effects.

CN116579095BActive Publication Date: 2024-10-25CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310390617.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-25
Estimated Expiration
2043-04-12

AI Technical Summary

Technical Problem

The existing CO2 reinjection injection and production parameter optimization method has the problems of high optimization cost, long time and single goal, making it difficult to effectively delay gas channeling and improve CO2 utilization.

Method used

The CO2 reinjection strategy optimization evaluation method based on multi-objective interaction is adopted, combined with the least squares support vector machine surrogate model and NSGA-Ⅱ multi-objective optimization algorithm, to optimize injection and production parameters, collaboratively process production capacity and gas utilization, and realize the CO2 reinjection strategy. precise control.

Benefits of technology

It greatly improves the optimization efficiency and result accuracy, ensures that the oil field can achieve higher CO2 utilization under the same development effect, and provides optimal design guidance for the gas injection displacement development plan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116579095B_ABST
    Figure CN116579095B_ABST
Patent Text Reader

Abstract

The present invention discloses a CO2 reinjection strategy optimization evaluation method based on multi-objective interaction, which belongs to the field of petroleum engineering oil and gas field development, and includes the following steps: step 1, analyzing the influencing factors of the CO2 reinjection development effect, and determining the optimization variables of the reinjection process; step 2, writing a sample generation program for numerical simulation of injection and production parameters based on Python; step 3, building an LS-SVM multi-objective prediction agent model; step 4, establishing an injection and production parameter optimization model based on the NSGA-Ⅱ algorithm, and coupling the LS-SVM multi-objective prediction agent model to establish a CO2 reinjection strategy collaborative optimization method, performing multi-objective optimization of the CO2 reinjection work system, and optimizing the Pareto frontier of the multi-objective optimization of cumulative oil production and oil change rate, and meeting the selection of solutions for different development needs. The present invention can ensure that the oil field obtains a higher CO2 utilization rate under the premise of the same development effect, and can provide guidance for the optimal design of the gas injection displacement development plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of petroleum engineering oil and gas field development, and specifically relates to a CO2 reinjection strategy optimization evaluation method based on multi-objective interaction. Background Art

[0002] Gas injection development is a very important method to improve oil recovery. Due to its strong injectability, it has been widely used in the development of ultra-low permeability reservoirs. At present, the research community widely believes that CO2 is the optimal medium for gas injection displacement. CO2 gas is easily miscible and has a quick effect during the reinjection displacement process, but it is prone to early gas channeling and low gas utilization. Therefore, how to delay gas channeling and improve CO2 utilization during CO2 reinjection needs to be studied urgently.

[0003] Injection and production parameters are important factors affecting the effect of CO2 reinjection displacement. Traditional injection and production parameter optimization methods are mainly based on artificially designed orthogonal scheme comparison and selection. Single factor analysis is carried out on injection and production parameters such as energy replenishment timing, injection pressure, gas injection rate, gas injection time, and oil production rate. Only the influence of a single design variable on the recovery factor is studied, and the coordination effect of the mutual influence of multiple factors is not considered. It is difficult to effectively find the global optimal solution. Therefore, in recent years, the method of combining machine learning algorithms with numerical simulators has begun to be used for multi-factor collaborative optimization of injection and production parameters, considering the interaction between various influencing factors. Through gradient-based and random optimization algorithms, a solution with the optimal value of the corresponding objective function is found in the feasible domain, so as to output the injection and production parameter combination with the optimal evaluation index, and realize the precise matching of optimization parameters and reservoir conditions. This method usually needs to be combined with reservoir numerical simulation methods to predict the development effects of thousands of schemes and repeatedly find the optimal value, which is a huge amount of calculation. Moreover, it is often optimized only for the single goal of maximizing the cumulative oil production. Usually, measures such as "strong injection and strong production" are formulated to optimize the development effect, but the risks brought by other development goals are ignored.

[0004] In summary, the existing CO2 reinjection and production parameter optimization methods have defects such as high optimization labor cost and time, and a single optimization target. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a CO2 reinjection strategy optimization and evaluation method based on multi-objective interaction, combines the multi-objective optimization algorithm and the optimization principle of gas injection displacement development strategy, and realizes the multi-objective joint optimization of CO2 reinjection production parameters based on the agent model driven architecture; by coupling the least squares support vector machine agent model with the NSGA-Ⅱ multi-objective optimization algorithm, the injection and production parameters in the displacement process are optimized, while ensuring high oil production, the CO2 gas utilization rate is improved, the serious problem of gas crosstalk in conventional gas drive is alleviated, and the precise regulation of the CO2 reinjection strategy is realized.

[0006] The technical solution of the present invention is as follows:

[0007] A CO2 reinjection strategy optimization evaluation method based on multi-objective interaction includes the following steps:

[0008] Step 1: Analyze the factors affecting the development effect of CO2 reinjection and determine the optimization variables of the reinjection process;

[0009] Step 2: Write a sample generation program for injection and production parameter numerical simulation based on Python;

[0010] Step 3: Construct LS-SVM multi-objective prediction agent model;

[0011] Step 4: Establish an injection-production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to establish a collaborative optimization method for the CO2 reinjection strategy, perform multi-objective optimization of the CO2 reinjection work system, and select the Pareto frontier of the multi-objective optimization of cumulative oil production and oil change rate to meet the selection of solutions for different development needs.

[0012] Furthermore, the specific process of step 1 is as follows:

[0013] Step 1.1, analyze the factors affecting the development effect of CO2 reinjection;

[0014] Starting from the development factors directly related to oil production and CO2 injection volume, it is concluded that the factors affecting the development effect of the two stages of depletion and gas injection during the reinjection process are bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate; the evaluation indicators of reinjection development effect are cumulative oil production and CO2 gas oil exchange rate.

[0015] Step 1.2, determine the optimization variables of the reinjection process;

[0016] The CO2 reinjection process requires two types of wells: gas injection wells and production wells. The production time of production wells is divided into two time periods: exhaustion development and gas injection displacement. Therefore, the optimization variables for the reinjection process are the bottom hole flow pressure in the exhaustion development stage of production wells and the oil production rate in the gas injection displacement stage, as well as the energy replenishment timing, injection pressure and gas injection rate of gas injection wells. At the same time, the value range of each optimization variable is determined, and the value range is artificially set according to the formation conditions of different oil fields.

[0017] Furthermore, in step 2, the injection and production parameter numerical simulation sample generation program includes three modules: an injection and production parameter numerical simulation file automatic generation module, a numerical simulator calculation automatic batch call module, and a simulation result extraction and combination arrangement module;

[0018] The specific contents of the automatic generation module of numerical simulation files of injection and production parameters are as follows: based on the adjustable range of bottom hole flow pressure and the upper and lower limits of injection and production parameters during displacement, a simulation scheme is generated by random sampling within the value range; first, an injection and production parameter development scheme is designed, which contains several injection and production parameter-related development information, including five parameters: bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate; based on the design scheme, DAT files are automatically spliced, mainly by opening the basic DAT file, searching for keywords and their positions where scheme information needs to be inserted, and inserting and assembling the information of the design scheme into a new DAT file; assembling keywords through Python definition functions to realize automatic filling of parameters such as bottom hole flow pressure, energy replenishment timing, and gas injection rate; and by marking the position in the original DAT file where the design scheme needs to be inserted, calling the data generated by the design scheme, inserting the assembled keywords into the corresponding position of the DAT file, and generating a new DAT file corresponding to the design scheme;

[0019] The specific contents of the automatic batch call module for numerical simulator calculation are as follows: based on Python calling the CMG environment in the computer, the subprocess.run() function is used to execute the set cmd command to batch process the automatically generated DAT files, and the required numerical simulation result files are extracted and saved in a new folder for later extraction and combination of simulator results; the numerical simulation result files contain information related to time, cumulative gas injection volume, and cumulative oil production; the module uses a computer to perform multi-threaded processing on a single model, and the information after multi-threaded processing is saved in a storage device, and error information feedback is provided by judging whether the model has converged and reporting an error;

[0020] The specific contents of the simulation result extraction and combination arrangement module are as follows: based on the numerical simulation result file, by marking the cumulative oil production keyword of each numerical simulation result file, defining a loop function, automatically extracting the cumulative gas injection volume and cumulative oil production of different schemes and saving them in a formatted CSV file, thus realizing the full automation of simulator result extraction and storage.

[0021] Furthermore, the specific process of step 3 is as follows:

[0022] Step 3.1, dividing the CO2 reinjection development effect prediction sample set;

[0023] The CO2 reinjection development effect prediction sample set obtained by the injection and production parameter numerical simulation sample generation program is divided into a training set, a validation set, and a test set according to the relevant proportions of 80%, 10%, and 10%; the training set is used to train the prediction agent model and determine the basic parameters of the model; the validation set is used to adjust the hyperparameters of the neural network; the test set is used to test the final generalization ability of the model; each set contains the input and output data of the model, among which the input data includes bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate, and the output data includes the cumulative oil production and cumulative gas injection volume of the target reservoir;

[0024] Step 3.2: Establish a multi-objective prediction model based on the least squares support vector machine to obtain the LS-SVM multi-objective prediction agent model; the specific process is as follows:

[0025] For the training data (x i ,y i )Introducing nonlinear mapping function when performing nonlinear regression Map the training samples to a high-dimensional feature space for linear regression; the LS-SVM model in the feature space is expressed as:

[0026]

[0027] In the formula, ω is the weight vector, b is the bias term, x represents the training sample, and y represents the training model;

[0028] The objective function of the LS-SVM model is:

[0029]

[0030] Where J represents the objective function, ξ is the training set prediction error variable, i is the error variable introduced for each sample, γ>0 is the regularization parameter, i represents the i-th training sample, and n represents the total number of training samples;

[0031] The established LS-SVM multi-objective prediction agent model is described as follows:

[0032]

[0033] In the formula, i is the i-th training sample, n is the total number of training samples, α i is the Lagrange multiplier sequence, K is the radial basis function, j is the jth training sample, x i is the label of training sample i, x j is the label of training sample j; radial basis function K(x i ,x j )=exp[-||x i -x j ||2 / (2σ 2 )] is the kernel function of LS-SVM;

[0034] Step 3.3, model prediction effect evaluation, output the LS-SVM multi-objective prediction agent model with the best prediction effect evaluation;

[0035] Using the coefficient of determination R 2 , mean square error MSE and mean absolute error MAE are used to evaluate the prediction effect of the LS-SVM multi-objective prediction agent model. The calculation process is shown in formulas (4), (5) and (6) respectively:

[0036]

[0037]

[0038]

[0039] In the formula, y i and are the actual value and predicted value of the model respectively, is the average value of the actual value, i is the i-th training sample, and N is the size of the actual value in the validation set;

[0040] Select R 2 The model with the maximum, MSE, and MAE minimum is output as the final LS-SVM multi-objective prediction proxy model.

[0041] Furthermore, the specific process of step 4 is as follows:

[0042] Step 4.1, establish an optimization mathematical model;

[0043] The optimization mathematical model consists of three factors: objective function, decision variables, and constraints;

[0044] A multi-objective optimization mathematical model is established with the maximum cumulative oil production and the maximum oil change rate as the objective functions; the objective function is shown in formula (7), and both objectives are finally formulated as maximization problems:

[0045]

[0046] In the injection-production parameter optimization problem, the decision variables are the displacement working system, including bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate;

[0047] X i =[x i1 ,x i2 ,…,x in ] (8);

[0048] In the formula, X is each decision variable, x in is the nth value of the ith decision variable;

[0049] The constraints that need to be considered in this optimization model are the selection range of bottom hole flow pressure and the upper and lower limit constraints of injection and production system changes;

[0050] p min ≤p wf ≤p max (9);

[0051] Q jmin ≤Q j ≤Q jmax (10);

[0052] In the formula, p wf represents the bottom hole flowing pressure, p max represents the maximum bottom hole flowing pressure, p min Indicates the minimum bottom hole pressure; Q j represents the injection-production working system, which is specifically the various injection-production parameters, including energy replenishment timing, injection pressure, gas injection rate and oil production rate. jmax Indicates the maximum value of injection and production parameters, Q jmin Indicates the minimum value of injection and production parameters;

[0053] Step 4.2: Establish an injection-production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to perform collaborative optimization of the CO2 reinjection strategy;

[0054] The LS-SVM multi-objective prediction agent model and the NSGA-Ⅱ algorithm are coupled to establish a collaborative optimization method for CO2 reinjection strategy. The agent model is used to establish the mapping relationship between different injection-production parameter combinations and development effects, and the NSGA-Ⅱ algorithm is used to select the Pareto frontier of multi-objective optimization of cumulative oil production and oil change rate, so as to focus on selecting plans for different development needs. Firstly, the LS-SVM multi-objective prediction agent model is used to predict the cumulative oil production and oil change rate of the displacement development effect under the current production conditions. Secondly, the NSGA-Ⅱ algorithm is called to perform multi-objective optimization of the production work system of each well.

[0055] Furthermore, in step 4.2, the specific content of the multi-objective optimization process of the NSGA-Ⅱ algorithm is as follows:

[0056] Step 4.2.1, randomly select a combination of injection and production parameters under the constraints in step 4.1 to construct an initial population;

[0057] Step 4.2.2: Calculate the number n of dominated individuals p in the population p and the set S of solutions dominated by this individual p ;

[0058] Step 4.2.3, initialize the non-dominated sorting level r = 1;

[0059] Step 4.2.4: Perform a fast non-dominated sort operation to sort n p = 0 are put into the set F1, and the individuals with Pareto level 1 are deleted from the population to eliminate the dominance of Pareto level 1 over the remaining individuals;

[0060] Step 4.2.5: Through step 4.2.4, we get the individual set F2 with a Pareto level of 2, and further get the set F r Continue the above steps for each individual until all population levels are divided, and the Pareto optimal solution set is F1.

[0061] Step 4.2.6. Finally, the non-dominated solution set of the injection-production parameter combination and the Pareto front of the cumulative oil production and oil change rate are obtained, and the output is sorted into the optimal bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate.

[0062] Beneficial technical effects brought by the present invention:

[0063] The present invention establishes a CO2 reinjection strategy optimization and evaluation method based on multi-objective interaction, which can coordinately optimize multiple development objectives (production capacity and gas utilization rate) with conflicting interests, greatly improving the optimization efficiency and the accuracy of the optimization results; compared with the existing injection-production parameter optimization method, the present invention can ensure that the oil field obtains a higher CO2 utilization rate under the premise of the same development effect, can provide guidance for the optimal design of gas injection displacement development schemes, and is the key to the late development adjustment of oil reservoirs. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 The present invention is a flow chart of the CO2 reinjection strategy optimization evaluation method based on multi-objective interaction.

[0065] Figure 2 It is a schematic diagram of the contents of each module in the well location and injection and production parameter numerical simulation sample generation program of the present invention.

[0066] Figure 3 This is a schematic diagram of the multi-objective optimization results of the NSGA-Ⅱ algorithm in the present invention.

[0067] Figure 4 Schematic diagram of the Pareto frontier of optimization results in an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0069] like Figure 1 As shown, a CO2 reinjection strategy optimization evaluation method based on multi-objective interaction includes the following steps:

[0070] Step 1: Analyze the factors affecting the development effect of CO2 reinjection and determine the optimized variables of the reinjection process. The specific process is as follows:

[0071] Step 1.1, analyze the factors affecting the development effect of CO2 reinjection;

[0072] There are many factors that affect the development effect of CO2 reinjection, and the mechanism of action is also relatively complex. At present, there is a lack of a mature theory to guide the construction parameters of CO2 displacement in mines. Starting from the development factors directly related to oil production and CO2 injection volume, the present invention summarizes the factors affecting the development effect of the two stages of exhaustion-gas injection during the reinjection process as bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate. The evaluation indicators of reinjection development effect are cumulative oil production and CO2 gas oil exchange rate.

[0073] Step 1.2, determine the optimization variables of the reinjection process;

[0074] The CO2 reinjection process requires two types of wells: gas injection wells and production wells. The production time of production wells is divided into two time periods: exhaustion development and gas injection displacement. Therefore, the optimization variables for the reinjection process are the bottom hole flow pressure in the exhaustion development stage of production wells and the oil production rate in the gas injection displacement stage, as well as the energy replenishment timing, injection pressure and gas injection rate of gas injection wells. At the same time, the value range of each optimization variable is determined, and the value range is artificially set according to the formation conditions of different oil fields.

[0075] Step 2: Write a sample generation program for numerical simulation of injection and production parameters based on Python.

[0076] The training process of the least squares support vector machine proxy model often requires a large number of numerical simulation samples, and this process will consume a lot of labor costs by manually modifying and running the numerical simulation files. For this reason, the present invention has written a numerical simulation sample generation program for injection and production parameters, which can quickly and accurately generate a large number of CO2 reinjection development effect samples, saving time costs in the optimization process.

[0077] The injection-production parameter numerical simulation sample generation program includes three modules: an injection-production parameter numerical simulation file automatic generation module, a numerical simulator calculation automatic batch call module, and a simulation result extraction and combination arrangement module.

[0078] The specific content of the automatic generation module of numerical simulation files for injection and production parameters is as follows: Based on the adjustable range of bottom hole flow pressure and the upper and lower limits of injection and production parameters during displacement, a simulation scheme is generated by random sampling within the range of values. First, a development scheme for injection and production parameters is designed, which contains several pieces of development information related to injection and production parameters, including five parameters: bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate. Based on the design scheme, the DAT file is automatically spliced, mainly by opening the basic DAT file, searching for keywords and their positions where the scheme information needs to be inserted, and inserting and assembling the information of the design scheme into a new DAT file. This module mainly uses keywords such as OPERATE and DATE. Keywords are assembled by defining functions in Python to automatically fill in parameters such as bottom hole flow pressure, energy replenishment timing, and gas injection rate. And by marking the position where the design scheme needs to be inserted in the original DAT file, calling the data generated by the design scheme, inserting the assembled keywords into the corresponding position of the DAT file, and generating a new DAT file corresponding to the design scheme. The automatic generation module of injection-production parameter numerical simulation files is essentially a DAT file automatic generation module, which is mainly used to realize the automatic deployment of injection-production parameters in numerical simulation.

[0079] The specific content of the automatic batch call module for numerical simulator calculation is: based on Python calling the CMG environment in the computer, using the subprocess.run() function to execute the set cmd command to batch process the automatically generated DAT files, and extract and save the required numerical simulation result files (OUT files) to a new folder for later extraction and combination of simulator results. The OUT file contains relevant information such as time, cumulative gas injection volume, cumulative oil production, etc. This module performs multi-threaded processing on a single model through a computer. Figure 2 Subthread 1, subthread 2, subthread 3, etc. in the module are subthreads for multithreaded processing, which greatly improves the operation efficiency. The information after multithreaded processing is saved in the storage device, which is the set CMG result folder. Error information feedback is performed by judging whether the model converges and reporting errors. This module realizes high speed and high precision of multi-scheme parallel computing and database construction process, and improves the operation efficiency.

[0080] The specific contents of the simulation result extraction and combination arrangement module are as follows: based on the numerical simulation result file (OUT file), by marking the cumulative oil production keyword of each numerical simulation result file, a loop function is defined, and the cumulative gas injection volume and cumulative oil production of different schemes are automatically extracted and formatted and saved in a CSV file, thereby realizing full automation of simulator result extraction and preservation, saving a lot of time, and facilitating rapid response to different injection and production parameter combinations.

[0081] Step 3: Construct the LS-SVM multi-objective prediction agent model.

[0082] With the help of the program written in step 2, a sample set of CO2 reinjection development effect prediction is established, and a multi-objective prediction agent model of CO2 reinjection development effect is constructed using the least squares support vector machine algorithm to achieve accurate dynamic prediction of cumulative oil production under different bottom hole flow pressures and injection and production parameters, providing technical support for oil field field development. The specific process is as follows:

[0083] Step 3.1, dividing the CO2 reinjection development effect prediction sample set;

[0084] The CO2 reinjection development effect prediction sample set obtained by the injection and production parameter numerical simulation sample generation program is divided into training set, validation set and test set according to the relevant proportions of 80%, 10% and 10%. The training set is mainly used to train the prediction agent model and determine the basic parameters of the model; the validation set is mainly used to adjust the hyperparameters of the neural network; the test set is mainly used to test the final generalization ability of the model. Each set contains the input and output data of the model, among which the input data includes bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate, and the output data includes the cumulative oil production and cumulative gas injection volume of the target reservoir.

[0085] Step 3.2: A multi-objective prediction model is established based on the least squares support vector machine (LS-SVM) to obtain the LS-SVM multi-objective prediction agent model. The agent model is used to obtain the impact of different injection and production systems on the degree of crude oil utilization, and to achieve a rapid response to production dynamics under different CO2 reinjection development strategies.

[0086] LS-SVM is an improved support vector machine based on statistical theory, with an advanced and complete theoretical system. While inheriting the advantages of SVM, LS-SVM replaces the insensitive loss function of SVM with the error binorm, and replaces the inequality constraint of SVM with the equality constraint, thereby transforming the convex quadratic programming problem of solving SVM into a linear equation system problem, reducing the complexity of the algorithm. i ,y i )Introducing nonlinear mapping function when performing nonlinear regression Map the training samples to a high-dimensional feature space for linear regression. In the feature space, the LS-SVM model can be expressed as:

[0087]

[0088] In the formula, ω is the weight vector, b is the bias term, x represents the training sample, and y represents the training model;

[0089] The objective function of the LS-SVM model is:

[0090]

[0091] Where J represents the objective function, ξ is the training set prediction error variable, i is the error variable introduced for each sample, γ>0 is the regularization parameter, i represents the i-th training sample, and n represents the total number of training samples;

[0092] The established LS-SVM multi-objective prediction agent model is described as follows:

[0093]

[0094] In the formula, i is the i-th training sample, n is the total number of training samples, α i is the Lagrange multiplier sequence, K is the radial basis function, j is the jth training sample, x i is the label of training sample i, x j is the label of training sample j;

[0095] Different kernel functions will form different LS-SVM models. The present invention uses the radial basis function K(x i ,x j )=exp[-||x i -x j || 2 / (2σ 2 )] as the kernel function of LS-SVM. For the LS-SVM model with RBF kernel function, the only parameters that need to be determined are the kernel parameter σ and the regularization parameter γ.

[0096] Step 3.3, model prediction effect evaluation, output the LS-SVM multi-objective prediction agent model with the best prediction effect evaluation;

[0097] The present invention uses the coefficient of determination (R 2 ), mean square error (MSE) and mean absolute error (MAE) are used to evaluate the prediction effect of the LS-SVM multi-objective prediction agent model. The calculation process is shown in formulas (4), (5) and (6) respectively:

[0098]

[0099]

[0100]

[0101] In the formula, y i and are the actual value and predicted value of the model respectively, is the average value of the actual value, i is the i-th training sample, and N is the size of the actual value in the validation set. 2The larger the value, the smaller the MSE and MAE, which means the smaller the error between the predicted value and the actual value of the model, and the better the performance of the model. 2 The model with the maximum, MSE, and MAE minimum is output as the final LS-SVM multi-objective prediction proxy model.

[0102] Step 4: Establish an injection and production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to establish a collaborative optimization method for the CO2 reinjection strategy, perform multi-objective optimization of the CO2 reinjection work system, and select the Pareto frontier of the multi-objective optimization of cumulative oil production and oil change rate to meet the selection of solutions for different development needs. The specific process is:

[0103] Step 4.1: Establish an optimization mathematical model.

[0104] When optimizing the injection and production parameters, in order to obtain the best development effect, the cumulative oil production is generally set as large as possible. Under the premise of similar cumulative oil production, the oil change rate is set as large as possible. However, under normal circumstances, the cumulative oil production and the oil change rate are not in the same direction. It can be seen that the optimization process is a multi-objective and multi-variable engineering problem. The optimization mathematical model established for this problem mainly includes three factors, namely the objective function, decision variables and constraints.

[0105] (1) Objective function

[0106] In order to ensure that underground crude oil can be efficiently extracted in the CO2 displacement development project and avoid extreme development plans caused by over-emphasizing the gas injection development effect, a multi-objective optimization mathematical model is established with the maximum cumulative oil production and the maximum oil exchange rate as the objective function. The objective function is shown in formula (7), and both objectives are finally formulated as maximization problems:

[0107]

[0108] (2) Decision variables

[0109] In the injection-production parameter optimization problem, the decision variables are the displacement working system, including bottom hole flowing pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate.

[0110] X i =[x i1 ,x i2 ,…,x in ] (8);

[0111] In the formula, X is each decision variable, x in is the nth value of the ith decision variable. In the present invention, a total of five decision variables are included. For example, when i is 1, X1 represents a set of n values ​​of the bottom hole flow decision variable.

[0112] (3) Constraints

[0113] The constraints that need to be considered in this optimization model are the selection range of bottom hole flowing pressure and the upper and lower limit constraints of the injection and production work system changes.

[0114] p min ≤p wf ≤p max (9);

[0115] Q jmin ≤Q j ≤Q jmax (10);

[0116] In the formula, p wf represents the bottom hole flowing pressure, p max represents the maximum bottom hole flowing pressure, p min Indicates the minimum bottom hole pressure; Q j represents the injection-production working system, which is specifically the various injection-production parameters, including energy replenishment timing, injection pressure, gas injection rate and oil production rate. jmax Indicates the maximum value of injection and production parameters, Q jmin Indicates the minimum value of injection and production parameters.

[0117] Step 4.2: Establish an injection-production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to perform collaborative optimization of the CO2 reinjection strategy.

[0118] The LS-SVM multi-objective prediction agent model and the NSGA-Ⅱ algorithm are coupled to establish a collaborative optimization method for the CO2 reinjection strategy. The agent model is mainly used to establish the mapping relationship between different injection and production parameter combinations and development effects, and the NSGA-Ⅱ algorithm is mainly used to select the Pareto frontier of the multi-objective optimization of cumulative oil production and oil change rate, so as to focus on the selection of solutions for different development needs. First, the LS-SVM multi-objective prediction agent model is used to predict the cumulative oil production and oil change rate of the displacement development effect under the current production conditions; secondly, the NSGA-Ⅱ algorithm is called to perform multi-objective optimization of the production work system of each well. The specific content of the multi-objective optimization process of the NSGA-Ⅱ algorithm is as follows:

[0119] Step 4.2.1, randomly select a combination of injection and production parameters under the constraints in step 4.1 to construct an initial population;

[0120] Step 4.2.2: Calculate the number n of dominated individuals p in the population p and the set S of solutions dominated by this individual p ;

[0121] Step 4.2.3, initialize the non-dominated sorting level r = 1;

[0122] Step 4.2.4: Perform a fast non-dominated sort operation to sort n p = 0 (Pareto level 1) are put into set F1, and the individuals with Pareto level 1 are deleted from the population to eliminate the dominance of Pareto level 1 over the remaining individuals;

[0123] Step 4.2.5: Through step 4.2.4, we get the individual set F2 with a Pareto level of 2, and further get the set F r Continue the above steps for each individual until all population levels are divided, and the resulting Pareto optimal solution set is F1.

[0124] Step 4.2.6, finally, the non-dominated solution set of the injection-production parameter combination and the Pareto front of the cumulative oil production and oil change rate are obtained, which can be sorted and output as the optimal bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate. The specific process is: a solution in the non-dominated solution set is a set of schemes, including the values ​​of various parameters such as bottom hole flow pressure. The Pareto front of cumulative oil production and oil change rate is obtained through iterative solution. The Pareto front is a curve, and the optimal solution point can be found from the curve. The various parameter values ​​corresponding to the optimal solution point are the optimal bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate.

[0125] Table 1 shows the pseudo code of the NSGA-Ⅱ optimization model.

[0126] Table 1 Pseudo code of NSGA-Ⅱ optimization model

[0127]

[0128]

[0129] Figure 3 The optimal solution is iteratively calculated based on the least squares support vector machine surrogate model for the non-dominated solution set of injection-production parameter combinations and the Pareto frontier of cumulative oil production and oil change rate. Figure 3 In the figure, the numbers 1, 2, and 3 all represent non-dominated solution sets, 1 is a relatively good solution in the solution set, that is, the optimal solution; 2 and 3 are relatively poor solutions, that is, non-optimal solutions. In order to prove the feasibility of the present invention, the following examples are given.

[0130] Taking a block in Changqing Oilfield as an example, the reservoir in this oilfield block is dense, with an average porosity of 11.3% and an average permeability of only 0.22×10 -3 μm 2 , development is difficult. Apply the horizontal well one injection one production area well pattern, quantitative injection of gas injection wells, set the upper limit injection pressure, and fixed liquid production of production wells.

[0131] For a block in Changqing Oilfield, the specific steps of using the method of the present invention to perform multi-objective optimization of CO2 reinjection strategy are as follows:

[0132] Step 1: According to the reservoir properties of the target block, a numerical simulation model consisting of two fractured horizontal wells is established, and the parameter range of the optimization variables of the target block is determined.

[0133] Step 2: Through the written injection-production parameter numerical simulation sample generation program, call the numerical simulator to automatically construct the CO2 reinjection development effect simulation sample. The input parameters are bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate. The output parameters are cumulative oil production and oil change rate.

[0134] Step 3: Construct a prediction proxy model based on the least squares support vector machine, and divide the CO2 reinjection development effect prediction sample set obtained in step 2 into a training set, a validation set, and a test set according to the ratio of 80%, 10%, and 10%. Then, the radial basis function is selected as the kernel function to establish the LS-SVM proxy model, and the kernel parameter σ is optimized to be 89.73 and the regularization parameter γ is 66.23. The trained prediction model is tested on the test set. It can be seen from Table 2 that the model performs well in all the proposed evaluation indicators, which also shows that the model can achieve fast and accurate response to different displacement development schemes and development effects.

[0135] Table 2 Evaluation indicators of the model

[0136]

[0137] Step 4: Output the LS-SVM multi-objective prediction model that has been trained and has good performance evaluation, and couple it with the NSGA-Ⅱ algorithm to establish a CO2 reinjection strategy optimization method. First, the LS-SVM multi-objective prediction agent model is used to predict the cumulative oil production and oil change rate of the displacement development effect under the current production conditions; secondly, the NSGA-Ⅱ algorithm is called to perform multi-objective optimization of the production work system of each well, while ensuring high oil production and improving the utilization rate of CO2 gas, to achieve precise regulation of the CO2 reinjection development strategy.

[0138] According to the designed mathematical model of the multi-objective optimization problem, the injection and production parameters are optimized according to the pseudo code of the NSGA-Ⅱ optimization model. In the multi-objective optimization problem, crossover and mutation are the key points of high compatibility of the optimization algorithm, and the selection of matching crossover and variation coefficients plays a decisive role. Generally speaking, the value range of the crossover coefficient is 0.40-0.99, and the value range of the variation coefficient is 0.0001-0.1. In this study, a crossover coefficient of 0.5, a variation coefficient of 0.05, a population size of 50, and 100 generations of inheritance were selected as the parameters of NSGA-Ⅱ. Based on a high-precision multi-component numerical simulation model, the NSGA-Ⅱ multi-objective genetic algorithm under the optimal parameter combination was used for iterative calculations to obtain the Pareto optimal solution set with the maximum cumulative oil production and the maximum oil change rate as the target, such as Figure 4 The present invention also provides a comparison of the basic solution and the optimized solution results shown in Table 3.

[0139] Table 3 Comparison of results between basic scheme and optimized scheme

[0140]

[0141] The analysis of the optimization results in this study takes the initial design combination of injection and production parameters as the basic solution, and selects two solutions with the same cumulative oil production and oil change rate as the basic solution as the "capacity solution" and "oil change rate solution" in the Pareto optimal solution set. Figure 4 As can be seen from Table 3, under the same oil change rate, the cumulative oil production of the capacity scheme is 2.79×10 higher than that of the basic scheme. 4 m 3 By coordinating the displacement development parameters in the reinjection stage, it is ensured that the reservoir can maintain a high production capacity at the same gas injection oil exchange rate, and maximize the development potential of the formation; under the same cumulative oil production, the gas utilization rate of the oil exchange rate scheme is about 23% higher than that of the basic scheme, ensuring that the reservoir can make full use of CO2 injection gas and improve the gas utilization rate of CO2 under the same development effect. Reservoir engineers can design CO2 injection reinjection schemes based on the Pareto frontier. If the maximum production is required, the production capacity scheme can be selected; if the efficient use of CO2 and economic development are required, the oil exchange rate scheme can be selected.

[0142] The above examples prove that this method can effectively solve the multi-objective optimization problem of reinjection displacement parameters in gas-driven oil reservoirs. The solution obtained by its optimization calculation has good performance in development effect and CO2 utilization. It shows that the tight oil CO2 reinjection displacement parameter optimization method based on multi-objective interaction has high credibility, which can well assist reservoir engineers in deployment decision-making and help the efficient development of unconventional oil reservoirs.

[0143] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A CO2 reinjection strategy optimization evaluation method based on multi-objective interaction, characterized in that: The steps include: Step 1: Analyze the factors affecting the development effect of CO2 reinjection and determine the optimization variables of the reinjection process; Step 2: Write a sample generation program for injection and production parameter numerical simulation based on Python; Step 3: Construct the LS-SVM multi-objective prediction agent model; the specific process is as follows: Step 3.1, dividing the CO2 reinjection development effect prediction sample set; The CO2 reinjection development effect prediction sample set obtained by the injection and production parameter numerical simulation sample generation program is divided into a training set, a validation set, and a test set according to the relevant proportions of 80%, 10%, and 10%; the training set is used to train the prediction agent model and determine the basic parameters of the model; the validation set is used to adjust the hyperparameters of the neural network; the test set is used to test the final generalization ability of the model; each set contains the input and output data of the model, among which the input data includes bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate, and the output data includes the cumulative oil production and cumulative gas injection volume of the target reservoir; Step 3.2: Establish a multi-objective prediction model based on the least squares support vector machine to obtain the LS-SVM multi-objective prediction agent model; the specific process is as follows: For the training data (x i ,y i )Introducing nonlinear mapping function when performing nonlinear regression Map the training samples to a high-dimensional feature space for linear regression; the LS-SVM model in the feature space is expressed as: In the formula, ω is the weight vector, b is the bias term, x represents the training sample, and y represents the training model; The objective function of the LS-SVM model is: Where J represents the objective function, ξ is the training set prediction error variable, i is the error variable introduced for each sample, γ>0 is the regularization parameter, i represents the i-th training sample, and n represents the total number of training samples; The established LS-SVM multi-objective prediction agent model is described as follows: In the formula, i is the i-th training sample, n is the total number of training samples, α i is the Lagrange multiplier sequence, K is the radial basis function, j is the jth training sample, x i is the label of training sample i, x j is the label of training sample j; radial basis function K(x i ,x j )=exp[-||x i -x j || 2 / (2σ 2 )] is the kernel function of LS-SVM, σ is the kernel parameter; Step 3.3, model prediction effect evaluation, output the LS-SVM multi-objective prediction agent model with the best prediction effect evaluation; Using the coefficient of determination R 2 , mean square error MSE and mean absolute error MAE are used to evaluate the prediction effect of the LS-SVM multi-objective prediction agent model. The calculation process is shown in formulas (4), (5) and (6) respectively: In the formula, y i and are the actual value and predicted value of the model respectively, is the average value of the actual value, i is the i-th training sample, and N is the size of the actual value in the validation set; Select R 2 The model with the maximum, MSE, and MAE minimum is output as the final LS-SVM multi-objective prediction proxy model; Step 4: Establish an injection-production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to establish a collaborative optimization method for the CO2 reinjection strategy, perform multi-objective optimization of the CO2 reinjection work system, and select the Pareto frontier of multi-objective optimization of cumulative oil production and oil change rate to meet the scheme selection needs of different development needs.

2. The CO2 reinjection strategy optimization evaluation method based on multi-objective interaction according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1.1, analyze the factors affecting the development effect of CO2 reinjection; Starting from the development factors directly related to oil production and CO2 injection volume, it is concluded that the factors affecting the development effect of the two stages of depletion and gas injection during the reinjection process are bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate; the evaluation indicators of reinjection development effect are cumulative oil production and CO2 gas oil exchange rate. Step 1.2, determine the optimization variables of the reinjection process; The CO2 reinjection process requires two types of wells: gas injection wells and production wells. The production time of production wells is divided into two time periods: exhaustion development and gas injection displacement. Therefore, the optimization variables for the reinjection process are the bottom hole flow pressure in the exhaustion development stage of production wells and the oil production rate in the gas injection displacement stage, as well as the energy replenishment timing, injection pressure and gas injection rate of gas injection wells. At the same time, the value range of each optimization variable is determined, and the value range is artificially set according to the formation conditions of different oil fields.

3. The CO2 reinjection strategy optimization evaluation method based on multi-objective interaction according to claim 1 is characterized in that: In step 2, the injection and production parameter numerical simulation sample generation program includes three modules: an injection and production parameter numerical simulation file automatic generation module, a numerical simulator calculation automatic batch call module, and a simulation result extraction and combination arrangement module; The specific contents of the automatic generation module of the numerical simulation file of the injection and production parameters are as follows: based on the adjustable range of the bottom hole flow pressure and the upper and lower limits of the injection and production parameters during the displacement process, a simulation scheme is generated by a random sampling method within the value range; first, a development scheme for injection and production parameters is designed, which contains several pieces of development information related to injection and production parameters, including five parameters: bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate; based on the design scheme, the DAT file is automatically spliced, by opening the basic DAT file, searching for the keywords and their positions that need to be inserted into the scheme information, and inserting and assembling the information of the design scheme into a new DAT file; Define functions in Python to assemble keywords and automatically fill in bottom hole pressure, energy replenishment timing, and gas injection rate parameters; And by marking the position in the original DAT file where the design scheme needs to be inserted, calling the data generated by the design scheme, inserting the assembled keyword whole paragraph into the corresponding position of the DAT file, and generating a new DAT file corresponding to the design scheme; The specific contents of the automatic batch call module for numerical simulator calculation are as follows: based on Python calling the CMG environment in the computer, the subprocess.run() function is used to execute the set cmd command to batch process the automatically generated DAT files, and the required numerical simulation result files are extracted and saved in a new folder for later extraction and combination of simulator results; the numerical simulation result files contain information related to time, cumulative gas injection volume, and cumulative oil production; the module uses a computer to perform multi-threaded processing on a single model, and the information after multi-threaded processing is saved in a storage device, and error information feedback is provided by judging whether the model has converged and reporting an error; The specific contents of the simulation result extraction and combination arrangement module are as follows: based on the numerical simulation result file, by marking the cumulative oil production keyword of each numerical simulation result file, defining a loop function, automatically extracting the cumulative gas injection volume and cumulative oil production of different schemes and saving them in a formatted CSV file, thus realizing the full automation of simulator result extraction and storage.

4. The CO2 reinjection strategy optimization evaluation method based on multi-objective interaction according to claim 1 is characterized in that: The specific process of step 4 is as follows: Step 4.1, establish an optimization mathematical model; The optimization mathematical model consists of three factors: objective function, decision variables, and constraints; A multi-objective optimization mathematical model is established with the maximum cumulative oil production and the maximum oil change rate as the objective functions; The objective function is shown in formula (7). Both objectives are finally formulated as maximization problems: In the injection-production parameter optimization problem, the decision variables are the displacement working system, including bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate, and oil production rate; X i =[x i1 ,x i2 ,…,x in ] (8); In the formula, X is each decision variable, x in is the nth value of the ith decision variable; The constraints that need to be considered in this optimization model are the selection range of bottom hole flow pressure and the upper and lower limit constraints of injection and production system changes; p min ≤p wf ≤p max (9); Q jmin ≤Q j ≤Q jmax (10); In the formula, p wf represents the bottom hole flowing pressure, p max represents the maximum bottom hole flowing pressure, p min Indicates the minimum bottom hole pressure; Q j represents the injection-production working system, which is specifically the various injection-production parameters, including energy replenishment timing, injection pressure, gas injection rate and oil production rate. jmax Indicates the maximum value of injection and production parameters, Q jmin Indicates the minimum value of injection and production parameters; Step 4.2: Establish an injection-production parameter optimization model based on the NSGA-Ⅱ algorithm, and couple the LS-SVM multi-objective prediction agent model to perform collaborative optimization of the CO2 reinjection strategy; The LS-SVM multi-objective prediction agent model and the NSGA-Ⅱ algorithm are coupled to establish a collaborative optimization method for CO2 reinjection strategy. The agent model is used to establish the mapping relationship between different injection-production parameter combinations and development effects, and the NSGA-Ⅱ algorithm is used to select the Pareto frontier of multi-objective optimization of cumulative oil production and oil change rate, so as to focus on selecting plans for different development needs. Firstly, the LS-SVM multi-objective prediction agent model is used to predict the cumulative oil production and oil change rate of the displacement development effect under the current production conditions. Secondly, the NSGA-Ⅱ algorithm is called to perform multi-objective optimization of the production work system of each well.

5. The CO2 reinjection strategy optimization evaluation method based on multi-objective interaction according to claim 4 is characterized in that: In step 4.2, the specific content of the multi-objective optimization process performed by the NSGA-Ⅱ algorithm is as follows: Step 4.2.1, randomly select a combination of injection and production parameters under the constraints in step 4.1 to construct an initial population; Step 4.2.2: Calculate the number n of dominated individuals p in the population p and the set S of solutions dominated by this individual p ; Step 4.2.3, initialize the non-dominated sorting level r = 1; Step 4.2.4: Perform a fast non-dominated sort operation to sort n p = 0 are put into the set F1, and the individuals with Pareto level 1 are deleted from the population to eliminate the dominance of Pareto level 1 over the remaining individuals; Step 4.2.5: Through step 4.2.4, we get the individual set F2 with a Pareto level of 2, and further get the set F r Continue the above steps for each individual until all population levels are divided, and the Pareto optimal solution set is F1. Step 4.2.

6. Finally, the non-dominated solution set of the injection-production parameter combination and the Pareto front of the cumulative oil production and oil change rate are obtained, and the output is sorted into the optimal bottom hole flow pressure, energy replenishment timing, injection pressure, gas injection rate and oil production rate.

Citation Information

Patent Citations

  • CO2 injection method and system for improving recovery efficiency

    CN110318716A

  • Oil reservoir top wing linkage stepped three-dimensional gas injection development method

    CN114575832A

  • Methods for adaptive optimization of enhanced oil recovery performance under uncertainty

    US20160145977A1