In this paper,an unsteady state model of hot oil pipeline is established,and the optimization model is established in which the pipeline cost is defined as target function,with the head of the pump station and the temperature of the heating furnace as optimization variables.According to the operation data of pipeline SCADA system,Unsteady state calculation results compared with the measured value,the relative error is 4.042%.Compared with the steady state calculation results,accuracy is significantly improved.By using the hybrid algorithm particle swarm algorithm and simulated annealing,calculation results of unsteady state are optimized,and the optimization program can save 17.59% of energy costs.