A method and system for multi-stage topology reconstruction of distribution network based on graph computing
Through the multi-stage topology reconstruction method based on graph computing, the problems of low computational efficiency and insufficient privacy in distribution network reconstruction are solved, and efficient and safe power loss reduction and topology optimization of the distribution network are achieved.
Patent Information
- Application Number
- CN202410985204.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Existing distribution network reconstruction methods have heavy workloads and low computational efficiency when the number of nodes increases. They cannot accurately and effectively reduce network losses, and cannot safely guarantee the privacy of user information.
A multi-stage topology reconstruction method based on graph computing is used to divide the distribution network into multiple power grid areas. The improved optimal flow pattern method and branch exchange method are used for distributed computing. Through switch state conversion and graph calculation optimization, Satisfy power loss minimization and inherent constraints.
It improves the calculation efficiency of distribution network reconstruction, reduces power loss, ensures the security of voltage and the privacy of user information, and realizes the accurate state transition of segment switches and contact switches of the distribution network.
Smart Images

Figure CN118520624B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution network energy storage, and in particular to a distribution network multi-stage topology reconstruction method and system based on graph computing. Background Art
[0002] The distribution network is one of the basic components of the power grid. It involves all aspects of user electricity consumption. It has a large structure and complex operation. The operation quality of the distribution network directly affects the quality of user electricity consumption. The distribution network mainly transmits the power of the node generator and the upper power grid of the root node to other load nodes. However, as the number of distribution network branches and nodes gradually increases, the system scale continues to expand, and the calculation becomes increasingly complex. Traditional centralized computing has poor scalability and high communication costs, and it is difficult to meet the calculation needs of the distribution network.
[0003] In the field of distribution network research, since the impedance of the branch is much greater than the resistance, how to reduce network loss has always been a problem that needs to be solved. Distribution network reconstruction changes the topology of the distribution network, that is, changes the switching and closing states of the segment switches and tie switches between nodes to transfer load nodes and reduce power loss.
[0004] In the research of distribution network reconstruction, three methods are currently focused on: mathematical optimization method, heuristic method, and intelligent optimization algorithm. Although mathematical optimization can quickly find the optimal solution, this method cannot directly solve non-convex nonlinear problems and is overly dependent on initial values. Although the heuristic method is simple and searches for the optimal solution with high quality, the increase in the number of nodes leads to a large workload and low computational efficiency. Although the intelligent optimization algorithm uses a small system, it is difficult to converge to the optimal solution in a large node system. Therefore, how to quickly and effectively reconstruct the distribution network is the main challenge in reducing network losses.
[0005] At the same time, with the increase in communication costs and users' increasing demands for privacy, how to efficiently and securely reduce network losses is an important challenge facing the reconstruction of existing distribution networks.
[0006] For example, the Chinese invention patent with application number 202310097347.1 and application date January 16, 2023 discloses a distributed photovoltaic capacity configuration method considering the reconstruction of the distribution network, which adopts the bird's nest algorithm to make the configuration capacity of the distribution network more reasonable, and adopts the optimal flow mode method for reconstruction; the Chinese invention patent with application number 202111106696.2 and application date September 22, 2021 discloses a distribution network fault handling and network reconstruction method that adapts to strong uncertainty, which realizes post-fault network optimization reconstruction through the branch exchange method. The present invention can quickly and accurately obtain all possible radial network structures of the ring network, find the optimal topology, and then adapt to the uncertainty of distributed power sources. The existing distribution network reconstruction mainly focuses on the optimization of a single method. However, such methods have the following shortcomings:
[0007] 1) As the number of nodes increases, the workload is too large and the computational efficiency is low.
[0008] 2) The distribution network cannot be accurately and effectively reconstructed, which is affected by the original topology. Among them, the optimal flow mode method has a slow solution speed and is difficult to search for the global optimal solution, which is affected by the mutual influence of currents. The branch exchange method leads to a large workload and low calculation efficiency as the number of nodes increases, and the flow calculation is affected by the non-independent topology.
[0009] 3) During the distribution network reconstruction, user information cannot be securely guaranteed and network losses cannot be effectively reduced. Summary of the invention
[0010] Purpose of the invention: In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a distribution network multi-stage topology reconstruction method based on graph computing, and the present invention also provides a distribution network multi-stage topology reconstruction system based on graph computing.
[0011] Technical solution: According to a first aspect of the present invention, a method for multi-stage topology reconstruction of a distribution network based on graph computing is provided, the method comprising the following steps:
[0012] S1 divides the distribution network to be reconstructed into multiple grid areas by utilizing the space or structure of the distribution network;
[0013] S2 adopts a multi-stage reconstruction method based on an improved optimal flow mode method and a branch exchange method to obtain a topology structure and power loss according to a graph calculation principle for each power grid area; the multi-stage reconstruction method based on an improved optimal flow mode method and a branch exchange method comprises the following steps:
[0014] S21 turns off all switches of the initial topology of the distribution network to form a ring loop topology structure;
[0015] S22 sets the number of iterations to be equal to the number of branches in the loop topology. In each iteration, the switches in the loop topology are turned on to calculate the power loss in parallel and distributed manner. The switch with the minimum power loss is selected as the tie switch. After the iteration is completed, all the tie switches are disconnected to obtain a radial network topology.
[0016] S23 uses a switch pre-classification method to obtain the radial network topology, and performs state conversion of segment switches and tie switches, and obtains the optimal topology structure and power loss value through parallel distributed calculation;
[0017] S3 determines whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, wherein the relevant conditions include: the objective function of minimizing power loss and the inherent constraint; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved;
[0018] S4 iteratively calculates the corresponding topological structure in each power grid area using a graph computing method, and the distribution network reconstruction is terminated when the convergence condition of parallel distributed computing is met.
[0019] Further, step S22 specifically includes:
[0020] S221 inputs the ring loop topology corresponding to the current power grid area and finds all switches K , and initialize the current switch k ;
[0021] S222 Open the first k A switch is formed, and it is determined whether the connectivity and inherent constraints are satisfied. If so, the process proceeds to step S223. Otherwise, the value of the objective function is set to a large positive value (10 9 );
[0022] S223 saves the current power loss value and opens the k +1 switch;
[0023] S224 determines whether If so, find the minimum power loss value and set the corresponding branch switch to off to form a radial network topology and end; otherwise, go to step S222.
[0024] Further, the step S23 specifically includes:
[0025] S231 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes the steps of S2 at the same time to obtain the latest topology structure. Record the segment switches other than types I-III in the current structure as a set , and the segmented switches of type II are the set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop; and Is a positive integer.
[0026] S232 Remove the set The segment switches outside the network are opened one at a time in sequence, and all other switches are closed at the same time, and the step flow of step S22 is executed, and the segment switch is kept open all the time until a radial network topology is formed, and the network topology and the corresponding power loss value are saved after parallel distributed calculation;
[0027] S233 pair set The sectional switches in the sectionalizer perform an on-off action, wherein each time a sectionalizer of type II is opened, a tie switch is closed at the same time to maintain connectivity. For example, Figure 2 When the switches of nodes 5 and 6 are turned on, the tie switch 6-7 needs to be turned off to ensure connectivity; since the tie switch is a normally open switch. In this step, the connectivity of the new topology is ensured after the type II state is changed and the current power loss is saved in parallel distributed calculation. After each segment switch is turned on and the new topology is calculated, the tie switch returns to the normally open state. Therefore, it is feasible to turn off a tie switch at the same time when a type II segment switch is turned on.
[0028] S234 executes the available on-off action, solves the power loss optimal function by using graph computing parallel distributed, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work;
[0029] S235 pair set All segment switches execute step S234;
[0030] S236 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches;
[0031] S237 repeats steps S232-S236 for the segment switches in the annular loop topology.
[0032] Further, it includes: in the step S3, the objective function of minimizing power loss is expressed as:
[0033] in: , , Slave nodes To Node The active power and reactive power of the node With Node The branch resistance between , The nodes are The voltage and number of load nodes.
[0034] Further, including: in the step S3, the inherent constraints include:
[0035] The power flow constraint is expressed as: Among them, formula (2a) represents the active power balance of the node, which is the premise for ensuring the stability of the distribution network frequency. , Node The active power and voltage, , They are Row and The real and imaginary parts of the admittance matrix of the column, is the set of all branches. Formula (2b) represents the reactive power balance of the node, which is the premise for ensuring the voltage stability of the distribution network. Is a node The reactive power of the node is given by formula (2c). and nodes The maximum transmission capacity limit between is the maximum apparent power;
[0036] Distribution network current, voltage, and micro-turbine constraints
[0037] Among them: (3a) is the voltage constraint of the distribution network, which ensures the safe operation of the distribution network and power equipment. For Node The voltage, , For Node The voltage upper and lower limits of the node To Node Branch current constraints ensure line safety. For Node To Node The branch current, , are the upper and lower limits of branch current, (3c) is the active power output constraint of the micro-turbine, For Node The active power of the micro-turbine, , For Node The upper and lower limits of the active power of the micro-turbine, (3d) is the reactive power output constraint of the micro-turbine, For Node The reactive power of the micro-turbine is , For Node The upper and lower limits of the reactive power of the micro turbine.
[0038] Further, including:
[0039] In the process of distribution network reconstruction, the radiation and connectivity constraints need to be met. The distribution network topology constraints are specifically expressed as:
[0040] Where: is the number of branches, For Node To substation node distance.
[0041] Further, including:
[0042] The step S4 specifically includes:
[0043] S41 Traditional centralized computing methods have low security, poor privacy protection, and high communication costs. To this end, the present invention introduces graph computing to perform distribution network reconstruction calculations. Graph computing uses the principles of graph theory to describe the nodes and edges of the distribution network in the form of a matrix. Nodes are connected through edges, and communication information is exchanged through edges.
[0044] The distribution network is composed of nodes and branches. There are branches between nodes to connect and transmit information. The nodes and branches of the distribution network can form the basic concept of graph computing. Using the basic principles of graph computing, first, the structure of the distribution network is converted into a graph relationship, each node is set as a vertex, and the optimization data is stored in the graph database for parallel computing to improve computing efficiency. Each vertex is set to realize the optimal parallel optimization calculation of the power loss of the distribution network according to the information transmitted by the adjacent vertices, and the boundary information is updated according to the optimization results.
[0045] The topological structure obtained in step S3 is converted into a graph relationship, each node is set as a vertex, and the optimization data is stored in a graph database to improve the calculation efficiency. Each vertex is set to realize the optimal parallel optimization calculation of the power loss of the distribution network according to the information transmitted by the adjacent vertices, and the boundary information is updated according to the optimization result;
[0046] S42 reconstructs the power loss of the distribution network in a compact form as follows:
[0047] Where: is the objective function expression, For the The decision variables for each region.
[0048] S43 performs distributed computing on the optimized data of the graph database and introduces the synchronous alternating direction multiplier method into the distribution network reconstruction;
[0049] S44 According to the function The final iterative form of the synchronous alternating direction multiplier method is expressed as:
[0050] Where: , are the Lagrange penalty factor and multiplier respectively. For the The switching power of the area. For the The area in The exchange power of iterations, For the The average exchange power of the iterations.
[0051] S45 is based on the principle of discrete consistency theory. If a Laplace matrix has L non-zero eigenvalues, through L After iterations, the average value of the power exchange of this node is obtained;
[0052] S46 Definition The residual definition at the iteration ,When all the grid areas of the distribution network converge, the distribution network converges and outputs the result of the distribution network reconstruction, is the minimum value of the residual.
[0053] On the other hand, the present invention also provides a distribution network multi-stage topology reconstruction system based on graph computing, the system comprising:
[0054] A partitioning module, used for dividing the distribution network to be reconstructed into a plurality of grid areas by utilizing the space or structure of the distribution network;
[0055] A topology structure setting module is used to obtain different topologies for each power grid area by using a multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method; the multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method includes:
[0056] Loop topology area: all switches of the initial topology of the distribution network are turned off to form a ring loop topology;
[0057] Graph calculation iteration area: Set the number of iterations to be equal to the number of branches in the loop topology. In each iteration, open the switches in the loop topology, calculate the power loss in parallel and distributed manner, and select the switch with the minimum power loss as the tie switch. After the iteration, disconnect all the tie switches to obtain a radial network topology.
[0058] Graph calculation state transition area: The switch pre-classification method is used to obtain the radial network topology to perform state transition of segment switches and tie switches, and parallel distributed calculation is performed to obtain the optimal topology structure and power loss value;
[0059] A graph calculation and judgment module is used to judge whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, and the relevant conditions include: the objective function and inherent constraints of minimizing power loss; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved;
[0060] The training module is used to input each divided distribution network area into the graph computing library, and use the synchronous alternating direction multiplier method to perform graph computing iterative training until the switches in all areas of the distribution network complete the reconstruction process, and finally output the results of the distribution network reconstruction.
[0061] Further, including:
[0062] The implementation steps of the graph calculation iteration area include:
[0063] Step 2-1: Enter the ring loop topology corresponding to the current grid area and find all switches , and initialize the current switch ;
[0064] Step 2-2, open the topology Switches are set, and it is determined whether each node has a path to the substation and whether the inherent constraints are satisfied. If so, it goes to step 2-3. Otherwise, the value of the objective function is set to a large positive value (10 9 );
[0065] Step 2-3: Save the current power loss value and open the A switch;
[0066] Step 2-4: Determine whether the If so, find the minimum power loss value and set the corresponding branch switch to off to form a radial network topology and end; otherwise, go to step 2-2.
[0067] Further, including:
[0068] The specific implementation steps of the graph computing state transition area include:
[0069] S3-1 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes the steps of S2 at the same time to obtain the latest topology structure. Record the segment switches other than types I-III in the current structure as a set , and the segmented switches of type II are the set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop;
[0070] S3-2 pair removal set Open the segment switches outside the network one at a time in sequence, close all other switches at the same time, and execute the graph calculation iteration area, and keep the segment switch always open until a radial network topology is formed, and save the network topology and corresponding power loss value at this time;
[0071] S3-3 pairs of sets The sectionalizing switches in the sectionalizing switch perform an on-off action, wherein each time a sectionalizing switch of type II is opened, a tie switch is closed at the same time to maintain connectivity. Figure 2 When the switches of nodes 5 and 6 are turned on, the tie switch 6-7 needs to be turned off to ensure connectivity;
[0072] S3-4 executes the available on-off action, solves the optimal function of power loss, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work;
[0073] S3-5 pairs All segment switches execute step S3-4;
[0074] S3-6 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches;
[0075] S3-7 repeats steps S3-2 to S3-6 for the segment switches in the annular loop topology.
[0076] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0077] The present invention constructs a distribution network reconstruction technology, which can accurately perform state conversion of section switches and tie switches on the distribution network on the basis of ensuring optimal power loss, and utilizes the principle of graph computing to perform distributed reconstruction of the distribution network, thereby improving computing efficiency and ensuring the safety of the distribution network voltage.
[0078] Compared with the traditional distribution network reconstruction method, the multi-stage topology reconstruction technology of the distribution network based on graph computing in the present invention can reduce power loss. At the same time, this method expands the application of distribution network reconstruction technology in reducing power loss, and can be applied to the fields of reducing power loss in power systems and improving power supply reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 is a flow chart of a multi-stage topology reconstruction technology of a distribution network based on graph computing according to an exemplary embodiment;
[0080] Figure 2 is a schematic diagram of a distribution network structure according to an exemplary embodiment;
[0081] Figure 3 is a schematic diagram of a distribution network based on a graph computing principle according to an exemplary embodiment;
[0082] Figure 4 is a schematic diagram showing convergence of an alternating direction multiplier method based on graph calculation according to an exemplary embodiment;
[0083] Figure 5 is a schematic diagram of voltages at various nodes of a distribution network according to an exemplary embodiment;
[0084] Figure 6 is a power intention of each node in a distribution network shown according to an exemplary embodiment;
[0085] Figure 7 The figure is a flowchart of a graph-based computing according to an exemplary embodiment. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0087] Among them, in this embodiment, 1) the optimal flow mode method includes:
[0088] The optimal flow model method assumes that the distribution network is composed of pure resistance and uses the injected current to represent the load of each node. Thus, the node voltage matrix can be obtained: and the node current matrix The relationship is ,in, is the node admittance matrix. Then the calculation formula of the network loss of the distribution network is: Where: , Node The voltage and current, For Node The voltage, is the number of distribution network nodes.
[0089] Now change the original network Midpoint The switch state is turned on. Assume that the conductance of the branch is , and the remaining conductance is , according to the optimal flow pattern method, when the switch between nodes is turned on, it is equivalent to connecting a conductance in parallel , thus forming a new power network .
[0090] Therefore, the change in power loss before and after the node switching starts can be expressed as:
[0091] The optimal flow pattern method has good convergence when reconfiguring the distribution network, but the solution speed is slow and it is difficult to search for the optimal solution, and the currents affect each other.
[0092] 2) Branch exchange method, including:
[0093] The branch switching method is to change the state of the tie switch and the section switch to transfer the load demand to other nodes, thereby reducing power loss. Each time the tie switch is opened and closed, the active power loss will change. The voltage along the distribution network generally changes little, and the flow of reactive power can be ignored: The branch exchange method can increase feasible solutions in distribution network reconstruction, but it reduces the convergence speed and affects the power flow calculation due to independent topology.
[0094] Therefore, based on the above, the present invention constructs a multi-stage distribution network reconstruction technology, which can accurately and effectively open and close the section switches and tie switches, while taking into account the complex calculation process, aggregating the distribution network area, introducing the basic theory of graph computing, and calculating the optimal power loss of each regional power grid in parallel, protecting the user's privacy information, so as to achieve the optimal distribution network reconstruction. That is:
[0095] 3) Multi-stage distribution network reconstruction based on optimal flow pattern method and branch exchange method
[0096] like Figure 1 As shown, an embodiment of the present invention provides a distribution network multi-stage topology reconstruction technology based on graph computing, which can effectively reduce power loss and minimize costs. At the same time, it greatly improves the solution efficiency by utilizing the graph computing principle. Compared with the traditional distribution network reconstruction technology, the reconstruction technology proposed in the present invention can further reduce the impact of the ring network current and has low requirements on the initial topology structure, while increasing the solution efficiency and privacy. On this basis, the cost of the distribution network is reduced, providing a solution for alleviating the power loss of the distribution network.
[0097] In order to improve the mutual influence of currents in the ring network in the optimal flow mode method and the island effect that is easy to appear at the nodes, and the influence of non-independent topology of the branch exchange method on the flow calculation, the present invention proposes a multi-stage distribution network reconstruction method based on the optimal flow mode method and the branch exchange method, which is divided into three steps.
[0098] The first step is to obtain the initial optimal solution for the optimal power loss. First, all switches in the initial topology of the distribution network are turned off to form a ring loop topology. The number of iterations is set to be equal to the number of branches in the loop topology. Then, in each iteration, the switches in the loop topology are turned on, the power loss is calculated, and the switch with the minimum power loss is selected as the tie switch. After the iteration, all tie switches are disconnected to obtain a radial network topology. The specific steps are as follows:
[0099] The second step is to optimize the radial network topology again, change the segmented switch into a connecting switch, use the first step to obtain a new radial network topology, obtain the power loss of different topological structures, and thus obtain the optimal reconstruction solution.
[0100] To improve the solution efficiency, the switch pre-classification method is used in the second step to exclude the following types of segmented switches:
[0101] Type I: The shortest path from the node to the substation node in the initial network topology is or less than It is composed of 3 sections.
[0102] Type II: The shortest path from the node to the substation node in the initial network topology is or less than It is composed of 3 sections.
[0103] Type III: Sectional switch not in the switch closed loop.
[0104] Because the state of the node from type I to the substation node is relatively easy to determine, the section switch of type I can be excluded in advance. In order to avoid the island effect, the section switch of type II does not change its state, and the section switch of type III cannot change its state either.
[0105] Step 3: After the switch pre-classification in step 2, the sectional switches except for types I, II, and III are opened in step 1 to obtain the corresponding power loss and obtain the minimum power loss. Then, in order to include the sectional switches of type II, the present invention uses a simultaneous opening-closing method, that is, each time a sectional switch of type II is opened, a tie switch is closed at the same time.
[0106] Specifically, in this embodiment, the method mainly includes the following steps:
[0107] A distribution network reconstruction method based on the optimal flow pattern method and branch exchange method is proposed;
[0108] Constructing a multi-stage reconstruction model of distribution network with optimal power loss model;
[0109] A multi-stage reconstruction calculation method for distribution network based on graph computing is proposed;
[0110] The optimal power loss model is solved and the distribution network reconstruction technology is obtained.
[0111] As a possible implementation of this embodiment, this embodiment provides a multi-stage topology reconstruction method for a distribution network based on graph computing, and the method specifically includes the following steps:
[0112] S1 divides the distribution network to be reconstructed into multiple grid areas by utilizing the space or structure of the distribution network;
[0113] In order to improve the efficiency of the distribution network reconstruction, the present invention reconstructs the distribution network after dividing it into a plurality of regional power grids by utilizing indicators such as the space or structure of the distribution network.
[0114] S2 uses a multi-stage reconstruction method based on the improved optimal flow pattern method and branch exchange method to obtain different topological structures and related power loss values for each power grid area.
[0115] The multi-stage reconstruction method based on the improved optimal flow mode method and branch exchange method comprises the following steps:
[0116] S21 turns off all switches of the initial topology of the distribution network to form a ring loop topology structure;
[0117] S22 sets the number of iterations to be equal to the number of branches in the loop topology. In each iteration, the switches in the loop topology are turned on to calculate the power loss in parallel and distributed manner. The switch with the minimum power loss is selected as the tie switch. After the iteration is completed, all the tie switches are disconnected to obtain a radial network topology.
[0118] S23 uses a switch pre-classification method to obtain a radial network topology and performs state conversion of segment switches and tie switches, thereby obtaining an optimal topology structure and power loss value.
[0119] Furthermore, in this embodiment, step S22 specifically includes:
[0120] S221 inputs the ring loop topology corresponding to the current power grid area and finds all switches , and initialize the current switch ;
[0121] S222 Open the first A switch is set, and it is determined whether each node has a path to the substation and whether the inherent constraints are satisfied. If so, the process proceeds to step S223. Otherwise, the value of the objective function is set to a large positive value (10 9 );
[0122] S223 saves the current power loss value and opens the A switch;
[0123] S224 determines whether If so, find the minimum power loss value and set the corresponding branch switch to off to form a radial network topology and end; otherwise, go to step S222.
[0124] Furthermore, in this embodiment, step S23 specifically includes:
[0125] S231 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes the steps of S2 at the same time to obtain the latest topology structure. Record the segment switches other than types I-III in the current structure as a set , and the segmented switches of type II are the set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop;
[0126] S232 Remove the set The segment switches outside the network are opened one at a time in sequence, and all other switches are closed at the same time, and the step flow of step S22 is executed, and the segment switch is kept open all the time until a radial network topology is formed, and the network topology and the corresponding power loss value at this time are saved;
[0127] S233 pair set The sectionalizing switches in the sectionalizing switch perform an on-off action, wherein each time a sectionalizing switch of type II is opened, a tie switch is closed at the same time to maintain connectivity. Figure 2 When the switches of nodes 5 and 6 are turned on, the tie switch 6-7 needs to be turned off to ensure connectivity;
[0128] S234 executes the available on-off action, solves the optimal function of power loss, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work;
[0129] S235 pair set All segment switches execute step S234;
[0130] S236 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches;
[0131] S237 repeats steps S232-S236 for the segment switches in the annular loop topology.
[0132] S3 determines whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, and the relevant conditions include: the objective function and inherent constraints of minimizing power loss; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved.
[0133] As a possible implementation of this embodiment, the process of constructing a distribution network multi-stage reconstruction model of an optimal power loss model is as follows:
[0134] The safe and economical operation of the distribution network is related to many parameters, and the network loss of the distribution network accounts for a large proportion of the network loss of the entire power system. For this reason, the present invention takes the minimum power loss as the objective function:
[0135] Where: , , Slave nodes To Node The active power and reactive power of the node With Node The branch resistance between , , The nodes are Voltage, number of load nodes, and optimization time.
[0136] In order to ensure the safe and stable operation of the distribution network, certain inherent constraints need to be met, mainly including equality constraints and inequality constraints.
[0137] (1) Power flow constraints Where: Formula (11a) represents the active power balance of the node, which is the premise for ensuring the stability of the distribution network frequency. , Node The active power and voltage, , They are Row and The real and imaginary parts of the admittance matrix of the column, is the set of all branches. Formula (11b) represents the reactive power balance of the node, which is the premise for ensuring the voltage stability of the distribution network. Is a node The reactive power of the node. Formula (11c) is and nodes The maximum transmission capacity limit between is the maximum apparent power.
[0138] (2) Distribution network current, voltage, and micro-turbine constraints:
[0139] Where: (12a) is the voltage constraint of the distribution network, which ensures the safe operation of the distribution network and power-consuming equipment. For Node The voltage, , For Node (12b) is the voltage upper and lower limits of the node To Node Branch current constraints ensure line safety. For Node To Node The branch current, , are the upper and lower limits of branch current. (12c) is the active power output constraint of the micro-turbine, For Node The active power of the micro-turbine, , For Node The upper and lower limits of the active power of the micro-turbine. (12d) is the reactive power output constraint of the micro-turbine. For Node The reactive power of the micro-turbine is , For Node The upper and lower limits of the reactive power of the micro turbine.
[0140] (3) Distribution network topology constraints
[0141] In the process of distribution network reconstruction, the radiation and connectivity constraints need to be met, which can be specifically expressed as:
[0142] Where: is the number of branches, For Node To substation node distance.
[0143] S4 iteratively calculates the corresponding topological structure in each power grid area using a graph computing method, and the distribution network reconstruction is terminated when the convergence condition of parallel distributed computing is met.
[0144] As a possible implementation of this embodiment, the process of proposing a distribution network multi-stage reconstruction calculation method based on graph calculation is as follows:
[0145] Traditional centralized computing methods have low security, poor privacy protection, and high communication costs. To this end, the present invention introduces graph computing to perform distribution network reconstruction calculations. Graph computing uses the principles of graph theory to describe the nodes and edges of the distribution network in the form of a matrix. Nodes are connected through edges, and communication information is exchanged through edges.
[0146] The distribution network is composed of nodes and branches. There are branches between nodes to connect and transmit information. The nodes and branches of the distribution network can form the basic concept of graph computing. Using the basic principles of graph computing, first, the structure of the distribution network is converted into a graph relationship, each node is set as a vertex, and the optimization data is stored in the graph database for parallel computing to improve computing efficiency. Each vertex is set to realize the optimal parallel optimization calculation of the power loss of the distribution network according to the information transmitted by the adjacent vertices, and the boundary information is updated according to the optimization results, such as Figure 7 shown.
[0147] The main steps include:
[0148] The present invention further derives a graph calculation method for distribution network reconstruction based on graph theory, and compactly expresses the power loss of distribution network reconstruction as follows:
[0149]
[0150] Where: is the objective function expression, For the The decision variables for each region.
[0151] The alternating direction multiplier method is introduced into graph calculation, and a graph calculation method for distribution network reconstruction based on the alternating direction multiplier method is derived.
[0152] First, define the auxiliary function, the node indication function:
[0153]
[0154] Where: For Node The state vector of .
[0155] Using the alternating direction multiplier method, formula (13) is transformed into:
[0156]
[0157] Then transform formula (15) into Lagrangian function:
[0158] Where: is the Lagrange multiplier vector, is the penalty factor.
[0159] In order to perform distributed computing on the optimized data of the graph database, the synchronous alternating direction multiplier method is introduced into the distribution network reconstruction, and formula (16) is transformed into:
[0160]
[0161] Where: , are the Lagrange penalty factor and multiplier respectively. For the The switching power of the area. For the The area in The exchange power of each iteration.
[0162] Finally, according to the function The final iterative form of the synchronous alternating direction multiplier method is:
[0163]
[0164] Where: For the The average exchange power of the iterations.
[0165] In order to establish a fully distributed graph computing, graph theory is introduced. The present invention describes the distribution network nodes as an undirected graph. Each node in the distribution network is a point in the undirected graph, and the branches are edges. In summary, the Laplace matrix of the distribution network is described as:
[0166]
[0167] Where: , are the adjacency matrix and degree matrix respectively. , Respectively with the node The set of connected nodes and the number of nodes in that set.
[0168] Based on the principle of discrete consistency theory, if a Laplace matrix has non-zero eigenvalues, through After iterations, the average value of the power exchange of this node can be obtained:
[0169]
[0170] Where: Is a node exist Updated value after iterations. , For the The weight factor for the iteration. is the first non-zero eigenvalues.
[0171] Further, define The residual definition at the iteration ,When all areas of the distribution network converge ,the distribution network converges, and the result of distribution network reconstruction is output.
[0172] In summary, the multi-stage topology reconstruction model of the distribution network based on graph computing proposed in the present invention is composed of equations (11)-(21). By solving the mathematical model, the security of the distribution network can be improved while ensuring the economic efficiency of the distribution network operation. At the same time, since the distribution network reconstruction technology proposed in the present invention is based on graph computing, and graph computing technology is a new parallel computing method, it can improve computing efficiency and protect user privacy, and reduce communication costs.
[0173] In this embodiment, the process of solving the optimal power loss model and obtaining the distribution network reconstruction technology is: solving with an error of 0.01% using the Gurobi solver.
[0174] The following is an example to illustrate the multi-stage topology reconstruction method of the distribution network based on graph computing of the present invention. Figure 2This is a schematic diagram of the IEEE-33 node structure of the distribution network, which includes 33 nodes and 37 branches, of which 5 branches are tie switches and the rest are section switches. The distribution network is divided into multiple regional power grids using indicators such as space or structure. Its base voltage is 12.66 kV, and the upper and lower limits of the voltage are set to 1.06 pu and 0.94 pu respectively. The cost coefficient of micro-turbine power generation is shown in Table 1, where a, b, c All of them are the micro-turbine cost coefficients that come with the IEEE node. At the same time, according to the principle of graph calculation, graph theory is introduced to transform the 33-node structure of the power distribution into a schematic diagram of graph calculation, such as Figure 3 shown.
[0175] Table 1 Cost coefficient of micro-turbine power generation
[0176]
[0177] In the multi-stage topology reconstruction method proposed in the present invention, the segment switches and tie switches are opened and closed in three stages, and a new network topology and optimal power loss are obtained in each stage. By performing simulation tests on IEEE-33 nodes, four different test scenarios are set, namely:
[0178] Case 1: No topology reconstruction is considered.
[0179] Case 2: Only the first stage of multi-stage topology reconstruction is considered (based on the optimal flow pattern method).
[0180] Case 3: Only the first and third phases of multi-phase topology reconstruction are considered.
[0181] Case 4: The multi-stage topology reconstruction method proposed in the present invention.
[0182] The power loss in different scenarios is shown in Table 2. It can be seen from Table 2 that in the IEEE-33 node, the power loss obtained in case 2-4 is the same. This is because the first step of the reconstruction method of the IEEE-33 node has already obtained the optimal topology and the optimal power loss. The power loss of the method without considering the distribution network reconstruction method is 62.556% higher than that of the method proposed in the present invention.
[0183] Table 2 Power loss in different scenarios
[0184]
[0185] At the same time, the topology reconstruction method of the present invention is carried out under the condition of satisfying voltage constraints. Figure 5 It can be seen that at each node and at each time, the distribution network reconstruction method proposed in the present invention satisfies the voltage constraints of 1.06pu and 0.94pu. The active power obtained by the present invention is as follows Figure 6 shown.
[0186] Finally from Figure 4 It can be obtained that the graph calculation method based on the synchronous alternating direction multiplier method of the present invention can ensure convergence within 40 times, has good convergence, and ensures the effectiveness of the present invention.
[0187] On the other hand, the present invention also provides a distribution network multi-stage topology reconstruction system based on graph computing, the system comprising:
[0188] A partitioning module, used for dividing the distribution network to be reconstructed into a plurality of grid areas by utilizing the space or structure of the distribution network;
[0189] A topology structure setting module is used to obtain different topologies for each power grid area by using a multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method; the multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method includes:
[0190] Loop topology area: all switches of the initial topology of the distribution network are turned off to form a ring loop topology;
[0191] Graph calculation iteration area: Set the number of iterations to be equal to the number of branches in the loop topology. In each iteration, open the switches in the loop topology, calculate the power loss in parallel and distributed manner, and select the switch with the minimum power loss as the tie switch. After the iteration, disconnect all the tie switches to obtain a radial network topology.
[0192] Graph calculation state transition area: The switch pre-classification method is used to obtain the radial network topology to perform state transition of segment switches and tie switches, and parallel distributed calculation is performed to obtain the optimal topology structure and power loss value;
[0193] The graph calculation judgment module is used for parallel calculation to judge whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, and the relevant conditions include: the objective function and inherent constraints of minimizing power loss; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved; further, including:
[0194] The implementation steps of the graph calculation iteration area include:
[0195] Step 2-1: Enter the ring loop topology corresponding to the current grid area and find all switches , and initialize the current switch ;
[0196] Step 2-2, open the topology Switches are set, and it is determined whether each node has a path to the substation and whether the inherent constraints are satisfied. If so, it goes to step 2-3. Otherwise, the value of the objective function is set to a large positive value (10 9 );
[0197] Step 2-3: Save the current power loss value after parallel distributed calculation and open the A switch;
[0198] Step 2-4: Determine whether the If so, find the minimum power loss value and set the corresponding branch switch to off to form a radial network topology and end; otherwise, go to step 2-2.
[0199] Further, including:
[0200] The specific implementation steps of the graph computing state transition area include:
[0201] S3-1 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes the steps of S2 at the same time to obtain the latest topology structure. Record the segment switches other than types I-III in the current structure as a set , and the segmented switches of type II are the set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop;
[0202] S3-2 pair removal set Open the segment switches outside the network one at a time in sequence, close all other switches at the same time, and execute the graph calculation iteration area, and keep the segment switch always open until a radial network topology is formed, and save the network topology and corresponding power loss value at this time;
[0203] S3-3 pairs of sets The sectionalizers in the circuit breaker perform an on-off action, wherein each time a sectionalizer of type II is opened, a tie switch is closed at the same time to maintain connectivity. Figure 2 When the switches of nodes 5 and 6 are turned on, the tie switch 6-7 needs to be turned off to ensure connectivity;
[0204] S3-4 executes the available on-off action, solves the power loss optimal function through parallel distributed computing, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work;
[0205] S3-5 pairs All segment switches execute step S3-4;
[0206] S3-6 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches;
[0207] S3-7 repeats steps S3-2 to S3-6 for the segment switches in the annular loop topology.
[0208] The other technical details and methods corresponding to this system are the same and will not be repeated in this specification.
[0209] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0210] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0211] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A multi-stage topology reconstruction method for distribution network based on graph computing, characterized in that: The method comprises the following steps: S1 divides the distribution network to be reconstructed into multiple grid areas by utilizing the space or structure of the distribution network; S2 adopts a multi-stage reconstruction method based on an improved optimal flow mode method and a branch exchange method for each power grid area to obtain different topological structures and related power loss values; the multi-stage reconstruction method based on the improved optimal flow mode method and the branch exchange method includes the following steps: S21 turns off all switches of the initial topology of the distribution network to form a ring loop topology structure; S22 sets the number of iterations to be equal to the number of branches in the loop topology. In each iteration, the switches in the loop topology are opened, and the power loss is calculated. The switch with the minimum power loss is selected as the tie switch. After the iteration is completed, all the tie switches are disconnected to obtain a radial network topology. S23 uses a switch pre-classification method to obtain the radial network topology, and performs state conversion of segment switches and tie switches, and obtains the optimal topology structure and power loss value through parallel distributed calculation; The step S23 specifically includes: S231 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes step S2 at the same time to obtain the latest topology structure, and records the segment switches other than types I-III in the current structure as a set And the segment switch of type II is a set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop; S232 Remove the set The segment switches outside the network are opened one at a time in sequence, and all other switches are closed at the same time, and the step flow of step S22 is executed, and the segment switch is kept open all the time until a radial network topology is formed, and the network topology and corresponding power loss value at this time are saved; S233 pair set The sectionalizing switches in the device perform an on-off action, wherein each time a sectionalizing switch of type II is opened, a tie switch is closed at the same time to maintain connectivity; S234 executes the available on-off action, solves the optimal function of power loss, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work; S235 pair set All segment switches execute step S234; S236 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches; S237 repeats steps S232-S236 for the segment switches in the annular loop topology structure; S3 determines whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, wherein the relevant conditions include: the objective function of minimizing power loss and the inherent constraint; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved; S4 inputs each divided distribution network area into the graph computing library, and uses the synchronous alternating direction multiplier method to perform graph computing iterative training until the switches in all areas of the distribution network complete the reconstruction process, and finally outputs the results of the distribution network reconstruction.
2. The method for multi-stage topology reconstruction of distribution network based on graph computing according to claim 1 is characterized in that: Step S22 specifically includes: S221 inputs the ring loop topology corresponding to the current power grid area and finds all switches K , and initialize the current switch k ; S222 Open the first k A switch is set, and it is determined whether each node has a path to the substation and whether the inherent constraints are satisfied. If so, the process proceeds to step S223. Otherwise, the value of the objective function is set to a large positive value. S223 saves the current power loss value and opens the k +1 switch; S224 determines whether If so, find the minimum power loss value and set the corresponding branch switch to off to form a radial network topology and end; otherwise, go to step S222.
3. The method for multi-stage topology reconstruction of distribution network based on graph computing according to claim 1 is characterized in that: In step S3, the objective function of minimizing power loss is expressed as: (1) in: , , Slave nodes To Node The active power and reactive power of the node With Node The branch resistance between , The nodes are The voltage and number of load nodes.
4. The method for multi-stage topology reconstruction of distribution network based on graph computing according to claim 3 is characterized in that: In step S3, the inherent constraints include: The power flow constraint is expressed as: Among them, formula (2a) represents the active power balance of the node, which is the premise for ensuring the stability of the distribution network frequency. , Node The active power and voltage, , They are Row and The real and imaginary parts of the admittance matrix of the column, is the set of all branches. Formula (2b) represents the reactive power balance of the node, which is the premise for ensuring the voltage stability of the distribution network. Is a node The reactive power of the node is and nodes The maximum transmission capacity limit between is the maximum apparent power; Distribution network current, voltage, and micro-turbine constraints Where: (3a) is the voltage constraint of the distribution network, which ensures the safe operation of the distribution network and power equipment. For Node The voltage, , For Node The voltage upper and lower limits of the node To Node Branch current constraints ensure line safety. For Node To Node The branch current, , are the upper and lower limits of branch current, (3c) is the active power output constraint of the micro-turbine, For Node The active power of the micro-turbine, , For Node The upper and lower limits of the active power of the micro-turbine, (3d) is the reactive power output constraint of the micro-turbine, For Node The reactive power of the micro-turbine is , For Node The upper and lower limits of the reactive power of the micro turbine.
5. The method for multi-stage topology reconstruction of distribution network based on graph computing according to claim 4 is characterized in that: In the process of distribution network reconstruction, the radiation and connectivity constraints need to be met. The distribution network topology constraints are specifically expressed as: Where: is the number of branches, For Node To substation node distance.
6. The method for multi-stage topology reconstruction of distribution network based on graph computing according to claim 5 is characterized in that: The step S4 specifically includes: S41 uses the principles of graph theory to describe the nodes and edges of the distribution network in the form of a matrix. The nodes are connected through edges, and communication information is exchanged through the edges. The distribution network is composed of nodes and branches. There are branches between nodes to connect and transmit information. The nodes and branches of the distribution network form the basic concept of graph computing. Using the basic principles of graph computing, first, the structure of the distribution network is converted into a graph relationship, each node is set as a vertex, and the optimization data is stored in the graph database for parallel computing to improve computing efficiency; each vertex is set to realize the optimal parallel optimization calculation of the power loss of the distribution network according to the information transmitted by the adjacent vertices, and the boundary information is updated according to the optimization results; The topological structure obtained in step S3 is converted into a graph theory relationship, each node is set as a vertex, and the optimization data is stored in a graph database to improve the calculation efficiency. Each vertex is set to realize the optimal parallel optimization calculation of the power loss of the distribution network according to the information transmitted by the adjacent vertices, and the boundary information is updated according to the optimization result; S42 reconstructs the power loss of the distribution network in a compact form as follows: Where: is the objective function expression, For the S43 performs distributed computing on the optimization data of the graph database and introduces the synchronous alternating direction multiplier method into the distribution network reconstruction; S44 According to the function The final iterative form of the synchronous alternating direction multiplier method is expressed as: Where: , are the Lagrange penalty factor and multiplier, respectively, For the The switching power of each area, For the The area in The exchange power of iterations, For the The average exchange power of iterations; S45 is based on the principle of discrete consistency theory. If a Laplace matrix has L non-zero eigenvalues, through L After iterations, the average value of the power exchange of this node is obtained; S46 Definition The residual definition at the iteration ,When all grid areas of the distribution network converge ,the distribution network converges, and the result of the distribution network reconstruction is output.
7. A multi-stage topology reconstruction system for distribution network based on graph computing, characterized in that: The system includes: A partitioning module, used for dividing the distribution network to be reconstructed into a plurality of grid areas by utilizing the space or structure of the distribution network; A topology structure setting module is used to obtain different topologies for each power grid area by using a multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method; the multi-stage reconstruction unit based on an improved optimal flow mode method and a branch exchange method includes: Loop topology area: all switches of the initial topology of the distribution network are turned off to form a ring loop topology; Graph calculation iteration area: Set the number of iterations to be equal to the number of branches in the loop topology. In each iteration, open the switches in the loop topology, calculate the power loss in parallel and distributed manner, and select the switch with the minimum power loss as the tie switch. After the iteration, disconnect all the tie switches to obtain a radial network topology. Graph calculation state transition area: The switch pre-classification method is used to obtain the radial network topology to perform state transition of segment switches and tie switches, and parallel distributed calculation is performed to obtain the optimal topology structure and power loss value; The specific implementation steps of the graph computing state transition area include: S3-1 inputs the ring loop topology structure, changes all the segment switches to tie switches, and executes step S2 at the same time to obtain the latest topology structure, and records the segment switches other than types I-III in the current structure as a set , and the segmented switches of type II are the set , the type I is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type II is the shortest path from the current node to the substation node in the ring loop topology structure. or less than Type III is a sectional switch that is not in the switch closed loop; S3-2 pair removal set Open the segment switches outside the network one at a time in sequence, close all other switches at the same time, and execute the graph calculation iteration area, and keep the segment switch always open until a radial network topology is formed, and save the network topology and corresponding power loss value at this time; S3-3 pairs of sets The sectionalizing switches in the device perform an on-off action, wherein each time a sectionalizing switch of type II is opened, a tie switch is closed at the same time to maintain connectivity; S3-4 executes the available on-off action, solves the optimal function of power loss, records the topology structure and power loss value after the action, determines whether the action reduces the power loss, and if so, saves the work; S3-5 pairs All segment switches execute step S3-4; S3-6 saves different topological structures and related power loss values, and at the same time, closes the opened segment switches; S3-7 repeats steps S3-2 to S3-6 for the segment switches in the annular loop topology; A graph calculation and judgment module is used to judge whether each topological structure and the corresponding power loss value meet the relevant conditions of the distribution network reconstruction model, and the relevant conditions include: the objective function and inherent constraints of minimizing power loss; if not, the corresponding topological structure is no longer considered; if satisfied, the corresponding topological structure in each power grid area is saved; The training module is used to input each divided distribution network area into the graph computing library, and use the synchronous alternating direction multiplier method to perform graph computing iterative training until the switches in all areas of the distribution network complete the reconstruction process, and finally output the results of the distribution network reconstruction.
8. The distribution network multi-stage topology reconstruction system based on graph computing according to claim 7 is characterized in that: The implementation steps of the graph calculation iteration area include: Step 2-1: Enter the ring loop topology corresponding to the current grid area and find all switches K , and initialize the current switch k ; Step 2-2, open the topology k A switch is used to determine whether connectivity and inherent constraints are satisfied. If yes, the process goes to step 2-3. Otherwise, the value of the objective function is set to a large positive value. Step 2-3: Save the current power loss value and open the k +1 switch; Step 2-4: Determine whether the If so, use the graph to calculate and find the minimum power loss value, and set the corresponding branch switch to disconnect, forming a radial network topology and ending; otherwise, go to step 2-2.
