Optimization of natural-gas pipeline systems via dynamic programming | Synapse