This paper presents a novel approach for solving the security-constrained optimal power flow (SCOPF) optimization problem using parallel Computing. In this approach, switched shunt banks, generation power ramp, and demand response are considered in the SCOPF by maximizing the market surplus during regular operation and for a set of contingencies of branches and generators. The optimization problem is solved using the Nonlinear Interior Point Method. The contingency assessment is paralleled in multiple CPU cores to decrease the computation time. Additionally, the test systems used in ARPA-GO competition were used and compared with the ARPA benchmark results to assess the proposed algorithm. The numerical results show this method is suitable for fast SCOPF using paralleling Computing.
keywords High-Performance Computing Interior-point method, Reliability Security Constraint Optimal Power Flow (SCOPF)
Received: date / Accepted: date
Power systems must operate in energy equilibrium in a secure, reliable, economical, and sustainable way; commonly contrary issues. Hence, tools to optimize the planning, maintenance, and operation of electrical networks are required. The optimal power flow (OPF) is a well-known problem [1] where the power balance and generation, thermal and voltage limits among other constraints are considered. However, the solution of this formulation could be non-optimal or insecure if contingencies occur in the grid. To securely operate considering the multiple contingencies that could arise, the OPF needs to be reformulated considering security constraints. This reformulation is known as Security Constraint Optimal Power Flow (SCOPF). According to [2], an improvement of 5 in the efficiency of the SCOPF algorithm can save between 619$ in the U.S and it can also save between 2687$ in the world. Illustrating, these savings are close to 1x101 of the 2021 annual investment in the power sector [3].
To increase the performance of the SCOPF algorithm many advantages are obtained. However, in order to employ SCOPF during real-time operation, the solution of this optimization problem needs to be computationally efficient given the well-known issues of OPF such as non-convexity [4], network size, integer-mixed variable decisions, among others. Therefore, to reduce the solution time of SCOPF algorithms, two approaches have been proposed. For one hand, to select a set of critical contingencies [5,6]. For other hand, to simplify the problem using a linear approximation [Mithun2010].
Given the uncertainty in reducing the number of contingencies or using linear approximations during the planning and operation of the next-generation energy systems, a robust SCOPF assessment is required [7], However, this kind of algorithm presents a high computational cost. New approaches emerge to face this challenge, such as the use of reinforced learning (artificial intelligence algorithms) to operate networks during contingencies [8] or paralleling the Computing of the SCOPF by employing High-Performance Computing (HPC), both to reduce the computation cost. The issue with reinforced learning is that an artificial agent needs to be trained for each network with known states, therefore HPC is commonly used for different applications for power systems. For instance, in [9] an embedded computer is used to partially solve power flows paralleling the Newton-Raphson algorithm. In [10,11] a hybrid CPU-GPU approach to solving power flows using Parallel Computing is employed. Finally, in [12] a Multi-CPU/Core Computing Environment is used for contingency analysis showing an acceleration ratio of 2.69x101 compared with sequential processing. However, the OPF is not considered.
Based on the reported benefits of employing HPC in power systems applications [13,14], in this paper a novel SCOPF analysis using parallel computing is addressed. This approach maximizes the market surplus during regular operation and contingencies, considering network constraints of power generation and load ramps. Also, generators’ active and reactive capacity, lines and transformers thermal limits, switchable shunts, voltage security limits, and price responsive demand are considered. The main contributions of this paper are summarized as follows:
This paper is organized as follows: in Background the theoretical background of OPF is introduced. 3 presents the proposed methodology to compute SCOPF using parallel computing, followed by Results, where the algorithm is assessed for different study cases. Finally, in Conclusion, conclusions are addressed.
The fundamental OPF problem is formulated to minimize the cost of generation subject to equality constraints of bus power balance and inequality constraints of maximum and minimum active and reactive power generation, minimum and maximum bus voltages and thermal transmission constraints, including transformers and lines. This formulation is shown below, where it is stated to minimize:
|
(1) |
subject to
|
(1) |
\begin{mini} {P_{g_i},u}{\sum_{i=1}^{N_{gen}} f\left(P_{g_i,u}\right)}{}{} \addConstraint{ } \addConstraint{ Q_i-\operatorname{Im}\left(E_i \sum_{j=1}^{N_{bus}} Y_{ij} E_j \right)=}{0,}{i=1,\ldots,N_{bus}} \addConstraint{P_{g_i}^{min}\leq P_{g_i}\leq}{ P_{g_i}^{max},\quad}{i=1,\ldots,N_{gen}} \addConstraint{P_{g_i}^0-\Delta P_{g_i}^d \leq P_{g_i} \leq }{P_{g_i}^0+\Delta P_{g_i}^u,}{i=1,\ldots,N_{gen}} \addConstraint{Q_{g_i}^{min}\leq Q_{g_i}\leq}{ Q_{g_i}^{max},\quad}{i=1,\ldots,N_{gen}} \addConstraint{E_{i}^{min}\leq E_i\leq}{ E_{i}^{max},\quad}{i=1,\ldots,N_{bus}} \addConstraint{S_{ij}\leq}{ S_{ij}^{max},\quad}{i,j=1,\ldots,N_{branch}} \label{01_OPF_Statement} \end{mini}
where is the active power generated by the generator , is the cost function, is the number of generators, is the injected power at bus , is the absolute value of bus voltage, is the generating power at prior condition, , are the down and up generator ramps, is the number of buses, is the power flow by branch, is the branch admittance between bus and , and are generators limits, and are bus voltage limits, is the branch thermal limit. Finally, is the vector of decision and state variables, bus angles and voltages, and active and reactive generator power.
The switched shunt banks are used to securely optimize the grid operation. These banks are composed of blocks with fixed steps resulting in an equivalent shunt susceptance as follows:
|
(1) |
Where is the resulting shunt susceptance at bus , is the block, is the susceptance step size, is the current step position, and is the number of shunt blocks.
The demand response allows to increase or decrease the load with an associated cost to enhance the SCOPF. The demand response is subject to:
|
(2) |
Where is the fraction of current load and and are the maximum and minimum fraction of load, respectively. Hence, the resulting active and reactive parts of the load are:
|
(3) |
|
(4) |
where , are the active and reactive demands at bus , respectively, and , are the active and reactive demand at a primary operating point. Additionally, the loads can be subject to ramp limits as follows:
|
(5) |
Where , are the down and upper ramp limits, respectively.
Polynomial and piecewise linear cost functions are used for an OPF assessment if convex functions are assumed [15]. For piecewise linear functions, a helper cost (auxiliary) variable is added for each segment of the function, and the following constraints are included in the formulation of OPF:
|
(6) |
where is the segment of the piecewise function, is the generator output power or demand, is the slope, and is the sequence of points of the segment, respectively. Commonly a piecewise function with one segment is replaced by a polynomial of grade one.
In this section, the proposed algorithm for solving the SCOPF using paralleling computing is addressed. In this algorithm, switched shunt banks, demand response, and piecewise cost functions for loads and generators are considered. Systems operating in island mode are outside of the scope of this SCOPF algorithm.
The proposed formulation is based on 01_OPF_Statement as shown in 02_OPF_Statement_ARPA. In this formulation, the cost for normal operation (base case) and during a contingency (case k) are taken into account using the cost function for the base case, for each considered contingency, and the helper cost variables . In the SCOPF, the set of constraints must be fulfilled for the base case and contingencies.
P_g_i,u,P_l_i f_0\left(P_g_i,u,P_l_i \right)+_n=1^N_gen+N_l y_n+_k=1^K \left(f_k\left(P_g_i,u,P_l_i\right)+_n=1^N_gen+N_l y_n\right) P_i-Re\left(E_i _k=1^N_bus Y_ij E_j \right)=0i=1,…,N_bus Q_i-Im\left(E_i _k=1^N_bus Y_ij E_j \right)=0i=1,…,N_bus P_l_i^0 t_minP_l_iP_l_i^0 t_max i=1,…,N_l P_l_i^0-P_l_i^d P_l_i P_l_i^0+P_l_i^ui=1,…,N_l Q_l_i^0P_l_i^0 P_l_i-Q_l_i = 0i=1,…,N_l P_g_i^minP_g_iP_g_i^max i=1,…,N_gen P_g_i^0-P_g_i^d P_g_iP_g_i^0+P_g_i^ui=1,…,N_gen Q_g_i^minQ_g_iQ_g_i^max i=1,…,N_gen Q_s_i^minQ_s_iQ_s_i^max i=1,…,N_shunt P_s_i = 0i=1,…,N_shunt E_i^minE_iE_i^max i=1,…,N_bus S_ijS_ij^max i,j=1,…,N_branch m_j \left(x_i-x_j \right)+c_jy_i i=1,…,N_gen+N_l
The demand response is modeled by assuming loads as generators injecting negative power and adding three constraints to the SCOPF. The first constraint is an inequality to model the minimum and maximum fraction of response load. The second one is an inequality to model the load ramps. The last constraint is equality to guarantee the ratio between reactive and active power demand response. For switched shunt banks, the algorithm is run in two stages. In the first one, the shunt banks are assumed as generators with inequalities of maximum and minimum reactive power and with equality constraints of active power equal to zero. In the second stage, the reactive power is approximate to the close shunt bank position, as shown in the following subsection. With that selected shunt block position, the resulting shunt impedance adds to the branch, and the OPF is back run, eliminating the assumed shunt as generators. Hence, the Nonlinear Interior Point Method based on Matpower formulation [15] solves the OPF problem for the base case and contingencies.
The relation between switchable shunt bank block position and susceptance for the second stage of the OPF is shown in SB_Table. Hence, for the base case and each contingency the shunt susceptance position is selected according to injected power obtained to model the shunt bank as a generator with active power equal to zero.
0 | 0 | ||
0 | 1 | ||
0 | |||
0 | |||
1 | 0 | ||
1 | 1 | ||
1 | |||
1 | |||
0 | |||
1 | |||
0 | |||
1 | |||
As the set of contingencies does not depend on each other, those can be computed in parallel. The proposed paralleling strategy to solve SCOPF is shown in LC_OPF_Strategy_One and can be summarized in the following steps:
In step 5 is exploited the capabilities of parallel computing running each contingency as an OPF without cost variables. With this novel approach, it is guaranteed that during a contingency the power network operates fulfilling all security constraints (power balance, limits of loads, generators, voltage, branches, among others).
Figure 1: Proposed paralleling strategy to solve SCOPF |
During both the read data and read contingencies stages, a comparison between the ramps of generators and loads and the maximum and minimum allowable power is performed to delete over-defined inequalities.
The validation of the proposed parallel algorithm is performed using the data-set and the scoring method formulated by the ARPA-GO challenge [16]. The algorithm was implemented in Python using the following open-source libraries:
To assess the influence of several cores in the elapsed time to solve SCOPF, the case model C2T2N00617 scenario 185 of the ARPA-GO Competition data set was used. This is a system of 617 buses, 853 branches, and 108 contingencies. The CPU used was a Ryzen 3600 with 12 threats and a frequency base of 3.6 GHz . In 01_core_time is shown the elapsed time by the number of cores employed, where can be appreciated an exponential decay according to the number of cores. While comparing the ten threats with two threats, a speedup close to 5X was achieved.
Figure 2: Elapsed time to solve SCOPF for the C2T2N00617-185 ARPA system using a different number of CPU-threats |
The benefits obtained with the proposed algorithm and the reported by ARPA-e Benchmark were 1.50314x106 USD and 1.50807x106 USD, respectively. That shows a similar performance between the two algorithms.
To evaluate the influence of demand response and dispatchable generators on the benefit, a sensitivity analysis is performed executing the SCOPF with different levels of dispatchable load and generation. For that, a share of generation and demand are modeled as fixed elements injecting or consuming power. The 02_Demand_Load shows the results obtained for different ratios of fixed demand and generation. A fixed value of 1 means that all loads or generators (1x102 ) are non-responsive or non-dispatchable. On the contrary, a fixed value of 0 means that all generators are dispatchable or all demands are responsive. As expected, for this case, the higher benefit was obtained to fix on 1 of the total elements of demand and generation. The lowest benefit was to fix a non-demand response of 1x102 of the total loads and fixing the non-dispatchable generator at 6x101 . Overall, for the case model C2T2N00617-185 the demand response costs present a stronger influence on the benefit than the generation costs, demonstrating the potential benefits of the proposed SCOPF algorithm.
Figure 3: Influence of fixed loads and generators on the benefit (1x106 USD)for the case model C2T2N00617-185 |
For assessing large size systems, the ARPA-GO competition platform was employed. This platform consists of a multi-node cluster with six nodes, each with 24 cores (a total of 144 cores) using the operating system Centos 7.4. MPI is used to manage the cluster. In 03_Comparision the benefit obtained for different ARPA-GO models using the ARPA-Benchmark results and the proposed SCOPF algorithm is shown. The number of contingencies for each model are 966, 500, 2540, 401, and 1023 respectively. The results show a similar performance between the two algorithms. For cases larger than 14000 buses, the algorithm shows slow convergence, and the platform interrupts the execution because the time limit was exceeded.
Figure 4: Benefit Comparison between ARPA-Benchmark and the proposed SCOPF for different scenarios |
In this paper, an enhanced security constraints optimal power flow algorithm is proposed to be used in Paralleling Computing. This algorithm considers demand response, generator ramps limits, and switchable shunt banks during normal operation and contingencies based on the standard OPF formulation. The algorithm was assessed using python scripts and open libraries with the ARPA-GO competition data sets on a desktop and in a multi-node cluster. The tests performed show how the algorithm becomes more efficient according to the increase in the number of cores, and the SCOPF has shown convergence for systems of 12000 buses. However, in larger cases, the algorithm presents numerical error convergences. Finally, the algorithm was developed to support the secure online operation of power systems using multiple CPUs to reduce the execution time.
The authors declare that they have no conflict of interest.
[1] Maskar, Mukund B and Thorat, A.R. and Korachgaon, Iranna. (2017) "A review on optimal power flow problem and solution methodologies". 2017 International Conference on Data Management, Analytics and Innovation (ICDMAI). IEEE 64–70
[2] Cain, Mb and O'Neill, Rp and Castillo, A. (2012) "History of Optimal Power Flow and Formulations (OPF Paper 1)". FERC Staff Tech. Pap. December 1–36
[3] International Energy Agency. (2021) "World Energy Investment 2021". World Energy Investment 2021. OECD
[4] Low, Steven H. (2014) "Convex Relaxation of Optimal Power Flow—Part I: Formulations and Equivalence", Volume 1. IEEE. IEEE Transactions on Control of Network Systems 1 15–27
[5] Majidi-Qadikolai, Mohammad and Baldick, Ross. (2016) "Integration of Contingency Analysis With Systematic Transmission Capacity Expansion Planning: ERCOT Case Study", Volume 31. Institute of Electrical and Electronics Engineers Inc. IEEE Transactions on Power Systems 3 2234–2245
[6] Valencia-Zuluaga, Tomas and Agudelo-Martinez, Daniel and Arango-Angarita, Dario and Acosta-Urrego, Camilo and Rivera, Sergio and Rodriguez-Medina, Diego and Gers, Juan. (2021) "A Fast Decomposition Method to Solve a Security-Constrained Optimal Power Flow (SCOPF) Problem Through Constraint Handling", Volume 9. Institute of Electrical and Electronics Engineers Inc. IEEE Access 52812–52824
[7] Moreira, Alexandre and Street, Alexandre and Arroyo, Jose M. (2015) "An Adjustable Robust Optimization Approach for Contingency-Constrained Transmission Expansion Planning", Volume 30. Institute of Electrical and Electronics Engineers Inc. IEEE Transactions on Power Systems 4 2013–2022
[8] Marot, Antoine and Donnot, Benjamin and Dulac-Arnold, Gabriel and Kelly, Adrian and O'Sullivan, Aïdan and Viebahn, Jan and Awad, Mariette and Guyon, Isabelle and Panciatici, Patrick and Romero, Camilo. (2021) "Learning to run a Power Network Challenge: a Retrospective Analysis" 112–132
[9] Rodriguez, Diego F. and Alvarez, David L. and Gomez, Diego and Gers, Juan M. and Rivera, Sergio. (2021) "Low-Cost Analysis of Load Flow Computing Using Embedded Computer Empowered by GPU". 2021 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT). IEEE 1–5
[10] Araújo, Igor and Tadaiesky, Vincent and Cardoso, Diego and Fukuyama, Yoshikazu and Santana, Ádamo. (2019) "Simultaneous parallel power flow calculations using hybrid CPU-GPU approach", Volume 105. Elsevier BV. International Journal of Electrical Power & Energy Systems 229–236
[11] Wang, Zhenqi and Wende-von Berg, Sebastian and Braun, Martin. (2021) "Fast parallel Newton–Raphson power flow solver for large number of system calculations with CPU and GPU", Volume 27. Elsevier. Sustainable Energy, Grids and Networks 100483
[12] Zhou, Mike and Feng, Donghao. (2019) "Parallel Contingency Analysis for Multi-CPU/Core Computing Environment", Volume 52. Elsevier B.V. IFAC-PapersOnLine 4 105–110
[13] Khaitan, Siddhartha Kumar. (2016) "A survey of high-performance computing approaches in power systems", Volume 2016-Novem. 2016 IEEE Power and Energy Society General Meeting (PESGM). IEEE 1–5
[14] Rodriguez, Diego and Gomez, Diego and Alvarez, David and Rivera, Sergio. (2021) "A Review of Parallel Heterogeneous Computing Algorithms in Power Systems", Volume 14. Multidisciplinary Digital Publishing Institute. Algorithms 10 275
[15] Zimmerman, Ray D. and Murillo-Sanchez, Carlos E. and Thomas, Robert J. (2009) "MATPOWER's extensible optimal power flow architecture". 2009 IEEE Power & Energy Society General Meeting. IEEE 1–7
[16] . (2019) "ARPA-E Grid Optimization Competition"
Published on 31/01/23
Accepted on 30/01/23
Submitted on 20/10/22
Volume 39, Issue 1, 2023
DOI: 10.23967/j.rimni.2023.01.004
Licence: CC BY-NC-SA license
Are you one of the authors of this document?