1. Introduction
With the continuous expansion and extension of the power grid system, the analysis and calculation methods of the power grid system is more significant. The continuous extension of the power grid system has different characteristics. The reconstruction of the distribution network is meant to reduce network loss, balance load, eliminate overload, improve voltage distribution, enhance power supply quality, and improve system economy and power supply reliability by changing the opening and closing states of the interconnection switches and section switches in the line, in order to satisfy system constraints. Power system reconstruction refers to isolating faults and recovering power by changing the topology structure of the power grid [
1,
2]. The paper’s power system reconstruction is aimed at analyzing and comparing the system performance of a new complex system after topology extension on the original system.
The comprehensive power system of ships exhibits complex mixed dynamics during reconstruction, and some equipment in the system is designed to reduce the problem of excessive discrete states caused by the expansion of the system scale. When the ship’s integrated power system fails, reconstruction is a technology that ensures continuous power supply and load balancing by changing the power grid topology and isolating the fault area [
3,
4], transferring high-quality power to important loads to minimize the threat caused by disturbances or faults [
5]. Belkacemi et al. improved system reliability through distribution network reconstruction, but the response time of centralized control is slow. This is not conducive to real-time scheduling, is highly dependent on the central controller, and is prone to single point failures, resulting in relatively poor reliability [
6,
7]. Distributed control can overcome the above disadvantages in traditional centralized control and has the advantages of less information transmission and high reliability in achieving real-time control of the internal autonomy of the active distribution network [
8]. Research on ship power system reconstruction mostly deals with single-point random failure problems by improving the ability to optimize the algorithm under a centralized control structure [
9,
10,
11].
Multi-agent systems are combined with immune algorithms to carry out fault detection, isolation, and power grid reconstruction operations. Wang et al. [
10] applied a multi-agent ant colony algorithm to the network reconstruction of a ship integrated power system, and showed that the addition of a multi-agent system to the ant colony algorithm accelerated the convergence speed of the algorithm and improved real-time performance. A multi-agent particle swarm optimization algorithm for a ship integrated power system has been proposed, which improves the optimization ability and speed of the algorithm [
11]. A three-layer hierarchical control strategy was designed, which adds a centralized reconstruction layer on the basis of the distributed control layer and combines with the genetic algorithm for optimization calculation [
12].
On this basis, probabilistic power flow (PPF) models are commonly constructed using Monte Carlo simulation (MCS) [
13,
14]. Related research results have been achieved, and the analysis of the characteristics of the structure of the power system after changes has been carried out [
15]. Reference [
16] proposes a method to eliminate excessive branch power flow in the power system by introducing sensitivity and distribution factors to improve the particle swarm optimization (PSO) algorithm. The proposed algorithm integrates Newton’s iterative process with Wirtinger calculus, enabling linearization of power flow equations directly in the complex plane in reference [
17]. These methods improve and enhance power flow analysis in modern distribution systems.
Reconstruction is an important feature for adapting to the integration of new energy into the power grid, and also provides an important reference for the analysis of power system reconstruction. However, in scenarios where the continuous expansion of the power grid faces complex reconfiguration, traditional N-R power flow calculation methods often encounter convergence difficulties and high sensitivity to initial conditions due to the increased system scale, dynamic structural changes, and hybrid characteristics, which severely restrict the analysis efficiency of reconfiguration schemes. To overcome the limitations of the traditional N-R method in expanding complex systems, this study proposes an optimization algorithm based on multi-radial grid reconfiguration technology. The core of this algorithm lies in decomposing complex networks into radial subnets to find rapid solutions, and to achieve global convergence through coordination of tie lines. This method aims to significantly reduce dependence on optimization time and initial state settings, and to enhance the adaptability and computational efficiency of power flow calculation in the analysis of extended system reconfiguration. It has been validated on multiple complex networks including IEEE 30-bus, 57-bus, 118-bus, 162-bus, and 300-bus extended systems.
2. Analyze and Optimize Algorithms
The paper focuses on the power flow analysis and calculation of complex power systems, and iteratively calculates nonlinear equations based on simulation examples of IEEE 30 bus system. Power flow analysis and calculations are performed on various design schemes of the system network to obtain the parameters of each node in different types of power systems, thereby obtaining power flow distribution data of the power system. The Newton–Raphson method can be used to solve nonlinear equations and provide the parameters for system operation [
7].
The expansion of the model has resulted in differences in the performance of the system model. Therefore, expanding the existing model topology by adding components such as transmission and distribution should be taken into consideration in order to achieve a regular topology structure, which can reveal the relevant characteristics of the model expansion.
The IEEE 30 bus system wiring diagram is shown in
Figure 1.
The flow of distributed power sources connected to the distribution network changes and expands the nodes. The original topology remains unchanged, and the new topology is compared based on the original changes. After the expansion, the system performance changes, and the original system node topology performance tends to converge with the system topology node performance after the expansion.
2.1. Extended System Constraints
The reconstructed distribution network meets the requirements of no “circuits” and no “islands”. In addition to network structure constraints, considering the multi-state switching characteristics of power loads in energy storage systems, the following constraints must be met:
In Equation (1), and are the active and reactive power output vectors of different energy sources in the system, respectively; is the energy storage state. When it is a power source, the attribute is the same as /. When it is a load, the attribute is the same as /. and are the active and reactive power demand vectors of the load, respectively .
- (2)
Inequality constraint
In Equation (2), is the node voltage vector; is the branch power vector.
2.2. The Power Flow Equation of the System
The following is the basic format of the power flow equation, which is the solution of power imbalance [
17]:
As shown in the above equation, there are a total of two equations. However, the number of equations and the unknowns involved in iterative calculations may vary depending on the type of node.
(1) For PQ nodes, since both exist, both function equations can be iterated. For polar coordinate equations, the sum of the state variables needs to be calculated.
(2) Regarding PV nodes, they exist but are unknown, so only the active power equation can be iterated. As the voltage frequency has been determined, the unit of electricity needs to be found.
(3) Regarding the balance node, since both are unknown, it is generally not iterated.
Assuming the number of nodes in the system is
and the number of
nodes is
, then the number of
nodes is
, and the equation for iteration is
. The state variable to be sought is also
. The specific equation is as follows:
The optimization equation is as follows:
The non-diagonal and diagonal elements of the Jacobian matrix are:
The above variables are all Jacobian matrix elements.
After solving, obtain the state variables to be solved, and substitute them as initial values into the node power equation. Form the required coefficient sequence for each iteration step into a matrix, and then use matrix operations to calculate the coefficients required for the next iteration step. Repeat the iterative calculation until the final solution that meets the accuracy is obtained, thus obtaining the power flow distribution. In this way, the power at each node can be obtained from the node power equation, and the power flow distribution of the power system can be obtained through the active power balance equation and reactive power balance equation. The principle is shown in the following diagram in
Figure 2.
This method utilizes the local linear approximation of the function at the current point to rapidly update the root estimate. By iteratively approximating the curve with its tangent line and locating the root of this linear approximation, it progressively converges towards the true root of the function, as shown in
Figure 2. The green pentagram represents the exact location of the solution.
2.3. Convergence in Newton Raphson Current Calculation
Through the principle analysis of the Newton-Raphson power flow algorithm above, it can be seen that the theory of this method is relatively simple and the calculation process is also relatively simple. However, in practical numerical simulations, convergence difficulties often occur.
Generally speaking, when using the Newton–Raphson algorithm for power flow calculation, only seven or more iterations are needed to achieve high accuracy. Although the number of iterations is proportional to the system size, the increase in iteration times is not significant as the power grid size increases. In the IEEE 30 bus example presented in this paper, the solution results that meet the error accuracy requirements were obtained. In theory, if the initial parameters given are accurate enough, then when using this algorithm for calculation, the error will decrease squared at the iteration point, exhibiting quadratic convergence.
However, if we choose inappropriate initial values with given parameters, we may experience non0convergence, or converge to a solution that does not match the actual situation. The non-convergence situation may result in the model not being able to accurately fit the data, and may even affect the performance of the model. Therefore, when selecting initial values, special attention should be paid to ensuring that the selected initial values are correct, to ensure that the model can accurately fit the data.
In general, we can assume that each effective initial value of a node is the rated voltage of the network, and after standardization, the initial voltage value is set to 1, and the initial values of the voltage phase angle is set to 0. This is because during normal system operation, the voltage at each node will not differ significantly from the rated voltage, and the voltage phase angle at each node is relatively close, which will not have a significant impact on the iteration results.
When conducting power flow calculations, attention should be paid to the multi-value nature of the power flow; that is, the results obtained for a given initial value are inconsistent. The reason for this situation is that the dynamic equation of the power system is a non-linear system, so theoretically it is impossible to have only one solution. However, the premise is that in the calculation of the power system, all non-real solutions must be eliminated.
In the above situations, there may be some solutions (or non-stationary solutions) that are not present in reality. There may also be some reasonable solutions that can be obtained in reality, but the operating voltage and power loss of these solutions may vary.
In contrast to the above situation, due to various reasons, the calculation of power flow may not converge, which can be referred to as “non-convergence”. We need to further analyze this situation to determine if it is due to the following reasons:
- (a)
Improper network parameter settings;
- (b)
Inaccurate parameters;
- (c)
The algorithm is incorrect;
- (d)
Initial value selection error;
- (e)
The algorithm itself has flaws;
- (f)
Other reasons.
It is worth noting that sometimes power flow calculations can converge and obtain real number solutions, but this does not mean that all of these solutions can be used as actual power flow results, for example in the following situations:
- (a)
When the current flowing through the component exceeds its allowable value;
- (b)
When the effective value of the node voltage exceeds the rated maximum value or falls below the minimum value;
- (c)
When the power of a node exceeds its allowable value.
When the above situations occur, we need to adjust the following two points: ① the active power of the generator; ② the initial value of node voltage for node . In fact, when the reactive power of node exceeds the allowable range of the generator, changing it to node can also improve the power flow calculation results.
Of course, improving the trend results requires vast experience and sufficient patience to constantly repeat and explore the process.
2.4. The Principle of P-Q Decomposition Method
The principle of P-Q decomposition method for the power system flow calculation is to transform the power system flow calculation problem into a solution problem in a linear equation system, and then use the solution method of the linear equation system to perform the power system flow calculation. The basic idea of P-Q decomposition method is to divide the power flow calculation problem into multiple parts and then solve them separately. Specifically, the first step of the P-Q decomposition method is to divide the power system into multiple linear equation systems, each of which contains several node voltage and power equations. The second step is to decompose each linear equation system into multiple independent sub-equation systems, each containing several node voltage and power equations. The third step is to use the solution method for the linear equation system to solve the power flow calculation problem in the power system; that is, to determine the solutions for the node voltage and power equations in each sub-equation system through iterative calculation. The advantages of the P-Q decomposition method are that it can greatly simplify the process of power flow calculation in power systems, and it can be widely applied in large-scale power flow calculation. However, the P-Q decomposition method also has some limitations, such as the need to handle non-linear systems and the long computation time, making it less practical in power system flow calculations that require fast computation.
The commonly used P-Q decomposition method in power systems is derived from the Newton–Raphson method represented in polar coordinates. Considering the characteristics of the power grid, the P-Q decomposition method is a simplification of the Newton–Raphson method for modifying equations [
17]. Firstly, in the power grid, the reactance of each component is generally much greater than the resistance (X>>R), so the phase angle change of each node voltage has the greatest impact on the active power flow, while the amplitude change of each node voltage has the greatest impact on the reactive power flow. Therefore, subarrays
can be omitted, and the modified equation becomes:
The second simplification is based on the constraint condition
on state variable
, which means that
should not be too large. Considering
, it can be considered as
,
, and
. Therefore,
can be simplified as:
So
and
can be expressed as:
and
are constant matrices of order n − 1 and m − 1, respectively. Substitute the above equation into the equation and organize it to obtain
In order to reduce the influence of reactive power and the node voltage modulus on active iteration during the iteration process, the elements in the right-hand end of the equation are set to a unit value of 1.0; that is, is the unit matrix.
The corrected equation for the commonly used fast decoupling algorithm can be written as:
Node power is represented as a polar coordinate equation of the voltage vector. The active power error is used as the basis for correcting the angle of voltage vector, and the reactive power error as the basis for correcting voltage amplitude, iteratively separating active and reactive power. The main content of the P-Q decomposition method is to calculate the imbalance of node power using a formula, solve for correction factors and using a correction equation, and iterate until the power errors and of each node satisfy the convergence condition.
Its characteristics are:
- -
Replace the original linear equation system with a system of and linear equations;
- -
The coefficient matrices and of the modified equation are symmetric constant matrices that remain unchanged during the iteration process;
- -
It has linear convergence and requires more iterations to converge to the same accuracy compared to the Newton–Raphson method;
- -
It is generally only applicable to the calculation of power grids with voltage levels of 110 KV and above. Due to the large ratio of lines with voltage levels of 35 KV and below, which does not meet the simplified conditions mentioned above, iterative calculations may not converge.
3. Simulation Operation and Its Results
- A.
Trend analysis operating environment
This trend analysis was run entirely in the Matlab2022b program environment.
Figure 3 is a brief introduction to the simulation and use of this software. The figure shows the sub process analysis, and a further optimization matrix analysis is obtained by distinguishing the transformer branch and error boundary values.
Basic area: After opening the software, the software interface is divided into several areas, including the command function area at the top, the command line input bar on the right, and the currently opened folder and its path on the left. The middle is the workspace, which is also the area where our program design is located. We need to write the source code for the trend analysis and design program in this area. The specific implementation flowchart is as follows:
- B.
Comparison of Trend Analysis and Simulation Results
Import the results of the P-Q decomposition method and the Newton–Raphson method power flow calculation into an Excel spreadsheet and use Origin to draw a line graph. Visualize the node voltage amplitude, node voltage phase angle, node power, line power loss, branch injection power, and branch output power separately.
- (1)
Analysis of Newton–Raphson Method Results
The reference capacity is 100 MVA and the reference voltage is Uav. The following data are all standard values. The calculation results for the Newton–Raphson method are as follows:
The first to fifth columns of
Table 1 are the node count, voltage amplitude (per unit value) of each node, phase angle (angle system) of the node voltage, active power inflow (per unit value) of each node, and reactive power inflow (per unit value) of each node, respectively. The first and second columns of the data in
Appendix A,
Table A1 represent two nodes with a connection relationship, the third and fourth columns show the power flow between the two nodes, and the fifth and fourth columns show the loss of active and reactive power in the line between the two nodes.
The first to fifth columns of
Table 1 are the node count, voltage amplitude (per unit value) of each node, phase angle (angle system) of the node voltage, active power inflow (per unit value) of each node, and reactive power inflow (per unit value) of each node, respectively. The first and second columns of the data in
Appendix A,
Table A1 represent two nodes with a connection relationship, the third and fourth columns show the power flow between the two nodes, and the fifth and sixth columns show the loss of active and reactive power in the line between the two nodes.
- (2)
Analysis of P-Q Decomposition Method Results
The reference capacity is 100 MVA and the reference voltage is Uav. The following data are all standard values. The calculation results for the P-Q decomposition method are as follows:
According to
Appendix A,
Table A2, the results of calculating the power flow distribution of the IEEE 30 bus using the program ieee30-PQ.m include the number of nodes and node types, where 1 represents the balance node, 2 represents the PV node, and 3 represents the PQ node. It also includes the active and reactive power generated by the generator and the active and reactive power required by the load, as well as the phase angle of each node.
According to
Appendix A,
Table A3, the line related parameters of the IEEE 30 bus power flow distribution include the active and reactive power flowing into the line, the active and reactive power flowing out of the line, and the part that includes reactive power compensation for the system by the ground branch.
- (3)
Comparison of Calculation Time
The P-Q decomposition method took 0.066287 s to calculate the 30 node power flow distribution results in
Table 2. The Newton–Raphson method took 0.143574 s to calculate the distribution of 30 node currents.
After comprehensively comparing the power flow calculation results of the ex- tended model and the basic model in
Table 3, the following conclusions can be drawn: The basic model performs better in terms of voltage quality, with a lower sum of squares of voltage deviation (0.039896) compared to the extended model (0.040799), indicating that the node voltage is closer to the ideal value. The extended model exhibits significant advantages in system efficiency, with a substantial reduction in total active power loss (52.5%) from the basic model (0.176331 pu) to 0.083778 pu. This model reduces the total active power loss to 0.083778 pu, achieving a 52.5% improvement in energy efficiency compared to the basic model (0.176331 pu). This breakthrough improvement directly translates into savings in grid operation costs.
The Newton–Raphson method is easy to understand and implement. The advantage of this method is that it has a fast calculation speed, can calculate a large number of numerical solutions in a very short time, and has high accuracy. It can obtain accurate calculation results through mathematical derivation. The disadvantage of the Newton–Raphson method is that it requires a significant amount of computational resources, but in practical engineering, the relevant parameters of each node in the power system can be measured in reality. Compared to the P-Q decomposition method, although it has a faster calculation speed, its calculation accuracy is not as good as the Newton–Raphson method. In comparison, the Newton–Raphson method has stronger practicality.
- C.
Visualization of trend analysis simulation results
Based on the Origin software, the trend distribution results are visualized. Origin is a mathematical analysis software mainly used for data processing, statistical analysis, and plotting. It integrates many advanced technologies, such as relational databases, graph data representation, algebraic operations, numerical computation, and data visualization. Origin also supports multiple languages, making it easy to integrate with other software to complete complex analysis tasks.
This section compares the visualization of power flow distribution obtained using the Newton–Raphson method and the P-Q decomposition method, and explores which algorithm is more in line with the actual situation.
- (1)
Node data comparison
The following trend visualization is obtained by processing the voltage amplitudes of the nodes in
Table 1 and
Appendix A Table A1 through Origin2022. All data are per unit values.
Figure 4 shows the voltage amplitude calculated by the Newton–Raphson method, The P-Q decomposition method is optimized by the Newton–Raphson method, and the node voltage amplitude results are consistent.
Therefore, both the Newton–Raphson method and the P-Q decomposition method can be used to solve the voltage amplitude in the power flow distribution of the power system network.
The voltage phase angles of the above nodes are all in radians. The
Figure 5a shows the voltage phase angle calculated by the Newton–Raphson method, and
Figure 5b shows the voltage phase angle calculated by the P-Q decomposition method, with local amplification processing applied to the highly differentiated intervals.
The above node powers are all per unit values. The
Figure 6a shows the node power calculated by the Newton–Raphson method, and
Figure 6b shows the node power calculated by the P-Q decomposition method.
It can be seen that the difference in node power calculated by the two currents is not significant.
- (2)
Comparison of branch data
The above branch powers are all standard values.
Figure 7a shows the branch injection power calculated by the Newton–Raphson method, and
Figure 7b shows the branch injection power calculated by the P-Q decomposition method.
It can be seen that the difference in line power results calculated by the two power flow algorithms is not significant.
The above branch powers are all standard values.
Figure 8a shows the branch output power calculated by the Newton–Raphson method, and
Figure 8b shows the branch output power calculated by the P-Q decomposition method.
It can be seen that the difference in line power results is not significant.
Figure 9a shows the branch power loss calculated by the Newton–Raphson method, and
Figure 9b shows the branch power loss calculated by the P-Q decomposition method. It can be seen that the difference in the power loss results for the transmission lines is not significant, but there are still some subtle differences, because the P-Q decomposition method is only applicable to high-voltage transmission networks.
Due to the impedance X>>R of the transmission lines, active power and the voltage phase angles are strongly correlated, and reactive power and voltage amplitude are strongly correlated. Therefore, it can be simplified to consider only the bias of active power on the phase angle (active power has little effect on amplitude bias, simplified as a zero matrix), and the bias of reactive power on amplitude (reactive power has little effect on phase angle bias, simplified as a zero matrix). Neglecting the impact of resistance on line power and node voltage resulted in differences between the visualization of the power flow distribution and the Newton–Raphson method.
The voltage of the 30 node power system network flow distribution data visualization system is relatively stable, and there is basically no reactive power shortage. However, with the expansion of the power system and the significant increase in the number of nodes, combined with the flow distribution visualization results, it can be seen that a reactive power shortage has occurred. The phenomenon of reactive power loss control in multiple nodes requires the addition of reactive power compensation equipment. The location of the reactive power compensation device can be optimized and reconstructed based on the particle swarm optimization algorithm for the power system network.
Therefore, the calculation of power flow distribution in the power system is the basis for selecting appropriate reactive power compensation devices and reasonably planning the power grid structure.
4. Expansion of Trend Computing Model
With the widespread use of electricity, the scale of the power grid is constantly expanding and becoming increasingly complex. Therefore, considering the complex power flow distribution of large-scale power networks has become particularly important. This paper is based on the programming of example 030iee.dat to calculate its power flow distribution, and considers the complexity of the actual power system to extend the power flow calculation model to multiple nodes.
Change the 030ieee.dat data read from text read in the main program Untitled11.m to 057ieee.dat, 118ieee.dat, 162ieee.dat, and 300ieee.dat, respectively, to obtain different power flow distribution results. Use the openpyxl library in Python 3.11 to import the power flow calculation results into an Excel spreadsheet, and then use Origin 2022 drawing software to visualize the power flow distribution results.
- A.
IEEE 57 bus power flow distribution
Change the 030iee.dat data read from text read in the main program Untitled11.m to 057iee.dat, run and visualize the power flow distribution. The results of the system operation are shown in
Figure 10a–c and
Figure 11a–c.
- (1)
Node Data
Here is the final trend visualization:
Figure 10.
(a) 57 bus voltage phase angle. (b) 57 bus voltage amplitude. (c) 57 bus node power.
Figure 10.
(a) 57 bus voltage phase angle. (b) 57 bus voltage amplitude. (c) 57 bus node power.
- (2)
Branch Data
Figure 11.
(a) 57 bus branch inflow power. (b) 57 bus branch output power. (c) 57 bus branch power loss.
Figure 11.
(a) 57 bus branch inflow power. (b) 57 bus branch output power. (c) 57 bus branch power loss.
- B.
ieee118bus power current distribution
Change the 030iee.dat data read by textread in the main program Untitled11.m to 118iee.dat, and run and visualize the power flow distribution. The results of the system operation are shown in
Figure 12a–c and
Figure 13a–c.
- (1)
Node Data
Due to space limitations, only the final trend visualization is provided here.
Figure 12.
(a) 118 bus voltage phase angle. (b) 118 bus voltage amplitude. (c) 118 bus node power.
Figure 12.
(a) 118 bus voltage phase angle. (b) 118 bus voltage amplitude. (c) 118 bus node power.
- (2)
Branch Data
Figure 13.
(a) 118 bus branch inflow power. (b) 118 bus branch output power. (c) 118 bus branch power loss.
Figure 13.
(a) 118 bus branch inflow power. (b) 118 bus branch output power. (c) 118 bus branch power loss.
- C.
IEEE 162bus power flow distribution
Change the 030iee.dat data read by textread in the main program Untitled11.m to 162iee.dat, and run and visualize the power flow distribution. The results of the system operation are shown in
Figure 14a–c and
Figure 15a–c.
- (1)
Node Data
Due to space limitations, only the final trend visualization is provided here.
Figure 14.
(a) 162 bus voltage phase angle. (b) 162 bus voltage amplitude. (c) 162 bus node power.
Figure 14.
(a) 162 bus voltage phase angle. (b) 162 bus voltage amplitude. (c) 162 bus node power.
- (2)
Branch Data
Figure 15.
(a) 162 bus branch inflow power. (b) 162 bus branch output power. (c) 162 bus branch power loss.
Figure 15.
(a) 162 bus branch inflow power. (b) 162 bus branch output power. (c) 162 bus branch power loss.
- D.
IEEE 300 bus power flow distribution
Change the 030iee.dat data read by textread in the main program Untitled11.m to 300iee.dat, and run and visualize the power flow distribution. The results of the system operation are shown in
Figure 16a–c and
Figure 17a–c.
- (1)
Node Data
Here is the final trend visualization:
Figure 16.
(a) 300 bus voltage phase angle. (b) 300 bus voltage amplitude. (c) 300 bus node power.
Figure 16.
(a) 300 bus voltage phase angle. (b) 300 bus voltage amplitude. (c) 300 bus node power.
- (2)
Branch Data
Figure 17.
(a) 300 bus branch inflow power. (b) 300 bus branch output power. (c) 300 bus branch power loss.
Figure 17.
(a) 300 bus branch inflow power. (b) 300 bus branch output power. (c) 300 bus branch power loss.
The voltage of the 30 node power system network flow distribution data visualization system is relatively stable, and there is basically no reactive power shortage in
Figure 16a–c and
Figure 17a–c. With the expansion of the power system and the significant increase in the number of nodes, combined with the flow distribution visualization results, it can be seen that a reactive power shortage has occurred. The phenomenon of reactive power loss control in multiple nodes requires the addition of reactive power compensation equipment. The location of the reactive power compensation device can be optimized and reconstructed based on the particle swarm optimization algorithm for the power system network.
Therefore, the calculation of power flow distribution in the power system is the basis for selecting appropriate reactive power compensation devices and reasonably planning the power grid structure.