[Paper Review] Optimizing gas networks using adjoint gradients
This paper presents an adjoint gradient-based optimization framework for minimizing gas compression costs in transient gas networks, using isothermal Euler equations and efficient constraint lumping to accelerate solution of large-scale optimal control problems. The method achieves up to 50-fold speedup with minimal optimality loss, enabling practical real-time operation of complex gas networks under dynamic demand.
An increasing amount of gas-fired power plants are currently being installed in modern power grids worldwide. This is due to their low cost and the inherent flexibility offered to the electrical network, particularly in the face of increasing renewable generation. However, the integration and operation of gas generators poses additional challenges to gas network operators, mainly because they can induce rapid changes in the demand. This paper presents an efficient minimization scheme of gas compression costs under dynamic conditions where deliveries to customers are described by time-dependent mass flows. The optimization scheme is comprised of a set of transient nonlinear partial differential equations that model the isothermal gas flow in pipes, an adjoint problem for efficient calculation of the objective gradients and constraint Jacobians, and state-of-the-art optimal control methods for solving nonlinear programs. As the evaluation of constraint Jacobians can become computationally costly as the number of constraints increases, efficient constraint lumping schemes are proposed and investigated with respect to accuracy and performance. The resulting optimal control problems are solved using both interior-point and sequential quadratic programming methods. The proposed optimization framework is validated through several benchmark cases of increasing complexity.
Motivation & Objective
- Address the challenge of optimizing gas network operation under transient, time-varying demand caused by increasing gas-fired power generation and renewable energy integration.
- Overcome the computational burden of solving large-scale optimal gas flow (OGF) problems governed by transient partial differential equations (PDEs).
- Develop an efficient gradient computation method to accelerate convergence of nonlinear optimization solvers in dynamic gas network problems.
- Investigate and implement constraint lumping techniques (temporal, spatial, full) to reduce computational cost while maintaining solution accuracy.
- Validate the framework on benchmark networks of increasing complexity to assess performance, robustness, and optimality loss.
Proposed method
- Formulate the optimal gas flow (OGF) problem as a nonlinear programming (NLP) problem with transient isothermal Euler equations as equality constraints.
- Apply a discrete adjoint method to efficiently compute gradients of the objective function and constraint Jacobians, enabling fast convergence of optimization solvers.
- Implement constraint lumping strategies: time-lumping (over timesteps), space-lumping (over nodes), and full-lumping (combined), to reduce the number of active constraints.
- Use Newton-continuation schemes to ensure robust convergence during time-stepping, especially under discontinuous compressor ratios.
- Solve the resulting NLPs using state-of-the-art solvers: interior-point (IPOPT, FMINCON-IP) and sequential quadratic programming (SNOPT, FMINCON-SQP).
- Discretize the PDEs in space and time using finite volumes and implicit time integration, ensuring stability and accuracy in transient simulations.
Experimental results
Research questions
- RQ1Can adjoint gradients significantly accelerate the solution of transient gas network optimization problems with large numbers of constraints?
- RQ2How does constraint lumping (temporal, spatial, or full) affect the trade-off between computational speed and solution optimality in gas network OGF problems?
- RQ3What is the impact of lumping on pressure and mass flow accuracy compared to the full, non-lumped solution?
- RQ4How do different optimization algorithms (interior-point vs. SQP) perform in terms of convergence speed and robustness when combined with adjoint gradients?
- RQ5Can the proposed framework handle large-scale gas network benchmarks (e.g., GasLib-135) with realistic dynamic demand and transient behavior?
Key findings
- The adjoint gradient method enables fast convergence, with all optimizers requiring fewer than 20 iterations across all benchmark cases.
- Space lumping (OGF-SL) provides the best balance of speed and accuracy, delivering at least a 6-fold speedup over the non-lumped OGF-NL method.
- For the GasLib-135 benchmark, OGF-SL achieved a 50-fold reduction in computation time compared to OGF-NL, with minimal optimality loss.
- Full lumping (OGF-FL) introduces the largest optimality gap, with objective function errors up to 24% due to overestimation of maximum pressure and compression needs.
- Pressure and mass flux errors between OGF-NL and lumped variants (OGF-TL, OGF-SL) are generally negligible, below 1% in most cases, with maximum errors of 0.85% and -0.84% respectively.
- The proposed framework produces feasible and operationally practical solutions, with pressure constraints consistently met and objective values close to the optimal non-lumped case.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.