Power quality disturbance judgment method, device, equipment and medium
By calculating the power quality indicator change slope and slope difference matrix of the power grid target monitoring node, the start and end moments of the power quality disturbance are determined, which solves the problem of low accuracy in the existing technology and achieves accurate judgment of the power quality disturbance time. Provides a reliable basis for power system governance.
Patent Information
- Application Number
- CN202211278096.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-10-19
AI Technical Summary
The existing power quality disturbance identification and judgment methods have low accuracy and cannot effectively identify the accurate occurrence time and end time of power quality disturbance in the power grid.
By obtaining the power quality indicators of the target monitoring nodes of the power grid within the preset judgment period, calculating the indicator change slope, and determining the start and end moments of the disturbance based on the slope difference matrix between multiple monitoring nodes, using the difference quantity and threshold to determine the occurrence and end of the disturbance. Finish.
It improves the accuracy of judging power quality disturbances, provides accurate and reliable disturbance occurrence and end times, and provides a basis for power system management.
Smart Images

Figure CN115480122B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a method, device, equipment and medium for determining disturbance of power quality. Background Art
[0002] With the construction of new power systems, new energy sources and loads with power electronic devices as interfaces are connected to the power grid in large quantities, and power quality disturbances will occur at both the power supply and load ends of the power grid. The existing power quality disturbance identification and judgment is mainly based on the national standard limit, that is, when the measured value exceeds the national standard limit, it is judged that a disturbance has occurred. Although this method is simple, it has the problem of low accuracy. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, equipment and medium for determining disturbance of power quality to solve the problem of low accuracy.
[0004] A method for determining power quality disturbance, the method comprising:
[0005] Within a preset judgment time, obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index; wherein the power grid includes a plurality of monitoring nodes, and the target monitoring node is any one of the plurality of monitoring nodes;
[0006] According to the index change slopes of every two random monitoring nodes in the plurality of monitoring nodes within the same preset time window, a slope difference matrix of the power grid is calculated; wherein the value of each element in the slope difference matrix is used to indicate the slope difference between the two monitoring nodes;
[0007] After the judgment duration starts timing, the moment when the number of differences in the slope difference matrix is first greater than a preset difference threshold is determined as the disturbance start time within the judgment duration; wherein the number of differences is the number of elements in the slope difference matrix whose slope differences, counted in sampling time order, are less than the preset slope difference threshold;
[0008] After determining the disturbance start time, the time when the difference quantity is less than or equal to the preset difference threshold for the first time is determined as the disturbance end time within the judgment duration.
[0009] In one of the embodiments, calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index includes:
[0010] Calculate the index change rate of the target monitoring node at the first preset sampling time according to the power quality index at the first preset sampling time and the second preset sampling time; wherein the first preset sampling time is any one of the multiple preset sampling times within the judgment time, and the second preset sampling time is the previous preset sampling time of the first preset sampling time;
[0011] Calculating the cumulative index change rate of the target monitoring node at the first preset sampling time according to the index change rate of the preset sampling time set; wherein the preset sampling time set includes all preset sampling times between the initial preset sampling time and the first preset sampling time;
[0012] The indicator change slope of the target monitoring node at the first preset sampling moment is calculated based on the duration from the first preset sampling moment to the initial preset sampling moment, and the cumulative indicator change rate of the target monitoring node at the first preset sampling moment, so as to obtain the indicator change slope at each preset sampling moment.
[0013] In one embodiment, the formula for calculating the slope difference between any two monitoring nodes in the slope difference matrix is:
[0014]
[0015] In the above formula, D i,j (t0+L*T) indicates the slope difference between monitoring node i and monitoring node j, t0 is the initial preset sampling time, L is the number of samplings in the preset time window, T is the interval between two samplings, and a i (t0+L*T) is the index change slope of monitoring node i at time t0+L*T, a j (t0+L*T) is the index change slope of monitoring node j at time t0+L*T, μ i , σ i They represent the mean and variance of the slope of the indicator change of monitoring node i within the preset time window k*T, μ j , σ j They respectively represent the mean and variance of the indicator change slope of monitoring node j in the preset time window k*T.
[0016] In one embodiment, after obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, the method further includes:
[0017] Calculating the variance according to the power quality index of the target monitoring node at each preset sampling time, and using the calculated variance value as the index fluctuation value of the target monitoring node;
[0018] If the indicator fluctuation value of the target monitoring node is less than or equal to a preset fluctuation threshold, the target monitoring node is removed from the multiple monitoring nodes.
[0019] In one embodiment, the moment when the difference quantity is less than or equal to the preset difference threshold for the first time is determined as the disturbance end moment within the judgment time, further comprising:
[0020] Determine a first disturbance node and a second disturbance node in the slope difference matrix, and use the route between the first disturbance node and the second disturbance node as a disturbance occurrence route; wherein the elements corresponding to the first disturbance node and the second disturbance node are the minimum elements in the slope difference matrix, and there is a disturbance source in the disturbance occurrence route;
[0021] Determine a first distance from the first disturbance node to a target disturbance node, and a second distance from the second disturbance node to the target disturbance node; wherein the first disturbance node set is composed of monitoring nodes corresponding to elements in the slope difference matrix whose slope differences are less than a preset slope difference threshold, all nodes in the first disturbance node set except the first disturbance node and the second disturbance node constitute the second disturbance node set, the target disturbance node is any one in the second disturbance node set, and the distance is the product of the actual length between two monitoring nodes and the unit impedance of the line;
[0022] Put the larger value of the first distance and the second distance corresponding to the same target disturbance node into the first distance set, and put the smaller value of the first distance and the second distance corresponding to the same target disturbance node into the second distance set;
[0023] The position of the disturbance source within the disturbance occurrence route is calculated according to the first distance set, the second distance set and the length of the disturbance occurrence route.
[0024] In one embodiment, determining a first distance from the first disturbance node to a target disturbance node, and a second distance from the second disturbance node to the target disturbance node, comprises:
[0025] Initializing the access status of all monitoring nodes in the first disturbance node set except the target disturbance node to an unvisited state;
[0026] Each time, from the first disturbance node set, a monitoring node with the shortest distance from the starting node and in an unvisited state is selected as an intermediate node, added to the visited set, and the shortest distance between the starting node and the monitoring nodes that can be reached by all the intermediate nodes is optimized until the target disturbance node is reached; wherein the starting node is the first disturbance node or the second disturbance node, and the access state of the monitoring node in the visited set is changed to the visited state;
[0027] Determine whether all monitoring nodes in the first disturbance node set except the target disturbance node have been added to the visited set, and if not, return to execute the step of selecting a monitoring node in the first disturbance node set each time as an intermediate node that has the smallest distance from the start node and is in an unvisited state, and subsequent steps, until all monitoring nodes in the second disturbance node set have been added to the visited set;
[0028] The shortest distance from the first disturbance node to the target disturbance node after optimization is used as the first distance, and the shortest distance from the second disturbance node to the target disturbance node after optimization is used as the second distance.
[0029] In one embodiment, the calculation formula for calculating the position of the disturbance source within the disturbance occurrence route is:
[0030]
[0031] In the above formula, L 扰 indicates the location of the disturbance source, sum(I(y)) is the first distance set, sum(I(z)) is the second distance set, ING yz Indicates the length of the path along which the disturbance occurs, relative to y.
[0032] A disturbance judgment device for power quality, the device comprising: an indicator change slope calculation module, used to obtain the power quality indicator of a target monitoring node of a power grid at each preset sampling time within a preset judgment time, and calculate the indicator change slope of the target monitoring node at each preset sampling time according to the power quality indicator; wherein the power grid comprises a plurality of monitoring nodes, and the target monitoring node is any one of the plurality of monitoring nodes;
[0033] A slope difference matrix calculation module, used to calculate the slope difference matrix of the power grid according to the index change slope of every two arbitrary monitoring nodes in the plurality of monitoring nodes within the same preset time window; wherein the value of each element in the slope difference matrix is used to indicate the slope difference between the two monitoring nodes;
[0034] A disturbance time period determination module is used to determine, after the judgment time period starts timing, the moment when the difference number in the slope difference matrix is first greater than a preset difference threshold as the disturbance start time within the judgment time period; wherein the difference number is the number of elements in the slope difference matrix whose slope differences counted in sampling time order are less than the preset slope difference threshold; after determining the disturbance start time, the moment when the difference number is first less than or equal to the preset difference threshold is determined as the disturbance end time within the judgment time period.
[0035] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned power quality disturbance judgment method.
[0036] A power quality disturbance judgment device comprises 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 power quality disturbance judgment method.
[0037] The present invention provides a method, device, equipment and medium for judging the disturbance of power quality. Based on the principle that when a power quality disturbance event occurs in the power grid, a highly similar dynamic response will be caused on many buses of the regional power grid, and the similarity will be more significant than usual when the event occurs, the time of occurrence of the disturbance event is judged. Specifically, within the preset judgment time, the power quality index of the target monitoring node of the power grid at each preset sampling time is obtained, and the index change slope of the target monitoring node at each preset sampling time is calculated according to the power quality index; according to the index change slope of each arbitrary two monitoring nodes in the multiple monitoring nodes in the same preset time window, the slope difference matrix of the power grid is calculated; after the judgment time starts, the moment when the number of differences in the slope difference matrix is greater than the preset difference threshold for the first time is determined as the disturbance start time within the judgment time; after determining the disturbance start time, the moment when the number of differences is less than or equal to the preset difference threshold for the first time is determined as the disturbance end time within the judgment time. It can be seen that the present invention can determine the occurrence time and end time of the power quality disturbance from the perspective of time. Provide an accurate and reliable basis for disturbance management. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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 work.
[0039] in:
[0040] Figure 1 It is a flowchart of the method for determining disturbance of power quality in the first embodiment;
[0041] Figure 2 A schematic diagram of a flow chart of calculating the index change slope at each preset sampling moment in one embodiment;
[0042] Figure 3 A schematic diagram of a flow chart for excluding nodes of indicators with smaller fluctuations in one embodiment;
[0043] Figure 4 Schematic diagram of the flow of the method for determining power quality disturbance in the second embodiment;
[0044] Figure 5 A schematic diagram of network connection of a power grid in one embodiment;
[0045] Figure 6 A schematic diagram of a process for calculating a first distance and a second distance in one embodiment;
[0046] Figure 7 It is a structural schematic diagram of a disturbance judgment device for power quality in one embodiment;
[0047] Figure 8 It is a structural block diagram of a power quality disturbance judgment device in an embodiment. DETAILED DESCRIPTION
[0048] 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.
[0049] like Figure 1 As shown, Figure 1 : is a flow chart of the method for determining a disturbance of power quality in the first embodiment. The method for determining a disturbance of power quality in this embodiment provides the following steps:
[0050] S101, within a preset judgment time, obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index.
[0051] Among them, suppose the preset judgment time is KT, where K is the total number of sampling times, and T is the time interval between two consecutive samplings. For a system with an operating frequency of 50 Hz, T is 0.02s; then x tIt represents the power quality index at the preset sampling time t within the judgment time KT. The power quality index x here can be determined according to the actual situation, for example, it can be any one of the power quality indicators of harmonics, frequency, voltage and other parameters, and is not specifically limited here.
[0052] Meanwhile, the power grid here includes multiple monitoring nodes, and the target monitoring node is any one of the multiple monitoring nodes. That is to say, this step performs the same processing on all monitoring nodes.
[0053] In a specific embodiment, Figure 2 As shown, the index change slope at each preset sampling moment is calculated through the following specific steps:
[0054] S1011, calculating the indicator change rate of the target monitoring node at the first preset sampling moment according to the power quality indicators at the first preset sampling moment and the second preset sampling moment.
[0055] The first preset sampling time here is any one of the multiple preset sampling times within the determination time, and the second preset sampling time is the previous preset sampling time of the first preset sampling time. t is the power quality index at the first preset sampling time, then x t-T is the power quality index at the second preset sampling time, then the index change rate at the first preset sampling time is expressed as:
[0056]
[0057] S1012: Calculate the cumulative indicator change rate of the target monitoring node at the first preset sampling time according to the indicator change rate of the preset sampling time set.
[0058] The preset sampling time set includes all preset sampling times between the initial preset sampling time t0 and the first preset sampling time t0+k*T. Here, k indicates that the first preset sampling time is the kth interval sampling. Then the formula for calculating the cumulative index change rate of the first preset sampling time is:
[0059]
[0060] For example, the preset judgment time is 3s, T=0.02s, and the maximum value K of k is 150.
[0061] S1013, calculate the indicator change slope of the target monitoring node at the first preset sampling moment according to the duration from the first preset sampling moment to the initial preset sampling moment, and the cumulative indicator change rate of the target monitoring node at the first preset sampling moment, so as to obtain the indicator change slope at each preset sampling moment.
[0062] That is, based on the time length kT from the first preset sampling moment to the initial preset sampling moment and the cumulative indicator change rate f(t0+k*T), the indicator change slope a(t0+k*T) at each moment is calculated. The specific calculation formula is expressed as:
[0063]
[0064] Furthermore, assuming that there are p monitoring nodes in the area, the index change slope of the entire power grid can be represented by matrix A, which is a p×K matrix, specifically expressed as:
[0065]
[0066] Furthermore, in order to eliminate interference, in a specific embodiment, when the fluctuation of the indicator x of a monitoring node is small, it will not be included in the subsequent judgment. Figure 3 As shown, the steps of this specific embodiment include:
[0067] S1021, calculating the variance according to the power quality index of the target monitoring node at each preset sampling time, and using the calculated variance value as the index fluctuation value of the target monitoring node.
[0068] That is, the following calculation is performed:
[0069]
[0070] And σ(t0+K*T) is used as the indicator fluctuation value of the target monitoring node.
[0071] S1022: If the indicator fluctuation value of the target monitoring node is less than or equal to the preset fluctuation threshold, the target monitoring node is removed from the multiple monitoring nodes.
[0072] If σ(t0+L*T) is less than or equal to the preset fluctuation threshold, it means that the index x of the target monitoring node fluctuates slightly, and the target monitoring node is removed from the multiple monitoring nodes.
[0073] S103, calculating a slope difference matrix of the power grid according to the index change slopes of every arbitrary two monitoring nodes among the multiple monitoring nodes within the same preset time window.
[0074] The length of the preset time window is LT, 0<L<K, and referring to the requirements of IEC6100-4, L can be 10. The value of each element in the slope difference matrix is used to indicate the slope difference between two monitoring nodes.
[0075] In a specific embodiment, the formula for calculating the slope difference between any two monitoring nodes in the slope difference matrix is:
[0076]
[0077] In the above formula, D i,j (t0+L*T) indicates the slope difference between monitoring node i and monitoring node j in the time window t0+L*T, t0 is the initial preset sampling time, L is the number of samplings in the preset time window; T is the interval between two samplings, a i (t0+L*T) is the index change slope of monitoring node i at time t0+L*T, a j (t0+L*T) is the index change slope of monitoring node j at time t0+L*T, μ i , σ i They represent the mean and variance of the slope of the indicator change of monitoring node i within the preset time window L*T, μ j , σ j They respectively represent the mean and variance of the indicator change slope of monitoring node j in the preset time window L*T.
[0078] Furthermore, within the time range [t0, t0+KT], D i,j (t) can constitute a Here floor() means taking an integer which is infinitesimal in the direction of K / L, for example, floor(4.5)=4.
[0079] S105, after the judgment duration starts timing, the moment when the number of differences in the slope difference matrix is first greater than a preset difference threshold is determined as the disturbance start moment within the judgment duration.
[0080] S107, after determining the disturbance start time, determining the time when the difference quantity is less than or equal to the preset difference threshold for the first time as the disturbance end time within the judgment duration.
[0081] The difference number is the number of elements in the slope difference matrix whose slope differences, counted in sampling time order, are less than a preset slope difference threshold.
[0082] Specifically, in S105-S107, a slope difference threshold τ is first preset. τ needs to be selected according to the scale of the power grid and the power quality index, and can be set to 0.05 based on the empirical value. i,j When (t0+L*T) is less than τ (here i≠j, that is, self-difference does not participate in the judgment), it is considered that nodes i and j have effectively sensed the occurrence of disturbances related to the power quality indicator x, and the number of differences at t0+L*T is set to +1. Similarly, statistics are performed on other nodes. In order to improve the robustness of the algorithm, it is necessary for Q monitoring nodes to sense the disturbance of the power quality indicator x (Q is usually 10% of the measurement point scale P, and 10% here is the preset difference threshold) before the disturbance is considered to have begun.
[0083] In summary, after the judgment duration starts, the moment when the number of nodes less than τ in matrix B exceeds Q for the first time is determined as the start time of the perturbation within the judgment duration, and then the moment when the number of nodes less than τ in matrix B is less than or equal to Q for the first time is determined as the end time of the perturbation within the judgment duration.
[0084] The above-mentioned power quality disturbance judgment method is based on the principle that when a power quality disturbance event occurs in the power grid, it will cause highly similar dynamic responses on many buses in the regional power grid, and the similarity will be more significant than usual when the event occurs, so as to judge the time when the disturbance event occurs. Specifically, it includes, within the preset judgment time, obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index; according to the index change slope of each arbitrary two monitoring nodes in the multiple monitoring nodes, the slope difference matrix of the power grid is calculated in the same preset time window; after the judgment time starts, the moment when the number of differences in the slope difference matrix is greater than the preset difference threshold for the first time is determined as the disturbance start time within the judgment time; after determining the disturbance start time, the moment when the number of differences is less than or equal to the preset difference threshold for the first time is determined as the disturbance end time within the judgment time. It can be seen that the present invention can determine the occurrence time and end time of power quality disturbance from the perspective of time. Provide accurate and reliable basis for disturbance management.
[0085] The power quality disturbance judgment method of the first embodiment can monitor the occurrence time and end time of the power quality disturbance, and based on the following embodiments, the disturbance position can also be located after the power quality disturbance event occurs. Figure 4 As shown, Figure 4 : is a flow chart of the method for determining power quality disturbance in the second embodiment. The method for determining power quality disturbance in this embodiment provides the following steps:
[0086] S401, within a preset judgment time, obtain the power quality index of the target monitoring node of the power grid at each preset sampling time, and calculate the index change slope of the target monitoring node at each preset sampling time according to the power quality index.
[0087] S403: Calculate a slope difference matrix of the power grid according to the index change slopes of every arbitrary two monitoring nodes among the multiple monitoring nodes within the same preset time window.
[0088] S405, after the judgment duration starts timing, the moment when the number of differences in the slope difference matrix is first greater than a preset difference threshold is determined as the disturbance start moment within the judgment duration.
[0089] The difference number is the number of elements in the slope difference matrix whose slope differences, counted in sampling time order, are less than a preset slope difference threshold.
[0090] S407, after determining the disturbance start time, determining the time when the difference quantity is less than or equal to the preset difference threshold for the first time as the disturbance end time within the judgment duration.
[0091] In a specific implementation scenario, s401-s407 are basically consistent with s101-s107 in the power quality disturbance judgment method in the first embodiment provided by the present invention, and will not be described in detail here.
[0092] S409, determining a first disturbance node and a second disturbance node in the slope difference matrix, and taking the route between the first disturbance node and the second disturbance node as the disturbance occurrence route.
[0093] Among them, the elements corresponding to the first disturbance node and the second disturbance node are the minimum elements in the slope difference matrix, and there is a disturbance source in the disturbance occurrence route.
[0094] For example, if D y,z (t0) is the smallest element in the matrix B, then the line connecting the monitoring nodes y and z is the disturbance occurrence route. Figure 4 If 2 and 8 in the figure are the first disturbance node and the second disturbance node here, then W28 is the disturbance occurrence route, and the disturbance source exists in W28.
[0095] S411, determining a first distance from the first disturbance node to the target disturbance node, and a second distance from the second disturbance node to the target disturbance node.
[0096] Among them, the first disturbance node set is composed of monitoring nodes corresponding to elements in the slope difference matrix whose slope differences are less than the preset slope difference threshold, and all nodes in the first disturbance node set except the first disturbance node and the second disturbance node constitute the second disturbance node set, and the target disturbance node is any one of the second disturbance node set. It should be noted that, in essence, the propagation of disturbance is attenuated by the influence of grid impedance, so the distance here is the product of the actual length between the two monitoring nodes and the unit impedance of the line.
[0097] That is, calculate y, z to P respectively obey The measurement point k other than y and z in the (first perturbation node set) b obey ∈(k 1 obey , k 2 obey ...k B obey)(Let the number of the second perturbation node set be B) the shortest distance, Di s(y,k b obey ), Di s(z,k b obey ).
[0098] For example, Figure 5 In the figure, 2 is the first disturbance node, 8 is the second disturbance node, the first disturbance node set includes 1, 2, 3, 4, 5, 6, 7, 8, then 1, 3, 4, 5, 6, 7 constitute the second disturbance node set, here temporarily take 1 as the target disturbance node. The distance between 1 and 2 is the product of the actual length between 1 and 2 and the unit impedance of the line.
[0099] The distance determined in this step is the shortest distance between two nodes. For example, for the second disturbance node 8, its second distance is W28+W12, not W78+W57+W45+W14. In a simple power grid, the first distance and the second distance can be obtained by exhaustive solution. However, in an actual complex power grid, Figure 6 As shown, the first distance and the second distance are determined through the following specific steps.
[0100] S4111, initializing the access status of all monitoring nodes in the first disturbance node set except the target disturbance node to an unvisited status.
[0101] That is, the access status of 2, 3, 4, 5, 6, 7, and 8 are initialized to the unaccessed status.
[0102] S4112, each time from the first disturbance node set, select a monitoring node with the shortest distance to the starting node and in an unvisited state as an intermediate node, add it to the visited set, and optimize the shortest distance between the starting node and the monitoring nodes that can be reached by all intermediate nodes until the target disturbance node is reached.
[0103] The starting node is the first disturbance node or the second disturbance node, that is, in this embodiment, the same search method is used for the first disturbance node or the second disturbance node. The access status of the monitoring node in the visited set is changed to the visited status.
[0104] Exemplarily, 8 is used as the starting node. First, 8 itself is the monitoring node with the shortest distance and in an unvisited state. It is added to the visited set, and the access state of 8 is changed to a visited state. No update is required at this time. Then 2 is the monitoring node with the shortest distance and in an unvisited state as an intermediate node. It is added to the visited set, and the access state of 2 is changed to a visited state. The distances from 8 to the monitoring nodes 1 and 3 that 2 can reach are already the shortest, so there is no need to optimize the shortest distance here. Since 2 can directly reach 1, the shortest distance can be temporarily determined as W28+W12.
[0105] S4113, determine whether all monitoring nodes in the first disturbance node set except the target disturbance node have been added to the visited set, if not, return to execute S4112 and subsequent steps until all monitoring nodes in the second disturbance node set have been added to the visited set.
[0106] because Figure 4 Not all monitoring nodes have been added to the visited set, so the loop continues, and then 7 is determined to be the monitoring node with the smallest distance and in the unvisited state as the intermediate node, added to the visited set, and the access state of 7 is changed to the visited state. By analogy, two distances, W28+W12 and W78+W57+W45+W14, can be found. Since W28+W12 is shorter, W28+W12 is used as the second distance.
[0107] S4114, taking the shortest distance from the optimized first disturbance node to the target disturbance node as the first distance, and taking the shortest distance from the optimized second disturbance node to the target disturbance node as the second distance.
[0108] That is, W12 is the first distance from node 2 to node 1, and W28+W12 is the second distance from node 2 to node 1. By repeating the above steps, the first distances from all nodes to the first disturbance node and the second distances from all nodes to the second disturbance node can be found.
[0109] S413, putting the larger value of the first distance and the second distance corresponding to the same target disturbance node into the first distance set, and putting the smaller value of the first distance and the second distance corresponding to the same target disturbance node into the second distance set.
[0110] S415, calculating the position of the disturbance source within the disturbance occurrence route according to the first distance set, the second distance set and the length of the disturbance occurrence route.
[0111] Considering that when a power quality disturbance event occurs at a point on the connection line between monitoring nodes y and z, the disturbance will propagate from this point to monitoring nodes y and z in two directions. If the point is closer to y, y can perceive the disturbance more significantly, and vice versa. Subsequently, the disturbance is transmitted to the regional distributed power grid based on y and z. As the transmission distance increases, the ability of the regional distribution network to perceive disturbance events also decreases.
[0112] Therefore, in S413, when Dis(y,k b obey )>Dis(z,k b obey ) (where b is the target disturbance node), Dis(y,k b obey ) is put into the first distance set I(y), otherwise it is put into the second distance set I(z), that is, the disturbance is propagated through the path with smaller distance.
[0113] In S415, the position of the disturbance source is further calculated based on the following calculation formula:
[0114]
[0115] In the above formula, L 扰 Indicates the location of the disturbance source, sum(I(y)) is the first distance set, sum(I(z)) is the second distance set, ING yz Indicates the length of the disturbance path based on y. Similarly, the distance z is (1-ξ*ING yz )
[0116] It can be seen that the power quality disturbance judgment method of the second embodiment can locate the disturbance position, that is, locate the position of the disturbance source within the disturbance occurrence route, and can further provide an accurate and reliable basis for disturbance control.
[0117] In one embodiment, Figure 7 As shown, a disturbance judgment device for power quality is proposed, and the device includes:
[0118] The indicator change slope calculation module 701 is used to obtain the power quality indicator of the target monitoring node of the power grid at each preset sampling time within a preset judgment time, and calculate the indicator change slope of the target monitoring node at each preset sampling time according to the power quality indicator; wherein the power grid includes multiple monitoring nodes, and the target monitoring node is any one of the multiple monitoring nodes;
[0119] The slope difference matrix calculation module 702 is used to calculate the slope difference matrix of the power grid according to the index change slope of each arbitrary two monitoring nodes in the multiple monitoring nodes within the same preset time window; wherein the value of each element in the slope difference matrix is used to indicate the slope difference between the two monitoring nodes;
[0120] The disturbance time period determination module 703 is used to determine the moment when the number of differences in the slope difference matrix is greater than a preset difference threshold for the first time as the disturbance start time within the judgment duration after the judgment duration starts timing; wherein the number of differences is the number of elements in the slope difference matrix whose slope differences counted in sampling time order are less than the preset slope difference threshold; after determining the disturbance start time, the moment when the number of differences is less than or equal to the preset difference threshold for the first time is determined as the disturbance end time within the judgment duration.
[0121] Figure 8 FIG. 2 shows an internal structure diagram of a power quality disturbance judgment device in one embodiment. Figure 8 As shown, the power quality disturbance judgment device includes a processor, a memory and a network interface connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the power quality disturbance judgment device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the power quality disturbance judgment method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the power quality disturbance judgment method. Those skilled in the art can understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the power quality disturbance judgment device to which the scheme of the present application is applied. The specific power quality disturbance judgment device may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0122] A disturbance judgment device for power quality comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: within a preset judgment time, obtaining the power quality index of a target monitoring node of a power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index; calculating the slope difference matrix of the power grid according to the index change slope of each arbitrary two monitoring nodes in a same preset time window; after the judgment time starts timing, determining the moment when the difference number in the slope difference matrix is greater than a preset difference threshold for the first time as the disturbance start time within the judgment time; after determining the disturbance start time, determining the moment when the difference number is less than or equal to the preset difference threshold for the first time as the disturbance end time within the judgment time.
[0123] A computer-readable storage medium stores a computer program, which implements the following steps when executed by a processor: within a preset judgment time, obtaining the power quality index of a target monitoring node of a power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index; calculating the slope difference matrix of the power grid according to the index change slope of every arbitrary two monitoring nodes in a plurality of monitoring nodes within the same preset time window; after the judgment time starts, determining the moment when the number of differences in the slope difference matrix is greater than a preset difference threshold for the first time as the disturbance start time within the judgment time; after determining the disturbance start time, determining the moment when the number of differences is less than or equal to the preset difference threshold for the first time as the disturbance end time within the judgment time.
[0124] It should be noted that the above-mentioned power quality disturbance judgment method, device, equipment and computer-readable storage medium belong to a general inventive concept, and the contents in the embodiments of the power quality disturbance judgment method, device, equipment and computer-readable storage medium are applicable to each other.
[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0126] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0127] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining disturbance of power quality. It is characterized in that The method comprises: Within a preset judgment time, obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, and calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index; wherein the power grid includes a plurality of monitoring nodes, and the target monitoring node is any one of the plurality of monitoring nodes; According to the index change slopes of every two random monitoring nodes in the plurality of monitoring nodes within the same preset time window, a slope difference matrix of the power grid is calculated; wherein the value of each element in the slope difference matrix is used to indicate the slope difference between the two monitoring nodes; After the judgment duration starts timing, the moment when the number of differences in the slope difference matrix is first greater than a preset difference threshold is determined as the disturbance start time within the judgment duration; wherein the number of differences is the number of elements in the slope difference matrix whose slope differences, counted in sampling time order, are less than the preset slope difference threshold; After determining the disturbance start time, determining the time when the difference quantity is less than or equal to the preset difference threshold for the first time as the disturbance end time within the judgment time; The calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index includes: Calculate the index change rate of the target monitoring node at the first preset sampling time according to the power quality index at the first preset sampling time and the second preset sampling time; wherein the first preset sampling time is any one of the multiple preset sampling times within the judgment time, and the second preset sampling time is the previous preset sampling time of the first preset sampling time; Calculating the cumulative index change rate of the target monitoring node at the first preset sampling time according to the index change rate of the preset sampling time set; wherein the preset sampling time set includes all preset sampling times between the initial preset sampling time and the first preset sampling time; The indicator change slope of the target monitoring node at the first preset sampling moment is calculated based on the duration from the first preset sampling moment to the initial preset sampling moment, and the cumulative indicator change rate of the target monitoring node at the first preset sampling moment, so as to obtain the indicator change slope at each preset sampling moment.
2. The method according to claim 1, It is characterized in that The formula for calculating the slope difference between any two monitoring nodes in the slope difference matrix is: In the above formula, D i,j (t 0 +L*T) indicates the slope difference between monitoring node i and monitoring node j, t 0 is the initial preset sampling time, L is the number of samplings in the preset time window, T is the interval between two samplings, and a i (t 0 +L*T) is the monitoring node i at t 0 +L*T index change slope, a j (t 0 +L*T) is the monitoring node j at t 0 +L*T index change slope, μ i , σ i They represent the mean and variance of the slope of the indicator change of monitoring node i within the preset time window k*T, μ j , σ j They respectively represent the mean and variance of the indicator change slope of monitoring node j in the preset time window k*T.
3. The method according to claim 1, It is characterized in that After obtaining the power quality index of the target monitoring node of the power grid at each preset sampling time, the method further includes: Calculating the variance according to the power quality index of the target monitoring node at each preset sampling time, and using the calculated variance value as the index fluctuation value of the target monitoring node; If the indicator fluctuation value of the target monitoring node is less than or equal to a preset fluctuation threshold, the target monitoring node is removed from the multiple monitoring nodes.
4. The method according to claim 1, It is characterized in that After the moment when the difference quantity is less than or equal to the preset difference threshold for the first time is determined as the disturbance end moment within the judgment duration, the method further includes: Determine a first disturbance node and a second disturbance node in the slope difference matrix, and use the route between the first disturbance node and the second disturbance node as a disturbance occurrence route; wherein the elements corresponding to the first disturbance node and the second disturbance node are the minimum elements in the slope difference matrix, and there is a disturbance source in the disturbance occurrence route; Determine a first distance from the first disturbance node to a target disturbance node, and a second distance from the second disturbance node to the target disturbance node; wherein the first disturbance node set is composed of monitoring nodes corresponding to elements in the slope difference matrix whose slope differences are less than a preset slope difference threshold, all nodes in the first disturbance node set except the first disturbance node and the second disturbance node constitute the second disturbance node set, the target disturbance node is any one in the second disturbance node set, and the distance is the product of the actual length between two monitoring nodes and the unit impedance of the line; Put the larger value of the first distance and the second distance corresponding to the same target disturbance node into the first distance set, and put the smaller value of the first distance and the second distance corresponding to the same target disturbance node into the second distance set; The position of the disturbance source within the disturbance occurrence route is calculated according to the first distance set, the second distance set and the length of the disturbance occurrence route.
5. The method according to claim 4, It is characterized in that The determining a first distance from the first disturbance node to the target disturbance node, and a second distance from the second disturbance node to the target disturbance node, comprises: Initializing the access status of all monitoring nodes in the first disturbance node set except the target disturbance node to an unvisited state; Each time, from the first disturbance node set, a monitoring node with the shortest distance from the starting node and in an unvisited state is selected as an intermediate node, added to the visited set, and the shortest distance between the starting node and the monitoring nodes that can be reached by all the intermediate nodes is optimized until the target disturbance node is reached; wherein the starting node is the first disturbance node or the second disturbance node, and the access state of the monitoring node in the visited set is changed to the visited state; Determine whether all monitoring nodes in the first disturbance node set except the target disturbance node have been added to the visited set, and if not, return to execute the step of selecting a monitoring node in the first disturbance node set each time as an intermediate node that has the smallest distance from the start node and is in an unvisited state, and subsequent steps, until all monitoring nodes in the second disturbance node set have been added to the visited set; The shortest distance from the first disturbance node to the target disturbance node after optimization is used as the first distance, and the shortest distance from the second disturbance node to the target disturbance node after optimization is used as the second distance.
6. The method according to claim 4, It is characterized in that The calculation formula for calculating the position of the disturbance source within the disturbance occurrence route is: In the above formula, L 扰 indicates the location of the disturbance source, sum(I(y)) is the first distance set, sum(I(z)) is the second distance set, ING yz Indicates the length of the path along which the disturbance occurs, relative to y.
7. A disturbance judgment device for power quality, It is characterized in that The device comprises: An indicator change slope calculation module is used to obtain the power quality indicator of the target monitoring node of the power grid at each preset sampling time within a preset judgment time, and calculate the indicator change slope of the target monitoring node at each preset sampling time according to the power quality indicator; wherein the power grid includes multiple monitoring nodes, and the target monitoring node is any one of the multiple monitoring nodes; A slope difference matrix calculation module, used to calculate the slope difference matrix of the power grid according to the index change slope of every two arbitrary monitoring nodes in the plurality of monitoring nodes within the same preset time window; wherein the value of each element in the slope difference matrix is used to indicate the slope difference between the two monitoring nodes; A disturbance time period determination module is used to determine, after the judgment time period starts timing, the moment when the difference number in the slope difference matrix is first greater than a preset difference threshold as the disturbance start time within the judgment time period; wherein the difference number is the number of elements in the slope difference matrix whose slope differences counted in sampling time order are less than the preset slope difference threshold; after determining the disturbance start time, determine the moment when the difference number is first less than or equal to the preset difference threshold as the disturbance end time within the judgment time period; The calculating the index change slope of the target monitoring node at each preset sampling time according to the power quality index includes: Calculate the index change rate of the target monitoring node at the first preset sampling time according to the power quality index at the first preset sampling time and the second preset sampling time; wherein the first preset sampling time is any one of the multiple preset sampling times within the judgment time, and the second preset sampling time is the previous preset sampling time of the first preset sampling time; Calculating the cumulative index change rate of the target monitoring node at the first preset sampling time according to the index change rate of the preset sampling time set; wherein the preset sampling time set includes all preset sampling times between the initial preset sampling time and the first preset sampling time; The indicator change slope of the target monitoring node at the first preset sampling moment is calculated based on the duration from the first preset sampling moment to the initial preset sampling moment, and the cumulative indicator change rate of the target monitoring node at the first preset sampling moment, so as to obtain the indicator change slope at each preset sampling moment.
8. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.
9. A disturbance judgment device for power quality, comprising a memory and a processor, It is characterized in that The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Electric energy quality data processing method and apparatus thereof
CN103605016A
Hierarchy analytical method inconsistent matrix adjusting method and system
CN106066847A
Deviation peak value calculating method and device based on frequency deviation change rate of the power grid
CN107800138A
Online fault diagnosis method of intelligent power grid electric energy quality
CN109884419A
Voltage stability disturbance source localization method based on random matrix theory
CN110137944A
