Optimization of the Gas Transport in Pipeline Systems