摘要:Oil and gas pipelines are the main channel to ensure national energy security and national economic development due to the safety and efficiency of the transportation coast. To achieve an optimal state of pipeline operation in terms of safety and efficiency is the crucial important issue throughout the life cycle of a pipeline system. However, the optimization problem of the pipeline network system is a typical Mixed Integer Non-Linear Problem (MINLP) which are extremely difficult to solve. An optimal solution to keep pipeline operated in most efficient state under the premise of safe operation is given in the paper by using the dynamical programming method. Firstly, the improved Newton-Raphson method is used to solve the discrete pipeline system, and the operating parameters such as temperature, pressure and flow of any section surface in the pipeline are obtained. The fluid parameter values of the each discrete nodes can ensure the safety of the pipeline. Based on this, the total energy consumption cost is set as the objective function, and the oil and gas pipeline operation optimization model is then established, and the dynamic programming method is used to solve it, so that it can obtain the optimal solution of the current working conditions in a reasonable computational cost. The actual example shows that the energy cost of the optimized operation scheme can be reduced by 6.8% compared with the pre-optimization scheme.