The problem of distributing gas through a network of pipelines is formulate
d as a cost minimization subject to nonlinear flow-pressure relations, mate
rial balances, and pressure bounds. The solution method is based on piecewi
se linear approximations of the nonlinear flow-pressure relations. The appr
oximated problem is solved by an extension of the Simplex method. The solut
ion method is tested on real-world data and compared with alternative solut
ion methods.