Figures
Abstract
Efficient operation of natural gas pipeline networks is essential for minimizing costs and ensuring a stable energy supply. Compressor stations are critical for maintaining pressure throughout the network and represent a substantial portion of both capital investment and operational expenditures. Optimizing compressor operations is complex due to nonlinear interactions among compression ratios, flow rates, and operational constraints such as surge and choke limits, as well as the need for discrete decisions, including bypass selection and flow direction. To address these challenges, this study introduces a Sequential Linear Programming (SLP) algorithm specifically designed for large-scale pipeline scheduling. The method accommodates compressor capacity constraints and discrete decision variables, resulting in significant improvements in computational efficiency and solution quality. Numerical experiments on extensive real-world pipeline networks in China demonstrate that the algorithm rapidly produces near-optimal solutions, indicating its suitability for practical implementation. The results underscore clear advantages in both economic performance and operational reliability.
Citation: Qiu J, Zhao L, Ning X, Yu D (2026) Gas network value chain optimization considering compressor capacity constraints. PLoS One 21(3): e0332833. https://doi.org/10.1371/journal.pone.0332833
Editor: Soheil Mohtaram, University of Shanghai for Science and Technology, CHINA
Received: January 26, 2025; Accepted: September 4, 2025; Published: March 30, 2026
Copyright: © 2026 Qiu et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All data of gas networks are available from the github https://github.com/masonYau/gasNetworkData/tree/main.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
Natural gas pipeline networks play a critical role in energy distribution, connecting production sources to a wide range of demand points—including industrial, commercial, and residential consumers. Optimizing the gas network value chain—which encompasses procurement, transportation, and distribution—is essential for achieving operational efficiency, cost-effectiveness, and supply reliability. Among these stages, pipeline transportation presents significant challenges due to inherent complexities, including pressure loss caused by frictional forces, fluctuating flow demands, and the physical properties of natural gas.
To maintain adequate gas pressure for efficient long-distance transport, compressor stations are strategically installed along pipelines. Often referred to as the “heart” of the pipeline network, compressor stations account for 20–30% of the total pipeline infrastructure investment, with compressor units themselves comprising about half of that amount. In addition to their capital cost, compressor operations account for over 50% of total operational expenses, making them a critical factor in the economic performance of gas networks[25]. Therefore, accurately modeling and optimizing compressor operations—including their capacity limits—is not only beneficial for reducing costs but also essential for ensuring safety and operational efficiency.
Compressor capacity, typically expressed as a compression ratio, is highly sensitive to operating conditions, including inlet pressure, gas flow rate, and rotational speed. These relationships are inherently nonlinear and governed by complex thermodynamic and mechanical principles. Moreover, operational limits such as surge and choke flow boundaries must be strictly managed to avoid safety risks and efficiency losses. The situation is further complicated by the presence of discrete decision variables, such as whether to bypass a compressor or change the boosting direction, which transform the optimization problem into a challenging Mixed-Integer Nonlinear Programming (MINLP) formulation.
Despite advancements in optimization techniques, solving large-scale MINLP problems remains computationally demanding, especially for extensive gas transmission networks. Traditional nonlinear methods or overly simplified linear approximations often fail to capture the system's true complexity or require excessive computation time, limiting their practicality for real-time scheduling applications. As a result, there is a pressing need for efficient, scalable, and accurate algorithms that can deliver high-quality solutions within a reasonable timeframe.
A Sequential Linear Programming (SLP) algorithm is proposed to address the nonlinearities and discrete characteristics inherent in gas network optimization. This method incorporates detailed compressor capacity constraints and operational flexibility, which significantly enhance both solution accuracy and computational efficiency. The algorithm enables rapid optimization for large-scale pipeline networks and provides a practical and robust tool for improving economic performance, operational reliability, and overall system efficiency.
The structure of this paper is as follows: Section 2 reviews literature on natural gas network scheduling and compressor control. Section 3 describes the studied problems and the challenges of integrating compressor capacity constraints into the scheduling process. Section 4 presents the mathematical formulation. Section 5 introduces the proposed solution algorithm. Section 6 discusses numerical experiments and results. Section 7 concludes and outlines future research directions.
2. Literature review
2.1 Historical context and early models
Optimization of natural gas pipeline operations has been a focus of research for decades, driven by the need to reduce transmission costs and ensure reliable supply amid fluctuating demand. Early approaches relied on linear programming (LP) and mixed-integer linear programming (MILP) to solve simplified versions of the problem.
For example, O'Neill et al. (1979) [1] proposed a linear programming-based method for optimizing transmission network design. The approach identifies capacity shortages and recommends circuit expansions based on a flow estimation technique that minimizes total circuit length while enhancing network efficiency. Similarly, Hui and Yukikazu (1996) [2] developed a multi-period utility system model based on mixed-integer programming to optimize industrial operations, achieving notable gains in efficiency and cost savings while considering constraints and future demand.
Although these early models provided valuable insights, they lacked the ability to capture the nonlinear behavior inherent in natural gas flow and compression. Gas transport involves complex thermodynamic and fluid dynamic principles, which linear models fail to accurately represent. This limitation has led to the development of more advanced methods that can handle such nonlinearities.
2.2 Nonlinear modelling approaches
To overcome the limitations of linear models, researchers developed nonlinear programming (NLP) and mixed-integer nonlinear programming (MINLP) models that more accurately reflect the physical and operational characteristics of natural gas pipelines. These models consider a range of factors, including pressure drops due to friction, changes in gas composition, temperature variations, and the nonlinear relationship between compressor power consumption and pressure ratios.
Wong and Larson (1968) [3] introduced a dynamic programming approach to solve the nonlinear gas transmission network problem. Their model incorporated the nonlinearities in gas flow equations, representing a significant advancement over earlier linear models. Building on this, Edgar et al. (1978) [4] developed a sophisticated algorithm for optimizing the design of gas transmission networks. They used the generalized reduced gradient method to handle nonlinearities and efficiently determine the optimal layout and operation of pipelines and compressors for cost minimization. The method was later applied to gas network operations, addressing objectives such as minimizing fuel consumption and maximizing throughput, while managing the nonlinearities and discrete variables inherent in pipeline optimization (Percell and Ryan, 1987 [5]).
Although these nonlinear models provided a more realistic representation of pipeline operations, they also introduced significant computational challenges. Due to the problem’s inherent nonconvexity, traditional optimization techniques often failed to find global optima, which motivated the development of more robust solution strategies.
2.3 Mixed-Integer Nonlinear Programming (MINLP) for Pipeline Scheduling
To address the complexities of pipeline scheduling, which include modeling discrete decisions such as compressor activation and changes in flow direction, researchers have developed mixed-integer nonlinear programming (MINLP) models. These models integrate continuous variables (e.g., pressures, flows) with discrete variables (e.g., compressor on/off states) to provide a more comprehensive representation of pipeline operations.
Geißler et al. (2013) [6] introduced a method for solving nonconvex MINLP problems using adaptive refinement of MIP-relaxations, focusing on minimizing energy costs in gas transport networks. This method effectively manages discrete decisions, such as valve and compressor operations. Building on these foundations, more recent studies by Mikolajková et al. (2018) [7] and Burlacu et al. (2019) [8] have further refined these models, incorporating additional physical constraints and operational flexibilities, such as bidirectional flow and multiple compressor configurations.
The inclusion of these additional complexities has significantly increased the difficulty of solving MINLP models. However, advancements in optimization algorithms, including branch-and-bound, branch-and-cut, and decomposition methods, have enhanced the ability to find high-quality solutions within reasonable computational times (Liu et al., 2021 [9]; Zoppei et al., 2022 [10]).
2.4 Compressor station optimization
Compressor stations play a vital role in maintaining pressure levels across natural gas pipelines. As a result, their optimization is essential for efficient network operations. Since compressors account for a significant portion of operational costs, optimizing their use can lead to substantial savings.
Early studies approached compressor optimization using simplified models that treated compressors as black boxes with fixed pressure ratio ranges and empirical power consumption estimates (Wong and Larson, 1968 [3]; Sood et al., 1971 [11]). These models failed to capture the complex interactions between compressor capacity and operating conditions such as running speed, inlet pressure, and gas flow rate.
More recent research has developed detailed models that incorporate compressor performance characteristics and interactions within stations. For example, Zhao et al. (2021) [12] proposed a model that accounts for various configurations (series or parallel), pressure ratios, and operational states, thereby providing a more comprehensive understanding of station operations. They also investigated bypass operations—where gas flows through a station without compression—and flow reversal capabilities, both of which enhance the flexibility of pipeline scheduling.
2.5 Advanced computational techniques
Given the complex, nonlinear, and nonconvex nature of natural gas pipeline optimization problems, advanced computational techniques have been widely employed to improve solution efficiency and quality. Sequential linear programming (SLP) is one such method. For instance, Chaudry et al. (2008) [13] applied SLP to address a multi-period optimization problem in a combined gas and electricity network.
In addition to SLP, various heuristic and metaheuristic algorithms—such as genetic algorithms (GA), tabu search (TS), and particle swarm optimization (PSO)—have been used to tackle the nonconvexity and discrete decision-making inherent in pipeline scheduling problems (Djebedjian et al., 2008 [14]; Borraz-Sánchez et al., 2005 [15]; Moetamedzadeh et al., 2022 [16]). Although these methods do not guarantee global optimality, they often produce high-quality solutions more efficiently than traditional optimization approaches.
Metaheuristic techniques have also gained considerable traction in broader energy system scheduling problems, which involve nonlinear cost functions, operational constraints, and environmental considerations. For example, Habib et al. (2023) [17] proposed an improved honey bee mating optimization (HBMO) algorithm for economic-emission dispatch, accounting for complex constraints such as valve-point effects, ramp limits, and prohibited operating zones. Shokouhandeh et al. (2022) [18] employed a modified imperialist competitive algorithm (ICA) for optimal microgrid scheduling, incorporating electric vehicle parking lots and distributed generation, and achieved significant cost reductions, outperforming GA and PSO.
To address multi-objective optimization under uncertainty, Kamarposhti et al. (2025) [19] applied NSGA-II for microgrid operation management, achieving effective trade-offs between cost and emissions while incorporating renewable generation variability and load uncertainty. Similarly, Shokouhandeh et al. (2021) [20] introduced a modified gray wolf optimization (MGWO) algorithm for unit commitment under electricity price uncertainty, demonstrating superior performance over conventional GWO and PSO methods.
In the context of distribution systems, Kamarposhti et al. (2021) [21] employed the artificial bee colony (ABC) algorithm to optimize the location and sizing of distributed generators and capacitor banks, thereby reducing power losses and enhancing reliability. Makahleh et al. (2023) [22] optimized the placement and dispatch of energy storage systems for peak shaving using GA and PSO, achieving flattened load curves and enhanced operational stability. Eslami and Kamarposhti (2019) [23] further explored hybrid energy system design by proposing a modified bee algorithm that minimized life cycle costs while maintaining network reliability.
Beyond optimization, fuzzy logic has been applied in protection systems. Rad et al. (2011) [24] developed a fuzzy-based transformer differential protection scheme capable of distinguishing internal faults from non-fault phenomena (e.g., inrush currents and CT saturation), enabling fast and reliable fault detection within half a cycle.
2.6 Emerging trends and system-level perspectives
Recent research has extended traditional natural gas pipeline optimization toward clean energy system integration, intelligent operation, and resilience under uncertainty. Peng et al. (2025) [25] proposed a steady-state MINLP model for natural gas transportation optimization, using a sequential linear programming (SLP) algorithm to improve the efficiency and sustainability of clean energy supply chains. Similarly, Peng et al. (2024) [26] developed a multi-period integrated scheduling framework to manage time-varying demand and operational constraints in complex pipeline systems.
Beyond steady-state optimization, Liu et al. (2025) [27] explored pipeline network design from a cleaner production perspective, emphasizing environmental performance and carbon footprint reduction. Liu et al. (2024) [28] introduced a novel deep reinforcement learning-based optimization framework for dynamic pipeline network decision-making, capturing nonlinear and time-dependent system behaviors.
Emergency and resilience scenarios are also gaining attention. Sun et al. (2024) [29] applied differential evolution to solve emergency scheduling problems within natural gas supply chains, thereby improving robustness during disruption events. Logsdon et al. (2025) [30] focused on pipeline recovery optimization after incidents, using heuristics to accelerate response times and minimize economic losses.
In terms of compressor station operation, Shui et al. (2023) [31] presented a monitoring and optimization method aimed at improving compressor efficiency in large-scale systems. For infrastructure planning, Alavi et al. (2024) [32] incorporated seismic risk into gas pipeline routing through metaheuristic algorithms, enhancing system safety and long-term resilience.
From a mathematical modeling perspective, Adjei et al. (2024) [33] proposed a quadratically constrained MINLP formulation that effectively captures nonlinear flow-pressure relationships and discrete decisions. These diverse contributions underscore a broader shift toward intelligent, sustainable, and adaptive gas network operation strategies.
Recent research also emphasizes the importance of renewable energy integration and intelligent energy management. For instance, microgrid operation and control strategies have been widely reviewed, highlighting their role in reducing costs and enhancing sustainability (Abdelsattar et al., 2023 [34]; Abdelsattar et al., 2024 [35]). In addition, advanced machine learning and deep learning techniques have been applied to improve renewable energy forecasting accuracy (Abdelsattar et al., 2024 [36]; Abdelsattar et al., 2025 [37]), while metaheuristic algorithms such as the African Vultures Optimization Algorithm have been proposed for hybrid system design (Abdelsattar et al., 2024 [38]). These studies illustrate the methodological advances in energy systems optimization; however, they seldom consider compressor capacity constraints in large-scale gas transmission networks, which is the gap addressed in this work.
2.7 Our Contributions
This paper addresses critical gaps in natural gas pipeline optimization by introducing practical advancements in both model realism and computational efficiency. Specifically:
- (1). We develop a comprehensive compressor modeling framework that captures nonlinear compressor characteristics, including surge and choke flow constraints, thereby significantly enhancing model realism and ensuring better operational safety.
- (2). We propose an efficient SLP algorithm, specifically designed to solve large-scale mixed-integer nonlinear programming problems quickly and reliably, effectively overcoming the computational limitations of existing methods.
- (3). We validate our approach through real-world experiments on China’s largest natural gas pipeline networks, demonstrating its ability to provide near-optimal solutions within practical timeframes, thereby improving both economic efficiency and operational performance.
- (4). Problem Description
This chapter addresses practical aspects of natural gas network scheduling, structured into three sections. The first section defines the optimization problem. The second section investigates stable operating conditions for compressors. The third section analyzes how series and parallel compressor configurations affect stability-related operational constraints.
3.1 Structure of Gas Network
A long-distance natural gas pipeline network comprises several essential components. Pipeline segments form the primary infrastructure, connecting endpoints and governed by decision variables such as mass flow rate and flow direction, which must satisfy hydraulic constraints related to pressure drops. Control valves, positioned along pipeline segments, reduce gas pressure beyond frictional losses to meet downstream requirements. Their decision variables include flow rate, as well as inlet and outlet pressures. Compressor stations, located within pipeline segments, increase gas pressure to support transmission. Relevant variables are flow rate, rotational speed, compression ratio, and boosting direction, all maintained within stable operating ranges. Gas sources, including fields, storage facilities, liquefied natural gas (LNG) regasification plants, and ports, supply pressurized gas subject to upper and lower supply limits [39]. Demand centres, such as urban and industrial consumers, are defined by consumption constraints and tiered pricing. The decision variable is the quantity of gas sold. Nodes function as junctions between pipeline segments, with pressure as the primary decision variable, constrained within specified bounds.
3.2 Modelling of Compression Capacity
A gas compressor is a mechanical device that increases the pressure of a gas to facilitate pipeline transportation. The primary types are reciprocating (piston-type) and centrifugal compressors. As pipeline diameters and flow rates increase, centrifugal compressors are preferred for their operational efficiency and mechanical simplicity. In operation, gas enters the centrifugal compressor axially through a high-speed impeller. Centrifugal force causes the gas to move outward into the diffuser, where the cross-sectional area increases. This transition converts part of the gas's kinetic energy into pressure energy, reducing velocity and increasing pressure. Gas may be recirculated through a return channel to the impeller, enabling multiple compression stages until the desired pressure is achieved.
In gas network optimization, compressor capacity is typically characterized by the compression ratio. This ratio mainly depends on the compressor’s rotational speed and inlet flow rate. The relationship between these variables—commonly referred to as the compression ratio curve—is typically derived from experimental data provided by compressor manufacturers. It can be accurately approximated using a high-order polynomial function. In this study, the compression ratio curves of most centrifugal compressors are effectively fitted by high-order polynomials [12]. Specifically, the rotational speed is modeled up to the third order, and the inlet flow rate up to the second order. The specific form of this high-order polynomial is given below.
In this context, denotes the compression ratio function. The coefficients
,
, and
are obtained through regression fitting. Here,
represents the inlet flow rate, and
is the compressor's rotational speed.
For centrifugal compressors, at a fixed rotational speed, an increase in inlet flow rate typically reduces the compression ratio, whereas a decrease in inlet flow rate raises it. The inlet flow rate must remain within a specified operating range. Falling below this range may cause a surge, significantly reducing compressor efficiency and service life [40]. Therefore, flow rates below this threshold—referred to as the surge flow rate—are strictly avoided in practice. Conversely, exceeding the upper limit may result in choke, a condition in which the impeller’s energy is dissipated in overcoming flow resistance without contributing to pressure gain [40]. Thus, flow rates exceeding this upper limit—termed the choke flow rate—are also prohibited. The relationships between rotational speed and both surge and choke flow rates are modeled using high-order polynomial functions, as illustrated below.
Here, and
are fitting parameters used to characterize the surge and choke boundaries. The warning surge and choke curves are obtained by appropriately shifting the original curves to introduce a safety margin. In addition, the compressor’s rotational speed is limited to a specified range, namely
. As illustrated in Fig 1, the warning surge and choke curves, together with the minimum and maximum speed limits, define the compressor’s stable operating region on the compression ratio surface.
3.3 The impact of compressor station layout
Compressor stations in long-distance natural gas pipelines generally include multiple centrifugal compressors arranged in series or parallel. Parallel configurations are used in trunk pipelines to accommodate higher flow rates. Series configurations provide higher compression ratios and are suitable for pipelines with significant elevation changes.
When compressors are configured in parallel, their hydraulic behavior follows a key principle: at a given pressure ratio, the total flow rate equals the sum of individual flow rates [41]. Fig 2 illustrates this principle, where the horizontal axis denotes the inlet flow rate and the vertical axis denotes the pressure ratio. Under constant rotational speed, the combined performance curve of two parallel compressors (Ⅰ + Ⅱ) is obtained by summing their individual curves along the flow axis. In this study, all compressors in a parallel configuration are assumed to have identical performance characteristics, including pressure ratio, surge, and choke curves, and the inlet flow is evenly distributed among all units. Based on these assumptions, the aggregate performance curve of the parallel compressor station can be expressed as follows:
Compression Ratio Curve:
Surge Curve:
Choke Curve:
Here, denotes the number of compressors arranged in parallel within the station.
When compressors are arranged in series, the overall compression ratio is equal to the product of the individual compression ratios, assuming a constant mass flow rate through each unit [41]. This relationship is illustrated in Fig 3. At a fixed rotational speed, the horizontal and vertical axes correspond to flow rate and compression ratio, respectively. The combined curve for two compressors in series (Ⅰ*Ⅱ) is obtained by multiplying their individual compression ratios pointwise along the vertical axis. Although the mass flow rate remains constant across series compressors, changes in pressure and temperature alter the gas’s volumetric flow rate and thermodynamic state. These values must be converted using equations of state before applying the compression ratio curves. Given the complexity of individual performance curves, aggregating them into a unified curve for the series configuration is impractical for optimization purposes. Therefore, each compressor is modeled individually in the network, with its respective performance curve and associated decision variables explicitly incorporated into the optimization model.
The mathematical programming model
This chapter presents the formulation of the natural gas network scheduling problem as a nonlinear mixed-integer programming (MINLP) model, referred to as the Nonlinear Original Problem (NOP). The sets, parameters, and variables used in the model are summarized in Table 1–2, and Table 3.
4.1 Modelling of Gas Network
The following presents the mathematical formulation of constraints associated with the natural gas pipeline network. Constraint (1) enforces the flow balance at each network node, ensuring that the sum of incoming gas flow and local supply equals the sum of outgoing flow and total demand. Constraints (2) and (3) define the total demand and total supply
at node
, respectively.
Constraint (4) captures the physical relationship between gas pressure and flow in standard transmission pipelines, excluding those equipped with compressor stations or control valves. The binary variable indicates whether the flow direction is from node
to node
. When
(i.e., the flow direction is from
to
), the expression
evaluates to -1, thereby reversing the pressure–flow relationship in the equation.
The coefficients in Equation (4) are defined as follows:
Where:
is the temperature,
is the inner diameter of the pipeline segment
is the length of the pipeline segment,
is the relative density,
is the hydraulic friction coefficient,
is the compressibility factor,
are the elevations at the endpoints of pipeline sub-segment
, introduced to capture topographic variability,
are the lengths of pipeline sub-segment
,
is the elevation difference between node
and node
, and
is the elevation coefficient, representing the contribution of elevation differences to pressure losses in the pipeline.
Constraints (5) and (6) describe the physical relationship between gas pressure and flow in transmission pipelines equipped with control valves. Specifically, when the transmission direction coincides with the pressure relief direction of the control valve (i.e., ), the outlet pressure is allowed to decrease to any value above the minimum pressure limit. Otherwise, the pressure–flow relationship must conform to the standard pipeline constraints.
This section presents the constraints related to gas sources and demand. In the case study, the sales price of natural gas at demand points is modelled as a step function of the demand volume. Accordingly, constraints are introduced to capture the price-tier assignment based on the quantity demanded. Constraint (7) ensures that the demand at each natural gas demand point falls exclusively within a single price tier.
Constraint (8) ensures that the variable takes a nonzero value only when the total sales volume
falls within a specific pricing tier; otherwise, it must be zero. Specifically, if the sales volume falls within tier
, then
is assigned a value of 1, constraining
to be less than or equal to the upper limit of that tier,
. Conversely, if the sales volume does not fall within tier
, then
, thereby enforcing
. Constraint (9) ensures that if
falls within tier
, then it equals the cumulative sales volume of tiers 1 through
, denoted
, plus the remaining volume within tier
,
.
Constraints (10), (11), (12), and (13) impose bound constraints on the demand, supply, pressure, and flow rate variables, respectively.
4.2 Modelling of compressor stations
The following presents the formulation of constraints associated with the compression capacity of compressor stations. Constraint (14) describes the nonlinear relationship among the compression ratio, the compressor station’s rotational speed, and the inlet flow rate. Let denote the compression ratio curve of the compressor station between nodes
and
, as a function of the inlet flow rate and rotational speed. Constraint (15) defines the conversion between standard and inlet condition flow rates, where
denotes the conversion factor.
The following four sets of constraints govern the pressure assignments at both ends of the compressor station based on discrete operational decisions, such as flow direction and bypass status. Constraint (16) characterises the pressure balance between the inlet and outlet of the compressor station during the compression process. When the flow direction is from node to
, Constraints (17) and (18) assign the pressure increase to
, while
is set to zero; otherwise, the pressure increase is assigned to
, and
is zero. If the compressor station is bypassed, Constraint (19) enforces zero pressure increase at both ends.
Constraints (20) and (21) assign compressor inlet pressure values according to the specified flow direction variables.
Let and
denote the warning surge and choke flow rate curves of the compressor station between nodes
and
. The following two sets of constraints define the relationship between the surge and choke warning flow rates—
and
, respectively—and the operating rotational speed of the compressor station.
Constraints (24) and (25) are used to ensure that the compressor station's key operational parameters—flow rate and rotational speed—remain within their stable operating ranges
5. Solution algorithm
5.1 Sequential linear programming
Natural gas network scheduling is characterized by detailed compressor capacity constraints, numerous nonlinear relationships, and complex discrete decisions, resulting in a challenging nonlinear mixed-integer programming (MINLP) problem. In large-scale networks, conventional nonlinear programming methods, such as piecewise function approximations, frequently fail to provide solutions within a practical timeframe. To address this limitation, Sequential Linear Programming (SLP) is employed. SLP linearizes nonlinear functions using first-order Taylor expansions, transforming the original problem into a linear approximation problem (LAP). The LAP can be solved using standard mixed-integer programming techniques to obtain locally optimal solutions. The formulation of LAP based on the original nonlinear optimization problem (NOP) is presented below.
Objective (26)
S.t
Constraint (1)(2)(3)(7)(8)(9)(10)(11)(12)(13)(16)
(17)(18)(19)(20)(21)(24)(25)
Constraints (27)–(33) represent the linear approximations of constraints(4), (5), (6), (14), (15), (22), and (23), respectively. Here, ,
,
,
and
denote the base point values of the corresponding variables
,
,
,
and
, respectively. Constraints (34)–(36) limit the linearized variables to a neighbourhood around the base point to mitigate approximation errors. In particular, constraint (35) addresses the sensitivity of outlet pressure to changes in the compressor station’s bypass variable, which can cause abrupt pressure variations. Directly constraining the pressure variable near the base point may inhibit changes in the bypass decision, potentially leading to inferior solutions. To alleviate this issue, an adjustment term
is introduced into constraint (35), allowing dynamic adaptation of the pressure bounds in response to bypass status and thereby preserving solution quality.
In sequential linear programming (SLP), the process begins by identifying an optimal solution within a predefined neighbourhood of the current base point. This solution is then used to update the linear approximation and serves as the new base point for the next iteration. The procedure is repeated, and the neighbourhood radius is gradually reduced when the improvement in the objective value between successive iterations becomes sufficiently small. Once the radius shrinks below a certain threshold, the algorithm is considered to have converged to a local optimum of the original nonlinear problem.
5.2 Finding initial base point
Prior to applying linear approximation, it is necessary to identify a feasible solution that satisfies all original constraints to serve as the initial base point. Accordingly, a four-phase solution procedure is developed. The first three phases sequentially address feasibility for hydraulic constraints, compressor capacity constraints, and minimum demand constraints. The final phase focuses on optimizing the overall objective. In Phase One, all three types of constraints are relaxed and slack variables are introduced. The objective is to minimize violations associated with the hydraulic constraints. The slack problem for Phase One (hereafter referred to as LAP-S1) is formulated as follows.
Objective
S.t
Constraint (1)(2)(3)(7)(8)(9) (11)(12)(13)(17)(18)
(19)(20)(21) (25)(28)(29)(30)(31)(32)(33)(34)(35)(36)
In the Phase One slack problem, slack variables and
are introduced into the hydraulic constraints (27) and subsequently minimized as the objective. To relax compressor capacity constraints, slack variables
and
are added to the pressure balance constraints (16) that link inlet and outlet pressures, allowing them to deviate from the compression ratio. Similarly,
and
are introduced into the flow range constraints (24) to relax the feasible operating range. Lastly,
is included in the minimum demand constraint (10) to soften demand satisfaction requirements.
The process begins by setting the base point at the lower bound for all variables. An optimal solution is then iteratively searched within a neighborhood of this base point, which is updated at each iteration. As the objective value approaches zero, the neighborhood radius is gradually reduced. This process continues until the radius becomes sufficiently small, resulting in a base point that satisfies constraint (27). If the objective value fails to reach zero, it indicates that the original nonlinear problem is infeasible.
In Phase Two, the slack variables associated with the hydraulic constraints are removed, and the solution obtained from Phase One serves as the new initial base point. The objective is redefined to minimize the slack variables corresponding to the compressor capacity constraints, yielding a solution that satisfies these conditions. The slack problem for Phase Two (hereafter referred to as LAP-S2) is formulated as follows:
Objective
S.t
Constraint (1)(2)(3)(7)(8)(9) (11)(12)(13)(17)(18)
(19)(20)(21)(25)(27)(28)(29)(30)(31)(32)(33)(34)(35)
(36)
A similar procedure is followed in Phase Two. Once the objective function reaches zero and the neighborhood radius is sufficiently reduced, a base point satisfying constraints (16) and (24) is obtained. If convergence is not achieved, it suggests that the original nonlinear problem is infeasible.
In Phase Three, the slack variables associated with these two constraints are removed, and the solution obtained from Phase Two is used as the new initial base point. The objective is to find a solution that satisfies the minimum demand constraints. The slack problem for Phase Three (hereafter referred to as LAP-S3) is formulated as follows:
Objective
S.t
Constraint (1)(2)(3)(7)(8)(9) (11)(12)(13)(16)(17)
(18)(19)(20)(21)(24)(25)(27)(28)(29)(30)(31)(32)(33)
(34)(35)(36)
The same procedure is applied, with termination determined by two criteria: the objective improvement is sufficiently small, and the neighborhood radius is adequately reduced. If the optimal objective value reaches zero, a base point satisfying constraint (10) is identified. Otherwise, the minimum demand constraint is considered infeasible and should be adjusted.
In Phase Four, the linear approximation problem is solved iteratively using termination criteria similar to those in LAP-S3. This final phase yields a locally optimal solution to the original nonlinear problem.
Numerical experiment
This study presents a case analysis based on China’s largest long-distance natural gas pipeline network. Spanning most of the country, the network extends approximately 37,000 kilometers and includes around 650 nodes, 670 pipelines, 119 compressor stations, and 65 control valves. To facilitate the evaluation of the proposed model and algorithms, the network is divided into six test cases of varying sizes and configurations. Each test case features a distinct number of pipeline segments, nodes, and compressor stations, as summarized in Table 4.
The experimental analysis focuses on two primary objectives: (1) assessing the nonlinear approximation errors of key variables to verify algorithmic accuracy, and (2) validating the model’s effectiveness by comparing results against those obtained using piecewise linear function-based methods. All experiments were conducted on a system equipped with an AMD Ryzen 5 4600U CPU and 16 GB of RAM. The algorithms were implemented in Python 3.7, with GUROBI 11 employed as the MIP solver.
In the numerical experiments, the proposed algorithm is tested on gas networks of varying scales, derived from different segments of the national pipeline system. The selected cases represent key regions, including Northeast China, Northwest China, Southwest China, Southern China, Northern China, and the entire national network. The testing aims to achieve two primary objectives: minimizing violations of demand lower bounds and maximizing sales profit.
For each case, both the computational time and objective function values are recorded. These results are then compared against those obtained using a MINLP solver based on piecewise linear approximations—specifically, the non-convex MINLP solver integrated into GUROBI. This comparison aims to assess the proposed algorithm’s computational efficiency and the quality of the solutions it generates.
6.1 Improvement process
To comprehensively evaluate the performance and convergence behavior of the proposed SLP algorithm, we analyzed its iterative optimization process using the national-scale natural gas pipeline network as a representative case. Fig 4 illustrates the evolution of objective values across optimization phases over computational time. The horizontal axis represents the elapsed CPU time, while the vertical axis indicates the corresponding objective values at each iteration.
In the initial phase (LAP-S1), which focuses on satisfying hydraulic feasibility, the algorithm typically converges rapidly, producing a feasible solution with negligible constraint violations within the first iteration. As a result, only the improvement trajectories for the subsequent three phases (LAP-S2, LAP-S3, and LAP) are depicted.
The second phase (LAP-S2) targets compressor capacity constraints and also demonstrates rapid convergence. Feasible compressor operating points that satisfy complex nonlinear constraints are generally identified within a few seconds. This swift progress highlights the effectiveness of the linear approximation strategy in navigating the nonlinear feasible region associated with compressor operations.
In contrast, the third phase (LAP-S3), which enforces minimum demand constraints, converges more slowly due to the increased complexity of balancing supply and demand across the network. This phase typically requires approximately 200 seconds of iterative adjustments to fully satisfy all demand lower bounds. The extended computation time reflects the inherent challenge of coordinating supply across numerous nodes in a large-scale system.
The final phase (LAP), aimed at maximizing sales profit, exhibits stable and consistent convergence. The objective improves rapidly in the early iterations and gradually stabilizes, reaching an optimal or near-optimal solution within approximately 290 seconds. This steady convergence confirms the algorithm’s ability to efficiently explore the complex solution space and deliver economically favorable scheduling outcomes.
The four-phase sequential optimization process consistently produces high-quality locally optimal solutions within approximately 300 seconds for the largest national-scale network. Smaller-scale cases require substantially less computational time, demonstrating the scalability, efficiency, and practical applicability of the proposed SLP method for real-world gas pipeline scheduling.
6.2 Analysis of non-linear error
Given that the SLP algorithm relies on linear approximations, it is essential to assess the deviation introduced by this simplification. Table 5 reports the maximum and average errors of three critical compressor-related constraints—compression ratio, surge flow rate, and choke flow rate—under different neighborhood radii. Two representative networks, the national-scale “Entire China” system and the regional “Northwest China” system, were analyzed.
Across both cases, the results reveal a clear monotonic trend: as the neighborhood radius decreases, nonlinear errors drop rapidly, often by one to two orders of magnitude. For example, in the “Entire China” instance, reducing the radius from to
lowers the maximum error of the compression ratio from
to
, a reduction of nearly two orders of magnitude. Similar improvements are observed for the surge and choke flow constraints. This confirms that smaller radii provide more accurate approximations of the nonlinear compressor behavior.
However, the improvement in accuracy comes at the expense of longer computational times. CPU time rises almost linearly with decreasing radius, from about 257s to over 317s in the national-scale case. Notably, the trade-off is non-linear in terms of benefit: while reducing the radius from to
yields substantial error reduction, further shrinking to
produces only marginal gains (errors already below
) while increasing runtime by more than 15%. This pattern suggests diminishing returns beyond a radius of
.
Comparing network scales, the Northwest China system shows lower absolute error levels than the Entire China case for the same radius, reflecting the reduced complexity of smaller networks. Nevertheless, the trend of accuracy improvement versus computational cost remains consistent across both systems, underscoring the robustness of the SLP approximation strategy.
In practical terms, setting the neighborhood radius to strikes an effective balance: maximum errors remain below
, which is negligible for operational decision-making, while computational costs remain moderate. This ensures that the algorithm delivers solutions that are both computationally tractable and sufficiently accurate for real-world pipeline scheduling.
6.3 Comparison with piecewise approximation
To further assess the performance of the proposed SLP algorithm, we compared it with the widely used non-convex MINLP solver GUROBI 11, which approximates nonlinearities through piecewise linearization. Table 6 summarizes results for minimizing demand lower-bound violations, while Table 7 reports results for maximizing sales profit.
The comparison highlights three key findings:
Small-scale networks.
For instances such as Northeast China, Northwest China, and Southwest China, both solvers achieve essentially identical solution quality. Demand lower-bound violations are eliminated (Table 6, objective = 0), and sales profits are identical or nearly identical (Table 7, gap ≈ 0%). GUROBI achieves these results in less than one second, reflecting its efficiency on small problems. SLP requires longer runtimes (tens of seconds) due to its multi-phase procedure, but the additional overhead is acceptable given the accuracy retained.
Medium- to large-scale networks.
In cases like Southern China and Northern China, GUROBI’s performance begins to degrade. For example, in Northern China, GUROBI produces a demand violation objective of 1.45 with a minimal gap, but requires over 1400 seconds (≈ 24 minutes). By contrast, SLP reaches a slightly higher violation (3.125) in only 120 seconds—about one-twelfth the time—while still maintaining near-feasible demand satisfaction. In profit maximization (Table 7), SLP’s solutions are within 1–2% of GUROBI’s upper bounds, but obtained in minutes rather than hours.
National-scale network.
The performance gap becomes most striking at the largest scale. For the Entire China instance, GUROBI requires the full 3600-second limit and still leaves a profit gap of 13.46% (Table 7). In contrast, SLP converges in about 316 seconds to a profit gap of only 1.55%, achieving both higher accuracy and an order-of-magnitude faster runtime. Similarly, in Table 6, GUROBI needs over 2500 seconds to produce a solution with 0.47% violation gap, while SLP achieves comparable accuracy in only 221 seconds.
Overall, the results demonstrate a clear scale-dependent advantage: GUROBI is competitive for small networks but becomes computationally prohibitive as system size grows, with rapidly escalating runtime and approximation error. The SLP algorithm, by contrast, maintains stable runtimes and solution quality across all scales, making it far more suitable for large-scale, real-world scheduling problems where both time and reliability are critical.
Conclusions and future works
This paper presents an optimization framework for natural gas pipeline scheduling that explicitly incorporates detailed compressor capacity constraints and complex hydraulic characteristics, including elevation effects. The proposed model integrates key discrete operational decisions—such as flow direction, compressor boosting direction, and bypass configurations—within a unified MINLP formulation. To efficiently solve this challenging problem, we develop an SLP algorithm that delivers significant improvements in computational speed, solution stability, and accuracy compared to conventional MINLP solvers that rely on piecewise linear approximations.
Extensive numerical experiments conducted on China’s largest natural gas pipeline networks validate the practical effectiveness and robustness of the proposed approach. The SLP algorithm consistently achieves near-optimal solutions within minutes, demonstrating considerable operational value by enabling more reliable, cost-efficient, and timely scheduling for large-scale pipeline systems.
Despite these encouraging results, several limitations remain, offering avenues for future research. First, although the SLP method enhances computational efficiency, it is inherently based on local linear approximations and may, in some cases, converge to suboptimal local solutions. Future work could explore global optimization techniques or hybrid frameworks that combine heuristic methods with exact solvers to improve the likelihood of reaching global optima. Second, the current study is based on steady-state assumptions. However, real-world pipeline operations often involve transient dynamics due to fluctuations in supply, demand, and operational disturbances. Extending the model to incorporate transient behavior would significantly enhance its realism and applicability in operational decision-making.
References
- 1. O’Neill RP, Morlat G, Smeers Y. A mathematical programming model for allocation of natural gas. Oper Res. 1979;27(5):857–73.
- 2. Hui CW, Natori Y. An industrial application using mixed-integer programming technique: a multi-period utility system model. Comput Chem Eng. 1996;20:S1577–82.
- 3. Wong PJ, Larson RE. Optimization of tree-structured natural-gas transmission networks. J Math Anal Appl. 1968;24(3):613–26.
- 4. Edgar TF, Himmelblau DM, Bickel TC. Optimal design of gas transmission networks. Soc Pet Eng J. 1978;18(02):96–104.
- 5.
Percell PB, Ryan MJ. Steady state optimization of gas pipeline network operation. In: PSIG Annual Meeting, 1987.
- 6.
Geißler B, Morsi A, Schewe L. A new algorithm for MINLP applied to gas transport energy cost minimization. In: Jünger M, Reinelt G, editors. Facets of Combinatorial Optimization: Festschrift for Martin Grötschel. Berlin, Heidelberg: Springer. 2013. p. 321–53.
- 7. Mikolajková M, Saxén H, Pettersson F. Linearization of an MINLP model and its application to gas distribution optimization. Energy. 2018;146:156–68.
- 8. Burlacu R, Geißler B, Schewe L. Maximizing the storage capacity of gas networks: a global MINLP approach. Optim Eng. 2019;20(2):543–73.
- 9. Liu P, Zhang X, Wang Y. An improved spatial branch-and-bound algorithm for non-convex optimal electricity-gas flow. IEEE Trans Power Syst. 2021;37(2):1326–39.
- 10. Zoppei RT, Delgado MAJ, Macedo LH, Rider MJ, Romero R. A Branch and Bound Algorithm for Transmission Network Expansion Planning Using Nonconvex Mixed-Integer Nonlinear Programming Models. IEEE Access. 2022;10:39875–88.
- 11. Sood AK, Funk GL, Delmastro AC. Dynamic optimization of a natural gas pipeline using a gradient search technique†. International Journal of Control. 1971;14(6):1149–57.
- 12. Zhao Y, Xu X, Qadrdan M, Wu J. Optimal operation of compressor units in gas networks to provide flexibility to power systems. Applied Energy. 2021;290:116740.
- 13. Chaudry M, Jenkins N, Strbac G. Multi-time period combined gas and electricity network optimisation. Electric Power Systems Research. 2008;78(7):1265–79.
- 14.
Djebedjian B, Shahin I, El-Naggar M. Gas distribution network optimization by genetic algorithm. Alexandria, 2008.
- 15.
Borraz-Sánchez C, Ríos-Mercado RZ. A hybrid meta-heuristic approach for natural gas pipeline network optimization. In: Hybrid Metaheuristics: Second International Workshop, HM 2005, Barcelona, Spain, August 29-30, 2005. Proceedings 2. 2005.
- 16. Moetamedzadeh HR, Rafsanjani HK. Power minimization of gas transmission network in fully transient state using metaheuristic methods. International Journal of Nonlinear Sciences and Numerical Simulation. 2022;23(7–8):1017–45.
- 17. Habib S, Ahmadi Kamarposhti M, Shokouhandeh H, Colak I, Barhoumi EM. Economic dispatch optimization considering operation cost and environmental constraints using the HBMO method. Energy Reports. 2023;10:1718–25.
- 18. Shokouhandeh H, Ahmadi Kamarposhti M, Asghari F, Colak I, Eguchi K. Distributed Generation Management in Smart Grid with the Participation of Electric Vehicles with Respect to the Vehicle Owners’ Opinion by Using the Imperialist Competitive Algorithm. Sustainability. 2022;14(8):4770.
- 19. Kamarposhti MA, Ahmadi M, et al. Optimum operation management of microgrids with cost and environment pollution reduction approach considering uncertainty using multi‐objective NSGAII algorithm. IET Renewable Power Generation. 2025;19(1):e12579.
- 20. Shokouhandeh H, Ahmadi Kamarposhti M, Colak I, Eguchi K. Unit Commitment for Power Generation Systems Based on Prices in Smart Grid Environment Considering Uncertainty. Sustainability. 2021;13(18):10219.
- 21. Ahmadi Kamarposhti M, Mousavi Khormandichali SM, Ahmed Solyman AA. Locating and sizing of capacitor banks and multiple DGs in distribution system to improve reliability indexes and reduce loss using ABC algorithm. Bulletin EEI. 2021;10(2):559–68.
- 22. M. Makahleh F, Amer A, A. Manasrah A, Attar H, A. A. Solyman A, Ahmadi Kamarposhti M, et al. Optimal Management of Energy Storage Systems for Peak Shaving in a Smart Grid. Computers, Materials & Continua. 2023;75(2):3317–37.
- 23. Eslami E, Ahmadi Kamarposhti M. Optimal design of solar–wind hybrid system-connected to the network with cost-saving approach and improved network reliability index. SN Appl Sci. 2019;1(12).
- 24. Rad I. Detection of internal fault in differential transformer protection based on fuzzy method. International Journal of Physical Sciences. 2011;6(26):6150–8.
- 25. Peng Y, Qiu R, Zhao W, Zhang F, Liao Q, Liang Y, et al. Efficient energy optimization of large-scale natural gas pipeline network: An advanced decomposition optimization strategy. Chemical Engineering Science. 2025;309:121456.
- 26. Peng J, Zhou J, Liang G, Li C, Qin C. Multi-period integrated scheduling optimization of complex natural gas pipeline network system with underground gas storage to ensure economic and environmental benefits. Energy. 2024;302:131837.
- 27.
Liu Z, et al. “Clean energy supply chain optimization: Steady-state natural gas transportation.” Cleaner Logistics and Supply Chain. 2025:100214.
- 28. Liu ZE, Long W, Chen Z, Littlefield J, Jing L, Ren B, et al. A novel optimization framework for natural gas transportation pipeline networks based on deep reinforcement learning. Energy and AI. 2024;18:100434.
- 29.
Sun H, et al. Emergency scheduling optimization method of natural gas supply chain based on differential evolution. In: Proceedings of the 2024 International Conference on Cloud Computing and Big Data, 2024.
- 30. Logsdon LBF, Ferreira Filho VJM, Ribas PC. Optimization models and heuristics for effective pipeline decommissioning planning in the oil and gas industry. Computers & Chemical Engineering. 2025;197:109044.
- 31. Shui C, Shao R, Wei S, Li H, Zhou D, Xu L. Compressor Operation Monitoring and Optimization Method for Large-scale Natural Gas Pipelines. J Phys: Conf Ser. 2023;2567(1):012002.
- 32.
Alavi SH, Mashayekhi M, Zolfaghari M. Optimizing gas pipeline routing considering seismic risk through metaheuristic algorithm. 2024.
- 33. Adjei BA, Sebil C, Otoo D, Ackora-Prah J. A quadratically constrained mixed-integer non-linear programming model for multiple sink distributions. Heliyon. 2024;10(19):e38528. pmid:39421379
- 34.
Abdelsattar M, Aly MM, Abu-Elwfa SS. Overview of Microgrid with Renewable Energy Sources Operation, Architecture and Energy Management. In: 2023 24th International Middle East Power System Conference (MEPCON). 2023.
- 35. Abdelsattar M, Ismeil MA, Aly MM, Abu-Elwfa SS. Energy Management of Microgrid With Renewable Energy Sources: A Case Study in Hurghada Egypt. IEEE Access. 2024;12:19500–9.
- 36. Abdelsattar M, Ismeil MA, Zayed MMAA, Abdelmoety A, Emad-Eldeen A. Assessing Machine Learning Approaches for Photovoltaic Energy Prediction in Sustainable Energy Systems. IEEE Access. 2024;12:107599–615.
- 37. Abdelsattar M, A Ismeil M, Menoufi K, AbdelMoety A, Emad-Eldeen A. Evaluating Machine Learning and Deep Learning models for predicting Wind Turbine power output from environmental factors. PLoS One. 2025;20(1):e0317619. pmid:39847588
- 38. Abdelsattar M, Mesalam A, Fawzi A, Hamdan I. Optimizing Grid-Dependent Hybrid Renewable Energy System with the African Vultures Optimization Algorithm. SVU-International Journal of Engineering Sciences and Applications. 2024;5(1):89–98.
- 39.
Molnar G. Economics of gas transportation by pipeline and LNG. The Palgrave handbook of international energy economics. Cham: Springer International Publishing. 2022. p. 23–57.
- 40. Leufvén O, Eriksson L. A surge and choke capable compressor flow model—Validation and extrapolation capability. Control Engineering Practice. 2013;21(12):1871–83.
- 41.
Sandberg MR. Centrifugal compressor configuration, selection and arrangement: a user’s perspective. 2022.