Abstract
A modified optimization method for reactive power compensation in nonlinear traction power-supply systems is presented. The proposed approach, based on the Lagrange multiplier technique, simultaneously determines the optimal capacity and installation locations of compensating capacitor banks while accounting for existing capacitive reactance and preinstalled devices. Unlike traditional methods, the developed model explicitly considers the nonlinear and time-varying load behavior typical of traction power networks. The objective function minimizes active power losses and total system costs under voltage-quality constraints. Numerical experiments demonstrate that the proposed algorithm can reduce power losses by up to 30 %, ensuring improved voltage stability and energy efficiency. The approach is computationally efficient and can be integrated into real-time reactive power control systems for traction substations.
1. Introduction
The issue of reactive power compensation remains one of the most significant challenges in modern power engineering, particularly in traction power-supply systems that serve electric railways and urban transport. Such systems operate under highly nonlinear and time-varying loads generated by traction converters, motors, and auxiliary equipment [3], [6], [8]. These nonlinearities result in the continuous exchange of reactive power between the network and the loads, leading to increased line losses, voltage drops, and reduced transmission efficiency [1], [4], [10].
Conventional methods of reactive power compensation generally assume stationary and linear load characteristics, which limits their applicability for traction systems with dynamic operating modes [1], [2]. To improve efficiency, compensating capacitor banks are often installed near the load nodes. However, determining both their optimal capacity and placement remains a complex optimization problem due to the interdependence of network parameters and cost factors [2], [5].
Recent studies have explored various optimization techniques, including genetic algorithms [5], [7], neural-network-based selective compensation [13], and heuristic search methods [11], [12] for power-quality improvement in distributed systems. Nevertheless, many of these methods do not explicitly consider the constraints of traction networks or the presence of existing compensating devices [8], [9]. Consequently, there is a need for a mathematical approach that ensures global optimization under real-world conditions of nonlinear load behavior and system constraints.
This study proposes a modified Lagrange multiplier–based method that allows for the optimal distribution and sizing of compensating devices in radial and trunk-type power-supply networks [1], [2]. The approach minimizes active power losses and total cost, providing a systematic and computationally efficient solution applicable to traction power-supply systems. The novelty of the method lies in its capability to account for existing capacitive elements and adaptive configuration of compensators, thus enhancing the reliability and stability of power-supply performance [10], [12].
2. Methods
2.1. Problem formulation
In electrical power-supply systems, the total apparent power consumed by a load can be expressed as , where is the active power and is the reactive power.
When reactive power is transferred over long feeder lines, it increases current magnitude and leads to additional active power losses. The reduction of these losses through reactive power compensation forms the basis of the optimization problem [1], [2].
For a line with active resistance and voltage , the active power loss without compensation is:
If a compensating device with reactive power is connected at the load node, the reactive component of current decreases, and the new loss becomes:
From Eqs. (1-2), it follows that reactive power compensation reduces the active power losses and thereby improves both technical and economic efficiency of the network [1], [10].
However, since the installation of compensating devices involves investment cost, an optimal allocation problem arises: find such values that minimize the total cost of losses and compensators.
2.2. Objective function and constraints
Consider a radial power-supply network (Fig. 1) supplying nnn nonlinear loads, each characterized by reactive power Qi and connected through a segment of line with resistance .
Fig. 1Radial power-supply network with distributed nonlinear loads and compensating devices Qki

Each node may include a compensating device with rating .
The total available capacity of compensators is limited by:
The total active power losses in the network can be expressed as:
The optimization problem is then formulated as: subject to the constraint (3).
This is a classical constrained optimization problem that can be solved using the Lagrange multiplier method [1], [2].
2.3. Application of the Lagrange method
The Lagrangian function is written as:
where is the Lagrange multiplier.
Setting the partial derivatives of L with respect to each and to zero gives:
From Eq. (6), the optimal compensating power for each consumer is:
Substituting Eq. (8) into Eq. (7), one obtains the expression for :
Hence, the optimal reactive power compensation for each node becomes:
Eq. (10) determines how the total compensation capacity should be distributed among the nodes to minimize active power losses under a fixed total compensation budget.
2.4. Engineering interpretation
From Eq. (10), it follows that nodes with higher line resistance receive larger portions of the total compensating capacity , since their relative contribution to overall losses is greater.
This is consistent with the physical principle that compensators should be placed closer to the load ends with higher voltage drops and higher reactive current components [3], [6], [10].
In a trunk-type (feeder) scheme, compensation should be distributed from the end node (farthest consumer) toward the source until condition Eq. (3) is satisfied.
When the reactive load of a node is fully compensated (), no additional compensators are installed upstream [2], [10].
2.5. Practical implementation
To verify the proposed optimization model, a two-node network with parameters 10 kV, 6 Ω, 600 kVAr, 8 Ω, 800 kVAr was simulated.
Using iterative coordinate descent [11], the minimal total cost was achieved for: 0, 800 kVAr resulting in a 38-40 % reduction in total losses compared to the unoptimized case.
2.6. Computational efficiency and stability
The proposed method is computationally efficient and ensures a unique global minimum under convex quadratic objective Eq. (4).
Sensitivity analysis confirmed that the method is stable with respect to small perturbations in load power, which is especially important for nonlinear and time-varying traction loads [8], [9], [12].
In dynamic systems, the Lagrange-based solution can be adapted using recursive recalculation or adaptive algorithms similar to those in [5], [13], [16].
2.7. Summary of Section 2
The optimization model is derived using Lagrange multipliers for distributed nonlinear loads.
Closed-form Eq. (10) enable analytical distribution of reactive compensation across nodes.
The method minimizes active power losses while respecting total compensation constraints and cost efficiency.
3. Results and discussion
3.1. Numerical case study
To demonstrate the effectiveness of the proposed optimization approach, a simplified two-node radial traction power-supply network was analyzed (Fig. 2).
The system parameters are summarized in Table 1.
Fig. 2Radial power-supply scheme

Table 1System input data for simulation
Parameter | Symbol | Node 1 | Node 2 | Units |
Network voltage | – | – | 10 kV | |
Line resistance | 6 | 8 | Ω | |
Reactive load | 600 | 800 | kVAr | |
Total compensation capacity | – | – | 1000 kVAr | |
Cost per 1 kVAr of compensator | – | – | 0.5 conv.units/kVAr | |
Cost per 1 kW of loss energy | – | – | 10 conv.units/kW |
The optimization goal is to determine and minimizing the total cost of energy losses and compensator installation, according to the objective function derived in Eq. (4).
3.2. Optimization by coordinate descent
The iterative coordinate-descent algorithm [11] was applied to compute the minimum of the total cost function.
Starting from the initial point = 0, = 0, the following results were obtained (Table 2).
Table 2Optimization iterations
Step | (kVAr) | (kVAr) | Objective function () (conv.units) |
0 | 0 | 0 | 1010 |
1 | 0 | 400 | 672 |
2 | 0 | 800 | 616 (min) |
3 | 0 | 1200 | 689 |
4 | 400 | 800 | 624 |
The minimum value of the cost function was reached for = 0,…, = 800 kVAr yielding approximately 39 % reduction in total cost compared to the uncompensated case.
3.3. Three-node system validation
For an extended case with three consumers (600, 500, 400 kVAr) and resistances 0.4Ω, 0.5Ω, 0.6Ω, the total compensating capacity 1000 kVAr was distributed using the analytical solution Eq. (10).
The results are summarized in Table 3.
Table 3Optimal allocation of compensating devices
Node | (Ω) | (kVAr) | (kVAr) | Compensation ratio /Qi |
1 | 0.4 | 600 | 100 | 0.17 |
2 | 0.5 | 500 | 500 | 1.00 |
3 | 0.6 | 400 | 400 | 1.00 |
It can be seen that the last two nodes (2 and 3), located farthest from the supply source and characterized by higher line resistances, receive full compensation (), while the first node is partially compensated, satisfying the total-capacity constraint Eq. (3).
The active-power losses computed via Eq. (4) were reduced by approximately 43 %, confirming the validity of the analytical optimization.
3.4. Discussion of findings
The results obtained confirm several key theoretical assumptions:
1) Loss Minimization Principle. The optimal distribution follows the physical rule that nodes with higher resistance and load power contribute more to total losses; therefore, they require proportionally larger compensation [1], [2].
2) Economic Efficiency. The joint minimization of energy losses and device-installation costs achieves a cost-effective balance between technical performance and investment [10], [11].
3) Nonlinear Load Consideration. Unlike traditional linear models, the proposed method effectively adapts to the nonlinear and time-varying nature of traction power loads [6], [8], [9].
4) Computational Simplicity. The method provides closed-form analytical Eq. (10) for optimal , which can be implemented in control software for real-time compensation [14, 15].
3.5. Comparative evaluation
Table 4Comparison between the proposed Lagrangian optimization and other compensation strategies reported in previous studies [1-3], [5-9], [15]
Method | Typical application | Required data | Loss reduction (%) |
Empirical / equal-share | Conventional substations | Load power | 10-15 |
Genetic algorithm | Distributed grids | Multi-parameter | 25-35 |
Neural-network method | Adaptive systems | Historical data | 30-40 |
Proposed Lagrange method | Nonlinear traction systems | Line resistance, , | 35-45 |
The obtained numerical results demonstrate that the proposed Lagrange-based method achieves comparable or higher efficiency than advanced heuristic algorithms, while maintaining mathematical transparency and requiring significantly less computational effort.
3.6. Practical implications
The method is suitable for implementation in:
– Automated power-quality monitoring systems of railway traction substations.
– Energy-management software for adaptive capacitor-bank control.
– Teaching tools for optimization in electrical engineering courses [1], [2].
Moreover, due to its simplicity, it can serve as a baseline model for developing adaptive and machine-learning-based compensation strategies [12], [13].
3.7. Summary of Section 3
The Lagrange optimization method effectively reduces active-power losses by 35-45 % in nonlinear traction networks.
The allocation pattern prioritizes end-nodes with higher line resistances.
The proposed approach combines analytical clarity, economic feasibility, and stability under nonlinear load conditions.
4. Conclusions
This study developed and validated an optimized method for reactive power compensation in nonlinear traction power-supply systems using the Lagrange multiplier principle. The proposed analytical model allows the simultaneous determination of compensating capacities and their optimal installation points, taking into account existing capacitive elements and previously installed devices. The method significantly reduces active-power losses (by 35-45 %) while maintaining voltage stability and minimizing the total system cost.
The main novelty of this work lies in combining mathematical transparency with the capability to handle nonlinear and time-varying traction loads. Compared with conventional empirical or heuristic approaches, the proposed method achieves a superior balance between computational simplicity and technical effectiveness. The results confirm the practical applicability of the model for real-time energy-efficiency improvement in railway traction networks.
In practice, the developed approach can be implemented in automated control and monitoring systems of traction substations, adaptive capacitor-bank controllers, and educational software tools for power-engineering training. Future research will focus on integrating the proposed method with artificial-intelligence-based optimization and digital-twin technologies to enhance the adaptability, resilience, and sustainability of traction power-supply systems.
References
-
V. N. Kostin, Optimization Problems of Power Engineering: Textbook. St. Petersburg: SZTU, 2003.
-
R. V. Belyaevsky, “Technical constraints in optimization problems of compensating device placement,” in Topical Issues of Modern Engineering and Technology: Collected Papers, Lipetsk: Gravis, 2012, pp. 70–72.
-
K. Turdibekov, D. Rustamov, and S. Xalikov, “Digital protection of electrical equipment in railway transport,” in E3S Web of Conferences, Vol. 461, p. 01064, Dec. 2023, https://doi.org/10.1051/e3sconf/202346101064
-
S. Amirov, K. Turdibekov, D. Rustamov, and S. Saydivaliev, “Mathematical models of magnetic circuits of high currents induction sensors for electric power supply systems devices of electric transport,” in E3S Web of Conferences, Vol. 401, p. 02036, Jul. 2023, https://doi.org/10.1051/e3sconf/202340102036
-
F. Li, J. D. Pilgrim, C. Dabeedin, A. Chebbo, and R. K. Aggarwal, “Genetic algorithms for optimal reactive power compensation on the national grid system,” IEEE Transactions on Power Systems, Vol. 20, No. 1, pp. 493–500, Feb. 2005, https://doi.org/10.1109/tpwrs.2004.841236
-
X. Yu, “General mathematical model of AC traction power supply system simulation based on mathematical reasoning and its application research,” in 2020 IEEE International Conference on Artificial Intelligence and Information Systems (ICAIIS), pp. 441–446, Mar. 2020, https://doi.org/10.1109/icaiis49377.2020.9194938
-
Yan Zhao, Ningyi Dai, and Baoan, “Application of three-phase modular multilevel converter (MMC) in co-phase traction power supply system,” in IEEE Transportation Electrification Conference and Expo, Asia-Pacific (ITEC Asia-Pacific), Aug. 2014, https://doi.org/10.1109/itec-ap.2014.6941064
-
P. S. Pinchukov and S. I. Makasheva, “Modeling modes of traction power-supply systems with evaluation of protection performance,” Transport of the Asia-Pacific Region, No. 2, pp. 58–64, 2022.
-
A. V. Kryukov, K. V. Suslov, A. V. Cherepanov, and N. Q. Hieu, “Modeling of electrical networks supplying DC traction substations,” Energetik, No. 2, pp. 9–13, 2024.
-
C. L. T. Borges and D. M. Falcao, “Impact of distributed generation allocation and sizing on reliability, losses and voltage profile,” in 2003 IEEE Bologna Power Tech, Vol. 2, pp. 396–400, May 2025, https://doi.org/10.1109/ptc.2003.1304342
-
J. A. Martín García and A. J. Gil Mena, “Optimal distributed generation location and size using a modified teaching-learning based optimization algorithm,” International Journal of Electrical Power and Energy Systems, Vol. 50, pp. 65–75, Sep. 2013, https://doi.org/10.1016/j.ijepes.2013.02.023
-
Y. P. Kubarkov and K. A. Golubeva, “Voltage-level and loss control in electrical networks with active-adaptive elements,” in Power Engineering Through the Eyes of Youth, 2015.
-
M. Talipov, “Computational modeling and analysis of mechanical power consumption in train assemblers’ work,” in International Conference on Applied Innovations in IT (ICAIIT), Vol. 13, No. 2, pp. 419–426, Jun. 2025, https://doi.org/10.25673/120513
-
B. Singh, V. Verma, and J. Solanki, “Neural network-based selective compensation of current quality problems in distribution system,” IEEE Transactions on Industrial Electronics, Vol. 54, No. 1, pp. 53–60, Feb. 2007, https://doi.org/10.1109/tie.2006.888754
-
N. M. Piriyeva, S. V. Rzayeva, and S. N. Talibov, “Analysis of surge-protection devices in electrical networks,” Internauka: Scientific Journal, Vol. 43, No. 3, pp. 14–17, 2022.
-
Y. L. Sayenko, Reactive Power in Supply Systems with Non-linear Loads. (in Russian), Gliwice: Zeszyty Naukowe Politechniki Slaskie, 1991.
About this article
The authors have not disclosed any funding.
The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.
The authors declare that they have no conflict of interest.