Abstract
The main part of every optimization problem is the optimizer and the gas allocation optimization problem is not an exception. There are different optimization algorithms that are applicable in these kind of problems. Generally, these algorithms are divided into two main groups of numerical and heuristic methods. Traditionally, the numerical methods were common in use. These methods such as equal slope, are based on some routine calculations or plots and their answers are absolute which means that different times of using them in a specific problem results in the same answer and finally their answer is the best possible one. However, their problem is that as the number of involved parameters increases, their degree of complexity increases unimaginably. On the other side there are the heuristic methods. These methods are random based and their different runs lead to different solutions (may be near each other). However, their advantage is that they can deal with complex problems much more effectively than numerical ones, specially, in modern problems in which the number of input parameters is large. In this chapter, the different methods with their algorithms and their mathematical equations will be discussed. Finally, in some examples the accuracy and runtime of different algorithms will be compared.
Access provided by CONRICYT-eBooks. Download chapter PDF
Keywords
4.1 Introduction
There are different types of optimization algorithms that can be used in gas allocation optimization. Generally they can be classified into two categories: numerical algorithms and heuristic ones (Jacoud et al. 2015).
4.2 Numerical Algorithms
Until some years ago using numerical methods for finding an optimum point for a gas allocation problem was a common method. These methods require an initial guess of the solution, and then the process moves in search direction dk (see (4.1)).
The general form of updating the gas injection rates is as follows (Nishikiori et al. 1989):
-
(a)
Set k = 0
-
(b)
If the \( {\text{Q}}_{\text{g}}^{\text{k}} \) is optimum terminate the computation otherwise determine dk for \( {\text{Q}}_{\text{g}}^{\text{k}} \)
-
(c)
Find the step length αk that maximizes \( {\text{f}}({\text{Q}}_{\text{g}}^{\text{k}} + \upalpha^{\text{k}} {\text{d}}^{\text{k}} ) \)
-
(d)
Set \( {\text{Q}}_{\text{g}}^{{{\text{k}} + 1}} = {\text{Q}}_{\text{g}}^{\text{k}} + \upalpha^{\text{k}} {\text{d}}^{\text{k}} \) and set k = k + 1
-
(e)
to (b)
There are various methods to find the search direction dk and αk in different steps until the optimum point is found.
4.2.1 Equal Slope Optimization
The equal slope optimization is a method for finding the best allocation. Kanu et al. (1981) expressed this in 8 steps:
-
Step 1
Analyze the wells and calculate the well performance for different gas liquid ratio in gas lift operation.
-
Step 2
Establish a relation for the production oil rate versus injection gas. These plots are called gas lift performance curve. Figure 4.1 shows a typical gas lift performance curve.
-
Step 3
Plot the data of Step 2 for all wells in a unique graph.
-
Step 4
Draw lines with various slopes tangent to each curve (as Fig. 4.2).
-
Step 5
At each point of Step 4 find the injection rate and production.
-
Step 6
Establish a relationship between slope and the injection and production rates for each well.
-
Step 7
Establish a relationship between slope and the injection and production rates for the whole field by calculating the equation of Step 6.
-
Step 8
Calculate the economic slope using Eq. (4.2):
$$ {\text{m}} = \frac{{\vartriangle q_{L} }}{{\vartriangle q_{g} }} = \frac{{C_{g} }}{{f_{o } P}}. $$(4.2) -
Step 9
Use this slope and use it in Step 6.
-
Step 10
Obtain the total injection rate by adding the optimum injection rates of individual wells, which are gained by slopes.
4.2.2 Gradient Optimization
One of the oldest methods that sometimes was also the most common one is the gradient or steepest ascent method (Fletcher 2013; Luenberger 1984). This function approximates the objective (fitness) function by a first degree Taylor polynomial (4.3):
In which \( \delta = \upalpha\, {\text{d}}^{\text{k}} \;{\text{and}}\;{\text{g}}^{\text{k}} \) is the gradient of “f” at \( {\text{Q}}_{\text{g}}^{\text{k}} \).
For gk see (4.4):
In this method, for increasing the total production oil rate, condition (4.5) should be satisfied:
This condition is called the ascent condition. In the gradient method, the search condition is specified as (4.6):
This states that the gradient method searches in the steepest direction. This direction guarantees the finding of an optimum point for positive scalar α. However, further studies showed that this method searches linearly and thus frequently, it is slow in converging to the optimum point and this is its main disadvantage (Fletcher 2013; Luenberger 1984).
4.2.3 Newton Method
The Newton method is much faster than the gradient method. This method is derived from the second order Taylor polynomial approximation (see (4.7)).
\( F( {Q_{g}^{k} } ) \) is the Hessian matrix of the second derivative. And \( \delta \) is defined as (4.8):
The iterative part of the equation is as (4.9):
The idea in Quasi-Newton is to define H as (4.10):
And for its iterative purposes (4.11) is defined as:
The parameters of (4.11) are defined in (4.12)–(4.15):
There are other mathematical methods for optimization that the interested reader can find in Rao (2009, Iqbal (2013). A lot of them have been used in gas allocation optimization. For example, Edwards et al. (1990) used numerical methods to create a model for gas allocation optimization. He considered the facilities in his model.
Dutta-Roy and Kattapuram (1997) used mixed-integer linear programming optimized gas allocation optimization. They proposed a model of wells and some surface facilities. The main idea in their work was to see the effect of interaction of wells in the result. Alarcón et al. (2002) used nonlinear constrained programming for solving the gas allocation optimization problem; He used the Nishikiori (Nishikiori et al. 1989) method, but modified that by using sequential quadratic programming. Fang and Lo (1996) used a linear programming method for solving this problem and Wang et al. (2002) used mixed integer non-linear programming to generalize the previous approaches. Camponogara and Nakashima (2006) used a recursive algorithm to solve the problem. Camponogara and de Conto (2005) used a piecewise linear method. Their model was based on mixed integer linear programming. Guyaguler and Byer (2008) used mixed-integer linear programming for solving this problem. Khishvand et al. (2015) used a nonlinear programming approach for solving this problem. In addition to the mentioned works, there are some other numerical methods for gas allocation optimization in McCracken and Chorneyko (2006), Lo (1992), Staudtmeister and Rokahr (1997) and El-Massry and Price (1995).
The numerical methods were common for years. However, they suffered from a high complexity in the problems with a little more complexity. They were very slow when the number of parameters increased and had some big problems when dealing with constraint optimization. Thus, using them for all people in all problems was not an easy and applicable way, so some new methods were born.
4.3 Heuristic Algorithms
As the problems became more complex, the number of variables increased and using numerical methods became more tedious. In this situation, using heuristic algorithms became much more attractive (Lima Silva et al. 2015; Buitrago et al. 2016; Christensen and Bastien 2016).
In heuristic algorithms, some possible solutions are initially selected, then during some iterations (generations) this population is modified until a satisfying solution is found. There are different algorithms in this category that have been used or can be used in a gas allocation optimization problem such as: Genetic Algorithm (GA) (Ray and Sarker 2007; Ghaedi et al. 2013), Scatter Search (SS) (Chithra Chakra et al. 2013), Simulated Annealing (Raoufi et al. 2015), Tabu Search (Anon 2010), Artificial immune system (Araujo et al. 2003), Memetic Algorithm (Neri and Cotta 2012), Ant Colony Algorithm (ACO) (Ghaedi et al. 2013), Particle Swarm Optimization (PSO) (Hamedi et al. 2011; Hamedi and Khamehchi 2012), Differential Evolution (DE) (Price et al. 2006), Cross Entropy Method (CEM) (Bejan 1995), Harmony Search (HS) (Anon 2011), Bootstrap Algorithm (BA) (Slupphaug and Elgsaeter 2013), Bees Optimization (BO) (Jansen and Shoham 1994), Glowworm Swarm Optimization (GSO) (Fonseca and Fleming 1995), Bee Colony Algorithm (ABC) (Zitzler et al. 2000), Honey bee Mating Optimization (HMO) (Afshar et al. 2007), Intelligent Water Drops (IWD) (Shah-Hosseini 2009), Imperialist Competitive Algorithm (ICA) (Atashpaz-Gargari and Lucas 2007), Monkey Search (MS) (Mucherino et al. 2007), League Championship Algorithm (LCA) (Husseinzadeh Kashan 2011), Gravitational Search Algorithm (GSA) (Su and Wang 2015), Bat Algorithm (BA) (Yang 2011), Galaxy based Search Algorithm (GbSA) (Shah-Hosseini 2011), Spiral Optimization (SO) (Benasla et al. 2014), Teaching Learning Based Optimization (TLBO) (Rao et al. 2011), Krill Herd (KH) Algorithm (Gandomi and Alavi 2012), Differential Search Algorithm (DSA) (Price et al. 2006), firefly optimization (Kisi and Parmar 2016), bat optimization (Meng et al. 2015), cuckoo search (Huang et al. 2016).
As an example, Fig. 4.3 shows a pseudo code of the genetic algorithm, and other algorithms have a similar procedure.
These algorithms find the optimum solutions by step by step modification. Figure 4.4 shows the optimization process in a gas allocation optimization with heuristic algorithms.
There are some works that have used a hybrid of Heuristic algorithms for gas allocation optimization. Zerafat et al. (2009) and Khamehchi et al. (2009) used both the genetic algorithm and ant colony and Ghaedi et al. (2013) used a hybrid of the genetic algorithm for solving this optimization problem. Rasouli et al. (2015) used a hybrid of the genetic algorithm and neural network and created a real-time optimization. Mahdiani and Khamehchi (2015) compared the genetic algorithm and a hybrid of the genetic algorithm and quasi-Newton for solving the problem and said using the hybrid was a more efficient method. Mahdiani (2013) in his M.Sc. thesis compared some of the most common heuristic algorithms for gas allocation optimization problems. These algorithms include the genetic algorithm, simulated annealing, particle swarm optimization, differential search, cuckoo search, firefly optimization and harmony search. He considered different case studies and compared their optimum points and the convergence speed. He concluded that in most cases particle swarm optimization has the best optimum point and the highest speed and is highly recommended for gas allocation optimization problems. Firefly optimization occasionally leads to a local optimum point and simulated annealing is often slower than other algorithms. Finally, the performances of the other four algorithms are similar but not as good as the particle swarm optimizer. However, in some way their results can be accepted. During his studies he observed that in most cases firefly optimization found a local optimum point. But on the other hand, the rate of optimum point improvement in different iterations is very fast. After summarizing the result of the performance of different algorithms he concluded that the simulated annealing can find a good optimum point but its problem is that this algorithm is very slow. It seems that if the problem was first optimized by another algorithm and then the found optimum point was used as the start point of the simulated annealing the resulted point could have a very good total production oil rate. In one case he injected 18 MMscf/d gas to 20 different wells by various heuristic algorithms and then he compared their total oil production. Figure 4.5 shows the amount of total oil production.
For comparing the speed of these algorithms he did not compare the runtime of the optimizers, because it depends on the used computer and its internal hardware and software configuration. Instead he compared the number of fitness function evaluation. Figure 4.6 shows the number of fitness function evaluation of different algorithms.
In most of the considered cases Mahdiani saw the huge number of fitness function evaluation of the simulated annealing in comparison to other algorithms. In addition to the above factors, he considered another factor called optimizer speed. This showed the average amount of fitness function improvement by the number of fitness function evaluation (Fig. 4.7).
Mahdiani also changed the number of wells and maximum amount of available lift gas and repeated his calculation to see the application of the optimization algorithms in different conditions.
References
Afshar, A., et al. (2007). Honey-bee mating optimization (HBMO) algorithm for optimal reservoir operation. Journal of the Franklin Institute, 344(5), 452–462.
Alarcón, G. A., Torres, C. F., & Gómez, L. E. (2002). Global optimization of gas allocation to a group of wells in artificial lift using nonlinear constrained programming. Journal of Energy Resources Technology, 124(4), 262.
Anon, (2010). Soft computing for recognition based on biometrics. Berlin: Springer.
Anon. (2011). Computational optimization and applications in engineering and industry. Berlin: Springer Science & Business Media.
Araujo, M., Aguilar, J., & Aponte, H. (2003). Fault detection system in gas lift well based on artificial immune system. In Proceedings of the International Joint Conference on Neural Networks (pp. 1673–1677). IEEE.
Atashpaz-Gargari, E., & Lucas, C. (2007). Imperialist competitive algorithm: An algorithm for optimization inspired by imperialistic competition. In 2007 IEEE Congress on Evolutionary Computation (pp. 4661–4667). IEEE.
Beheshti, Z., et al. (2013). A review of population-based meta-heuristic algorithm A Review of Population-based Meta-Heuristic Algorithm. International Journal of Advances in Soft Computing and Its Applications, 5, 1–35.
Bejan, A. (1995). Entropy generation minimization: The method of thermodynamic optimization of finite-size systems and finite-time processes. New York: CRC Press.
Benasla, L., Belmadani, A., & Rahli, M. (2014). Spiral optimization algorithm for solving combined economic and emission dispatch. International Journal of Electrical Power & Energy Systems, 62, 163–174.
Buitrago, M., et al. (2016). Designing construction processes in buildings by heuristic optimization. Engineering Structures, 111, 1–10.
Camponogara, E., & de Conto, A. M. (2005). Gas-lift allocation under precedence constraints: Piecewise-linear formulation and K-covers. In Proceedings of the 44th IEEE Conference on Decision and Control (pp. 4422–4427). IEEE.
Camponogara, E., & Nakashima, P. H. R. (2006). Solving a gas-lift optimization problem by dynamic programming. European Journal of Operational Research 174(2), 1220–1246.
Chithra Chakra, N., et al. (2013). An innovative neural forecast of cumulative oil production from a petroleum reservoir employing higher-order neural networks (HONNs). Journal of Petroleum Science and Engineering, 106, 18–33.
Christensen, J., & Bastien, C. (2016). Nonlinear optimization of vehicle safety structures. Amsterdam: Elsevier.
Dutta-Roy, K., & Kattapuram, J. (1997). A new approach to gas-lift allocation optimization. In Proceedings of SPE Western Regional Meeting (pp. 685–691). Society of Petroleum Engineers.
Edwards, R., Marshall, D. L., & Wade, K. C. (1990). A gas-lift optimization and allocation model for manifolded subsea wells. In European Petroleum Conference. Society of Petroleum Engineers.
El-Massry, Y. A.-W., & Price, A. D. (1995). Development of a network and gas lift allocation model for production optimization in the Ras Budran field. In Proceedings of Middle East Oil Show. Society of Petroleum Engineers.
Fang, W. Y., & Lo, K. K. (1996). A generalized well management scheme for reservoir simulation. SPE Reservoir Engineering, 11(02), 116–120.
Fletcher, R. (2013). Practical methods of optimization, Second Edition—Fletcher—Wiley Online Library. NewYork: Wiley.
Fonseca, C. M., & Fleming, P. J. (1995). An overview of evolutionary algorithms in multiobjective optimization. Evolutionary Computation, 3(1), 1–16.
Gandomi, A. H., & Alavi, A. H. (2012). Krill herd: A new bio-inspired optimization algorithm. Communications in Nonlinear Science and Numerical Simulation, 17(12), 4831–4845.
Ghaedi, M., Ghotbi, C., & Aminshahidy, B. (2013). Optimization of gas allocation to a group of wells in a gas lift using an efficient ant colony algorithm (ACO). Petroleum Science and Technology, 31(11), 949–959.
Guyaguler, B., & Byer, T. J. (2008). A new rate-allocation-optimization framework. SPE Production & Operations, 23(04), 448–457.
Hamedi, H., & Khamehchi, E. (2012). A nonlinear approach to gas lift allocation optimization with operational constraints using particle swarm optimization and a penalty function. Petroleum Science and Technology, 30(8), 775–785.
Hamedi, H., Rashidi, F., & Khamehchi, E. (2011). A novel approach to the gas-lift allocation optimization problem. Petroleum Science and Technology, 29(4), 418–427.
Huang, L., et al. (2016). Chaos-enhanced Cuckoo search optimization algorithms for global optimization. Applied Mathematical Modelling, 40, 3860–3875.
Husseinzadeh Kashan, A. (2011). An efficient algorithm for constrained global optimization and application to mechanical engineering design: League championship algorithm (LCA). Computer-Aided Design, 43(12), 1769–1792.
Iqbal, K. (2013). Fundamental engineering optimization methods, ISBN 978-87-403-0489-3, 1st edition.
Jacoud, A., et al. (2015). Modelling and extremum seeking control of gas lifted oil wells. IFAC-PapersOnLine, 48(2012), 21–26.
Jansen, F. E., & Shoham, O. (1994). Methods for eliminating pipeline-riser flow instabilities. In SPE Western Regional Meeting.
Kanu, E. P., Mach, J., & Brown, K. E. (1981). Economic approach to oil production and gas allocation in continuous gas lift (includes associated papers 10858 and 10865). Journal of Petroleum Technology, 33(10), 1887–1892.
Khamehchi, E., et al. (2009). Continuous gas lift optimization with a novel genetic algorithm. Australian Journal of Basic and Applied Sciences, 1(4), 587–594.
Khishvand, M., Khamehchi, E., & Nokandeh, N. R. (2015). A nonlinear programming approach to gas lift allocation optimization. Energy Sources, Part A: Recovery, Utilization, and Environmental Effects, 37(5), 453–461.
Kisi, O., & Parmar, K. S. (2016). Application of least square support vector machine and multivariate adaptive regression spline models in long term prediction of river water pollution. Journal of Hydrology, 534, 104–112.
Lima Silva, T., et al. (2015). Modeling of flow splitting for production optimization in offshore gas-lifted oil fields: Simulation validation and applications. Journal of Petroleum Science and Engineering, 128, 86–97.
Lo, K. K. (1992). Optimum lift-gas allocations under multiple production constraints.
Luenberger, D. G. (1984). Linear and nonlinear programming. New York: Addison-Wesley.
Mahdiani, M. R. (2013). Hydrocarbon fields development optimization, emphasizing on gas lift stability. Amirkabir University of Technology.
Mahdiani, M. R., & Khamehchi, E. (2015). Preventing instability phenomenon in gas-lift optimization. Iranian Journal of Oil & Gas Science and Technology, 4(1), 49–65.
Mahmudi, M., & Sadeghi, M. T. (2013). The optimization of continuous gas lift process using an integrated compositional model. Journal of Petroleum Science and Engineering, 108, 321–327.
McCracken, M., & Chorneyko, D. M. (2006). Rate allocation using permanent downhole pressures. In SPE Annual Technical Conference and Exhibition. Society of Petroleum Engineers.
Meng, X. B., et al. (2015). A novel bat algorithm with habitat selection and Doppler effect in echoes for optimization. Expert Systems with Applications, 42(17–18), 6350–6364.
Mucherino, A., et al. (2007). Monkey search: a novel metaheuristic search for global optimization. In AIP Conference Proceedings (pp. 162–173). AIP.
Neri, F., & Cotta, C. (2012). Memetic algorithms and memetic computing optimization: A literature review. Swarm and Evolutionary Computation, 2, 1–14.
Nishikiori, N., et al. (1989). An improved method for gas lift allocation optimization. In SPE Annual Technical Conference and Exhibition. Society of Petroleum Engineers.
Price, K., Storn, R. M., & Lampinen, J. A. (2006). Differential evolution: A practical approach to global optimization. Berlin: Springer Science & Business Media.
Rao, S. S., & Rao, S. S. (2009). Engineering optimization: Theory and practice. John Wiley & Sons
Rao, R. V., Savsani, V. J., & Vakharia, D. P. (2011). Teaching–learning-based optimization: A novel method for constrained mechanical design optimization problems. Computer-Aided Design, 43(3), 303–315.
Raoufi, M. H., Farasat, A., & Mohammadifard, M. (2015). Application of simulated annealing optimization algorithm to optimal operation of intelligent well completions in an offshore oil reservoir. Journal of Petroleum Exploration and Production Technology, 5(3), 327–338.
Rashid, K., Bailey, W., & Couët, B. (2012). A survey of methods for gas-lift optimization. Modelling and Simulation in Engineering, Vol. 24.
Rasouli, E., Karimi, B., & Khamehchi, E. (2015). A surrogate integrated production modeling approach to long-term gas-lift allocation optimization. Chemical Engineering Communications, 202, 647–654.
Ray, T., & Sarker, R. (2007). Genetic algorithm for solving a gas lift optimization problem. Journal of Petroleum Science and Engineering, 59(1–2), 84–96.
Shah-Hosseini, H. (2009). The intelligent water drops algorithm: a nature-inspired swarm-based optimization algorithm. International Journal of Bio-Inspired Computation, 1(1–2), 71–79.
Shah-Hosseini, H. (2011). Principal components analysis by the galaxy-based search algorithm: a novel metaheuristic for continuous optimisation. International Journal of Computational Science and Engineering, 6(1–2), 132–140.
Slupphaug, O., & Elgsaeter, S. (2013). Method for prediction in an oil/gas production system. U.S. Patent No. 8,380,475.
Staudtmeister, K., & Rokahr, R. B. (1997). Rock mechanical design of storage caverns for natural gas in rock salt mass. International Journal of Rock Mechanics and Mining Sciences, 34(3–4), 301–313.
Su, Z., & Wang, H. (2015). A novel robust hybrid gravitational search algorithm for reusable launch vehicle approach and landing trajectory optimization. Neurocomputing, 162, 116–127.
Wang, P., Litvak, M., & Aziz, K. (2002). Optimization of production operations in petroleum fields. In SPE Annual Technical Conference and Exhibition (pp. 1–12). Society of Petroleum Engineers.
Yang, X.-S. (2011). Bat algorithm for multi-objective optimisation. International Journal of Bio-Inspired Computation, 3(5), 267–274.
Zerafat, M. M., Ayatollahi, S., & Roosta, A. A. (2009). Genetic algorithms and ant colony approach for gas-lift allocation optimization. Journal of the Japan Petroleum Institute, 52(3), 102–107.
Zitzler, E., Deb, K., & Thiele, L. (2000). Comparison of multiobjective evolutionary algorithms: empirical results. Evolutionary Computation, 8(2), 173–195.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2017 The Author(s)
About this chapter
Cite this chapter
Khamehchi, E., Mahdiani, M. (2017). Optimization Algorithms. In: Gas Allocation Optimization Methods in Artificial Gas Lift. SpringerBriefs in Petroleum Geoscience & Engineering. Springer, Cham. https://doi.org/10.1007/978-3-319-51451-2_4
Download citation
DOI: https://doi.org/10.1007/978-3-319-51451-2_4
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-51450-5
Online ISBN: 978-3-319-51451-2
eBook Packages: EnergyEnergy (R0)