Abstract
Production optimization of coalbed methane (CBM) is a complex constrained nonlinear programming problem. Finding an optimal decision is challenging since the coal seams are generally heterogeneous with widespread cleats, fractures, and matrix pores, and the stress sensitivities are extremely strong; the production of CBM wells needs to be adjusted dynamically within a reasonable range to fit the complex physical dynamics of CBM reservoirs to maximize profits on a long-term horizon. To address these challenges, this paper focuses on the step-down production strategy, which reduces the bottom hole pressure (BHP) step by step to expand the pressure drop radius, mitigate the formation damage, and improve CBM recovery. The mathematical model of CBM well production schedule optimization problem is formulated. The objective of the optimization model is to maximize the cumulative gas production and the variables are chosen as BHP declines of every step. BHP and its decline rate constraints are also considered in the model. Since the optimization problem is high dimensional, nonlinear with many local minima and maxima, covariance matrix adaptation evolution strategy (CMA-ES), a stochastic, derivative-free intelligent algorithm, is selected. By integrating a reservoir simulator with CMA-ES, the optimization problem can be solved successfully. Experiments including both normal wells and real featured wells are studied. Results show that CMA-ES can converge to the optimal solution efficiently. With the increase of the number of variables, the converge rate decreases rapidly. CMA-ES needs 3 or even more times number of function evaluations to converge to 100% of the optimum value comparing to 99%. The optimized schedule can better fit the heterogeneity and complex dynamic changes of CBM reservoir, resulting a higher production rate peak and a higher stable period production rate. The cumulative production under the optimized schedule can increase by 20% or even more. Moreover, the effect of the control frequency on the production schedule optimization problem is investigated. With the increases of control frequency, the converge rate decreases rapidly and the production performance increases slightly, and the optimization algorithm has a higher risk of falling into local optima. The findings of this study can help to better understanding the relationship between control strategy and CBM well production performance and provide an effective tool to determine the optimal production schedule for CBM wells.
1. Introduction
Coalbed methane is an unconventional natural gas in coal seams. Global CBM in place is estimated to range from 36 to 230 × 1012 m3 [1]. The major component of CBM is methane, accounting for 80 to 95% [2]. CBM is a kind of clean energy with high calorific value. The combustion heat of coalbed methane is equivalent to 1 kg of fuel, while the pollution caused by coalbed methane combustion is only 1/40 of oil and 1/800 of coal [3]. Exploration and development of CBM are of great significance for energy sustainable development and has attracted a lot of attention.
During the development, CBM well first continuously produces water at a low bottom hole pressure to depressure the reservoir. When the reservoir pressure drops below the critical desorption pressure, methane is desorbed from the coal seam and transmitted to the well; the gas rate increases, and the water rate drops. The performance of CBM well is directly affected by its production schedule. Coal seams are generally heterogeneous with widespread cleats, fractures, and matrix pores [4, 5]. The matrix permeability and porosity are low. The pore volume compressibility of coal rock is 1 to 2 orders of magnitude larger than that of sandstones, leads the coal rock has strong stress sensitivity [6, 7].
Some studies and field practices have demonstrated that during the initial production period of CBM wells, the gas desorption quantity is limited and the reservoir stress sensitivity effect is dominant. An incorrect pressure drop rate can lead to a serious stress sensitivity in the coal reservoir, leading to a decline in permeability and poor gas production. Moreover, a fast pressure drop will mobilize coal dust in the reservoir, blocking the gas seepage channels and further reducing gas production. A proper production schedule is conducive to gas wells having high and stable yields [6–9]. Successful development experiment show that reducing the bottom hole pressure of CBM well step by step and slowly at the early stage can make the pressure wave propagates as far as possible and improve the recovery of coalbed methane reservoir [10].
Although the above results have clearly shown the importance of determining a reasonable production schedule of CBM well, finding the optimal production schedule is still challenging. There has no one production schedule that fits all CBM wells. Many parameters, including formation and rock-liquid physical characteristics, should be fully considered in the production schedule optimization. This results in different optimal schedules for different wells. The practical experience can guide the CBM well production, and quantitative methods are still needed for fine development [6–8]. To the best of our knowledge, research on optimizing CBM well production schedule quantitatively is still limited [11].
Production schedule planning of CBM well can be formulated as an optimization problem and finding the optimal solution using optimization algorithms. This idea has not been investigated for this problem before, but it already has many successful applications in conventional oil and gas production optimization problems [12–18], CBM well placement optimization problems [19, 20], CBM EOR optimization problems [21, 22], etc. A number of algorithms have been proposed and investigated for above optimization problems. These algorithms fall into two categories: gradient-based methods [23–26], e.g., steepest ascent algorithm, conjugate gradient algorithm, etc., and derivative-free methods [12, 15–17, 27, 28], e.g., generalized pattern search (GPS), genetic algorithm (GA), particle swarm optimization (PSO), covariance matrix adaptation evolution strategy (CMA-ES), etc. The derivative-free methods only require the value of objective function and involve no explicit gradient calculations can be applied to CBM well production schedule optimization problem more easily. Among the derivative-free methods, CMA-ES performed very well in oil and gas production optimization and many other fields [15, 27, 29]. Hence we choose CMA-ES for our model.
In this paper, a step-down production process is proposed for coalbed methane reservoir development. In order to determine the optimal step-down production schedule, the optimization model is constructed and the features of the problem are analyzed. An intelligent algorithm, CMA-ES, is chosen as the solver and the optimization performance is evaluated. After that, a CBM well production schedule quantitative optimization approach is built. Three experiments including both normal well and real featured wells are used to study the effectiveness of the optimization approach. Among this, the effect of the control frequency on the production schedule optimization problem is investigated too. Figure 1 shows a general sketch of this study.

Comparing with the previously performed studies in literature, we are the first to introduce the optimal control theory to address the CBM well production schedule optimization problem, which takes the step-down well control at each time step instead of a constant production rate as the optimization variable. The constructed optimization problem is solved by CMA-ES coupling with a reservoir simulator. Though CMA-ES shows excellent performance while solving optimization problems of conventional oil and gas reservoirs, this is the first time, to the best of our knowledge, it investigates its performance for CBM optimization problems. Moreover, the effect of control frequency on the CBM well production is also considered in this paper, which has not been deeply discussed in previous studies.
This paper is structured as follows. Section 2 describes the CBM well production schedule optimization problem formulation, including the optimization model, the solving algorithm, and the solving process. Section 3 gives the experiments description, results, and discussions. In Section 4, we provide a summary and conclusions of this work.
2. Problem Formulation
2.1. CBM Step-Down Production Process
According to the successful experience during the development of coalbed methane, the production process of coalbed methane is generally divided into three stages [30–32]:(i)Dewatering stage: At the beginning of production, a large amount of water is drained from the well and the coal reservoir pressure continues to decline. When the reservoir pressure drops below the critical desorption pressure, the gas begins to produce. The time required for this stage depends on coalbed methane geological and reservoir characteristics, and the drainage speed.(ii)Stable production stage: As the drainage continues, the gas production gradually rises and stabilizes, and the water production gradually decreases. The gas production peak occurs at this stage. The duration of this stage depends on the abundance of coalbed methane resources and the permeability of the coal seam.(iii)Production decline stage: When a large amount of gas has been produced, the desorbed gas in the coal matrix begins to decrease. Although the drainage operation continues, gas production and water production are continuously decreasing. The duration of this stage is generally long (up to 10 years).
Coalbed methane reservoirs generally have low permeability and strong stress sensitivity. If the drainage speed is too fast in the development of coalbed methane, the pressure near the wellbore will drop sharply, and the permeability near the wellbore will be further reduced, which will result in the pressure drop radius not being fully expanded. The coal seam where the pressure drops below the critical desorption pressure only exists in a small area near the wellbore, which makes the gas supply to the well severely restricted. In this case, the gas production is rapidly reduced after reaches its peak, due to insufficient supply of the gas source. Therefore, how to increase the pressure drop volume and increase the gas supply radius of the coalbed methane reservoir should be carefully considered during the CBM production.
In order to reduce reservoir damage caused by rapid pressure drop, a step-down production process is proposed. The basic idea of this production method is reducing the bottom hole pressure of CBM well step by step. The bottom hole pressure remains constant at every step, and each step keeps a certain length of time. Although the cleats and cracks also have a certain closure at each step, the degree of closure is relatively small since the pressure declines small. This makes the permeability of coal seam not decline sharply and helps the pressure drop radius expand fully. When the pressure drop radius expanded fully at one step, the bottom hole pressure is lowered, and go to the next step, and keeps loop this way.
The step-down production process, by controlling the bottom hole pressure drop stepwise, can make the pressure wave propagate as far as possible, to expand the pressure drop funnel and maximize the pressure relief volume. Hence, the desorption area of the coalbed methane can be increased, making more coalbed methane desorbed from the coal seam, which can obtain a longer stable production duration and improve the recovery of coalbed methane reservoir. At the same time. The step-down production process can reduce the damage of coal powder migration in the reservoir to the wellbore.
2.2. Optimization Model
Although the step-down production process has many advantages, determining the optimal production schedule is very challenging. Since the properties of rock and fluid around each well are different, the corresponding optimal production schedules are also different. In this work, we describe the problem of determining the step-down production schedule of coalbed methane wells as an optimization problem and build the corresponding mathematical model. The mathematical model of the optimization problem generally includes three parts: the optimization variables, the objective function, and the constraints.
2.2.1. Optimization Variables
The whole production cycle of coalbed methane wells is divided into a series of control time steps, and each control time step represents a production time, such as half a year, one month, etc. At the beginning of each time step, the production parameter is reset. The production of coalbed methane well is usually controlled by rate or bottom hole pressure [8, 9, 32]. For the step-down production process, the well is controlled by bottom hole pressure.
For a coalbed methane well with time steps, the optimization variables can be defined as the bottom hole pressure at each time stepwhere denotes the bottom hole pressure control sequence of the well; to denote the bottom hole pressure of the well from the first to the time step, respectively.
The optimization variables can also be defined as the decline of bottom hole pressure at each time step:where denotes control sequence of the well described by the decline of bottom hole pressure; to denote the bottom hole pressure decline value of the well from the first to the time step, respectively.
The two kinds of optimization variables can be easily converted into each other by the following equations:where denotes the initial pressure of the coalbed methane reservoir.
2.2.2. Objective Function
The purpose of CBM well production is to extract as much coalbed methane as possible from the reservoir, i.e., to maximize the cumulative gas production. Therefore, the cumulative gas production is selected as a performance index to evaluate the effectiveness of a production schedule. Correspondingly, the objective function of the optimization model is set to maximize cumulative gas production.
When is chosen as the optimization variable, the objective function can be described aswhere denotes the end time of well production; denotes the instantaneous production rate; and denotes the production time.
When is chosen as the optimization variable, we first calculate using equation (3), then evaluate the objective function using equation (5).
is a complex partial differential equation and is difficult to solve. In this work, we adopt a commercial reservoir numerical simulator, Eclipse [33], which is developed by Schlumberger, to solve the problem. For a coalbed methane reservoir, can be obtained with any given by calling numerical simulation.
2.2.3. Constraints
The constraints that should be considered in the step-down production schedule optimization problem include the following: Bound constraints of bottom hole pressure The bottom hole pressure of the well at any time step cannot be higher than a given maximum pressure, nor can it be lower than a given minimum pressure. This constraint can be described as where and denote the lower and upper limits of the bottom hole pressure. Constraints of bottom hole pressure decline rate The decline of bottom hole pressure between two adjacent time steps cannot be higher than a given maximum decline rate. This constraint can be described as where denotes the upper bound of bottom hole pressure decline.
2.2.4. Model Selection
When is used as the optimization variable, the established mathematical model can be described as
When is used as the optimization variable, the established mathematical model can be described as
Model (8) and (9) are similar in form, but the solving complexity is quite different. For model (8), it includes a bound constraint and a series of linear constraints. A bound constraint and a series of nonlinear constraints are included in model (9). The linear and nonlinear constraints make the search space topology of the optimization problem very complicated and make it difficult to find the optimal solution for the optimization algorithm [34, 35]. Moreover, many excellent optimization algorithms are designed only for problems with bound constraints.
The nonlinear constraints can be removed by using the following equation to replace equation (3):
With equation (10), model (9) can be simplified to
Model (11) includes only bound constraint. More optimization algorithms can be selected for solving this problem and the solving difficulty is relatively low.
2.3. The Solving Algorithm
2.3.1. Problem Feature Analysis
Thousands of optimization algorithms have been proposed and applied in different areas. Each algorithm has its own characteristics and no one algorithm fits for all problems. In order to find a suitable optimization algorithm for the step-down production schedule optimization problem, the features of the problem are first described as follows:(i)The objective function is highly nonlinear and it is difficult to obtain derivatives.(ii)The solution space is rough with many local minima, local maxima, and discontinuities areas.(iii)The number of optimization variables is large.(iv)It includes bound constraints.
Considering the above features, we choose the covariance matrix adaptation evolution strategy (CMA-ES) as the optimization algorithm for the model.
2.3.2. CMA-ES
CMA-ES is a stochastic, derivative-free method for numerical optimization of nonlinear or nonconvex optimization problems [36, 37]. It belongs to the class of evolutionary algorithms and evolutionary computation. The basic idea of CMA-ES is inspired by biological evolution. In each iteration, new candidate solutions are sampled from the current probability distribution (described by covariance matrix). Then, the covariance matrix is updated adaptively in the next iteration based on the objective function values of previous candidates. Like this, over the iteration sequence, candidates with better and better function values are generated. This evolution strategy is particularly useful if the objective function is ill-conditioned.
Adaptation of the covariance matrix can learn a second-order model of the underlying objective function. This makes CMA-ES show excellent convergence. Moreover, in contrast to most classical optimization algorithms, fewer assumptions on the nature of objective function are made. Only the ranking between candidate solutions is exploited for learning the sample distribution and no derivatives are required by the algorithm. The detailed algorithm description of CMA-ES can be seen in Appendix.
CMA-ES performs better on the benchmark multimodal functions than all other similar classes of learning algorithms [38]. It also showed its potential in oil and gas production optimization and many other engineering practical problems [27, 28].
Figure 2 is an illustration of an optimization run with CMA-ES on a two-dimensional linear function with bound constraints . The dashed lines are the contour lines of the function. The initial point is . The optimal solution is and is marked by blue symbol “x.” The orange and gray dots denote the population distribution for the current and the last iteration, respectively. The red cross (“+”) and the red ellipsoid denote the symmetry center and the isodensity line of the distribution for the current iteration, while the black cross and the black ellipsoid give these quantities for the last iteration. The isodensity line defined as where the constant [27]. The population is much larger than necessary, but the figure clearly shows how the distribution of the population changes during the optimization.

(a)

(b)

(c)
For bound constrained problems, CMA-ES can simply “repair” an infeasible individual to its nearest feasible solution by using a repair algorithm before the update equations are applied [39]. This strategy is not recommended because CMA-ES makes implicit assumptions on the distribution of individuals. The distribution can be violated by a repair. Here we choose the penalization strategy from [27, 36]. The infeasible points are repaired by using the repair algorithm and evaluated, and a penalty is added to the function value for every repaired point. The penalty is dependent on the distance to the repaired solution.
Our implementation of CMA-ES uses the parameters given in the work of Hansen et al. [40]. The parameter values are given in Table 1. The initial values used are and , while and are user supplied.
2.3.3. Solving Process
The process of solving the step-down production optimization problem using CMA-ES is as follows:(1)Step 1: Setting the number of variables , lower/upper bounds of variables , , and the stopping criteria of optimization algorithm.(2)Step 2: Generate sets of candidates to according to model constraints.(3)Step 3: For each candidate , calculate the production schedule using equation (10).(4)Step 4: Generate the schedule data file for each candidate. Call numerical simulator to predict production dynamics.(5)Step 5: Read output data of numerical simulator. Calculate the objective function value of each candidate.(6)Step 6: If any stopping criterion is met, then end the optimization process. The candidate with the maximum objective function value is the optimal solution. If no, go to Step 7.(7)Step 7: Generate new sets of candidates using CMA-ES. goto Step 3.
3. Numerical Experiments
3.1. Experiment 1, a Simple Case
3.1.1. Reservoir Model Description
This model is a single-layer coalbed methane reservoir containing one producing wells. The reservoir model is represented by a 51 × 51 × 2 uniform grid blocks with . The top depth of the reservoir is 416 m. The thickness is 50 m and is divided into 2 sublayers with 20 m and 30 m, respectively. In order to describe the gas flow dynamics in the coal seam, dual-porosity and dual-permeability models are adopted for this reservoir. The permeability is homogeneous and the value is . The initial reservoir pressure is 4.26 MPa and the initial gas content is . The Langmuir volume is and the Langmuir pressure is 2.52 MPa.
The reservoir production lifetime is set to 3 years (by 360 days per year). The bottom hole pressure of well is updated every 15 days. This gives 72 control time steps in total and results in 72 optimization variables. The minimum bottom hole pressure is set to 0.2 MPa and the maximum bottom hole pressure decline is set to 0.3 MPa per step. CMA-ES is used to solve the optimization problem and the maximum iteration is chosen as a stopping criterion. The maximum number of iteration is set to 2000.
Moreover, to show the effect of the control frequency on the production schedule optimization problem for the first model, four control frequencies are considered and these constitute four variations of the optimization problem:(i)Time step = 1 d: The well bottom hole pressure is updated every day (1080 control time steps). This gives 1080 optimization variables in total.(ii)Time step = 7 d: The well bottom hole pressure is updated every 7 days (155 control time steps). This gives 155 optimization variables in total.(iii)Time step = 15 d: The well bottom hole pressure is updated every 15 days (72 control time steps). This gives 72 optimization variables in total.(iv)Time step = 30 d: The well bottom hole pressure is updated every 30 days (36 control time steps). This gives 36 optimization variables in total.
3.1.2. Results and Discussion
The optimization process of experiment 1 is shown in Figure 3. In this figure, each dot represents a candidate solution (i.e., production schedule) and the corresponding objective function value (i.e., cumulative gas production). The solid line illustrates the best function value found before. We can see that CMA-ES converges to the optimal solution after 1161 function evaluations. The corresponding cumulative gas production is 1.72 × 107 m3. When the number of function evaluation reaches 199, the optimal function value reaches . The difference from the final optimal function value is only 0.1163%. In this example, CMA-ES can converge to the vicinity of the optimal solution efficiently.

The well production performance under the optimized production schedule is compared with the performance under the steepest production schedule. The steepest production schedule is defined as for each control time step, the well bottom hole pressure declines with the upper bound of pressure drop, until the well bottom hole pressure reaches the lower bound of bottom hole pressure. The well bottom hole pressure of the optimized schedule and steepest schedule versus time are shown in Figure 4. The well gas production rate and the cumulative gas production, for the optimized schedule and the steepest schedule, are shown in Figures 5 and 6, respectively.



From the figures, we can see that the bottom hole pressure of optimized schedule and steepest schedule are same at the early stage. And then the rate of bottom hole pressure decline of optimized schedule slows down. Compared to the steepest schedule, the optimized schedule takes longer to drop to the lower pressure bound. With the steepest schedule, the well production rate reaches its peak earlier and the rate decreases to a lower value to the stable production stage. This results in the cumulative gas production of steepest schedule is 11.76% lower comparing with the optimized schedule at the end of production.
The optimization processes of experiment 1 under different control frequencies are shown in Figure 7. Consider the optimal objective function values for problems with different control frequencies are different, we use the relative value of the objective function as the ordinate in this figure. For each problem, the relative value equals the absolute value divided by the optimal absolute value of this problem. The relative value ranges from 0 to 1. Four solid lines represent the converge of CMA-ES for problems with four different control frequencies. The line reaches 1, the algorithm converges to the optimal solution. From the figure, we can see that with the increases of control frequency, the converge rate decreases rapidly.

In detail, the number of function evaluations required CMA-ES required converge to 99% of the optimum value and 100% of optimum value for all problems are shown in Figure 8. From this figure, we can see that the number of function evaluations grows exponentially with the increases of control frequency. For problems with time step equal to 30 days, 15 days, and 7 days, CMA-ES converge to 99% of optimum function value efficiently. After that, the algorithm needs 3 times or even more times number of function evaluations to complete the last 1% search. For the problem with time step equal to 1 day, the number of variables is over one thousand, which makes CMA-ES more difficult to converge.

The optimized well bottom hole pressures for problems with different control frequencies are shown in Figure 9. From this figure, we can see that the optimum production schedules show the same trend for different problems. With the increase of control frequency, the bottom hole pressure curve becomes smoother.

(a)

(b)

(c)

(d)
The well gas production rate and the cumulative gas production, for the problems with different control frequencies, are shown in Figures 10 and 11, respectively. From the two figures, we can see that the peak of production rate appears earlier and the value is higher with the increases of control frequency. The cumulative gas production becomes higher with increases in control frequency. With a continued increase in the number of control steps, the cumulative production grows more and more slowly. The increase in the cumulative production is 2.96% when the control frequency increases from every 30 days to every 1 day.


Although frequent control can lead to a slight increase in production, we do not recommend control the coalbed methane well too frequently. The increase in the number of control steps will increase operating costs. Also, the problem with a large number of control steps is harder to optimize and the algorithm has a higher risk of falling into local optima.
3.2. Experiment 2, a Fractured Well
3.2.1. Reservoir Model Description
In this experiment, a fractured well (QW1) located in Qinshui Basin is investigated. Qinshui Basin is one of the most important regions for coal and coalbed methane production in China. The reservoir uses dual-porosity and dual-permeability models. Local mesh refinement is applied to illustrate the hydraulic fracture of the well. In detail, the reservoir parameters of QW1 is given in Table 2. Figure 12 shows the permeability field of the reservoir. The fracture morphology is clearly shown in this figure.

The well QW1 has been produced 415 days. The well bottom hole pressure and the water and gas production rate in real are shown in Figures 13 and 14.


In this experiment, we seek to optimize the well production schedule. The rationality of the real schedule can be evaluated by comparing the optimized schedule and the real schedule. The control frequency is set to 15 days. This gives 28 control time steps in total and results in 28 optimization variables. The minimum bottom hole pressure is set to 0.2 MPa and the maximum bottom hole pressure decline is set to 3.0 MPa per step. CMA-ES is used to solve the optimization problem and the maximum iteration is chosen as a stopping criterion. The maximum number of iteration is set to 2000.
3.2.2. Results and Discussion
The well production performance under the optimized production schedule is compared with the performance under its real production schedule. The well bottom hole pressure of the optimized schedule and the real schedule are shown in Figure 15. The well gas production rate and the cumulative gas production, for the optimized schedule and the real schedule, are shown in Figures 16 and 17, respectively.



From the figures, we can see that the optimized production schedule and the real schedule show similar trends. This indicates the operation of the field engineer is basically reasonable. But there still have some room for improvement. With the optimized schedule, the well QW1 reaches its peak earlier and the peak is higher. When the well enters the stable period, the production rate with the optimized production still is slightly higher than the real schedule. Finally, the optimized schedule yield is 21.80% higher than the real schedule in cumulative gas production. This is a considerable amount of gas.
3.3. Experiment 3, Another Fractured Well
3.3.1. Reservoir Model Description
Similar to experiment 2, the well (QW2) in this experiment is a fractured well and is located in Qinshui Basin, China. Since the coal seam in Qinshui Basin is heterogeneous, the reservoir parameters of QW2 are different from QW1 in experiment 2. The details of reservoir parameters of QW2 are given in Table 3.
The well QW2 has been produced 178 days. The well bottom hole pressure and the water and gas production rate in reality are shown in Figures 18 and 19.


Same as experiment 2, we optimize the well production schedule and evaluate the reality schedule for experiment 3. The optimization parameters are the same as experiment 2. Since well QW2 only produced 178 days, the number of variables is 12 for this optimization problem.
3.3.2. Results and Discussion
The well production performance under the optimized production schedule is compared with the performance under its reality production schedule. The well bottom hole pressure of the optimized schedule and the real schedule are shown in Figure 20. The well gas production rate and the cumulative gas production, for the optimized schedule and the real schedule, are shown in Figures 21 and 22, respectively.



From the figures, we can see that the bottom hole pressure of the optimized schedule declines slower than the real schedule at the early stage. The bottom hole pressure drops too fast in reality and the reservoir near the wellbore was damaged. That makes the production rate does not show an obvious peak. With the optimized schedule, the pressure drop funnel expanded sufficiently. The production peak of the optimized schedule is 3 times higher than the reality. Finally, the optimized schedule yield is 27.74% higher than the real schedule in cumulative gas production.
4. Concluding Remarks
In this paper, an optimization model is constructed to determine the optimal step-down production schedule of CBM wells. The objective of the model is to maximize cumulative gas production. The decline of bottom hole pressure at each time step is used as the optimization variable. Bottom hole pressure and its decline rate are limited to certain ranges as model constraints. Considering the features of the optimization problem, an intelligent algorithm, CMA-ES, is chosen as the solver. The process of solving the step-down production optimization problem using CMA-ES is given.
Three experiments including both normal well and real featured wells are studied. Based on thorough numerical experiments, the following conclusions can be drawn:(i)CMA-ES, with its stochastic evolution mechanism, can solve the CBM well production schedule optimization problem efficiently. The converge speed is highly affected by the number of optimization variables. With the increases of variables, the converge rate decreases rapidly. During the optimization, CMA-ES needs 3 or even more times number of function evaluations to converge to 100% of the optimum value comparing to 99%.(ii)The optimized schedule can better fit the heterogeneity and complex dynamic changes of CBM reservoir, which results a higher production rate peak and a higher stable period production rate. The cumulative production under the optimized schedule can increase by 20% or even more.(iii)With the increases of control frequency, the converge rate decreases rapidly and the production performance increases slightly. The increase in the number of control steps will increase operating costs. Setting a reasonable control frequency is important since the problem with a large number of control steps is harder to optimize and the algorithm has a higher risk of falling into local optima.
The proposed CBM well production schedule optimization method can automatically evaluate the performance of CBM wells under different production schedules, and finally find the schedule with the best production performance through continuous iteration of intelligent optimization algorithms. The optimization process can consider the comprehensive influence of various coal seam and fluid parameters, and the whole process is fully automatic, which is more accurate and efficient than manual design. The method can also be used to evaluate the rationality of the realistic schedule. The findings in the experiment results are also instructive for understanding the relationship between control strategy and CBM well production performance. Although the proposed method has shown its potential in this work, there are still many possible avenues for the future. Currently, the size of control time step is given before the optimization, and each time step is exactly the same. Optimizing the control value of each time step and the time step size simultaneously will be considered in the future work. Joint optimization of well locations and production schedule of CBM reservoir also needs additional study.
Appendix
Algorithm Description of CMA-ES
CMA-ES samples a population of candidate solutions at iteration according towhere is a random vector from a multivariate normal distribution.
The mean vector represents the favorite solution or best estimate of the optimum, and the covariance matrix is a symmetric positive definite matrix which characterizes the geometric shape of the distribution and defines where new candidate solutions are sampled. The step-size is used as a global scaling factor for the covariance matrix. It aims at achieving fast convergence and preventing premature convergence. These three parameters are updated as the iteration proceeds.
The individuals generated by equation (A.1) are evaluated and ranked by objective function value. The mean is then updated by taking the weighted mean of the best individuals:where is the best individual.
The default weights [41] are chosen asTypically is chosen as , where is the floor function, and is strictly positive and normalized weight.
The covariance matrix is then updated aswhere quantity is called the evolution path. It gives a direction where we expect to see good solutions. The evolution path is given iteratively aswhere is a constant in . The quantity denotes the variance effective selection mass. It is a measure characterizing the recombination. From equation (A.5), we can see that the new search direction is based on the old direction and the descent direction .
The adaptation of the global step size is given bywhich depends on the conjugate evolution path given by
In combination with covariance matrix adaptation, step-size adaptation enables linear convergence on a wide range of, even ill-conditioned, functions [27].
Nomenclature
: | Bottom hole pressure control sequence |
: | Bottom hole pressure at the ith time step |
: | Number of time steps |
: | Control sequence of the well described by the decline of bottom hole pressure |
: | Bottom hole pressure decline value at the ith time step |
: | Initial pressure of the coalbed methane reservoir |
: | End time of well production |
: | Instantaneous production rate |
: | Production time |
: | Lower limits of the bottom hole pressure |
: | Upper limits of the bottom hole pressure |
: | Upper bound of bottom hole pressure decline |
: | ith individual at generation |
: | Random vector from a multivariate normal distribution |
: | Mean value of the search distribution at generation |
: | Step-size at generation |
: | Covariance matrix at generation |
: | Recombination weights |
: | Number of best individuals |
: | best individual at generation |
: | Learning rate for the rank- update of the covariance matrix update |
: | Variance effective selection mass for the mean |
: | Evolution path at generation |
: | Learning rate for cumulation for the rank-one update of the covariance matrix |
: | Variance effective selection mass |
: | Conjugate evolution path at generation |
: | Learning rate for the cumulation for the step-size control |
: | Damping parameter for step-size update |
: | Expectation value. |
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Disclosure
The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
Conflicts of Interest
The authors declare no conflicts of interest.
Authors’ Contributions
Qiujia Hu and Xianmin Zhang conceptualized the study. Xiang Wang performed methodology. Xiang Wang provided software. Bin Fan performed validation. Bin Fan performed formal analysis. Xianmin Zhang investigated the study. Qiujia Hu provided resources. Huimin Jia performed data curation. Xiang Wang wrote the original draft. Xianmin Zhang reviewed and edited the article. Xiang Wang performed visualization. Qiujia Hu performed project administration. All authors have read and agreed to the published version of the manuscript.
Acknowledgments
This research was funded by the National Natural Science Foundation of China (no. U1810105), the Natural Science Research Project of Higher Education of Jiangsu, China (no. 17KJB440001), and the Innovation Research Project of China University of Petroleum (East China) (no. 18CX02105A).