Power distribution network typical fault scene prevention method, device, equipment and medium
By obtaining fault scenario samples, calculating the current flow tracking matrix and clustering typical fault scenarios, the problem of not being able to accurately reflect the power grid topology in the existing technology is solved, more effective pre-disaster prevention measures are achieved, and the amount of loss after failure is reduced. .
Patent Information
- Application Number
- CN202411191058.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-15
AI Technical Summary
In pre-disaster prevention, the existing technology cannot accurately and effectively reflect the internal topology of the power grid after the disaster, resulting in huge differences in the internal line failures of the power grid under the same amount of loss or node loss, and accurate disasters cannot be achieved. Prevention before.
By obtaining multiple fault scenario samples, the distribution network change information with the smallest fault loss under the second-order cone planning constraints is calculated, the current tracking matrix is calculated, typical fault scenarios are clustered, and the cost function of typical fault scenarios is used for weighted superposition, and the cost function of typical fault scenarios is used to obtain The prevention strategy objective function is used, and the optimal solution is solved under the conditions of preventive measures and second-order cone planning constraints, and the lines and emergency power nodes to be reinforced are determined.
By tracking the clustering method of the trend matrix, the identification of typical fault scenarios can be effectively and accurately achieved, and pre-disaster prevention can be carried out more effectively and the amount of loss after the fault is reduced.
Smart Images

Figure CN118970948A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fault prevention technology, and in particular to a method, device, equipment and medium for preventing typical fault scenarios in a distribution network. Background Art
[0002] As power grid lines are continuously laid, the diversity of the environment in which they are located is increasing. Environmental impacts such as hail, typhoons and rainstorms pose huge challenges to the long-term safe and normal operation of the power grid, and power grid failures occur from time to time. Since natural disasters are predictable to a certain extent, before natural disasters occur, corresponding response measures can be taken, such as reinforcing key lines and deploying emergency power supply vehicles in advance, which can effectively reduce the damage to the power system caused by disasters and reduce the power loss caused by disaster failures.
[0003] Disasters can cause various failures in power systems. Under the influence of disasters, different lines and towers fail with different probabilities. Therefore, the possible failure scenarios are diverse and the final failure scenario is uncertain. The number of failure scenarios increases exponentially with the increase of lines. It is unrealistic to formulate prevention strategies for all possible failure scenarios at the same time.
[0004] To this end, the pre-disaster prevention of power grids usually adopts a method based on stochastic planning of typical fault scenarios. For example, in the prior art, a large number of possible fault sets are usually generated, and then the "total load loss" or "node load loss matrix" is used as an indicator to measure the distance between different scenarios, so as to achieve fault scenario clustering, generate a typical fault scenario set, and finally carry out pre-disaster prevention planning for typical fault scenarios. However, the indicators used in the above methods can only reflect the severity of the fault, and cannot reflect the topology of the power grid after the disaster. Under the same load loss or node load loss, the line fault conditions within the power grid may be very different, and it is impossible to accurately and effectively achieve pre-disaster prevention. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for preventing typical fault scenarios in distribution networks, which solves the technical problem that the indicators used in the prior art can only reflect the severity of the fault but cannot reflect the topological conditions within the power grid after the disaster. Under the same load loss or node load loss conditions, the line fault conditions within the power grid may vary greatly, making it impossible to accurately and effectively achieve pre-disaster prevention.
[0006] A first aspect of the present invention provides a method for preventing typical fault scenarios in a distribution network, comprising:
[0007] Obtain multiple fault scenario samples;
[0008] Substituting each of the fault scenario samples into a preset scenario cost function in turn, and respectively calculating the distribution network change information with the minimum fault loss under the constraints of the second-order cone programming;
[0009] Calculate the power flow tracking matrix corresponding to each of the fault scenario samples according to the distribution network change information;
[0010] Clustering the fault scenario samples according to each of the power flow tracking matrices to determine multiple typical fault scenarios;
[0011] The scenario cost functions of the typical failure scenarios are weighted and superimposed to obtain the prevention strategy objective function;
[0012] The optimal solution of the objective function of the prevention strategy under the constraints of the prevention measures and the constraints of the second-order cone programming is calculated to obtain the prevention measures strategy for each of the typical fault scenarios.
[0013] Optionally, the distribution network includes a plurality of distribution network lines, and the distribution network lines intersect to form a node; and obtaining a plurality of fault scenario samples includes:
[0014] Obtaining historical fault data corresponding to each of the distribution network lines;
[0015] Calculating the line failure probability of the distribution network line when a disaster occurs according to the historical fault data;
[0016] Creating an initial matrix according to the number of distribution network lines and the preset number of samples;
[0017] According to the comparison result between the line fault probability and each matrix element in the initial matrix, each column of the matrix elements is determined as a fault scenario sample.
[0018] Optionally, the scene cost function is:
[0019]
[0020] in, The cost of purchasing electricity, is the load loss cost, is the output cost of distributed power generation, To determine the price of electricity purchased from the upper grid. To purchase electricity from the upper power grid, is the power demand of node m during normal operation of the distribution network, is the power that can be supplied to node m when a fault occurs, For the The unit output cost of a distributed power source is For the The power output of a distributed power source, is the number of nodes in the distribution network, is the number of distributed generation in the distribution network.
[0021] Optionally, the second-order cone programming constraints include power flow constraints, load node constraints, line operation constraints, distributed power generation output constraints and grid topology constraints.
[0022] Optionally, the power flow tracking matrix is:
[0023]
[0024] For the The power flow tracking matrix of the fault scenario samples, For the The active output diagonal matrix of the powered nodes for the fault scenario samples is: For the The downstream allocation matrix of the fault scenario samples.
[0025] Optionally, the scenario cost functions of the typical fault scenarios are weightedly superimposed to obtain a prevention strategy objective function, including:
[0026] Determine the number of scenarios included in each of the typical fault scenarios as the corresponding scenario weight;
[0027] The scenario cost functions of the typical fault scenarios are weightedly superimposed according to the weights of the scenarios, with the minimum superposition value as the goal, to obtain the prevention strategy objective function.
[0028] Optionally, the calculating the optimal solution of the objective function of the prevention strategy under the constraints of the prevention measures and the constraints of the second-order cone programming to obtain the prevention measures strategy for each of the typical fault scenarios includes:
[0029] The output value of the objective function of the prevention strategy is minimized as the goal, and the optimal solution under the constraints of the prevention measures and the constraints of the second-order cone programming is calculated;
[0030] Determine the distribution network lines to be reinforced and the emergency power supply nodes to be arranged according to the optimal solution;
[0031] The precautionary constraints are:
[0032]
[0033] in, is a variable representing the disconnection of line ij in a typical fault scenario. It means that line ij is operating normally. It means that line ij is disconnected. is a 0-1 variable indicating whether the line is reinforced or not. If the line is reinforced, If you do not choose to reinforce the line, then , is a 0-1 variable indicating whether the line is disconnected due to a disaster in a typical fault scenario. If it is not disconnected due to a fault, , Represents a collection of typical failure scenarios, To reinforce the upper limit of the number of lines, The lines representing typical fault scenarios are affected by the reinforced lines. is the active power output of the emergency power supply of the ith node in scenario h, is the reactive power output of the emergency power supply of the ith node in scenario h, is the power factor of the emergency power supply, A 0-1 variable indicating whether to select node i as the layout point of the emergency power supply. It is the maximum active output limit of the emergency power supply.
[0034] A second aspect of the present invention provides a typical fault scenario prevention device for a distribution network, comprising:
[0035] A sample acquisition module is used to acquire multiple fault scenario samples;
[0036] A distribution network change calculation module, used to sequentially substitute each of the fault scenario samples into a preset scenario cost function, and respectively calculate the distribution network change information with the minimum fault loss under the constraints of the second-order cone programming;
[0037] A power flow tracking matrix calculation module, used to calculate the power flow tracking matrix corresponding to each of the fault scenario samples according to the distribution network change information;
[0038] A scenario clustering module, used to cluster the fault scenario samples according to each of the power flow tracking matrices to determine multiple typical fault scenarios;
[0039] A function construction module, used to perform weighted superposition of the scenario cost functions of the typical failure scenarios to obtain a prevention strategy objective function;
[0040] The wording determination module is used to calculate the optimal solution of the prevention strategy objective function under the prevention measure constraints and the second-order cone programming constraints, and obtain the prevention measure strategy for each of the typical fault scenarios.
[0041] A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for preventing typical fault scenarios in a distribution network as described in any one of the first aspect of the present invention.
[0042] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the method for preventing typical fault scenarios in a distribution network as described in any one of the first aspects of the present invention is implemented.
[0043] It can be seen from the above technical solutions that the present invention has the following advantages:
[0044] The present invention obtains multiple fault scenario samples; sequentially substitutes each fault scenario sample into a preset scenario cost function, and respectively calculates the distribution network change information with the minimum fault loss under the second-order cone programming constraint; calculates the power flow tracking matrix corresponding to each fault scenario sample according to the distribution network change information; clusters the fault scenario samples according to each power flow tracking matrix to determine a variety of typical fault scenarios; uses the scenario cost function to which each typical fault scenario belongs for weighted superposition to obtain the prevention strategy objective function; calculates the optimal solution of the prevention strategy objective function under the preventive measures constraint and the second-order cone programming constraint, and obtains the preventive measures strategy for each typical fault scenario. Thus, by tracking the clustering of the power flow matrix, the clustering of typical fault scenarios can be effectively and accurately achieved, and pre-disaster prevention can be more effectively performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 A flowchart of a typical fault scenario prevention method for a distribution network provided by an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of the normal operating state of the lines and nodes of the power distribution network in an embodiment of the present invention;
[0048] Figure 3 A flowchart of a typical fault scenario prevention method for a distribution network provided by an embodiment of the present invention;
[0049] Figure 4 A bar graph of load loss in multiple fault scenarios without taking preventive measures in an embodiment of the present invention;
[0050] Figure 5 A bar chart of load loss after taking preventive measures under different clustering indicators for multiple typical fault scenarios in an embodiment of the present invention;
[0051] Figure 6 A structural block diagram of a typical fault scenario prevention device for a distribution network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The embodiments of the present invention provide a method, device, equipment and medium for preventing typical fault scenarios in distribution networks, which are used to solve the problem that the indicators used in the prior art can only reflect the severity of the fault but cannot reflect the topological conditions within the power grid after the disaster. Under the conditions of the same load loss or node load loss, the line fault conditions within the power grid may vary greatly, making it impossible to accurately and effectively achieve pre-disaster prevention.
[0053] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below 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.
[0054] See also Figure 1 , Figure 1 A flowchart of the steps of a method for preventing typical failure scenarios in a distribution network provided by an embodiment of the present invention.
[0055] The present invention provides a method for preventing typical fault scenarios in a distribution network, comprising:
[0056] Step 101, obtaining multiple fault scenario samples;
[0057] Fault scenario samples refer to sample data used to characterize the fault conditions of various distribution network lines and their nodes when different disasters occur. They are generated in the form of Monte Carlo simulation. Any column element in the matrix. Among them, m is the number of lines in the distribution network in a certain area, n is the preset number of samples, and the matrix elements are randomly generated numbers between 0 and 1. If the matrix element is greater than the line failure probability, it is determined that the line has not failed in this scenario, otherwise it has failed in this scenario.
[0058] In an embodiment of the present invention, since the number of distribution network line faults in historical data is small and the types are relatively single, in order to more comprehensively consider the disaster resistance of the distribution network lines, the probability of power grid line failure after the disaster occurs can be calculated based on historical data or disaster levels, and multiple fault scenario samples can be constructed in combination with Monte Carlo simulation to obtain the clustering data basis for subsequent typical fault scenarios.
[0059] In one example of the present invention, the distribution network includes a plurality of distribution network lines, and the distribution network lines intersect to form a node; step 101 may include the following sub-steps:
[0060] Obtain historical fault data corresponding to each distribution network line;
[0061] Calculate the probability of line failure of the distribution network when a disaster occurs based on historical fault data;
[0062] Create an initial matrix according to the number of distribution network lines and the preset number of samples;
[0063] According to the comparison result between the line fault probability and each matrix element in the initial matrix, each column of the matrix element is determined as a fault scenario sample.
[0064] Historical fault data refers to information such as regional meteorological forecast data, historical natural disaster data, historical damage data of key equipment, and real-time energy flow of equipment before an extreme disaster occurs.
[0065] After obtaining the historical fault data, the line failure probability under the disaster type is calculated according to the disaster type to which the historical fault data belongs. Taking the interruption of the distribution network in a typhoon disaster as an example, for an independent pole, its failure probability at any time can be modeled as an exponential function. The interruption probability of the transmission line is shown in the following formula.
[0066]
[0067] In the formula For distribution poles The probability of outage at time t; is the predicted wind speed of the distribution system at time t; For traffic roads The amount of water accumulation; and are the optimal regression coefficients defined according to the historical failure probability.
[0068] Assuming that the damage to each pole is independent, the probability of interruption of any distribution line at time t is as follows:
[0069]
[0070] In the formula, is the interruption probability of transmission line ij at time t; is the set of all poles along the transmission line ij.
[0071] After obtaining the line failure probabilities corresponding to multiple different disaster scenarios, an initial matrix with matrix elements of 0-1 randomly generated numbers is created in the form of Monte Carlo simulation according to the number of distribution network lines and the preset number of samples. Each column of matrix elements in the initial matrix represents the line failure situation of the distribution network line under a disaster scenario. By comparing the column of matrix elements with the corresponding line failure probability, if the matrix element is greater than the line failure probability, it is determined that the line to which the matrix element belongs has not failed; if it is less than or equal to, it is determined that the line to which the matrix element belongs has failed, thereby obtaining the failure situation of each line of the distribution network under each disaster scenario, and determining each column of matrix elements in the initial matrix as a failure scenario sample under the disaster scenario.
[0072] Step 102, sequentially substituting each fault scenario sample into a preset scenario cost function, and respectively calculating distribution network change information with the minimum fault loss under the constraints of the second-order cone programming;
[0073] The distribution network lines that fail in different disaster scenarios may be different, and it is impossible to carry out preventive maintenance on all distribution network lines. In addition, it is necessary to minimize the various costs of line failure scenarios after a disaster. To this end, the scenario cost function can be constructed with the goal of minimizing various costs in the failure scenario after a disaster.
[0074] The scene cost function is:
[0075]
[0076] in, , , .
[0077] In the formula, The cost of purchasing electricity, is the load loss cost, is the output cost of distributed power generation, To determine the price of electricity purchased from the upper grid. To purchase electricity from the upper power grid, is the power demand of node m during normal operation of the distribution network, is the power that can be supplied to node m when a fault occurs, For the The unit output cost of a distributed power source is For the The power output of a distributed power source, is the number of nodes in the distribution network, is the number of distributed generation in the distribution network.
[0078] After completing the construction of the scenario cost function, each fault scenario sample and related data are substituted into the scenario cost function, and each fault scenario is solved in turn using the cplex software to calculate the distribution network change information with the minimum fault loss under the constraints of the second-order cone programming. The distribution network change information refers to the optimal load shedding strategy and topology change strategy of the power grid after the fault, and can also include the amount of load loss after the fault.
[0079] Among them, the second-order cone programming constraints include power flow constraints, load node constraints, line operation constraints, distributed generation output constraints and grid topology constraints.
[0080] In this embodiment, the power grid optimization problem is transformed into a mixed integer second-order cone problem, the DistFlow power flow constraint is adopted, and a 0-1 variable is used to represent the line disconnection caused by the fault. The power flow constraint can be as follows:
[0081]
[0082] Where: and They represent the active and reactive power flowing from node j to node i respectively; and They represent the active and reactive power flowing from node i to node k respectively; and are line resistance and reactance respectively; and are the active and reactive loads at node i respectively; , , , are the active output of distributed power sources, the active output of energy storage, the reactive output of distributed power sources, and the reactive output of energy storage at node i respectively; and are the square of the voltage at node i and the square of the current flowing through line ij, respectively, and L is the square; Indicates the disconnection status of the line. 0 means the line is disconnected due to a fault, and 1 means the line is operating normally.
[0083] The load node constraints are:
[0084]
[0085]
[0086] in, is the active load of node i, is the reactive load of node i. The above load node constraint is the active power and reactive power limit of node i during operation. The max superscript is the maximum value and the min superscript is the minimum value.
[0087] The line operation constraints are:
[0088]
[0089]
[0090] The above line operation constraints are respectively the active power and reactive power limits of line ij during operation. is the active power flowing through line ij, is the reactive power flowing through line ij. is a variable indicating line disconnection, if It means the line is operating normally. It means the line is disconnected.
[0091] The output constraints of distributed generation (DG) are:
[0092]
[0093] in, , are the active power and reactive power of the controllable DG respectively; is the reactive power of the controllable DG; It is the predicted active contribution for the uncontrollable DG; is the power factor angle of DG; is the power factor angle of the distributed power source with controllable output,
[0094] The grid topology constraints are:
[0095]
[0096] Among them, E is the set of all nodes in the distribution network; B is the set of all branches in the distribution network; s is the substation node. is the virtual traffic sent to node k through directed line ij, ; is a 0-1 variable, which is 1 when the directed line ij is included in the directed spanning tree; It is a 0-1 variable and is 1 when the virtual connection state of branch ij is closed.
[0097] In this embodiment, multiple fault scenario samples generated by Monte Carlo simulation are brought into the fault optimization calculation, and the above-mentioned second-order cone programming constraints are solved for each fault scenario in turn using cplex software to obtain the optimal load shedding strategy and topology change strategy of the power grid after the fault, and the load loss after the fault is calculated.
[0098] Step 103, calculating the power flow tracking matrix corresponding to each fault scenario sample according to the distribution network change information;
[0099] The power flow tracking matrix is mainly used in the power system to describe and track the flow of power in the power grid, that is, to represent and calculate the flow path and distribution ratio of power in the power grid. It is based on the principle of proportional distribution, that is, it is assumed that the network nodes are the "convergence points" of the ideal input power flow, so that it can determine which output line a specific incoming power flow flows out from.
[0100] In this embodiment, the power flow tracking matrix is:
[0101]
[0102] For the The power flow tracking matrix of the fault scenario samples, For the The active output diagonal matrix of the powered nodes for the fault scenario samples is: For the The downstream allocation matrix of the fault scenario samples.
[0103] In this embodiment, for each fault scenario sample, the elements of its downstream distribution matrix A are calculated by the following formula:
[0104]
[0105] in, is the total active power injected into node j, is the active power flowing from node i to node j.
[0106] For each fault scenario sample, This can be calculated as follows:
[0107]
[0108] in, is the active load of the i-th node, is the active output value of the i-th node transformer or DG.
[0109] Among them, except for the nodes of substation and DG, the horizontal quantities corresponding to the other nodes of the power flow tracking matrix are all 0. In order to reduce the size of the matrix, the power flow tracking matrix only takes the rows corresponding to the substation nodes and DG nodes.
[0110] Step 104, clustering the fault scenario samples according to each power flow tracking matrix to determine multiple typical fault scenarios;
[0111] In this embodiment, a predetermined number K of power flow tracking matrices can be randomly selected as cluster centers, and the Euclidean distances between each power flow tracking matrix and each cluster center can be calculated respectively, and the fault scenario samples belonging to each power flow tracking matrix can be classified into the cluster to which the cluster center belongs; for each cluster, the mean of the power flow tracking matrix is recalculated as the new cluster center, and the above Euclidean distance calculation and classification process is repeated until the cluster center does not change or the preset number of iterations is reached, and the fault scenario samples belonging to each cluster center are used as typical fault scenarios.
[0112] It should be noted that the specific clustering method can be clustered by the K-mean method, and the elbow method can be used to determine the optimal number of clustering scenarios during the clustering process. Specifically, the number of clusters can be determined by the following methods:
[0113] Calculate SSE: First, cluster the data into different numbers of clusters and calculate the sum of squared errors (SSE) for each cluster, which is the sum of squared distances between the data point and the centroid of the cluster to which it belongs. The smaller the SSE, the better the clustering result.
[0114] Draw an elbow graph: Then, calculate the SSE value at different K values and draw it into a graph. As the K value increases, the SSE value usually decreases gradually, but the decrease gradually slows down. This is because when the number of clusters increases to a certain extent, increasing the number of clusters will have limited effect on improving the clustering effect.
[0115] Determine the best K value: The goal of the elbow method is to find a K value so that adding more clusters no longer significantly reduces the SSE value. On the graph, the position corresponding to this K value will form a curve similar to an elbow, hence the name elbow method. This K value is generally considered to be the optimal number of clusters.
[0116] By calculating the power flow tracking matrix, the location of the power source or distributed generation (DG) from which the loads of different nodes obtain power can be obtained. For a certain node, if the fault does not affect its normal power supply, the location of the power source or DG from which the node obtains power will not change, and the power value obtained is the power value during normal operation. If the node is affected by the fault, it is necessary to change the topology of the power grid to obtain power, and it is necessary to change the way of obtaining power, that is, to obtain power from other power sources or DGs. At this time, the power flow tracking matrix will change; even if the load loss of a certain node is similar under different faults, it may need to obtain power from different power sources or DGs. At this time, the power flow tracking matrix will also change. In this way, the characteristics of the fault degree and fault location of each scenario can be reflected in the power tracking matrix, and the greater the difference in the fault degree and the greater the difference in the fault location, the greater the distance between the power flow tracking matrices will also be.
[0117] Taking the power flow tracking matrix as an indicator and the distance between the power flow tracking matrices in different scenarios as the clustering standard, the scenarios are reduced to obtain a more typical set of scenarios, providing a more representative computing scenario for the stochastic planning of pre-disaster prevention of power grids, and on this basis, pre-disaster prevention measures are taken to improve the effectiveness of pre-disaster resource allocation.
[0118] Step 105, performing weighted superposition using the scenario cost functions of each typical fault scenario to obtain a prevention strategy objective function;
[0119] In one example of the present invention, step 105 may include the following sub-steps:
[0120] The number of scenarios included in each typical fault scenario is determined as the corresponding scenario weight;
[0121] According to the weight of each scenario, the scenario cost functions of each typical fault scenario are weighted superimposed, and the minimum superposition value is taken as the goal to obtain the prevention strategy objective function.
[0122] Among them, the objective function of the prevention strategy is as follows:
[0123]
[0124] in, , … They represent the objective functions of the first, second and kth typical fault scenarios respectively, , … are the scenario weights of the 1st, 2nd and kth typical fault scenarios respectively.
[0125]
[0126] in, , , They represent the number of scenarios included in the first, second, and kth typical fault scenarios in the clustering process, is the total number of fault scenario samples.
[0127] Step 106, calculating the optimal solution of the prevention strategy objective function under the prevention measure constraint and the second-order cone programming constraint conditions, and obtaining the prevention measure strategy for each typical fault scenario.
[0128] In one example of the present invention, step 106 may include the following sub-steps:
[0129] The goal is to minimize the output value of the objective function of the prevention strategy, and calculate the optimal solution under the constraints of the prevention measures and the second-order cone programming;
[0130] Determine the distribution network lines to be reinforced and the emergency power supply nodes to be arranged according to the optimal solution;
[0131] In an embodiment of the present invention, after determining the typical fault scenario, it is necessary to determine the best prevention strategy according to the line fault conditions of all typical fault scenarios to deal with line faults under different typical fault scenarios and to reduce the cost of each typical fault scenario as uniformly as possible. To this end, by setting preventive measures constraints to introduce the setting conditions for line tower reinforcement and emergency power supply vehicle layout, combined with the above-mentioned second-order cone programming constraints, the objective function of the prevention strategy is solved with the minimum output value of the objective function as the goal to obtain the optimal solution, and the distribution network lines to be reinforced and the emergency power supply nodes to be arranged are determined according to the optimal solution.
[0132] Among them, the distribution network lines to be reinforced refer to the line towers that need to be reinforced, and the emergency power supply nodes to be arranged refer to the nodes where the distribution network lines intersect, which are also disconnected due to disasters in various typical fault scenarios.
[0133] The precautionary constraints are:
[0134]
[0135] in, is a variable representing the disconnection of line ij in a typical fault scenario. It means that line ij is operating normally. It means that line ij is disconnected. is a 0-1 variable indicating whether the line is reinforced or not. If the line is reinforced, If you do not choose to reinforce the line, then , is a 0-1 variable indicating whether the line is disconnected due to a disaster in a typical fault scenario. If it is not disconnected due to a fault, , Represents a collection of typical failure scenarios, To reinforce the upper limit of the number of lines, The lines representing typical fault scenarios are affected by the reinforced lines. is the active power output of the emergency power supply of the ith node in scenario h, is the reactive power output of the emergency power supply of the ith node in scenario h, is the power factor of the emergency power supply, A 0-1 variable indicating whether to select node i as the layout point of the emergency power supply. It is the maximum active output limit of the emergency power supply.
[0136] Taking the improved IEEE33 node distribution network as an example to demonstrate the effectiveness of the above process, the normal operation status diagram of the specific distribution network lines and nodes is shown in Figure 2 As shown, after executing the above steps 101-106, pre-disaster prevention measures are reinforced at nodes 3, 17, 22, and 28.
[0137] For detailed prevention procedures, see Figure 3 Fault prevention flowchart shown.
[0138] In this embodiment, the probability of failure of each line in the power grid when the disaster history occurs is obtained; the Monte Carlo simulation is used to generate Matrix, where m is the number of lines and n is the number of samples; let i = 1; substitute the sample of the i-th scenario into the scenario cost function, optimize the calculation, and obtain the optimal topology strategy under the sample; calculate the power flow tracking matrix K under the optimal strategy of the i-th scenario i , let i=i+1, determine whether the current i is greater than the number of samples n; if not, jump to the sample of the i-th scenario and substitute it into the scenario cost function, optimize the calculation, and obtain the steps of the optimal topology strategy under the sample; if so, use multiple power tracking matrices as indicators to perform K-means clustering; use the elbow method to obtain the optimal number of clusters K; cluster with the optimal number of clusters to obtain K typical fault scenarios; use K typical fault scenarios as samples, calculate the pre-disaster prevention stochastic planning, and solve the fault prevention measures.
[0139] Among them, the pre-disaster prevention measures include adding two transmission lines and arranging two emergency power supplies (active power of 550KW and 440KW, power factor of 0.9), respectively using the scenario reduction method with only the load loss as the clustering index and the power flow tracking matrix as the clustering index, and taking 300 fault scenarios as examples to verify the effectiveness of the proposed method. The results are shown in Table 1 below:
[0140] Table 1
[0141]
[0142] Correspondingly, see Figure 4 and Figure 5 , Figure 4 A bar chart showing the load loss in multiple fault scenarios without taking preventive measures in an embodiment of the present invention is shown. Figure 5 A bar chart of load loss after taking preventive measures under different clustering indicators for multiple typical fault scenarios in an embodiment of the present invention is shown.
[0143] Combined with Table 1 Figure 4 and Figure 5 It can be seen that taking preventive measures before a disaster can effectively reduce the amount of load loss after a fault occurs. Using the method proposed in the embodiment of the present invention as a typical scenario generation indicator and calculating preventive measures based on the generated typical fault scenarios can more effectively reduce the amount of load loss in all fault scenarios. Figure 5 It can be seen that the load loss in the scenario after taking measures based on the load loss as the typical scene fault scene generation index is greater than the load loss after taking measures based on the typical scene fault scene generated by the method proposed by the present invention in a larger proportion of scenarios. It can be seen that the traditional typical scene generation method usually only uses the load loss as the typical scene clustering index, but the pre-disaster preventive measures (such as line reinforcement and advance arrangement of emergency power supply vehicles) always need to consider the impact of the fault line on the power grid topology; but if the typical scene generation method considers the grid topology change, it will have the defect of ignoring the importance of different nodes. The method provided by the embodiment of the present invention uses the power flow tracking matrix as a clustering index, which can reflect the situation that each node obtains different powers from different power supply nodes, comprehensively combines the power grid load loss situation and the power grid topology change situation, and in the process of reducing the fault scene and generating the typical fault scene, it can reflect more information between different fault scenes, and finally generate a more representative typical fault scene of the power grid, so as to take preventive measures more effectively and accurately.
[0144] In an embodiment of the present invention, multiple fault scenario samples are obtained; each fault scenario sample is sequentially substituted into a preset scenario cost function, and the distribution network change information with the minimum fault loss under the second-order cone programming constraint is calculated respectively; the power flow tracking matrix corresponding to each fault scenario sample is calculated according to the distribution network change information; the fault scenario samples are clustered according to each power flow tracking matrix to determine a variety of typical fault scenarios; the scenario cost function to which each typical fault scenario belongs is weightedly superimposed to obtain the prevention strategy objective function; the optimal solution of the prevention strategy objective function under the preventive measures constraint and the second-order cone programming constraint is calculated to obtain the preventive measures strategy for each typical fault scenario. Thus, by tracking the clustering of the power flow matrix, the clustering of typical fault scenarios can be effectively and accurately achieved, thereby more effectively carrying out pre-disaster prevention.
[0145] See also Figure 6 , Figure 6 A structural block diagram of a typical fault scenario prevention device for a distribution network according to an embodiment of the present invention is shown.
[0146] An embodiment of the present invention provides a typical fault scenario prevention device for a distribution network, including:
[0147] The sample acquisition module 601 is used to acquire multiple fault scenario samples;
[0148] The distribution network change calculation module 602 is used to sequentially substitute each fault scenario sample into a preset scenario cost function, and respectively calculate the distribution network change information with the minimum fault loss under the second-order cone programming constraint condition;
[0149] The power flow tracking matrix calculation module 603 is used to calculate the power flow tracking matrix corresponding to each fault scenario sample according to the distribution network change information;
[0150] A scenario clustering module 604 is used to cluster the fault scenario samples according to each power flow tracking matrix to determine multiple typical fault scenarios;
[0151] Function construction module 605, used to perform weighted superposition using scenario cost functions of each typical fault scenario to obtain a prevention strategy objective function;
[0152] The wording determination module 606 is used to calculate the optimal solution of the prevention strategy objective function under the prevention measure constraints and the second-order cone programming constraints, and obtain the prevention measure strategy for each typical fault scenario.
[0153] Optionally, the distribution network includes a plurality of distribution network lines, and the sample acquisition module 601 is specifically used for:
[0154] Obtain historical fault data corresponding to each distribution network line;
[0155] Calculate the probability of line failure of the distribution network when a disaster occurs based on historical fault data;
[0156] Create an initial matrix according to the number of distribution network lines and the preset number of samples;
[0157] According to the comparison result between the line fault probability and each matrix element in the initial matrix, each column of the matrix element is determined as a fault scenario sample.
[0158] Optionally, the scene cost function is:
[0159]
[0160] in, The cost of purchasing electricity, is the load loss cost, is the output cost of distributed power generation, To determine the price of electricity purchased from the upper grid. To purchase electricity from the upper power grid, is the power demand of node m during normal operation of the distribution network, is the power that can be supplied to node m when a fault occurs, For the The unit output cost of a distributed power source is For the The power output of a distributed power source, is the number of nodes in the distribution network, is the number of distributed generation in the distribution network.
[0161] Optionally, the second-order cone programming constraints include power flow constraints, load node constraints, line operation constraints, distributed generation output constraints and grid topology constraints.
[0162] Optionally, the power flow tracking matrix is:
[0163]
[0164] For the The power flow tracking matrix of the fault scenario samples, For the The active output diagonal matrix of the powered nodes for the fault scenario samples is: For the The downstream allocation matrix of the fault scenario samples.
[0165] Optionally, the function construction module 605 is specifically used for:
[0166] The number of scenarios included in each typical fault scenario is determined as the corresponding scenario weight;
[0167] According to the weight of each scenario, the scenario cost functions of each typical fault scenario are weighted superimposed, and the minimum superposition value is taken as the goal to obtain the prevention strategy objective function.
[0168] Optionally, the wording determination module 606 is specifically configured to:
[0169] The goal is to minimize the output value of the objective function of the prevention strategy, and calculate the optimal solution under the constraints of the prevention measures and the second-order cone programming;
[0170] Determine the distribution network lines to be reinforced and the emergency power supply nodes to be arranged according to the optimal solution;
[0171] The precautionary constraints are:
[0172]
[0173] in, is a variable representing the disconnection of line ij in a typical fault scenario. It means that line ij is operating normally. It means that line ij is disconnected. is a 0-1 variable indicating whether the line is reinforced or not. If the line is reinforced, If you do not choose to reinforce the line, then , is a 0-1 variable indicating whether the line is disconnected due to a disaster in a typical fault scenario. If it is not disconnected due to a fault, , Represents a collection of typical failure scenarios, To reinforce the upper limit of the number of lines, The lines representing typical fault scenarios are affected by the reinforced lines. is the active power output of the emergency power supply of the ith node in scenario h, is the reactive power output of the emergency power supply of the ith node in scenario h, is the power factor of the emergency power supply, A 0-1 variable indicating whether to select node i as the layout point of the emergency power supply. It is the maximum active output limit of the emergency power supply.
[0174] An embodiment of the present invention provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for preventing typical fault scenarios in a distribution network as described in any embodiment of the present invention.
[0175] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the method for preventing typical failure scenarios of a distribution network as described in any embodiment of the present invention is implemented.
[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0177] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0178] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0179] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0180] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0181] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A typical fault scenario prevention method for distribution network, It is characterized in that include: Obtain multiple fault scenario samples; Substituting each of the fault scenario samples into a preset scenario cost function in turn, and respectively calculating the distribution network change information with the minimum fault loss under the constraints of the second-order cone programming; Calculate the power flow tracking matrix corresponding to each of the fault scenario samples according to the distribution network change information; Clustering the fault scenario samples according to each of the power flow tracking matrices to determine multiple typical fault scenarios; The scenario cost functions of the typical failure scenarios are weighted and superimposed to obtain the prevention strategy objective function; The optimal solution of the objective function of the prevention strategy under the constraints of the prevention measures and the constraints of the second-order cone programming is calculated to obtain the prevention measures strategy for each of the typical fault scenarios.
2. The method according to claim 1, It is characterized in that The distribution network includes a plurality of distribution network lines, and the distribution network lines intersect to form a node; the obtaining of a plurality of fault scenario samples includes: Obtaining historical fault data corresponding to each of the distribution network lines; Calculating the line failure probability of the distribution network line when a disaster occurs according to the historical fault data; Creating an initial matrix according to the number of distribution network lines and the preset number of samples; According to the comparison result between the line fault probability and each matrix element in the initial matrix, each column of the matrix elements is determined as a fault scenario sample.
3. The method according to claim 1, It is characterized in that The scene cost function is: in, The cost of purchasing electricity, is the load loss cost, is the output cost of distributed power generation, To determine the price of electricity purchased from the upper grid. To purchase electricity from the upper power grid, is the power demand of node m during normal operation of the distribution network, is the power that can be supplied to node m when a fault occurs, For the The unit output cost of a distributed power source is For the The power output of a distributed power source, is the number of nodes in the distribution network, is the number of distributed generation in the distribution network.
4. The method according to claim 1, It is characterized in that The second-order cone programming constraints include power flow constraints, load node constraints, line operation constraints, distributed power output constraints and grid topology constraints.
5. The method according to claim 1, It is characterized in that The power flow tracking matrix is: For the The power flow tracking matrix of the fault scenario samples, For the The active output diagonal matrix of the powered nodes for the fault scenario samples is: For the The downstream allocation matrix of the fault scenario samples.
6. The method according to claim 1, It is characterized in that The scenario cost functions of the typical fault scenarios are weighted and superimposed to obtain the prevention strategy objective function, including: Determine the number of scenarios included in each of the typical fault scenarios as the corresponding scenario weight; The scenario cost functions of the typical fault scenarios are weightedly superimposed according to the weights of the scenarios, with the minimum superposition value as the goal, to obtain the prevention strategy objective function.
7. The method according to claim 1, It is characterized in that The calculating the optimal solution of the objective function of the prevention strategy under the constraints of the prevention measures and the constraints of the second-order cone programming to obtain the prevention measures strategy for each of the typical fault scenarios includes: The output value of the objective function of the prevention strategy is minimized as the goal, and the optimal solution under the constraints of the prevention measures and the constraints of the second-order cone programming is calculated; Determine the distribution network lines to be reinforced and the emergency power supply nodes to be arranged according to the optimal solution; The precautionary constraints are: in, is a variable representing the disconnection of line ij in a typical fault scenario. It means that line ij is operating normally. It means that line ij is disconnected. is a 0-1 variable indicating whether the line is reinforced or not. If the line is reinforced, If you do not choose to reinforce the line, then , is a 0-1 variable indicating whether the line is disconnected due to a disaster in a typical fault scenario. If it is not disconnected due to a fault, , Represents a collection of typical failure scenarios, To reinforce the upper limit of the number of lines, The lines representing typical fault scenarios are affected by the reinforced lines. is the active power output of the emergency power supply of the ith node in scenario h, is the reactive power output of the emergency power supply of the ith node in scenario h, is the power factor of the emergency power supply, A 0-1 variable indicating whether to select node i as the layout point of the emergency power supply. It is the maximum active output limit of the emergency power supply.
8. A typical fault scenario prevention device for distribution network, It is characterized in that include: A sample acquisition module is used to acquire multiple fault scenario samples; A distribution network change calculation module, used to sequentially substitute each of the fault scenario samples into a preset scenario cost function, and respectively calculate the distribution network change information with the minimum fault loss under the constraints of the second-order cone programming; A power flow tracking matrix calculation module, used to calculate the power flow tracking matrix corresponding to each of the fault scenario samples according to the distribution network change information; A scenario clustering module, used to cluster the fault scenario samples according to each of the power flow tracking matrices to determine multiple typical fault scenarios; A function construction module, used to perform weighted superposition of the scenario cost functions of the typical failure scenarios to obtain a prevention strategy objective function; The wording determination module is used to calculate the optimal solution of the prevention strategy objective function under the prevention measure constraints and the second-order cone programming constraints, and obtain the prevention measure strategy for each of the typical fault scenarios.
9. An electronic device, It is characterized in that It includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for preventing typical fault scenarios of a distribution network as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the method for preventing typical failure scenarios of a distribution network as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Extreme event-oriented power system typical fault scene set generation method
CN121688876A
Method for generating typical power system fault scenarios for extreme events
CN121688876B
