The paper deals with the issues of energy saving in the railway section, which has a tunnel with a double longitudinal slope, which limits the capacity of trains due to a decrease in the rated voltage by more than 10%, which negatively affects thermal and transient electromechanical processes. The practicality of voltage regulation using the existing installation of series compensation is shown; it is proposed to use an additional installation of parallel reactive power compensation, with automatic voltage regulation of the power transformer under load. The principle of self-tuning adaptive regulation is applied, establishing the optimal power supply mode according to the criterion of minimum losses, which has high reliability and cost indicators of traction power supply.