On the Complexity of Instationary Gas Flows

Martin Groß, Marc E. Pfetsch, Martin Skutella

Introduction

In the field of gas logistics, determining the optimal flow through a pipeline network is a critical operational task. Traditionally, this is modeled as a stationary flow problem, where pressures and flow rates are assumed to be in a steady state. Governed by physical laws like Weymouth’s equation—which relates flow rate to the difference in squared pressures—stationary flows can be efficiently solved using convex optimization.

However, real-world demand is rarely constant. Fluctuations throughout the day necessitate an understanding of instationary flows. While engineers have long dealt with these time-varying scenarios, their fundamental algorithmic complexity has remained largely unexplored. This paper investigates the complexity of a simplified "k-stage" gas flow model, revealing a sharp divide between simple and computationally intractable scenarios.

The k-Stage Gas Flow Model

To bridge the gap between steady-state snapshots and complex partial differential equations, the authors propose the k-stage gas flow model. In this framework, time is discretized into $k$ stages. Within each stage, the flow is stationary. Crucially, nodes can "buffer" gas between stages, effectively acting as storage. This mimics "line pack"—the ability of physical pipelines to store gas by increasing pressure—without the full overhead of fluid dynamic simulations.

The Complexity Gap: From Easy to Hard

The research identifies a significant "complexity gap" based on the number of stages and the network topology.

The 2-Stage Single-Source Case

For the simplest time-varying case—a 2-stage flow between a single source ($s$) and a single sink ($t$)—the problem remains easy. The authors prove that the optimal strategy is to simply repeat the best stationary flow for both stages. There is no mathematical advantage to varying the flow over time in this specific configuration.

The Power of Buffering in 3-Stage Flows

The situation changes dramatically when moving to three or more stages. The authors demonstrate that instationary flows can significantly outperform stationary ones by leveraging intermediate nodes as buffers.

Node potentials across three stages (\pi^1, \pi^2, \pi^3) demonstrating how instationary flows can outperform stationary ones by buffering gas.

In a path network, an instationary 3-stage flow can achieve a value significantly higher than any stationary flow. By fluctuating pressures, the network stores gas at intermediate nodes during one stage and releases it in the next, a phenomenon made possible by the strict concavity of the flow-pressure relationship in Weymouth's equation.

NP-Hardness in Multi-Terminal Networks

While single-source 2-stage flows are simple, adding multiple terminals (multiple sources and sinks) makes the problem exponentially harder. The authors prove that deciding the feasibility of a 2-stage gas flow in a multi-terminal network is strongly NP-hard.

To establish this, they use a reduction from the Exact Cover by 3-Sets (X3C) problem. They design intricate "gadgets"—sub-networks where node pressures are forced to act as binary switches.

Gadget construction used in the reduction to prove NP-hardness for multi-terminal 2-stage gas flows.

This result implies that for general networks with multiple supply and demand points, no efficient algorithm likely exists to find the optimal time-varying flow, even for just two time steps.

Conclusion

This work highlights that time-dependency, even in its simplest discrete form, introduces significant computational challenges to gas flow optimization. While stationary flows are well-behaved, the non-convexity inherent in gas physics allows instationary flows to outperform steady states at the cost of making the general problem NP-hard. Future research will focus on bounding these performance gaps and extending these complexity results to more realistic continuous-time models.

Summary updated

BibTeX
@article{gro2018complexity,
  author = {Martin Groß and Marc E. Pfetsch and Martin Skutella},
  title = {{On the Complexity of Instationary Gas Flows}},
  journal = {Oper. Res. Lett.},
  year = {2018},
  doi = {10.1016/j.orl.2018.01.007},
}
Figure