This article considers the problem of optimizing the process of oil transportation through oil pipelines from fields to oil collection and delivery points. The aim of the study is to build an effective logistics system for product transportation, which ensures the sustainable functioning of industrial production. The paper presents a mathematical model of the problem that takes into account the productivity of oil-producing enterprises and the needs of oil refineries, and represents a balanced transport problem. The optimization problem is solved on in the Python programming language, using imported libraries and modified program code. As a result of the software solution, the minimum cost of transportation and the optimal oil supply plan are determined, which allows providing all consumers with this energy resource with minimal costs. The proposed software product has a user-friendly and intuitive interface, which makes it accessible to a wide range of users when solving linear programming problems.