Editorial

Solving the Power Flow Problem in Transmission Networks Using Nonlinear Complex-Domain Modeling Via Julia Software

Oscar Danilo Montoya
Universidad Distrital Francisco José de Caldas, Colombia
Edwin Rivas-Trujillo
Universidad Distrital Francisco José de Caldas, Colombia
Walter Gil-González
Universidad Tecnológica de Pereira, Colombia

Solving the Power Flow Problem in Transmission Networks Using Nonlinear Complex-Domain Modeling Via Julia Software

Ingeniería, vol. 29, no. 3, e22697, 2024

Universidad Distrital Francisco José de Caldas

Solving the power flow problem for transmission grids is crucial for ensuring the reliable and efficient operation of electrical power systems. Power flow analysis allows engineers to determine the voltage, current, and power flow of a network, which is essential for maintaining system stability and avoiding overloads. Accurate power flow solutions help to identify potential issues such as voltage drops, line losses, and system inefficiency, enabling the proactive maintenance and optimization of the network. This analysis is vital for integrating renewable energy sources, as it ensures effective power distribution even under variable generation conditions. Ultimately, solving the power flow problem enhances the overall resilience, reliability, and economic performance of transmission networks, supporting a stable supply of electricity to consumers.

Complex-variable power flow modeling

For electrical systems, the power flow problem can be formulated as a reproduction complex-variable optimization model 1. This optimization problem takes right holder the following form:

Objective function:

where Ploss represents the active power losses in the transmission system; correspond to the voltage variables in the complex domain that are assignable to nodes; Ykm is the component of the nodal admittance matrix that relates nodes k and m; and N represents the set that contains all the nodes in the system. Note that the operator obtains the real part of the complex variable , while the operator obtains its complex conjugate.

Set of constraints:

where corresponds to the complex power injected by the generator connected to node represents the complex power demanded at node denotes the complex voltage assigned to the slack node (reference bus), whose magnitude is Vs ; Vj corresponds to the magnitude of the voltage assignable to the nodes; and Pg,j is the active power assigned to these nodes.

It is important to mention that the formulation (1)-(5) can also represent the optimal power flow problem in the complex domain if the active power constraint assigned to the PV nodes is relaxed, allowing them to move within their maximum and minimum capacity limits 2.

The IEEE-WSCC

To illustrate the solution to the power flow problem in transmission systems according to the formulation (1)-(5), consider the IEEE-WSCC (Western System Coordinating Council) system, whose impedance and nodal voltage data are shown in Fig. 1. Note that the data reported in this figure were obtained by applying the Newton-Raphson method 3.

IEEE-WSCC (adapted from4)
Figure 1
IEEE-WSCC (adapted from4)

Julia software implementation

This section illustrates the computational implementation of the mathematical model 1)-(5 in the Julia software, using the Ipopt solver in the JuMP optimization environment 5.


By executing this computational routine, the following results are obtained:


Thus, it is possible to note that:

Remark 1. Suppose that the programmer is interested in solving the optimal power flow problem for transmission networks. In this scenario, the active power injection at the PV buses is left unconstrained, allowing the programmer to determine the optimal combination of these power inputs in order to minimize the total grid power losses.

Conclusion

This editorial note provides an easily implementable computational routine to deal with the power flow problem in transmission networks, which can be extended to any single-phase AC grid, using a complex-domain variable formulation. The solution to the power flow problem is obtained via the interior point optimizer (i.e., the Ipopt solver) available in Julia’s JuMP optimization environment. This routine is presented as a tutorial, using the IEEE-WSCC network to demonstrate that the power flow solution is equivalent to the solution reached with the classical Newton-Raphson method

Acknowledgment

This research received support from the Ibero-American Program of Science and Technology for Development (CYTED), through the thematic network 723RT0150, i.e., Red para la integración a gran escala de energías renovables en sistemas eléctricos (RIBIERSE-CYTED).

Referencias

Montoya O D, Ramírez-Vanegas C A, González-Granada J R. Dynamic active and reactive power compensation in distribution networks using pv-statcoms: A tutorial using the julia software. Res. Eng.. Mar. 2024;21101876. https://doi.org/10.1016/j.rineng.2024.101876

Bai X, Wei H, Fujisawa K, Wang Y. Semidefinite programming for optimal power flow problems. Int. J. Elec. Power Energy Sys.. Jul. 2008;306-7383-392. https://doi.org/10.1016/j.ijepes.2007.12.003

Garcés-Ruiz A, Gil-González W J, Montoya-Giraldo O D. Introducción a la estabilidad de sistemas eléctricos de potencia. Pereira, Colombia: Universidad Tecnológica de Pereira, 2023. https://doi.org/10.22517/9789587228960

Anderson P, Fouad A. Power system control and stability. Piscataway, NJ: Wiley-Interscience, 2003. https://ieeexplore.ieee.org/servlet/opac?bknumber=5264012

Bezanson J, Edelman A, Karpinski S, Shah V B. Julia: A fresh approach to numerical computing. SIAM Rev.. 2017;59165-98. https://doi.org/10.1137/141000671

Notes

Como citar: O. D. Montoya, E. Rivas-Trujillo, and W. Gil-González, “Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software”,Ing., vol. 29, no. 3, p. e22697, Sep. 2024
HTML generated from XML JATS by