A method and device for coordinated optimization of carbon dioxide throughput, oil production and storage
By establishing a numerical simulation model and optimization proxy model for CO2 throughput development, and using a multi-objective optimization algorithm to determine the CO2 throughput process parameters, the problems of low optimization efficiency and neglected burial effects in the existing technology are solved, and the coordination of CO2 throughput and burial is achieved optimization.
Patent Information
- Application Number
- CN202411067041.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing CO2 throughput process parameter optimization method is difficult to find the global optimal solution of process parameters, and ignores the impact of CO2 burial, resulting in inconsistent recovery and burial effect.
numerical simulation software is used to establish a numerical simulation model for CO2 throughput development, generate a sample set through multi-dimensional biased Latin sampling, establish a process parameter optimization agent model, and use a multi-objective optimization algorithm to solve the optimal Pareto frontier of the objective function to determine the maximum CO2 throughput Optimize process parameters.
It improves the efficiency and rationality of CO2 throughput process parameters optimization, achieves the synergistic optimization of CO2 throughput and storage, and improves the reservoir recovery rate and CO2 storage effect.
Smart Images

Figure CN118586210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil production, and in particular to a method and device for coordinated optimization of carbon dioxide throughput, oil production increase and storage. Background Art
[0002] China has abundant unconventional oil and gas reserves, but due to the poor physical properties of unconventional reservoirs and high crude oil viscosity, the recovery rate of unconventional oil reservoirs currently developed by natural energy is generally low. CO2 huff and puff is an effective measure to improve the recovery rate of unconventional oil reservoirs and achieve underground carbon sequestration. On the one hand, CO2 huff and puff can effectively improve the recovery rate of crude oil by reducing crude oil viscosity and promoting crude oil volume expansion; on the other hand, the CO2 injected into the formation will be sealed underground through various means such as dissolution and mineralization, effectively reducing CO2 emissions. Therefore, the reasonable selection of CO2 huff and puff process parameters is crucial to improving the recovery rate of unconventional oil reservoirs and efficient CO2 storage.
[0003] The current research progress in CO2 throughput process parameter optimization is as follows:
[0004] (1) Parameter sensitivity analysis is performed for a single factor or through experimental design methods. The impact of different process parameters on production changes is determined by experimental methods, numerical simulation methods or reservoir engineering methods, and then the scheme is optimized. Although this method is easy to use, it can only compare and optimize the selected parameter schemes, and it is difficult to find the global optimal solution for the process parameters.
[0005] (2) The optimization algorithm calls the numerical simulator to calculate the value of objective functions such as cumulative oil production under different process parameters, and then find the global optimal solution of the throughput process parameters. Although this method can find better results, a complete optimization process often requires multiple repeated numerical simulations, which has low optimization efficiency and time-consuming calculations.
[0006] (3) Existing methods mainly use cumulative oil production, recovery rate, etc. as objective functions when optimizing CO2 throughput, ignoring the impact of CO2 storage.
[0007] Therefore, it is of great significance to propose a process parameter optimization method that can achieve the optimal synergy between CO2 huff-and-puff enhanced oil recovery and storage effect. Summary of the invention
[0008] The purpose of the present invention is to provide a method and device for coordinated optimization of carbon dioxide throughput, oil production increase and storage, which can improve the efficiency and rationality of optimization of CO2 throughput process parameters in oil reservoirs.
[0009] To achieve the above object, the present invention provides the following solutions:
[0010] A method for coordinated optimization of carbon dioxide injection and storage, comprising:
[0011] According to the geological parameters, fluid parameters, fracturing construction data and development data of the target block, a numerical simulation model for single-well CO2 huff-and-puff development in the target block is established using numerical simulation software;
[0012] According to the single-well CO2 huff-and-puff development numerical simulation model of the target block, a first sample set and a second sample set are generated by sampling using a multi-dimensional biased Latin sampling method;
[0013] According to the first sample set, the dynamic data of CO2 throughput of the reservoir is processed in sections, and the optimal production decline model of each production section is screened to establish a third sample set;
[0014] Establishing a process parameter optimization agent model according to the second sample set and the third sample set;
[0015] Determine the objective function, optimization variables and constraints for optimizing reservoir CO2 huff-and-puff process parameters;
[0016] Based on the process parameter optimization agent model and the constraint conditions, a multi-objective optimization algorithm is used to solve the optimal Pareto frontier of the objective function;
[0017] Based on the optimal Pareto frontier of the objective function, the optimal process parameters of CO2 throughput are determined.
[0018] Optionally, the first sample set includes oil production dynamic data corresponding to different CO2 throughput process parameters; the oil production dynamic data is obtained after inputting different CO2 throughput process parameters into a single-well CO2 throughput development numerical simulation model of the target block;
[0019] The second sample set includes the cumulative CO2 storage corresponding to different CO2 throughput process parameters; the cumulative CO2 storage is obtained after inputting different CO2 throughput process parameters into the single-well CO2 throughput development numerical simulation model of the target block.
[0020] Optionally, the multidimensional biased Latin sampling method is determined by coupling an inverse function sampling method and a Latin hypercube sampling method.
[0021] Optionally, according to the first sample set, the dynamic data of CO2 throughput of the oil reservoir is processed in sections, and the optimal production decline model of each production section is screened to establish a third sample set, including:
[0022] The oil production dynamic data of each sample in the first sample set is divided according to the throughput rounds to obtain the oil production dynamic data of each production section;
[0023] A variety of production decline models are used to fit the oil production dynamic data of each production section to obtain a set of CO2 throughput production decline models.
[0024] Draw the production data curve corresponding to each CO2 throughput decline model in each production section;
[0025] Randomly combining multiple CO2 throughput production decline models in the CO2 throughput production decline model set to obtain multiple CO2 throughput production decline model combinations;
[0026] Determine the comprehensive evaluation coefficient of different CO2 throughput decline model combinations based on the production data curve;
[0027] According to the comprehensive evaluation coefficients of different CO2 throughput production decline model combinations, the optimal production decline model combination based on the first sample set is determined;
[0028] A third sample set is established based on the first sample set and the optimal production decline model combination; the third sample set includes a parameter group of the optimal production decline model combination corresponding to different CO2 throughput process parameters; the parameter group of the optimal production decline model combination is obtained by fitting the dynamic data of different CO2 throughput oil production in stages through the optimal decline model combination.
[0029] Optionally, the comprehensive evaluation coefficient is:
[0030] ;
[0031] In the formula, is the comprehensive evaluation coefficient of the CO2 huff-and-puff production decline model combination, p is the decision variable, V is the oil production of the CO2 huff-and-puff numerical simulation, is the oil production of the combined fitting of the production decline model, is the average value of the combined fitted oil production of the production decline model; a is the weight of the determination coefficient obtained by fitting the dynamic data of oil production of each production section of the sample using the production decline model; b is the weight of the determination coefficient obtained by fitting the dynamic data of cumulative oil production of each production section of the sample; c is the weight of the relative root mean square error obtained by fitting the dynamic data of oil production of each production section of the sample; s is the number of samples, S data is the total number of samples; i is the i-th production section of the sample, represents the total number of production segments in the sample, where i=0 represents the exhaustion production segment, i=m represents the final throughput production segment; j is the jth time point of a production segment in the sample, is the total number of time points in the sample production segment; is the actual oil production of the sth sample at the jth time point in the i-th production section, is the oil production of the production decline model combination at the jth time point in the i-th production stage of the s-th sample; is the average oil production obtained by the combination of production decline models for the i-th production section of the s-th sample; It is the average oil production obtained by the combination of production decline models in the entire production period of the sth sample.
[0032] Optionally, establishing a process parameter optimization agent model according to the second sample set and the third sample set includes:
[0033] Determine the first characteristic data and first label data of the process parameter optimization agent model of the second sample set; the first characteristic data is the CO2 throughput process parameter of the oil reservoir; the first label data is the accumulated CO2 storage;
[0034] Determine the second characteristic data and second label data of the process parameter optimization proxy model of the third sample set; the second characteristic data is the reservoir CO2 huff and puff process parameter; the second label data is the parameter group of the optimal production decline model combination;
[0035] Get the number of preset proxy models M;
[0036] A first process parameter optimization proxy integrated tree model corresponding to the second sample set and a second process parameter optimization proxy integrated tree model corresponding to the third sample set are respectively constructed; the first process parameter optimization proxy integrated tree model includes M first optimization proxy models; the second process parameter optimization proxy integrated tree model includes M second optimization proxy models;
[0037] Based on the first feature data and the first label data, using the M first optimized proxy models trained by the second sample set, to obtain M trained first optimized proxy models;
[0038] Based on the second feature data and the second label data, using the M second optimized proxy models trained by the third sample set, to obtain M trained second optimized proxy models;
[0039] Using an error analysis method to evaluate the M trained first optimization proxy models, a process parameter optimization proxy model of a second sample set is obtained;
[0040] The M trained second optimization proxy models are evaluated using an error analysis method to obtain a process parameter optimization proxy model for the third sample set.
[0041] Optionally, the first optimization agent model is a deep neural network, an integrated decision tree or a support vector machine;
[0042] The second optimization agent model is a deep neural network, an integrated decision tree or a support vector machine.
[0043] Optionally, the objective function is:
[0044] ;
[0045] ;
[0046] ;
[0047] ;
[0048] Where F1 is the first objective function, is the economic net present value, N t is the total number of time steps, m is the current time step, t m is the time difference between the current production time and the start of production, b is the annual interest rate, P oil is the oil price, C oil is the square oil cost, is the crude oil output during the current production period, is the cost of purchasing and injecting CO2, is the CO2 injection amount during the current production time, For the economic effect of CO2 storage, is the CO2 storage capacity during the current production period, N n is the total number of relaxation constraint penalty events, n is the current relaxation constraint penalty cost, is the cost of the current default event, FC is the fixed cost, C well is the drilling and completion cost, is the cost of fracturing a single fracture, is the number of fractures, F2 is the first objective function, is the effective CO2 storage capacity of the reservoir, m n,inj is the cumulative mass of CO2 injected, m n,o is the mass of CO2 dissolved in the cumulative oil production, m n,w is the mass of CO2 dissolved in the cumulative water production, m n,g is the mass of CO2 in the cumulative gas production.
[0049] Optionally, the constraint condition is:
[0050] ;
[0051] In the formula, is the single cycle gas injection time, is the lower limit of the single cycle gas injection time, It is the upper limit of gas injection time in a single cycle; is the single cycle well holding time, is the lower limit of the single cycle well soaking time, The upper limit of the single cycle soaking time; is the single cycle production time, is the lower limit of single cycle production time, is the upper limit of single cycle production time; is the gas injection rate per cycle, is the lower limit of the gas injection rate in a single cycle, is the upper limit of the gas injection rate in a single cycle; is the number of throughput cycles, is the lower limit of the number of throughput cycles, is the upper limit of the number of throughput cycles, For the timing of throughput transfer, is the lower limit of the throughput transfer opportunity, It is the upper limit of the throughput transfer opportunity.
[0052] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for coordinated optimization of carbon dioxide throughput, oil production enhancement and storage.
[0053] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0054] The present invention provides a method and device for coordinated optimization of CO2 throughput and oil production and storage. According to the numerical simulation model of CO2 throughput development in a single well of a target block, a first sample set and a second sample set are generated by sampling; a third sample set is established based on the first sample set; an optimal process parameter optimization proxy model is established based on the second sample set and the third sample set; based on the optimal process parameter optimization proxy model and constraint conditions, a multi-objective optimization algorithm is used to solve the optimal Pareto front of the objective function. Solving the objective function by coupling the proxy model and the multi-objective optimization algorithm can improve the efficiency and rationality of CO2 throughput process parameter optimization in the reservoir, and ensure that CO2 throughput and oil production and storage reach the coordinated optimal. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flow chart of a method for coordinated optimization of carbon dioxide throughput, oil production increase and storage provided in Example 1 of the present invention;
[0057] Figure 2 A numerical simulation model for CO2 huff and puff development in a single well of a target block provided in Example 1 of the present invention;
[0058] Figure 3 The Pareto front diagram of the coordinated optimization of CO2 throughput and oil storage in a single well of the target block provided in Example 1 of the present invention;
[0059] Figure 4 A comparison chart of production dynamic curves of a Pareto front solution provided in Example 1 of the present invention and a traditional optimization solution. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The purpose of the present invention is to provide a method and device for coordinated optimization of carbon dioxide throughput, oil production increase and storage, which can improve the efficiency and rationality of optimization of CO2 throughput process parameters in oil reservoirs.
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0063] Example 1
[0064] like Figure 1 As shown, a method for coordinated optimization of carbon dioxide throughput, oil production increase and storage in this embodiment includes:
[0065] Step 101: Based on the geological parameters, fluid parameters, fracturing construction data and development data of the target block, a numerical simulation model for single-well CO2 huff-and-puff development in the target block is established using numerical simulation software.
[0066] Step 102: Based on the single-well CO2 huff-and-puff development numerical simulation model of the target block, a first sample set and a second sample set are generated by sampling using a multi-dimensional biased Latin sampling method.
[0067] Step 103: Based on the first sample set, the reservoir CO2 throughput dynamic data is processed in sections, and the optimal production decline model of each production section is screened to establish a third sample set.
[0068] Step 104: Establish a process parameter optimization agent model based on the second sample set and the third sample set.
[0069] Step 105: Determine the objective function, optimization variables and constraints for optimizing the reservoir CO2 huff and puff process parameters.
[0070] Step 106: Based on the process parameter optimization agent model and constraint conditions, a multi-objective optimization algorithm is used to solve the optimal Pareto frontier of the objective function.
[0071] Step 107: Based on the optimal Pareto frontier of the objective function, determine the optimal process parameters for CO2 throughput.
[0072] The first sample set includes oil production dynamic data corresponding to different CO2 huff and puff process parameters. The oil production dynamic data is obtained after inputting different CO2 huff and puff process parameters into the single well CO2 huff and puff development numerical simulation model of the target block.
[0073] The second sample set includes the cumulative CO2 storage corresponding to different CO2 huff and puff process parameters. The cumulative CO2 storage is obtained by inputting different CO2 huff and puff process parameters into the single-well CO2 huff and puff development numerical simulation model of the target block.
[0074] The multidimensional biased Latin sampling method is determined by coupling the inverse function sampling method and the Latin hypercube sampling method.
[0075] Step 103 includes:
[0076] Step 103 - 1 : Segment the oil production dynamic data of each sample in the first sample set according to the throughput rounds to obtain the oil production dynamic data of each production section.
[0077] Step 103-2: Use a variety of production decline models to fit the oil production dynamic data of each production section respectively, and obtain a set of CO2 throughput production decline models.
[0078] Step 103-3: Draw the production data curve corresponding to each CO2 throughput decline model in each production section.
[0079] Step 103 - 4: randomly combining multiple CO2 throughput production decline models in the CO2 throughput production decline model set to obtain multiple CO2 throughput production decline model combinations.
[0080] Step 103-5: Determine the comprehensive evaluation coefficient of different CO2 throughput decline model combinations based on the production data curve.
[0081] Step 103-6: Determine the optimal production decline model combination based on the first sample set according to the comprehensive evaluation coefficients of different CO2 throughput production decline model combinations.
[0082] Step 103-7: A third sample set is established based on the first sample set and the optimal production decline model combination. The third sample set includes parameter groups of the optimal production decline model combination corresponding to different CO2 throughput process parameters. The parameter group of the optimal production decline model combination is obtained by fitting the dynamic data of different CO2 throughput oil production in stages through the optimal decline model combination.
[0083] The comprehensive evaluation coefficient is:
[0084] ;
[0085] In the formula, is the comprehensive evaluation coefficient of the CO2 huff-and-puff production decline model combination, p is the decision variable, V is the oil production of the CO2 huff-and-puff numerical simulation, is the oil production of the combined fitting of the production decline model, is the average value of the combined fitted oil production of the production decline model; a is the weight of the determination coefficient obtained by fitting the dynamic data of oil production of each production section of the sample using the production decline model; b is the weight of the determination coefficient obtained by fitting the dynamic data of cumulative oil production of each production section of the sample; c is the weight of the relative root mean square error obtained by fitting the dynamic data of oil production of each production section of the sample; s is the number of samples, S data is the total number of samples; i is the i-th production section of the sample, represents the total number of production segments in the sample, where i=0 represents the exhaustion production segment, i=m represents the final throughput production segment; j is the jth time point of a production segment in the sample, is the total number of time points in the sample production segment; is the actual oil production of the sth sample at the jth time point in the i-th production section, is the oil production of the production decline model combination at the jth time point in the i-th production stage of the s-th sample; is the average oil production obtained by the combination of production decline models for the i-th production section of the s-th sample; It is the average oil production obtained by the combination of production decline models in the entire production period of the sth sample.
[0086] Step 104 includes:
[0087] Step 104-1: Determine the first characteristic data and first label data of the process parameter optimization agent model of the second sample set. The first characteristic data is the reservoir CO2 throughput process parameter. The first label data is the accumulated CO2 storage volume.
[0088] Step 104-2: Determine the second characteristic data and second label data of the process parameter optimization proxy model of the third sample set. The second characteristic data is the reservoir CO2 huff and puff process parameter. The second label data is the parameter group of the optimal production decline model combination.
[0089] Step 104 - 3: Obtain the preset number M of proxy models.
[0090] Step 104-4: construct a first process parameter optimization proxy ensemble tree model corresponding to the second sample set and a second process parameter optimization proxy ensemble tree model corresponding to the third sample set respectively. The first process parameter optimization proxy ensemble tree model includes M first optimization proxy models. The second process parameter optimization proxy ensemble tree model includes M second optimization proxy models.
[0091] Step 104 - 5 : Based on the first feature data and the first label data, the M first optimized proxy models trained by the second sample set are used to obtain M trained first optimized proxy models.
[0092] Step 104 - 6 : Based on the second feature data and the second label data, the M second optimized proxy models trained by the third sample set are used to obtain M trained second optimized proxy models.
[0093] Step 104 - 7 : Evaluate the M trained first optimization proxy models using an error analysis method to obtain a process parameter optimization proxy model for the second sample set.
[0094] Step 104 - 8 : Evaluate the M trained second optimization proxy models using an error analysis method to obtain a process parameter optimization proxy model for the third sample set.
[0095] The first optimization agent model is a deep neural network, an integrated decision tree or a support vector machine.
[0096] The second optimization agent model is a deep neural network, an integrated decision tree or a support vector machine.
[0097] The objective function is:
[0098] .
[0099] .
[0100] .
[0101] .
[0102] Where F1 is the first objective function, is the economic net present value, N t is the total number of time steps, m is the current time step, t m is the time difference between the current production time and the start of production, b is the annual interest rate, P oil is the oil price, C oil is the square oil cost, is the crude oil output during the current production period, is the cost of purchasing and injecting CO2, is the CO2 injection amount during the current production time, For the economic effect of CO2 storage, is the CO2 storage capacity during the current production period, N n is the total number of relaxation constraint penalty events, n is the current relaxation constraint penalty cost, is the cost of the current default event, FC is the fixed cost, C well is the drilling and completion cost, is the cost of fracturing a single fracture, is the number of fractures, F2 is the first objective function, is the effective CO2 storage capacity of the reservoir, m n,inj is the cumulative mass of CO2 injected, m n,o is the mass of CO2 dissolved in the cumulative oil production, m n,w is the mass of CO2 dissolved in the cumulative water production, m n,g is the mass of CO2 in the cumulative gas production.
[0103] The constraints are:
[0104] .
[0105] In the formula, is the single cycle gas injection time, is the lower limit of the single cycle gas injection time, It is the upper limit of gas injection time in a single cycle. is the single cycle well holding time, is the lower limit of the single cycle well soaking time, It is the upper limit of single cycle soaking time. is the single cycle production time, is the lower limit of single cycle production time, It is the upper limit of single cycle production time. is the gas injection rate per cycle, is the lower limit of the gas injection rate in a single cycle, is the upper limit of the gas injection rate in a single cycle. is the number of throughput cycles, is the lower limit of the number of throughput cycles, is the upper limit of the number of throughput cycles; For the timing of throughput transfer, is the lower limit of the throughput transfer opportunity, It is the upper limit of the throughput transfer opportunity.
[0106] A method for coordinated optimization of carbon dioxide throughput, oil production increase and storage provided by this embodiment is described in detail below. This embodiment includes:
[0107] Step 1: Based on the geological and fluid parameters of the target block and the construction and development data, a numerical simulation model for single-well CO2 huff-and-puff development in the target block is established using numerical simulation software.
[0108] S11. Obtain geological and fluid parameters and construction and development data of the target block.
[0109] S12. Based on the geological and fluid parameters and construction and development data obtained in S11, a geological model of the target block is constructed, and a fracture expansion simulation is performed using geological and engineering integrated simulation software to obtain a fracture expansion model of the target block.
[0110] S13. Based on the fracture extension model constructed in S12, a dynamic simulation of single-well elastic development production in the target block is carried out. The basic parameters of the single-well elastic development numerical simulation model are shown in Table 1. By adjusting parameters such as phase permeability to perform actual production dynamic fitting of the single well, a numerical simulation model of single-well elastic development in the target block is obtained, such as Figure 2 As shown, it is a numerical simulation model for single-well CO2 throughput development in a target block provided in Example 1 of the present invention.
[0111] S14. Based on the numerical simulation model of elastic development of a single well in the target block constructed in S13, a numerical simulation of CO2 throughput in the reservoir is performed to obtain a numerical simulation model of CO2 throughput development of a single well in the target block.
[0112] Table 1 Basic parameters of the numerical simulation model for single-well elastic development in the target block.
[0113]
[0114] Step 2: Based on the single-well CO2 throughput development numerical simulation model of the target block, sampling is performed to generate a first sample set and a second sample set.
[0115] The first sample set refers to a sample set of daily or monthly oil production dynamics obtained by numerically simulating the single-well CO2 throughput development numerical simulation model of the target block in S1 based on the process parameters, using the reservoir CO2 throughput process parameters as input data and outputting the sample set of daily or monthly oil production dynamics.
[0116] The second sample set refers to a sample set that uses the reservoir CO2 throughput process parameters as input data and uses the single-well CO2 throughput development numerical simulation model of the target block S1 as output data to perform numerical simulation on the basis of the process parameters to obtain the cumulative CO2 storage capacity.
[0117] S21. Based on the single-well CO2 huff and puff development numerical simulation model of the target block described in S1, a sensitivity analysis of the CO2 huff and puff process parameters is performed to determine the upper and lower limits of the values of each process parameter, as shown in Table 2. The CO2 huff and puff process parameters include but are not limited to: the timing of implementation of the huff and puff measures, the number of huff and puff cycles, the single-cycle gas injection time, the gas injection rate, the CO2 injection volume, the single-cycle gas injection well shut-in time, and the single-cycle production time.
[0118] Table 2 Schematic diagram of the selected optimization variables and their corresponding upper and lower limits
[0119]
[0120] S22. Based on the CO2 throughput process parameters and their value ranges determined in S21, a multi-dimensional biased Latin sampling method is used to form a set of reservoir CO2 throughput process parameter optimization variable data sets, and random sampling is repeated according to a preset number of times.
[0121] The multidimensional biased Latin sampling method is a sampling method of coupling the inverse function sampling method and the Latin hypercube sampling method proposed by the present invention, and its specific implementation steps are as follows.
[0122] S221. Determine the dimension and number of samples of the sample set to be generated.
[0123] S222. For each dimension, determine the interval division method according to a specific Gaussian probability formula.
[0124] S223. Calculate the boundary of each interval according to the determined division method.
[0125] S224. For each dimension, generate the location of the sample point. Unlike the traditional Latin hypercube equally spaced intervals, it is necessary to ensure that the sample points are unique within the interval of each dimension. This step can be completed by random sampling, but it is necessary to ensure that the sample points meet the non-equal spacing constraints of the partition.
[0126] S225. Group the generated sample points according to the dimensions, and ensure that the order of the sample points in each dimension is random.
[0127] S226. For the sample points of each dimension, map the sample points to the corresponding interval according to the determined division method and interval boundary.
[0128] S227. Combine the sample points of all dimensions to form a sample set of biased Latin hypercube.
[0129] S23. Based on the sample set of reservoir CO2 throughput process parameters obtained by sampling in S22, the numerical simulation model of single-well CO2 throughput development in the target block described in S1 is called to perform numerical simulation to obtain dynamic data such as the sample's oil production and cumulative CO2 storage.
[0130] S24. Read and record the CO2 throughput production dynamics of the oil reservoir obtained in S23, combine the CO2 throughput process parameters of each sample with the oil production dynamic data to form a first sample set; combine the CO2 throughput process parameters of each sample with the accumulated CO2 storage volume to form a second sample set.
[0131] Step 3: Based on the first sample set constructed in S2, the CO2 throughput and oil production performance of the reservoir is processed in sections, the optimal production performance decline model of each section is selected, and the third sample set is established.
[0132] The third sample set refers to a sample set in which the reservoir CO2 throughput process parameters, oil production dynamics, and production decline model parameter groups of each sample correspond one to one, formed on the basis of the correspondence between the reservoir CO2 throughput process parameters and the oil production dynamics in the first sample set, by characterizing the oil production dynamics through the parameter group of the optimal segmented production decline model.
[0133] S31: Based on the first sample set constructed in S2, the oil production dynamics of each sample are divided according to the exhaustion production segment, the nth round throughput production segment, and the last round throughput production segment.
[0134] The specific division standards for each production section of oil production are as follows: the exhaustion production section refers to the time period from the start of well production to the start of gas injection in the first round of CO2 huff and puff; the nth round of huff and puff production section refers to the time period from the start of gas injection in the nth round of CO2 huff and puff to the shutdown of the well in the nth round of CO2 huff and puff production; the last round of huff and puff production section refers to the time period from the start of gas injection in the last round of CO2 huff and puff to the shutdown of the well in the last round of CO2 huff and puff production.
[0135] S32: Use multiple production decline models to fit the oil production dynamic data of each production section respectively, and obtain a set of CO2 throughput production decline models. The production decline models include but are not limited to four empirical production decline models: Arps production decline model, SEPD production decline model, Duong production decline model and PLE production decline model. This embodiment adopts Arps production decline model and Duong production decline model. The optimization algorithms used in fitting include but are not limited to three optimization algorithms: evolutionary strategy with adaptive adjustment of covariance, particle swarm optimization algorithm, and gray wolf optimization algorithm. This embodiment adopts particle swarm optimization algorithm.
[0136] S33: Draw the production data curves of four production decline models in each production stage and calculate the comprehensive evaluation coefficients under different model combinations , determine the optimal model combination based on the first sample set. The comprehensive evaluation coefficients are shown in Table 3. By comparing the comprehensive evaluation coefficients of different production decline model combinations, it can be seen that the exhaustion and final round throughput stages use the Arps exponential decline model, while the intermediate throughput stage uses the Duong model, which has the highest comprehensive evaluation index. Therefore, this model is the optimal model combination based on the first sample set.
[0137] Table 3 Comprehensive evaluation coefficients of some production decline model combinations
[0138]
[0139] S36: Fit the oil production performance of the first sample set using the optimal decline model combination determined in S35 to obtain the parameter group of the optimal segmented production decline model set. Combine the reservoir CO2 huff and puff process parameters and oil production performance of the first sample set with the parameter group of the optimal segmented production decline model set to form a third sample set.
[0140] Step 4: Based on the second sample set and the third sample set, respectively establish the optimization agent integrated tree model of the second sample set and the third sample set of CO2 throughput process parameters of the target block reservoir to obtain the optimal process parameter optimization agent model.
[0141] The method for establishing a proxy integrated tree model for optimizing CO2 huff and puff process parameters of a target well may include:
[0142] S41. Determine the characteristic data and label data of the optimization proxy model of the second sample set and the third sample set of CO2 throughput process parameters of the target block oil reservoir.
[0143] For the second sample set, the characteristic data are the reservoir CO2 throughput process parameters, and the label data are the cumulative CO2 storage volume; for the third sample set, the characteristic data are the reservoir CO2 throughput process parameters, and the label data are the parameter group of the optimal segmented production decline model set.
[0144] S42. Set the number of proxy models M, and select specific algorithms used by the optimization proxy models of the second sample set and the third sample set of CO2 huff-and-puff process parameters of the target block reservoir.
[0145] The proxy ensemble tree model for optimizing CO2 huff-and-puff process parameters in the target block reservoir is a combination of M optimization proxy models, each of which can be any regression prediction model such as a deep neural network, an integrated decision tree, a support vector machine, etc., and the structure of each proxy model is different; M is a positive integer greater than or equal to 3 and can be set arbitrarily.
[0146] S43. The optimization proxy models of the second sample set and the third sample set of the CO2 throughput process parameters of the target block oil reservoir are trained respectively, and the trained proxy models constitute the optimization proxy model of the CO2 throughput process parameters of the target block oil reservoir. The proxy model of the second sample set and the proxy model of the third sample set can also be used separately.
[0147] S43. Use a variety of error analysis methods to evaluate each proxy model in the process parameter optimization proxy integrated tree model to obtain the optimal process parameter optimization proxy model corresponding to the second sample set and the third sample set of CO2 throughput process parameters of the target block oil reservoir.
[0148] Step 5: Determine the objective function, optimization variables and constraints for the CO2 huff-and-puff process parameter optimization of the reservoir.
[0149] Specifically, the optimization objective function may be the cumulative oil production, economic net present value, effective CO2 storage, etc. of the target block reservoir implementing CO2 huff and puff development. In this embodiment, the cumulative effective CO2 storage and economic net present value are used as the objective functions.
[0150] The optimization variable can be one or any combination of the CO2 injection time, the number of injection cycles, the single-cycle gas injection time, the well shut-in time and the gas injection time, and the single-cycle gas injection rate. The optimization variables and their upper and lower limit constraints of this embodiment are the same as S21, see Table 2.
[0151] Optimization constraints are restrictions on the value range of variables or the satisfaction of specific relationships, including but not limited to equality constraints, inequality constraints, and relaxation constraints. Equality constraints are rounding constraints on various optimization variables, including but not limited to the number of throughput rounds in the CO2 throughput production process of each well, the single-cycle gas injection time in days, etc., which need to be constrained to integers.
[0152] Inequality constraints are used to limit the range of values of optimization variables and require that the variables satisfy specific inequality relationships. Inequality constraints include but are not limited to the upper and lower limits of each optimization variable, the wellhead pressure during gas injection is not greater than the maximum pressure that the gas injection compressor can provide, and the monthly cumulative oil production of the reservoir is greater than the guaranteed production.
[0153] Relaxed constraints are a form of constraints that allow partial violations of constraints in the search for the optimal solution. Relaxed constraints include but are not limited to the wellhead pressure during gas injection should be less than the maximum pressure that the gas injection compressor can provide, the daily oil production and oil content of the reservoir should be greater than the specified industrial oil flow, etc. When the dependent variable exceeds the specified value, a certain penalty item is given.
[0154] The special constraints of this embodiment are that the bottom hole pressure does not exceed 70 MPa and the injection pressure does not exceed 100 MPa.
[0155] Step 6: Based on the optimization objective function constructed in S5, the reservoir CO2 huff-and-puff process parameter optimization agent model is used to call a multi-objective optimization algorithm to obtain the Pareto front of the optimization objective function.
[0156] Based on the optimization objective function constructed in S5, the reservoir CO2 huff and puff process parameter optimization agent model is used to call a multi-objective optimization algorithm to obtain the Pareto frontier of the optimization objective function. The multi-objective optimization algorithm used in this embodiment is a fast non-dominated sorting genetic algorithm NSGA-II.
[0157] Step 7: Based on the Pareto frontier of multi-objective optimization of CO2 throughput, oil production increase and storage obtained by S6 optimization, select a representative optimal solution according to actual needs. Figure 3 The Pareto front diagram of the optimization of the process parameters for single-well CO2 throughput and oil production increase and storage synergy in the target block provided in Example 1 of the present invention. If the actual demand is more inclined to the economic net present value, a CO2 throughput process parameter combination with a higher economic net present value is selected from the Pareto front; if the actual demand is more inclined to the CO2 storage, a CO2 throughput process parameter combination with a higher CO2 storage is selected from the Pareto front. Figure 4 A comparison chart of production dynamic curves of a Pareto front solution provided in Example 1 of the present invention and a traditional optimization solution.
[0158] Example 2
[0159] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a method for coordinated optimization of carbon dioxide throughput, oil production enhancement, and storage in Example 1.
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for coordinated optimization of carbon dioxide throughput, oil production and storage, characterized in that: include: According to the geological parameters, fluid parameters, fracturing construction data and development data of the target block, a numerical simulation model for single-well CO2 huff-and-puff development in the target block is established using numerical simulation software; According to the single-well CO2 huff-and-puff development numerical simulation model of the target block, a first sample set and a second sample set are generated by sampling using a multi-dimensional biased Latin sampling method; The multidimensional biased Latin sampling method is determined by coupling the inverse function sampling method and the Latin hypercube sampling method; the first sample set includes dynamic data of oil production corresponding to different CO2 throughput process parameters; the dynamic data of oil production is obtained after different CO2 throughput process parameters are input into the numerical simulation model of CO2 throughput development of a single well in the target block; the second sample set includes the cumulative CO2 storage corresponding to different CO2 throughput process parameters; the cumulative CO2 storage is obtained after different CO2 throughput process parameters are input into the numerical simulation model of CO2 throughput development of a single well in the target block; According to the first sample set, the dynamic data of CO2 throughput of the reservoir is processed in sections, and the optimal production decline model of each production section is screened to establish a third sample set; Establishing a process parameter optimization agent model according to the second sample set and the third sample set; Determine the objective function, optimization variables and constraints for optimizing reservoir CO2 huff-and-puff process parameters; The optimization variables are one or any combination of the CO2 injection time, the number of injection cycles, the single-cycle gas injection time, the well shut-in time and the gas injection time, and the single-cycle gas injection rate; the objective function is: F1=max NPV(u); In the formula, F1 is the first objective function, NPV(u) is the economic net present value, N t is the total number of time steps, m is the current time step, t m is the time difference between the current production time and the start of production, b is the annual interest rate, P oil is the oil price, C oil is the square oil cost, is the crude oil output during the current production period, is the cost of purchasing and injecting CO2, is the CO2 injection amount during the current production time, For the economic effect of CO2 storage, is the CO2 storage capacity during the current production period, N n is the total number of relaxation constraint penalty events, n is the current relaxation constraint penalty cost, a n is the cost of the current default event, FC is the fixed cost, C well is the drilling and completion cost, C fra,k is the cost of fracturing a single fracture, n f is the number of fractures, F2 is the second objective function, is the effective CO2 storage capacity of the reservoir, m n,inj is the cumulative mass of CO2 injected, m n,o is the mass of CO2 dissolved in the cumulative oil production, m n,w is the mass of CO2 dissolved in the cumulative water production, m n,g is the mass of CO2 in the cumulative gas production; The constraints are: Where, T inj is the single cycle gas injection time, is the lower limit of the single cycle gas injection time, It is the upper limit of gas injection time in a single cycle; T soak is the single cycle well holding time, is the lower limit of the single cycle well soaking time, The upper limit of the single cycle soaking time; T pro is the single cycle production time, is the lower limit of single cycle production time, is the upper limit of single cycle production time; R inj is the gas injection rate per cycle, is the lower limit of the gas injection rate in a single cycle, is the upper limit of the gas injection rate in a single cycle; N hnp is the number of throughput cycles, is the lower limit of the number of throughput cycles, is the upper limit of the throughput cycle number, T m_hnp For the timing of throughput transfer, is the lower limit of the throughput transfer opportunity, The upper limit of the throughput transfer opportunity; Based on the process parameter optimization agent model and the constraint conditions, a multi-objective optimization algorithm is used to solve the optimal Pareto frontier of the objective function; Based on the optimal Pareto frontier of the objective function, the optimal process parameters of CO2 throughput are determined; According to the first sample set, the dynamic data of CO2 throughput of the reservoir is processed in sections, and the optimal production decline model of each production section is screened to establish the third sample set, including: The oil production dynamic data of each sample in the first sample set is divided according to the throughput rounds to obtain the oil production dynamic data of each production section; A variety of production decline models are used to fit the oil production dynamic data of each production section to obtain a set of CO2 throughput production decline models. Draw the production data curve corresponding to each CO2 throughput decline model in each production section; Randomly combining multiple CO2 throughput production decline models in the CO2 throughput production decline model set to obtain multiple CO2 throughput production decline model combinations; Determine the comprehensive evaluation coefficient of different CO2 throughput decline model combinations based on the production data curve; According to the comprehensive evaluation coefficients of different CO2 throughput production decline model combinations, the optimal production decline model combination based on the first sample set is determined; A third sample set is established based on the first sample set and the optimal production decline model combination; the third sample set includes a parameter group of the optimal production decline model combination corresponding to different CO2 throughput process parameters; the parameter group of the optimal production decline model combination is obtained by fitting the dynamic data of different CO2 throughput oil production in stages through the optimal decline model combination; According to the second sample set and the third sample set, a process parameter optimization agent model is established, including: Determine the first characteristic data and first label data of the process parameter optimization agent model of the second sample set; the first characteristic data is the CO2 throughput process parameter of the oil reservoir; the first label data is the accumulated CO2 storage; Determine the second characteristic data and second label data of the process parameter optimization proxy model of the third sample set; the second characteristic data is the reservoir CO2 huff and puff process parameter; the second label data is the parameter group of the optimal production decline model combination; Get the number of preset proxy models M; A first process parameter optimization proxy integrated tree model corresponding to the second sample set and a second process parameter optimization proxy integrated tree model corresponding to the third sample set are respectively constructed; the first process parameter optimization proxy integrated tree model includes M first optimization proxy models; the second process parameter optimization proxy integrated tree model includes M second optimization proxy models; Based on the first feature data and the first label data, using the M first optimized proxy models trained by the second sample set, to obtain M trained first optimized proxy models; Based on the second feature data and the second label data, using the M second optimized proxy models trained by the third sample set, to obtain M trained second optimized proxy models; Using an error analysis method to evaluate the M trained first optimization proxy models, a process parameter optimization proxy model of a second sample set is obtained; Using an error analysis method to evaluate the M trained second optimization proxy models, a process parameter optimization proxy model of a third sample set is obtained; According to the single-well CO2 huff-and-puff development numerical simulation model of the target block, a first sample set and a second sample set are generated by sampling using a multi-dimensional biased Latin sampling method, including: Based on the numerical simulation model of CO2 huff and puff development in a single well in the target block, a sensitivity analysis of the CO2 huff and puff process parameters was conducted to determine the upper and lower limits of each process parameter; Based on the determined CO2 huff and puff process parameters and value ranges, a multi-dimensional biased Latin sampling method is used to form a set of reservoir CO2 huff and puff process parameter optimization variable data sets, and random sampling is repeated according to a preset number of times; Based on the sample set of reservoir CO2 huff and puff process parameters obtained through sampling, the numerical simulation model of CO2 huff and puff development in the target block is used to perform numerical simulation to obtain dynamic data such as sample oil production and cumulative CO2 storage. Read and record the obtained CO2 throughput production dynamics of the oil reservoir, combine the CO2 throughput process parameters of each sample with the oil production dynamic data to form a first sample set; combine the CO2 throughput process parameters of each sample with the accumulated CO2 storage volume to form a second sample set; Multidimensional biased Latin sampling methods include: Determine the dimension and number of samples of the sample set to be generated; For each dimension, the interval division method is determined according to the specific Gaussian probability formula; According to the determined division method, calculate the boundary of each interval; For each dimension, generate the location of the sample points; Group the generated sample points according to the dimensions; For the sample points of each dimension, the sample points are mapped to the corresponding intervals according to the determined division method and interval boundaries; The sample points of all dimensions are combined to form a sample set of biased Latin hypercube.
2. The method for coordinated optimization of carbon dioxide throughput, oil production increase and storage according to claim 1, characterized in that: The comprehensive evaluation coefficient is: In the formula, is the comprehensive evaluation coefficient of the CO2 huff-and-puff production decline model combination, p is the decision variable, V is the oil production of the CO2 huff-and-puff numerical simulation, is the oil production of the combined fitting of the production decline model, is the average value of the oil production of the production decline model combination fitting; a is the weight of the determination coefficient obtained by fitting the dynamic data of oil production of each production section of the sample using the production decline model, b is the weight of the determination coefficient obtained by fitting the dynamic data of cumulative oil production of each production section of the sample, and c is the weight of the relative root mean square error obtained by fitting the dynamic data of oil production of each production section of the sample; s is the number of samples, S data is the total number of samples; i is the i-th production segment of the sample, m1 is the total number of production segments in the sample, where i=0 represents the exhaustion production segment, and i=m represents the final round of throughput production segment; j is the j-th time point of a production segment of the sample, and n1 is the total number of time points on the sample production segment; V s,i,j is the actual oil production of the sth sample at the jth time point in the i-th production section, is the oil production of the production decline model combination at the jth time point in the i-th production stage of the s-th sample; is the average oil production obtained by the combination of production decline models for the i-th production section of the s-th sample; It is the average oil production obtained by the combination of production decline models in the entire production period of the sth sample.
3. The method for coordinated optimization of carbon dioxide throughput, oil production increase and storage according to claim 1, characterized in that: The first optimization agent model is a deep neural network, an integrated decision tree, or a support vector machine; The second optimization agent model is a deep neural network, an integrated decision tree or a support vector machine.
4. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a method for coordinated optimization of carbon dioxide throughput, oil production increase, and storage according to any one of claims 1 to 3.
