In order to understand the establishment of oil pipeline scheduling model and interface tracking calculation method, a research on the establishment of a universal product oil pipeline scheduling model and interface tracking calculation method has been proposed. Establish an automatic formulation and optimization model for the scheduling plan of finished oil pipelines with the objective of minimizing the consumption cost of the entire pump unit. The model mainly adopts a centralized distribution method, considering the hydraulic constraints of the pipeline, and adopts a genetic algorithm to optimize and solve the model. This article provides a detailed introduction to the encoding method of genetic algorithm for optimizing the scheduling plan of finished oil pipelines, the selection of main operators in the algorithm, the establishment of fitness functions, and the introduction of penalty functions. Based on the established mathematical model, an automatic programming and optimization program for product oil pipeline scheduling plan was developed using C language in Windows 7 environment. Secondly, through practical applications, the actual pipeline operation data is basically consistent with the software calculation results, with an error of no more than 5%; As the running time changes, the pump cost fluctuates greatly; Using a larger throughput can reduce the amount of mixed oil; Therefore, this mathematical model can better meet the actual needs of pipeline operation, facilitate the rapid identification of the most sensitive parameter indicators, and adjust the scheduling plan in a timely manner, reduce operational economic losses, and improve the efficiency of product oil pipeline scheduling and operation.