Purpose. The purpose of the work is to determine measures to improve logistics operations with the specialization of directions for cargo and passenger transportation by transferring part of the transit cargo flow to parallel routes. Solving the problem of choosing a rational distribution of freight and passenger transportation depending on the specialization of directions will allow to optimize the use of throughput and transportation capacity and investments in infrastructure development. Method. Optimization of the transport process during mixed transportation involves the possibility of separating cargo traffic from passenger traffic. The proposed method involves solving the problem of choosing a rational distribution of cargo and passenger transportation depending on the specialization of directions. The idea of such demarcation is based on the fact that on the railway network it is possible to distinguish stations between which there are several parallel train routes. The research was carried out on the railway network connecting Lviv and Kyiv. When solving the problem, various indicators were considered: the length of the route, the time of movement, the mechanical operation of the locomotive, the load on the track, and others. In addition, the boundary conditions were taken into account: the volume of passenger traffic, cargo traffic, the carrying capacity of sections and the permissible speed of train movement. Results. A mathematical model of the redistribution of train flows on the railway network has been developed, which ensures the rational operation of the railway track with minimal costs for the reconstruction of the railway. Scientific novelty. It has been established that in the case of traffic separation, the timing of repairs may be different due to lower traffic intensity, which allows you to focus on specific types of repair work, and not on all types of work at the same time. Although the general principles of the periodicity of repairs may remain the same in both cases, periodicity schemes may differ depending on many factors, in particular, the intensity of operation, the technical condition of the vehicle, the timing of repairs and the availability of specialized personnel. Practical significance. With the application of the new approaches proposed by the authors to solving the tasks, schemes for the rational distribution of cargo and passenger transportation at the closed landfills of the regional branches of the South-Western and Lviv Railways were established, which will allow determining measures to improve logistics operations and reduce operating costs for the transportation of cargo and passengers.