Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software

Authors

Keywords:

Complex-variable (en).

References

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

X. Bai, H. Wei, K. Fujisawa, and Y. Wang, “Semidefinite programming for optimal power flow problems,” Int. J. Elec. Power Energy Sys., vol. 30, no. 6–7, pp. 383–392, Jul. 2008. https://doi.org/10.1016/j.ijepes.2007.12.003

A. Garcés-Ruiz, W. J. Gil-González, and O. D. Montoya-Giraldo, 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

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

J. Bezanson, A. Edelman, S. Karpinski, and V. B. Shah, “Julia: A fresh approach to numerical computing,” SIAM Rev., vol. 59, no. 1, pp. 65–98, 2017. https://doi.org/10.1137/141000671

How to Cite

APA

Montoya, O. D., Rivas-Trujillo, E., and Gil-González, W. (2024). Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software. Ingeniería, 29(3), e22697. https://doi.org/10.14483/23448393.22697

ACM

[1]
Montoya, O.D. et al. 2024. Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software. Ingeniería. 29, 3 (Sep. 2024), e22697. DOI:https://doi.org/10.14483/23448393.22697.

ACS

(1)
Montoya, O. D.; Rivas-Trujillo, E.; Gil-González, W. Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software. Ing. 2024, 29, e22697.

ABNT

MONTOYA, Oscar Danilo; RIVAS-TRUJILLO, Edwin; GIL-GONZÁLEZ, Walter. Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software. Ingeniería, [S. l.], v. 29, n. 3, p. e22697, 2024. DOI: 10.14483/23448393.22697. Disponível em: https://revistas.udistrital.edu.co/index.php/reving/article/view/22697. Acesso em: 6 apr. 2025.

Chicago

Montoya, Oscar Danilo, Edwin Rivas-Trujillo, and Walter Gil-González. 2024. “Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software”. Ingeniería 29 (3):e22697. https://doi.org/10.14483/23448393.22697.

Harvard

Montoya, O. D., Rivas-Trujillo, E. and Gil-González, W. (2024) “Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software”, Ingeniería, 29(3), p. e22697. doi: 10.14483/23448393.22697.

IEEE

[1]
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.

MLA

Montoya, Oscar Danilo, et al. “Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software”. Ingeniería, vol. 29, no. 3, Sept. 2024, p. e22697, doi:10.14483/23448393.22697.

Turabian

Montoya, Oscar Danilo, Edwin Rivas-Trujillo, and Walter Gil-González. “Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software”. Ingeniería 29, no. 3 (September 17, 2024): e22697. Accessed April 6, 2025. https://revistas.udistrital.edu.co/index.php/reving/article/view/22697.

Vancouver

1.
Montoya OD, Rivas-Trujillo E, Gil-González W. Solving the Power Flow Problem in Transmission Networks Using Nonlinear complex-domain Modeling Via Julia Software. Ing. [Internet]. 2024 Sep. 17 [cited 2025 Apr. 6];29(3):e22697. Available from: https://revistas.udistrital.edu.co/index.php/reving/article/view/22697

Download Citation

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 P loss represents the active power losses in the transmission system; correspond to the voltage variables in the complex domain that are assignable to nodes ; Y km 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 V s ; V j corresponds to the magnitude of the voltage assignable to the nodes; and P g,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:

  1. The electrical variables, i.e., the magnitude and angle of the voltages at each of the buses, are equivalent to the solution obtained using the Newton-Raphson method (Fig. 1) 3.

  2. Under the given operating conditions, the active power losses for this system amount to 4.6410 MW.

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

Acknowledgements

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

[1] 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 [Link]

[2] 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 [Link]

[3] 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 [Link]

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

[5] 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 [Link]

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

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.

Publication Facts

Metric
This article
Other articles
Peer reviewers 
0
2.4

Reviewer profiles  N/A

Author statements

Author statements
This article
Other articles
Data availability 
N/A
16%
External funding 
No
32%
Competing interests 
N/A
11%
Metric
This journal
Other journals
Articles accepted 
76%
33%
Days to publication 
2
145

Indexed in

Editor & editorial board
profiles

PFL

1 2 3 4 5
Not useful Very useful
Loading...