Oil reservoir injection-production optimization method and equipment
By generating a control parameter vector and constructing a net present value expectation expression, the reservoir injection and production process is optimized, which solves the problem of insufficient reservoir injection and production optimization means in the existing technology and improves reservoir production efficiency and economic benefits.
Patent Information
- Application Number
- CN202410744387.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-30
AI Technical Summary
There are few technical means for reservoir injection and production optimization in the existing technology, resulting in the failure to fully realize reservoir production efficiency and economic benefits.
By generating the control parameter vector of the target reservoir, the net present value expectation expression is constructed, and the optimal element values of the control parameters are determined using the iterative method of maximizing the net present value expectation to optimize the reservoir injection and production process.
It improves the efficiency and economic benefits of reservoir injection and production, enriches reservoir injection and production optimization methods, and reduces energy consumption and costs.
Smart Images

Figure CN118564215A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil and natural gas exploitation, and in particular to an oil reservoir injection and production optimization method and equipment. Background Art
[0002] Reservoir injection and production optimization refers to a processing method that optimizes the relevant control parameters of water injection wells and oil production wells in the reservoir during reservoir exploitation research. It is a key technology to improve oil recovery.
[0003] Related technologies can improve the output of reservoir production wells, reduce energy consumption and costs in the process of oil and gas reservoir exploitation, and improve the economic benefits of oil fields through reservoir injection and production optimization. However, there are few technical means for related technologies to achieve reservoir injection and production optimization. Summary of the invention
[0004] The present invention provides a method and device for optimizing oil reservoir injection and production, which are used to solve the defect that there are few technical means for realizing oil reservoir injection and production optimization in the related technology, and can enrich the means for optimizing oil reservoir injection and production.
[0005] In a first aspect, the present invention provides a method for optimizing oil reservoir injection and production, comprising:
[0006] Generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each of the oil and gas wells in the target oil reservoir;
[0007] Constructing a net present value expectation expression of the target reservoir based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector;
[0008] With the goal of maximizing the expected net present value, iterate the element values of the control parameter vector in the expected net present value expression, and calculate the expected net present value corresponding to each generation of element values until the iteration stop condition is met;
[0009] The maximum net present value expectation in the iteration process is determined, and the element value corresponding to the maximum net present value expectation is determined as the optimal element value.
[0010] Optionally, constructing an expected expression of the net present value of the target reservoir based on the control parameter vector includes:
[0011] constructing a net present value expression of the target oil reservoir based on the control parameter vector and the reservoir property variables of the target oil reservoir;
[0012] The net present value expectation expression is constructed according to a plurality of reservoir properties of the target oil reservoir and the net present value expression.
[0013] Optionally, the expected expression of the net present value is:
[0014]
[0015] Among them, g Y (x) is the expected net present value, N e is the total number of the reservoir properties, j is the number of the reservoir properties, N t is the total number of time steps, i is the time step index, t i is the cumulative time since the start of production, v o and v w are crude oil price and water treatment cost, Q oi and Q wi is the time step t i The total oil and water production in the reservoir, y is the reservoir property variable, y j is the reservoir property numbered j, and x is the control parameter variable.
[0016] Optionally, iterating the element values of the control parameter vector in the expected net present value expression and calculating the expected net present value corresponding to each generation of element values until an iteration stop condition is satisfied includes:
[0017] Determine an approximate value expression of the sensitivity of the expected net present value to the control parameter vector;
[0018] generating an error control expression according to a plurality of reservoir properties of the target reservoir and the control parameter vector, wherein the error control expression is used to reduce an error of the sensitivity approximation expression;
[0019] Based on the fastest descent method, the sensitivity approximation expression and the error control expression, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stop condition is met.
[0020] Optionally, the determination of an approximate value expression of the sensitivity of the net present value expectation to the control parameter vector includes:
[0021] Using a time-dependent Gaussian random variable to perturb each of the control parameter adjustment data in the control parameter vector to generate a plurality of implementation parameters, each of the implementation parameters including perturbed data corresponding to each of the control parameter adjustment data in the control parameter vector;
[0022] For any of the realization parameters, determine a geological model corresponding to the realization parameter, calculate a corresponding net present value according to the realization parameter and the geological model, and treat the realization parameter and the corresponding net present value as a whole as an element to be processed;
[0023] Arranging all the elements to be processed to generate a corresponding realization set;
[0024] An approximate expression for the cross-covariance between the expected net present value and the control parameter vector is determined based on the realization set and used as the approximate expression for the sensitivity.
[0025] Optionally, generating an error control expression according to a plurality of reservoir properties of the target reservoir and the control parameter vector includes:
[0026] Performing reservoir numerical simulation according to the plurality of reservoir properties and the control parameter vector to generate a corresponding adjoint gradient matrix;
[0027] Performing singular value decomposition on the adjoint gradient matrix to obtain corresponding singular vectors;
[0028] A localized matrix for eliminating the influence of covariance pseudo-correlation is generated based on the singular vectors, and the localized matrix is used as the error control expression.
[0029] Optionally, the iterating of the element values of the control parameter vector in the net present value expectation expression based on the fastest descent method, the sensitivity approximation expression, and the error control expression, and calculating the net present value expectation corresponding to each generation of element values until an iteration stop condition is met, includes:
[0030] Determine the control parameter adjustment data in the control parameter vector as the primary element value of the control parameter vector, and calculate the corresponding net present value expectation according to the primary element value and the net present value expectation expression;
[0031] Determine the next generation element value based on the fastest descent method, the sensitivity approximation expression, the error control expression and the initial value, and calculate the corresponding net present value expectation;
[0032] Based on the fastest descent method, the sensitivity approximation expression, the error control expression and the next generation element value, a new next generation element value is determined until an iteration stop condition is met.
[0033] In a second aspect, the present invention provides an oil reservoir injection and production optimization device, comprising:
[0034] A generating unit, configured to generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each of a plurality of oil and gas wells in the target oil reservoir;
[0035] A construction unit, configured to construct an expected net present value expression of the target reservoir based on the control parameter vector; wherein the expected net present value expression includes the control parameter vector;
[0036] An iteration unit, for iterating the element values of the control parameter vector in the net present value expectation expression with the goal of maximizing the net present value expectation, and calculating the net present value expectation corresponding to each generation of element values until an iteration stop condition is met;
[0037] A first determining unit, used to determine the maximum net present value expectation in the iteration process;
[0038] The second determining unit is used to determine the element value corresponding to the maximum net present value expectation as the optimal element value.
[0039] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the oil reservoir injection and production optimization method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0040] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the reservoir injection and production optimization method of the first aspect or any corresponding embodiment thereof.
[0041] The reservoir injection and production optimization method and device provided by the present invention can generate a control parameter vector for a target reservoir; wherein the control parameter vector includes control parameter adjustment data for each oil and gas well in a plurality of oil and gas wells of the target reservoir. A net present value expectation expression for the target reservoir is constructed based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector. With the goal of maximizing the net present value expectation, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stop condition is met. The maximum net present value expectation during the iteration process is determined, and the element value corresponding to the maximum net present value expectation is determined as the optimal element value. The present invention can optimize reservoir injection and production with the goal of maximizing the net present value expectation, determine the optimal element value of the control parameter vector, and enrich the means of reservoir injection and production optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0043] Figure 1 A flow chart of a method for optimizing oil reservoir injection and production provided by an embodiment of the present invention;
[0044] Figure 2 A method for determining L by fitting the actual correlation area provided in an embodiment of the present invention x and L y Schematic diagram of
[0045] Figure 3 An ellipse of a fitting correlation area provided in an embodiment of the present invention, L x and L y Schematic diagram of the relationship between
[0046] Figure 4 A schematic diagram of injection-production optimization using a related model provided in an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of the structure of an oil reservoir injection and production optimization device provided by an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0050] Combine the following Figure 1-Figure 4 The reservoir injection and production optimization method of the present invention is described.
[0051] like Figure 1 As shown, this embodiment proposes a first reservoir injection and production optimization method, which may include the following steps:
[0052] S101. Generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each oil and gas well in a plurality of oil and gas wells of the target oil reservoir.
[0053] The target oil reservoir may be an oil reservoir that needs to be optimized for injection and production.
[0054] The control parameter adjustment data may include each adjustment data of each control parameter of the oil and gas well within the target period, such as each adjustment data of the injection pressure and temperature of the oil and gas well within the target period. Specifically, each adjustment data may be the difference between the current data and the previous data.
[0055] Optionally, the target period may be a period from the time of first mining to the present, or may be a partial period from the time of first mining to the present.
[0056] It should be noted that the number of data in the control parameter adjustment data of each oil and gas well may be the same.
[0057] Specifically, the elements in the control parameter vector X can be obtained by first traversing the control parameters of one well and then traversing all wells. For an oil reservoir with N wells, assuming that the number of adjustments to the working system of each well is m n , then X can be used to represent the control variable vector, that is, the adjustment value of the control parameters such as bottom hole pressure is a vector of coordinates, and X can contain all well constraints of different control steps, that is, the control parameter adjustment data of each oil and gas well.
[0058]
[0059] Among them, N x is the total number of control parameters for all wells, then n is the well number.
[0060] S102. Constructing a net present value expectation expression of the target oil reservoir based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector.
[0061] Optionally, step S102 may include:
[0062] Based on the control parameter vector and the reservoir property variables of the target oil reservoir, a net present value expression of the target oil reservoir is constructed;
[0063] According to multiple reservoir properties of the target reservoir and the net present value expression, a net present value expectation expression is constructed.
[0064] Among them, reservoir properties may include permeability and porosity, etc.
[0065] Specifically, this embodiment can first construct a net present value expression of the target oil reservoir based on the control parameter vector and multiple reservoir properties, and then construct an expected net present value expression of the target oil reservoir.
[0066] It should be noted that the expected expression of the net present value can be obtained by optimizing the control parameter variables in the net present value expression by applying the set optimization method in this embodiment, taking into account the uncertainty of the reservoir model. e Different reservoir properties j , maximizing the expected net present value is taken as the goal to take into account the uncertainty of the reservoir model.
[0067] Optionally, the expected net present value expression is:
[0068]
[0069] Among them, g Y (x) is the expected net present value, N e is the total number of reservoir properties, j is the number of reservoir properties, N t is the total number of time steps, i is the time step index, t i is the cumulative time since the start of production, v o and v w are crude oil price and water treatment cost, Q oi and Q wi is the time step t i The total oil and water production in the reservoir, y is the reservoir property variable, y j is the reservoir property numbered j, and x is the control parameter variable.
[0070] Specifically, in this embodiment, a net present value expression may be created first:
[0071]
[0072] Among them, g(x,y) is the net present value expression.
[0073] It should be noted that g Y The subscript Y in (x) represents the expected value of the probability density function of the geological model. Since the expected value is not changed during production optimization, g Y (x) can be considered as a function of the control parameter variable X only.
[0074] S103, with the goal of maximizing the expected net present value, iterate the element values of the control parameter vector in the expected net present value expression, and calculate the expected net present value corresponding to each generation of element values until the iteration stop condition is met.
[0075] Specifically, this embodiment can take maximizing the net present value expectation as the goal, iterate the element values of the control parameter vector in the net present value expectation expression, and after determining the element values of each generation of the control parameter vector, calculate the corresponding net present value expectation based on the element values of the control parameter vector and the net present value expectation expression.
[0076] The iteration stopping condition may be that the number of iterations reaches a preset number, or that the net present value expectation reaches a preset threshold.
[0077] S104. Determine the maximum net present value expectation during the iteration process.
[0078] Specifically, this embodiment can determine the maximum value, that is, the maximum net present value expectation, from the net present value expectations corresponding to the element values of each generation.
[0079] S105. Determine the element value corresponding to the maximum expected net present value as the optimal element value.
[0080] Specifically, after determining the maximum net present value expectation, this embodiment can determine the element value corresponding to the maximum net present value expectation and use it as the optimal element value of the control parameter vector.
[0081] The reservoir injection and production optimization method proposed in this embodiment can generate a control parameter vector for the target reservoir; wherein the control parameter vector includes the control parameter adjustment data for each oil and gas well in the multiple oil and gas wells of the target reservoir. The net present value expectation expression of the target reservoir is constructed based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector. With the goal of maximizing the net present value expectation, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stop condition is met. The maximum net present value expectation during the iteration process is determined, and the element value corresponding to the maximum net present value expectation is determined as the optimal element value. This embodiment can optimize reservoir injection and production with the goal of maximizing the net present value expectation, determine the optimal element value of the control parameter vector, and enrich the means of reservoir injection and production optimization.
[0082] In the related technologies, reservoir injection and production optimization is an important direction in the research field of reservoir production optimization. So far, the reservoir injection and production optimization methods in the related technologies mainly include adjoint gradient method, gradient-free method and mixed gradient method. Among them, the adjoint gradient algorithm solves the real gradient and has the highest computational efficiency, but it needs to derive the Jacobian matrix in the reservoir numerical simulator. The process is very complicated and cannot meet the needs of actual large-scale complex oilfield optimization. The gradient-free method does not require complex gradient information and has good globality. However, it requires a large number of numerical simulation iterative calculations to converge to the optimal solution during the optimization process, which takes too long. In practical applications, the optimization problem is not properly formulated and the size of the set is limited. Inaccurate covariance estimation can easily cause pseudo-correlation, which in turn affects convergence and calculation accuracy. It is urgent to make relevant improvements to this problem.
[0083] based on Figure 1 This embodiment proposes a second reservoir injection and production optimization method. In this method, step S103 may include:
[0084] Determine an approximate expression for the sensitivity of the expected net present value to the control parameter vector;
[0085] An error control expression is generated according to multiple reservoir properties of the target reservoir and a control parameter vector, and the error control expression is used to reduce the error of the sensitivity approximation expression;
[0086] Based on the fastest descent method, sensitivity approximation expression and error control expression, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stopping condition is met.
[0087] Optionally, the above-mentioned expression for determining the sensitivity of the expected net present value to the control parameter vector may include:
[0088] Using a time-dependent Gaussian random variable to perturb each control parameter adjustment data in the control parameter vector to generate a plurality of realization parameters, each realization parameter including perturbed data corresponding to each control parameter adjustment data in the control parameter vector;
[0089] For any realization parameter, determine the geological model corresponding to the realization parameter, calculate the corresponding net present value according to the realization parameter and the geological model, and treat the realization parameter and the corresponding net present value as a whole as an element to be processed;
[0090] Arrange all elements to be processed and generate corresponding realization sets;
[0091] Based on the realization set, the cross-covariance approximate expression between the net present value expectation and the control parameter vector is determined and used as the sensitivity approximate expression.
[0092] Optionally, the above-mentioned generation of the error control expression according to the multiple reservoir properties of the target reservoir and the control parameter vector may include:
[0093] Performing numerical reservoir simulation based on multiple reservoir properties and control parameter vectors to generate corresponding adjoint gradient matrices;
[0094] Perform singular value decomposition on the adjoint gradient matrix to obtain the corresponding singular vectors;
[0095] A localized matrix for eliminating the influence of covariance pseudo-correlation is generated based on the singular vectors, and the localized matrix is used as the error control expression.
[0096] Optionally, the above-mentioned iterative process of the element values of the control parameter vector in the net present value expectation expression based on the fastest descent method, the sensitivity approximation expression, and the error control expression, and calculating the net present value expectation corresponding to each generation of element values until the iteration stop condition is met, may include:
[0097] The control parameter adjustment data in the control parameter vector is determined as the primary element value of the control parameter vector, and the corresponding net present value expectation is calculated according to the primary element value and the net present value expectation expression;
[0098] Determine the next generation element values based on the fastest descent method, sensitivity approximation expression, error control expression and initial value, and calculate the corresponding net present value expectation;
[0099] Based on the fastest descent method, the sensitivity approximation expression, the error control expression and the next generation element value, the new next generation element value is determined until the iteration stop condition is met.
[0100] Specifically, this embodiment can use the fastest descent method to find the maximum objective function g Y The element value of the control variable X of (x), the formula of the fastest descent method is:
[0101]
[0102] Where l represents the iteration index, α is the adjustment parameter that determines the step size of the fastest descent method, and G is g Y (x) Sensitivity matrix to control parameter variables, dimension is 1×N X .
[0103] Specifically, the set optimization problem is ill-posed without regularization. In this embodiment, the covariance matrix C can be used before the sensitivity matrix G. x Preconditioning is provided for the steepest ascent mode to penalize frequent sudden changes in control settings. In this case, the present embodiment may select a Gaussian covariance function to describe the time correlation between different controls of the same well to limit the frequency and amplitude of well control changes. In addition, different control parameters always have upper and lower limits (e.g., minimum and maximum bottom hole pressures and minimum and maximum liquid production and water injection rates) depending on the capabilities of the facility. In the present embodiment, values beyond the limits are truncated, and the injection and production are redistributed among the wells in proportion to the truncated values and in accordance with the total injection and production limits.
[0104] To calculate g Y (x) For the approximate value of the sensitivity matrix G of the control parameter variable X, this embodiment can establish an implementation set Z, such as:
[0105]
[0106] Among them, the set Z contains N e Implementation k , where k = 1, 2, ..., N e .X l,k is the implementation parameter corresponding to the control parameter variable, which contains all the well constraints for each control step and can be generated by perturbing the control parameter adjustment data in the control parameter variable X of the current iteration with a time-dependent Gaussian random variable, where the variance of the Gaussian perturbation comes from the desired frequency and amplitude of the well control changes. kis the geological model propagated in EnRML. Y (X l,1 ,P1),g Y (X l,2 ,P2) and Combining a set of control parameter variables with a set of geological models, an implementation of the control parameter variables X l,k Application to a geological model P k Then, g can be calculated based on the numerical simulation results. Y (X l,k ,P k ), the construction of set Z involves N e It can be understood that this embodiment can take into account the uncertainty of reservoir geological properties through ensemble optimization.
[0107] This embodiment can use C x,g(x) Represents the control parameter variables X and g Y The cross-covariance between (x) is calculated and its approximation is calculated from the set Z using the following method.
[0108]
[0109] in:
[0110]
[0111] At this time, the formula for the fastest descent method can be:
[0112]
[0113] In which, it is assumed that in each iteration, g Y The relationship between (x) and the control parameter variable X can be approximated as a linear relationship, such as:
[0114]
[0115] Since the cross-covariance C x,g(x) It is estimated using the Monte Carlo method, that is, the correlation method of the set Z. Therefore, when the size of the set Z is small, it will be affected by pseudo-correlation. x,g(x) The estimation may be inaccurate. In this embodiment, a localized singular value decomposition method can be established to filter out the cross-covariance that exceeds the critical distance to improve the calculation accuracy.
[0116] In this embodiment, in the localized method using singular value decomposition, the elements in the localized matrix can represent each control parameter variable X and the numerical simulation observation value g Y (x) Correlation between (total oil and water production).
[0117] in, and It is obtained by numerical simulation calculation of the reservoir based on the control parameter vector X and the reservoir property y. The gradient matrix G obtained by numerical simulation calculation is Q is the control parameter variable X and the observed value and The gradient matrix between Q The adjoint gradient matrix G QD The definition is shown in formula (1), where: and It is uniformly denoted as Q(x,y).
[0118] (G QD Q(x,y),x) X =(Q(x,y),G Q x) X ---------------Formula (1);
[0119] For every group X in set Z l,k ,P k Calculate the gradient matrix G QD,k , by the adjoint gradient matrix G QD,k Perform singular value decomposition, as shown in formula (2):
[0120]
[0121] Where g(x) is g Y (x) is an abbreviation of. In this embodiment, for the well where the control variable is located, all N e The right side singular vector V k The arithmetic mean The corresponding columns in are mapped to the grid blocks of the reservoir numerical simulation model, and the area obtained by setting appropriate truncation values of these singular vectors is defined as Figure 2 The total area of the small white squares. Figure 2 Where P1, P2, P3 and P4 represent an oil well, and I1 represents a water injection well. For each well where the control parameter variable is located, the minimum value of the least squares formula is calculated to determine the correlation length L in the main direction and the secondary direction. x and L y , the formula is:
[0122]
[0123] If the observed value and If the location is within the above-mentioned relevant area, s is 1, otherwise it is 0. To control the Euclidean distance between the well where the parameter variable is located and the location of the observation value, the calculation formulas are shown in formula (3) and formula (4).
[0124]
[0125] Where θ is the main direction of geological modeling, θ, L x and L y The relationship can be as follows Figure 3 As shown. x ,δ y is the coordinate of the measured value in the due north and due south coordinate system with the well location of the control parameter variable as the origin. x′ and δ t′ are two intermediate variables in the calculation process.
[0126] Get L x , L y After that, this embodiment can construct a size of N X ×N X The localization matrix ρ x,g(x) For each element in the matrix, if the well where the control parameter variable corresponding to the horizontal coordinate is located is the same well as the well where the control parameter variable corresponding to the vertical coordinate is located, the element value is 1. If they are different wells, if the distance between the two wells is less than the correlation distance, the corresponding element in the localization matrix is 1, otherwise it is 0. In the set optimization method, this embodiment introduces the localization matrix to eliminate the influence of covariance pseudo-correlation, then:
[0127]
[0128] This embodiment is for Figure 4 In the egg model shown, 8 wells and 4 wells are used for injection and production optimization. Compared with the method without localization, the localized method in this embodiment increases the running speed by 18% and reduces the number of iterations by 26%. This embodiment establishes a complete set of reservoir injection and production optimization methods based on singular value decomposition localization, which can minimize the computational overhead in the process of automatic optimization of oil field injection and production, avoid falling into local optimality, effectively guide the later development adjustment, and has good application prospects.
[0129] This embodiment can fully consider the pseudo-correlation caused by inaccurate covariance estimation of small sample sets during the set optimization process, introduce a localized singular value decomposition method, greatly improve the accuracy of covariance estimation, and enhance the computational efficiency of the injection-production optimization algorithm.
[0130] The reservoir injection and production optimization method proposed in this embodiment can form an effective localized matrix calculation method, reasonably obtain the correlation length of the localized matrix through singular value decomposition, and greatly improve the estimation accuracy of the covariance matrix in the set optimization method. It can also form an automated algorithm for the entire calculation process, and realize automatic optimization and adjustment of oil field injection and production through programming.
[0131] like Figure 5 As shown, this embodiment provides an oil reservoir injection and production optimization device, which may include:
[0132] A generating unit 101 is used to generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each oil and gas well in a plurality of oil and gas wells of the target oil reservoir;
[0133] A construction unit 102 is used to construct a net present value expectation expression of the target reservoir based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector;
[0134] The iteration unit 103 is used to iterate the element values of the control parameter vector in the net present value expectation expression with the goal of maximizing the net present value expectation, and calculate the net present value expectation corresponding to each generation of element values until the iteration stop condition is met;
[0135] A first determining unit 104, used to determine the maximum net present value expectation in the iteration process;
[0136] The second determining unit 105 is used to determine the element value corresponding to the maximum net present value expectation as the optimal element value.
[0137] It should be noted that the processing of the generating unit 101, the constructing unit 102, the iterating unit 103, the first determining unit 104 and the second determining unit 105 and the beneficial effects thereof can be respectively referred to in Figure 1 Steps S101 to S105 in the above are not described in detail.
[0138] Optionally, the construction unit 102 is further configured to:
[0139] Based on the control parameter vector and the reservoir property variables of the target oil reservoir, a net present value expression of the target oil reservoir is constructed;
[0140] According to multiple reservoir properties of the target reservoir and the net present value expression, a net present value expectation expression is constructed.
[0141] Optionally, the expected net present value expression is:
[0142]
[0143] Among them, g Y (x) is the expected net present value, Ne is the total number of reservoir properties, j is the number of reservoir properties, N t is the total number of time steps, i is the time step index, t i is the cumulative time since the start of production, v o and v w are crude oil price and water treatment cost, Q oi and Q wi is the time step t i The total oil and water production in the reservoir, y is the reservoir property variable, y j is the reservoir property numbered j, and x is the control parameter variable.
[0144] Optionally, the iteration unit 103 is further configured to:
[0145] Determine an approximate expression for the sensitivity of the expected net present value to the control parameter vector;
[0146] An error control expression is generated according to multiple reservoir properties of the target reservoir and a control parameter vector, and the error control expression is used to reduce the error of the sensitivity approximation expression;
[0147] Based on the fastest descent method, sensitivity approximation expression and error control expression, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stopping condition is met.
[0148] Optionally, the iteration unit 103 is further configured to:
[0149] Using a time-dependent Gaussian random variable to perturb each control parameter adjustment data in the control parameter vector to generate a plurality of realization parameters, each realization parameter including perturbed data corresponding to each control parameter adjustment data in the control parameter vector;
[0150] For any realization parameter, determine the geological model corresponding to the realization parameter, calculate the corresponding net present value according to the realization parameter and the geological model, and treat the realization parameter and the corresponding net present value as a whole as an element to be processed;
[0151] Arrange all elements to be processed and generate corresponding realization sets;
[0152] Based on the realization set, the cross-covariance approximate expression between the net present value expectation and the control parameter vector is determined and used as the sensitivity approximate expression.
[0153] Optionally, the iteration unit 103 is further configured to:
[0154] Performing numerical reservoir simulation based on multiple reservoir properties and control parameter vectors to generate corresponding adjoint gradient matrices;
[0155] Perform singular value decomposition on the adjoint gradient matrix to obtain the corresponding singular vectors;
[0156] A localized matrix for eliminating the influence of covariance pseudo-correlation is generated based on the singular vectors, and the localized matrix is used as the error control expression.
[0157] Optionally, the iteration unit 103 is further configured to:
[0158] The control parameter adjustment data in the control parameter vector is determined as the primary element value of the control parameter vector, and the corresponding net present value expectation is calculated according to the primary element value and the net present value expectation expression;
[0159] Determine the next generation element values based on the fastest descent method, sensitivity approximation expression, error control expression and initial value, and calculate the corresponding net present value expectation;
[0160] Based on the fastest descent method, the sensitivity approximation expression, the error control expression and the next generation element value, the new next generation element value is determined until the iteration stop condition is met.
[0161] The reservoir injection and production optimization device proposed in this embodiment can determine multiple reservoir properties of the target reservoir and generate a control parameter vector; wherein the control parameter vector includes control parameter adjustment data for each oil and gas well in multiple oil and gas wells of the target reservoir. Based on the control parameter vector and multiple reservoir properties, a net present value expectation expression of the target reservoir is constructed; wherein the net present value expectation expression includes the control parameter vector. With the goal of maximizing the net present value expectation, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stop condition is met. The maximum net present value expectation during the iteration process is determined, and the element value corresponding to the maximum net present value expectation is determined as the optimal element value. This embodiment can optimize reservoir injection and production with the goal of maximizing the net present value expectation, determine the optimal element value of the control parameter vector, and enrich the means of reservoir injection and production optimization.
[0162] The reservoir injection and production optimization device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0163] The embodiment of the present invention also provides a computer device having the above Figure 5 The reservoir injection and production optimization device is shown.
[0164] See also Figure 6, a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0165] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0166] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0167] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0168] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above-mentioned types of memory.
[0169] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0170] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for optimizing oil reservoir injection and production, characterized in that: include: Generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each of the oil and gas wells in the target oil reservoir; Constructing a net present value expectation expression of the target reservoir based on the control parameter vector; wherein the net present value expectation expression includes the control parameter vector; With the goal of maximizing the expected net present value, iterate the element values of the control parameter vector in the expected net present value expression, and calculate the expected net present value corresponding to each generation of element values until the iteration stop condition is met; The maximum net present value expectation in the iteration process is determined, and the element value corresponding to the maximum net present value expectation is determined as the optimal element value.
2. The method according to claim 1, characterized in that The constructing of the expected net present value expression of the target reservoir based on the control parameter vector includes: constructing a net present value expression of the target oil reservoir based on the control parameter vector and the reservoir property variables of the target oil reservoir; The net present value expectation expression is constructed according to a plurality of reservoir properties of the target oil reservoir and the net present value expression.
3. The method according to claim 2, characterized in that The expected expression of the net present value is: Among them, g Y (x) is the expected net present value, N e is the total number of the reservoir properties, j is the number of the reservoir properties, N t is the total number of time steps, i is the time step index, t i is the cumulative time since the start of production, v o and v w are crude oil price and water treatment cost, Q oi and Q wi is the time step t i The total oil and water production in the reservoir, y is the reservoir property variable, y j is the reservoir property numbered j, and x is the control parameter variable.
4. The method according to claim 1, characterized in that: The iterating of the element values of the control parameter vector in the expected net present value expression and calculating the expected net present value corresponding to each generation of element values until an iteration stop condition is satisfied includes: Determine an approximate value expression of the sensitivity of the expected net present value to the control parameter vector; generating an error control expression according to a plurality of reservoir properties of the target reservoir and the control parameter vector, wherein the error control expression is used to reduce an error of the sensitivity approximation expression; Based on the fastest descent method, the sensitivity approximation expression and the error control expression, the element values of the control parameter vector in the net present value expectation expression are iterated, and the net present value expectation corresponding to each generation of element values is calculated until the iteration stop condition is met.
5. The method according to claim 4, characterized in that The determination of the approximate value expression of the sensitivity of the expected net present value to the control parameter vector includes: Using a time-dependent Gaussian random variable to perturb each of the control parameter adjustment data in the control parameter vector to generate a plurality of implementation parameters, each of the implementation parameters including perturbed data corresponding to each of the control parameter adjustment data in the control parameter vector; For any of the realization parameters, determine a geological model corresponding to the realization parameter, calculate a corresponding net present value according to the realization parameter and the geological model, and treat the realization parameter and the corresponding net present value as a whole as an element to be processed; Arranging all the elements to be processed to generate a corresponding realization set; An approximate expression for the cross-covariance between the expected net present value and the control parameter vector is determined based on the realization set and used as the approximate expression for the sensitivity.
6. The method according to claim 5, characterized in that The step of generating an error control expression according to the plurality of reservoir properties of the target oil reservoir and the control parameter vector comprises: Performing reservoir numerical simulation according to the plurality of reservoir properties and the control parameter vector to generate a corresponding adjoint gradient matrix; Performing singular value decomposition on the adjoint gradient matrix to obtain corresponding singular vectors; A localized matrix for eliminating the influence of covariance pseudo-correlation is generated based on the singular vectors, and the localized matrix is used as the error control expression.
7. The method according to claim 4, characterized in that The method of iterating the element values of the control parameter vector in the net present value expectation expression based on the fastest descent method, the sensitivity approximation expression, and the error control expression, and calculating the net present value expectation corresponding to each generation of element values until an iteration stop condition is met, includes: Determine the control parameter adjustment data in the control parameter vector as the primary element value of the control parameter vector, and calculate the corresponding net present value expectation according to the primary element value and the net present value expectation expression; Determine the next generation element value based on the fastest descent method, the sensitivity approximation expression, the error control expression and the initial value, and calculate the corresponding net present value expectation; Based on the fastest descent method, the sensitivity approximation expression, the error control expression and the next generation element value, a new next generation element value is determined until an iteration stop condition is met.
8. An oil reservoir injection and production optimization device, characterized in that: include: A generating unit, configured to generate a control parameter vector of a target oil reservoir, wherein the control parameter vector includes control parameter adjustment data of each of a plurality of oil and gas wells in the target oil reservoir; A construction unit, configured to construct an expected net present value expression of the target reservoir based on the control parameter vector; wherein the expected net present value expression includes the control parameter vector; An iteration unit, for iterating the element values of the control parameter vector in the net present value expectation expression with the goal of maximizing the net present value expectation, and calculating the net present value expectation corresponding to each generation of element values until an iteration stop condition is met; A first determining unit, used to determine the maximum net present value expectation in the iteration process; The second determining unit is used to determine the element value corresponding to the maximum net present value expectation as the optimal element value.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the reservoir injection and production optimization method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the reservoir injection and production optimization method according to any one of claims 1 to 7.
Citation Information
Cited By
Production parameter optimization method, device and equipment for oil reservoir and medium
CN121920616A
