Table of Contents Author Guidelines Submit a Manuscript
The Scientific World Journal
Volume 2014 (2014), Article ID 506138, 8 pages
Research Article

Optimal Energy Consumption Analysis of Natural Gas Pipeline

1Southwest Petroleum University, Chengdu 610500, China
2CNPC Key Laboratory of Oil & Gas Storage and Transportation, Southwest Petroleum University, Chengdu 610500, China
3Beijing Oil and Gas Control Center, Beijing 100191, China

Received 20 March 2014; Accepted 29 April 2014; Published 13 May 2014

Academic Editor: Arman Siahvashi

Copyright © 2014 Enbin Liu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


There are many compressor stations along long-distance natural gas pipelines. Natural gas can be transported using different boot programs and import pressures, combined with temperature control parameters. Moreover, different transport methods have correspondingly different energy consumptions. At present, the operating parameters of many pipelines are determined empirically by dispatchers, resulting in high energy consumption. This practice does not abide by energy reduction policies. Therefore, based on a full understanding of the actual needs of pipeline companies, we introduce production unit consumption indicators to establish an objective function for achieving the goal of lowering energy consumption. By using a dynamic programming method for solving the model and preparing calculation software, we can ensure that the solution process is quick and efficient. Using established optimization methods, we analyzed the energy savings for the XQ gas pipeline. By optimizing the boot program, the import station pressure, and the temperature parameters, we achieved the optimal energy consumption. By comparison with the measured energy consumption, the pipeline now has the potential to reduce energy consumption by 11 to 16 percent.

1. Introduction

Gas pipelines are the bond that connects gas production and consumption; therefore, their operation must be safe, smooth, and effective. In 1961, a US gas pipeline company collaborated with IBM to simulate and optimize the operation of gas pipelines [1]. This represented the prelude to additional optimal operation research on gas transmission pipelines.

In 1983, Goldberg introduced a genetic algorithm, which was one of the most popular optimization algorithms of the time, to optimize the operation of a natural gas pipeline [2]. The optimal solution of this optimization model considered the minimum energy consumption to be the objective function and promoted research on long-distance pipeline operation optimization using intelligent optimization algorithms. Between 1984 and 1997, many scholars, such as Mantri, Renji, Bhaduri, Anglard, Wilson, Ryan, and Berry et al., continued to improve the operation optimization model of gas transmission pipelines, as well as the methods for obtaining solutions [310]. In 1998, Carter took advantage of the dynamic programming algorithm for constructing a steady-state operation optimization model of a gas transmission pipeline [11]. Based on his calculations, he concluded that the dynamic programming algorithm converged faster than the annealing and genetic algorithms. By the end of the 20th century, network simulation models and the optimization of the operation technology for natural gas transmission pipelines had reached maturity. The nonlinear operation optimization model for long-distance gas transmission pipelines (including a discrete variable and objective function for minimum energy consumption) had also been recognized. Since then, researchers have made a sustained effort, taking into consideration the various aspects of the optimization algorithm, to solve the network operation optimization model for a gas transmission pipeline more quickly and effectively. For example, in 2000, Sun and others established a comprehensive pipeline operation optimization expert system [12]. This expert system was capable of detecting the pipeline filling state such that the system could decide the control requirements. It was also able to work out the demand of the corresponding energy consumption. Based on these two steps, a fuzzy model can be used to determine the exact extent to which the compressor should be open. In 2002, Cobos-Zaleta and Rios-Mercado used the equation relaxation and expansion valve method to solve the operation optimization model for a gas pipeline [13]. In 2004, Rusnak et al. used the steady optimization simulator for dynamic optimization analysis of long-distance pipelines, with the goal of simulating the minimal energy consumption [14, 15]. After 2008, Yi et al. studied the problem of steady-state optimization operation of a main gas transmission pipeline network under a determined throughput. In these studies, the optimal rule was adopted based on the minimum energy consumption cost [1619].

In this paper, we aim to characterize long-distance natural gas pipeline operation management. For a given throughput, with the minimum pipeline operation energy consumption as the goal, the gas pipeline optimal operation model can be established. This model is solved using a dynamic programming method to obtain the best operation scheme and the minimum energy consumption for the natural gas pipeline.

2. Minimum Energy Consumption Prediction Model of a Natural Gas Pipeline

Natural gas pipeline systems are complicated. They are composed of pipelines, stations, compressors, fluids, external environmental factors, and other components. Based on the Chinese policy for energy savings and emission reduction and the premise of the transportation quantity plan (intake quantity or delivery quantity), the pipeline operation department must configure each station's compressors and determine the operating parameters for each station to reach the lowest energy consumption for the pipeline system.

To study the minimum energy consumption of a natural gas pipeline system, we need to establish a corresponding mathematical model. A reasonable and accurate mathematical model is the key to obtaining the best results.

2.1. The Objective Function

During operation, the pipeline’s main energy consumption is from the compressor’s drive. Therefore, we established an objective function as the goal for minimum production unit consumption, which is expressed as where is the production unit consumption of the pipeline in kgce/(107 Nm³·km), is the power consumption in kW·h, is the gas consumption in m3, is the electric coal conversion coefficient based on the Chinese National Standard GB2589-81 of 0.1229 kgce/(kW·h), is the gas coal conversion coefficient based on the Chinese National Standard GB2589-81 of 1.33 kgce/m3, and is the turnover in 107 Nm³·km.

The power consumption can be expressed as follows:

The gas consumption can be expressed as where is the number of compressors, is the shaft power of the ith compressor in kW, is the running time of the ith compressor in , is the drive motor efficiency of the ith compressor, is the turbine efficiency of the ith compressor, and is the gas loss rate of the gas turbine in Nm3/ /(kW·h).

The turnover can be expressed as where is the volume flow of the ith section of the pipeline in Nm3/d, is the length of the ith section of the pipeline in km, and is the delivery time in .

2.2. Optimization Variables

The power of the compressor depends on the compression ratio, flow rate, and temperature. Because the inbound traffic of the compressor station is known, the power of the compressor can be simplified into a function of the pressure ratio and temperature. The compressor inlet and outlet temperatures depend on the compression ratio; therefore, the optimization variables can be converted into the compression ratio and thus can be converted into the outbound pressure. The optimization variables of the optimization model, that is, the outbound pressures and the boot number, can be expressed as where is the outbound pressure of the th compressor station and is the boot number of the th compressor station.

2.3. Constraint Condition

To guarantee the safe operation of the pipeline and the devices, both the operation parameters of the pipelines and the operation parameters of the devices must be within the permitted range. Namely, the parameters must be satisfied with a series of constraint conditions.

(1) Inlet and Outlet Pressure Constraint. According to the user’s need, there are some requirements for the pressures of the subair node. These are expressed as where is the pressure of the th node in Pa, is the minimum permissible pressure of the ith node in Pa, and is the maximum allowable pressure of the th node in Pa.

(2) Pipeline Strength Constraints. To ensure the safe operation of the pipelines, the gas pressure must be less than the maximum allowable operating pressure such that where is the pressure of the th pipe in Pa and is the maximum allowable pressure of the th pipe in Pa.

(3) Compressor Performance Constraints. The compressor power equation is where is the overflow rate of the compressor in kg/s, is the polytropic head of the compressor, and is the efficiency of the compressor.

The head curve is calculated according to where , and are the fitting coefficients of the head curve, is the speed of the compressor, and is the actual overflow rate of the compressor in m3/d.

The efficiency curve is calculated according to where and are the fitting coefficients of the power curve.

The buzz curve is calculated according to where is the surging flow in m3/d and and are the fitting coefficients of the buzz curve.

The stagnation curve is calculated according to where is the stagnation flow in m3/d and and are the fitting coefficients of the stagnation curve.

From (9) to (12) are plotted in the figure, forming a closed area. This area is the operating area of the compressor.

(4) Compressor Power Constraints. The power constraints are represented by where is the minimum allowable power of the compressor in MW and is the maximum allowable power of the compressor in MW.

(5) Compressor Speed Constraints. The speed constraints are represented by where is the minimum speed of the compressor in rpm/min and is the maximum speed of the compressor in rpm/min.

(6) Compressor Outlet Temperature Constraints. The temperature constraints are represented by where is the maximum outlet temperature of the compressor in .

(7) Pipeline Pressure Drop Equation. The pressure of the pipeline is determined by two factors: the value of the frictional pressure drop and the pressure change due to the elevation change. The calculation of the pressure drop is based on the continuity and momentum equations. Introducing the mass flow rate of the gas [20], we obtain where is the flow of the gas through the pipes in kg/s, is the starting pressure of the pipeline in , is the end pressure of the pipeline in ,   is the average of the gas flow temperature in , is the length of the pipeline in is the diameter in , is the elevation difference between the start and end of the pipeline in , is the gas compressibility (i.e., the pressure computation of the BWRS state equation), and is the friction factor.

(8) Pipe Temperature Drop Formula. The pipe temperature drop is calculated according to where is the temperature of length of the pipeline in , is the temperature of the pipeline where it is deeply buried in , and is the temperature at the start of the pipeline in .

(9) Pipe Network Node Flow Balance Constraints. For a natural gas pipeline, in any node, according to the law of conservation of mass, the inflow and outflow of the gas should be 0. In general, for a natural gas pipeline network system with Nn node, the gas flow equilibrium equations of the node can be written as where is the set connected to the ith node element, is the absolute value of element into/out of the node flow connected to the ith node, is the flow in the node exchange with the outside world (flow into the positive, flow out of the negative), and is the coefficient (when traffic flows in, the node components are +1 and when traffic flows out, the node components are −1).

The mathematical model can be written in the standard form for optimization models as where represents the optimization variables and is the number of constraints.

3. Method for Modeling Based on Dynamic Programming

The gas pipeline branch is simplified to a point. The operation process of the pipeline can be regarded as a multistage process. Thus, we can use a dynamic programming algorithm to distribute the optimal ratio of the compressor stations (i.e., the optimal discharge pressure).

Suppose the number of compressor stations is when establishing the dynamic programming model. Treat the gas transmission process from the compressor station of the th to the th as theth phase of the correspondence problem. The th stage of the state variables (corresponding to the starting point of the state) is the discharge pressure of the th station. The phase effect for the kth station energy consumption (i.e., the power, as shown in formula (1)), with respect to the pipeline total energy consumption of the optimization goal, can build the optimized dynamic programming model of the pipeline's compressor station pressure ratio.

The algorithm for solving the model is composed of the following components: “determine the state space,” “recursive between stations,” “recursive within the station,” and “backtracking algorithm.”

3.1. Determine the State Space

In the dynamic programming algorithm, a certain compressor station out of all of the feasible discharge pressures is the state space. The upper boundary of the state space can give the design pressure of the pipeline. The lower boundary, also called the lowest discharge pressure, is difficult to determine. If it is too large, it will increase the unnecessary computation; however, if it is too small, it may miss the optimal solution. We calculated the lowest discharge pressure for the previous compressor station with the limitations of the lowest discharge pressure of this compressor station.

The compressor with the gas turbine or motor drive performs stepless speed regulation, so that the discharge pressure of the compressor station can be within the scope of feasible continuous change. Thus, we must process the state space to obtain the finite state point. In this paper, the outlet pressure range of each compressor station is divided into 300 points to determine the compression ratio of the space.

When the pipeline is running with low throughput, the station operation plan is always run more economically than with a low compression ratio. This must be taken into consideration for circumstances where the pressure is above the permitted level for one of the compressor stations. By setting each station’s entrance pressure as part of the state space, the state transition will not leak.

3.2. Recursive between Stations

Recursion between stations is a calculation through which the entrance condition of the next compressor station is determined by the outlet condition of the current compressor station, which mainly involves hydraulic and thermodynamic calculation between stations. On the basis of a certain outlet pressure of the compressor station, (16) and (17) can be used to calculate the pressure and temperature at the ends of the pipeline. This provides the inlet pressure and the temperature of the next station.

Taking the recursive between stations shown in Figure 1 as an example, use number () station’s operation condition corresponding to output pressure to recursive between stations to obtain the ith station outlet condition corresponding to the inlet pressure . The main steps are as follows. Carry out the pipeline’s hydraulic and thermodynamic calculation between the i−1th station and ith station. The starting point’s parameters are , , . The flow should provide the corresponding changes if there is an injection or disengagement point. The final figures for flow, pressure, and temperature are obtained from the inlet operation. In the end, the optimal index corresponding to should be recorded as the energy consumption of the inlet operation, which reflects the pipeline’s energy consumption under the optimal operation scheme from the beginning to the th station.

Figure 1: The recursive process.
3.3. Recursive within the Station

The recursive within the station gives the outlet station’s operation based on the compressor station’s inlet operation, which is dominated by the state transfer. For the state before the transfer, in addition to determining the state space, the feasible compression ratio range of compression for every inlet condition should also be obtained, based on the constraint conditions of the decision variables.

Taking the recursive within the station shown in Figure 1 as an example, for , the method of state transition is as follows. Inspect whether the path from to is feasible, which indicates whether gained by divides (station pressure ratio, namely, the decision variables) is in line with the pressure ratio range inlet condition . If not, make the energy consumption of the path a maximum value; otherwise, call for station optimization to obtain the compressor station’s optimal scheme under the condition of corresponding to the inlet condition and the station pressure ratio of and obtain the energy consumption of the station at the program (if is equal to zero, then so is the energy consumption), namely, the stage effect of the stage. The stage effect and of the corresponding inlet condition recorded from the beginning to the energy consumption of this station are added. Then, the total energy consumption from to can be obtained.

Use the same method to calculate the total energy consumption from to . Compared with the former, the smaller one is the state transfer result.

3.4. Backtracking Algorithm

After the completion of the recursive within the station, we will obtain all of the total energy costs corresponding to several inlet conditions in the terminal station. To obtain the operation program within the minimum energy consumption limit to meet the terminal station’s pressure, backtracking of the whole scheme is required.

Backtracking is performed according to the compression station’s inlet and outlet operations recorded in the optimal program to determine the optimal operation scheme of the pipeline. Backtracking starts from the gate station’s optimal inlet condition, according to every state transfer’s recorded results, to find out every compressor station’s outlet condition corresponding to the last station’s outlet condition.

4. Operation Optimization of the XQ Gas Pipeline

4.1. Basic Parameters of the XQ Gas Pipeline
4.1.1. Pipe Parameters

The length of the pipeline is 3840 km, the design capacity is 170 × 108 Nm3/year, the design pressure is 10 MPa, and the diameter is  mm. The elevation and mileage of the XQ gas pipeline are shown in Figure 2. We can see that the elevation change is large, with the highest point at 1900 m and the lowest point at 1 m.

Figure 2: Elevation and mileage of the XQ gas pipeline.

There are 40 stations in the XQ gas pipeline, including 22 compressor stations and 18 distribution stations, as listed in Table 1.

Table 1: Equipment at each station.
4.1.2. The Compressor Performance Curve

There are two manufacturers for the compressors used in the XQ gas pipeline (GE and RR). Part of the compressor’s coefficients for (9)–(12) is shown in Table 2.

Table 2: Coefficients for the equation for the compressor performance curves.
4.1.3. Constraint Conditions

The maximum outbound pressure is 9.8 MPa, while minimum pitted pressure is 5 MPa. The minimum pitted temperature is 15°C, while the maximum outbound temperature is 65°C.

4.2. Optimization Research and Analysis

Take the parameters in May 2012 as an example for the optimization calculation. The pitted pressure of the first station is 6.5 MPa and the temperature is 15°C. Each station's gas transmission capacity is shown in Table 3. There are 5 points for admission and 37 points distributed along the line. Through 50 iterations, the optimum operation is determined, as shown in Table 4, for 23 running compressors. Compressors are connected in parallel at all stations. By means of the energy consumption amount, the energy consumption of the scheme is shown in Table 5. The unit consumption for production is 138.37 kgce/(107 Nm³·km), and the actual measurement of energy consumption is lower by −12.70% compared with the same month, indicating that the pipeline has great potential for saving energy.

Table 3: Transmission capacity, 104 Nm³/d.
Table 4: Optimal operation scheme.
Table 5: Energy consumption of the optimal operation scheme.

Using the same method to optimize the operation for 1–7 months in 2012, the energy consumption optimization results can be obtained. As shown in Table 6, 1–3 months is the gas use peak in the winter. The first station’s intake is approximately 4800 × 104 Nm³ per day at full load. The period from 4 to 7 months without heating gas is the low point. The first station’s intake is approximately 3500 × 104 Nm³ per day, according to the optimal operation scheme proposed in this paper.

Table 6: XQ1 energy consumption.

We can acquire the operating parameters through the SCADA systems of the pipeline, including the gas consumption and electricity consumption. Therefore, we can obtain the actual energy of the pipeline in Table 6.

The data in Table 6 is plotted in Figure 3. Compared with the measured values, the production unit consumption can be reduced by approximately 11%~17%. Therefore, the pipeline has great energy-saving potential.

Figure 3: Energy analysis.

5. Conclusions

Our conclusions are as follows.(1)Based on a full understanding of actual demands of a pipeline company, we introduce production consumption indicators to establish an objective function of the minimum energy consumption of the gas pipeline and use dynamic programming to solve the model quickly and efficiently.(2)When setting the constraints, it is necessary to consider the pipeline, station, power equipment, topography, and climate and to simplify these constraints reasonably such that the mathematical model can accurately describe not only the energy consumption of crude oil pipeline but also the convenient mathematical operations.(3)According to the dynamic programming method, we compiled the natural gas pipeline running optimization software, which can be used to guide the natural gas pipeline running program analysis and optimize the energy savings. Through the optimization analysis of the XQ nature gas pipeline with the actual working condition, we discovered that the optimal operation scheme can reduce energy consumption by 11%~16%.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.


This work was supported by the special fund of China’s central government for the development of local colleges and universities—the project of National First-Level Discipline in Oil and Gas Engineering, the Scientific Research Cultivate Project of SWPU, the National Natural Science Foundation of China (no. 51174172), and a subproject of the National Science and Technology Major Project of China (no. 2011ZX05054).


  1. L.-G. Li and Z.-H. Zhang, “Operation optimization based on improved pattern search algorithm in gas transmission networks,” Journal of China University of Petroleum, vol. 36, no. 4, pp. 139–143, 2012. View at Google Scholar
  2. D. E. Goldberg, Computer-aided gas pipeline operation using genetic algorithms and rule learning [Ph.D. dissertation], University of Michigan, Ann Arbor, Mich, USA, 1983.
  3. V. B. Mantri, L. B. Preston, and C. C. Pringle, “Computer program optimizes nature gas pipeline operation,” Pipeline Industry, vol. 6, no. 6, pp. 39–45, 1986. View at Google Scholar
  4. Z. Renji, S. Selandari, and H. G. Nicolai, “A system for control and optimum operation of a gas transmission network,” in Proceedings of the 19th Annual Pipeline Simulation Interest Group Meeting (PSIG '87), Tulsa, Okla, USA, 1987.
  5. M. J. Ryan and P. B. Percell, “Steady state optimization of gas pipeline network operation,” in Proceedings of the 19th Annual Pipeline Simulation Interest Group Meeting (PSIG '87), Tulsa, Okla, USA, 1987.
  6. T. Williams and G. E. Broadbent, “Optimization in the operation of compressor stations on the moomba to adelaide gas pipeline network,” in Proceedings of the 21th Annual Pipeline Simulation Interest Group Meeting (PSIG '89), El Paso, Tex, USA, October 1989. View at Scopus
  7. M. A. R. Berry, “Optimizing compressor operation by effective application of performance models,” in Proceedings of the 23th Annual Pipeline Simulation Interest Group Meeting (PSIG '91), Houston, Tex, USA, 1991.
  8. S. Bhaduri and R. K. Talachi, “Optimization of natural gas pipeline design,” ASME Petroleun Division, vol. 16, pp. 67–75, 1988. View at Google Scholar
  9. J. G. W. Wilson, “Optimization of large gas networks,” in Proceedings of the European Confercence on Mathematics in Industry, The University of Stranthclyde, Glasgow, UK, August 1988.
  10. P. Anglard and P. David, “Hierarchical steady state optimization of very large gas pipelines,” in Proceedings of the 20th Annual Pipeline Simulation Interest Group Meeting (PSIG '88), Toronto, Canada, 1988.
  11. R. Carter, “Pipeline optimization: dynamic programming after 30 years,” in Proceedings of the 30th Annual Pipeline Simulation Interest Group Meeting (PSIG '98), Denver, Colo, USA, 1998.
  12. C. K. Sun, V. Uraikul, C. W. Chan, and P. Tontiwachwuthikul, “An integrated expert system/operations research approach for the optimization of natural gas pipeline operations,” Engineering Applications of Artificial Intelligence, vol. 13, no. 4, pp. 465–475, 2000. View at Publisher · View at Google Scholar · View at Scopus
  13. D. Cobos-Zaleta and R. Z. Rios-Mercado, “A MINLP Model for a Minimizing Fuel Consumption on Natural Gas Pipeline Networks,” 2002,
  14. D. R. Rusnak and E. P. Ferber, “Automated Pipeline Optimization (APO) for nonimations management & comperssor fuel minimization,” in Proceedings of the 36th Annual Pipeline Simulation Interest Group Meeting (PSIG '04), 2004.
  15. J. Stoffregen, K. K. Botros, and D. J. Sennhauser, “Pipeline network optimization application of genetic algorithm methodologies,” in Proceedings of the 37th Annual Pipeline Simulation Interest Group Meeting (PSIG '05), San Antonio, Tex, USA, 2005.
  16. Y. Yi and Z. Hongwei, “Research on steady optimization operation of China petroleum main gas transmission pipe network,” Shanghai Gas, vol. 2, pp. 10–14, 2008. View at Publisher · View at Google Scholar
  17. C. Borraz-Snchez and R. Z. Ros-Mercado, “Minimizing fuel cost in gas transmission networks by dynamic programming and adaptive discretization,” Computers & Industrial Engineering, vol. 1, no. 2, pp. 364–372, 2011. View at Google Scholar
  18. C. Monteiro, T. Santos, L. A. Fernandez-Jimenez, I. J. Ramirez-Rosado, and M. S. Terreros-Olarte, “Short-term power forecasting model for photovoltaic plants based on historical similarity,” Energies, vol. 6, no. 5, pp. 2624–2643, 2013. View at Publisher · View at Google Scholar
  19. B. Tomoiagă, M. Chindriş, and A. Sumper, “Pareto optimal reconfiguration of power distribution systems using a genetic algorithm based on NSGA-II,” Energies, vol. 6, no. 3, pp. 1439–1455, 2013. View at Publisher · View at Google Scholar
  20. C. Li, The Transportation of Natural Gas Pipeline, Oil Industry Press, Beijing, China, 2000.