We consider the problem of choosing the optimal option for developing transport infrastructure (transport corridors) in the context of sanctions and the closure of some export markets for industrial companies in the Russian Federation. The development of transport corridors will allow companies to reorient their export flows to other markets without losing financial stability. The problem is formulated as a dynamic production and transport problem with mixed variables, including the choice of options for developing the transport network. Methods for its solution are discussed. The results of a series of calculations are shown in an illustrative example. The solution to the problem makes it possible to choose the optimal options for the development of transport infrastructure and, at the same time, the optimal volumes of production and supply of products of companies, considering the dynamics of changes in the capacity of export markets and other constraints, using various scenarios for changing the source data and assumptions.