PMU configuration method based on improved dung beetle optimization algorithm
By improving the dung beetle optimization algorithm, combined with the observation rules of key nodes and important lines and the properties of zero-injection nodes, the problem of local optimality and high cost of PMU configuration in large power systems is solved, and a more efficient and stable PMU configuration is achieved. plan.
Patent Information
- Application Number
- CN202410858038.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
AI Technical Summary
Existing PMU configuration methods in large power systems have problems such as weak global search capabilities, slow convergence, and easy falling into local optimal solutions. In addition, too many PMUs are configured, resulting in increased system stability and cost.
The improved dung beetle optimization algorithm is used to determine the key nodes and important lines in the power system to ensure that the key nodes are observed by at least two PMUs and that at least one end of the important lines is observed by a PMU. Zero injection nodes are used to reduce the number of PMU configurations. Combined with Sigmoid The conversion function converts the dung beetle optimization algorithm into a binary algorithm to improve global optimization capabilities.
It effectively reduces the number of PMU configurations, improves system stability and cost-effectiveness, avoids local optimal solutions, and significantly improves the global search capability and convergence speed of the algorithm.
Smart Images

Figure CN118797931A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of PMU optimization configuration, and in particular to a PMU configuration method based on an improved dung beetle optimization algorithm. Background Art
[0002] As the scale and structure of power systems become increasingly complex, failures in some key nodes and important transmission lines may eventually lead to the collapse of the entire power grid like a domino effect. The reasonable configuration of synchronized phasor measurement units (PMUs) to ensure the security and stability of the power grid faces a series of technical limitations and challenges.
[0003] As a key device in power system monitoring and control, PMU has the characteristics of high sampling rate and high precision, and can obtain phase and amplitude information of power grid status in real time. However, although the application of PMU brings richness and real-time data, if PMU is configured at each node in the power grid, a large amount of data redundancy will be generated, which not only increases the cost of data transmission, storage and processing, but also reduces the reliability and availability of the system. Therefore, under the condition of limited resources, the optimal configuration of PMU (Optimal PMU Placement, OPP) has become an important issue.
[0004] At present, the algorithms for solving the OPP problem mainly include numerical algorithms and heuristic algorithms. Numerical algorithms are relatively mature and have the characteristics of fast calculation speed and strong convergence ability in small power systems, but they have problems such as weak global search ability and poor universality in large systems. The PMU configuration method based on the 0-1 integer programming algorithm has good practicality on small system nodes, but it takes a long time on large system nodes, and the number of PMUs required to configure the calculation results is too large. Although the integer programming algorithm is used to solve the OPP problem under fault conditions, it also has shortcomings such as slow convergence. Since the OPP problem generally involves multiple constraints and high dimensions, heuristic optimization methods such as genetic algorithms and simulated annealing algorithms that have certain advantages in solving multi-objective and high-dimensional models are widely used in the OPP problem. However, the heuristic optimization method also has problems such as unstable convergence speed, difficult parameter adjustment, and easy to fall into local optimal solutions. Moreover, although the current heuristic optimization method has mentioned key nodes and important lines in the configuration part, the number of configured PMUs is large, which makes it difficult to solve the optimal configuration. Summary of the invention
[0005] The present invention provides a PMU configuration method based on an improved dung beetle optimization algorithm to solve the problem that the existing PMU configuration method requires a large number of PMUs to be configured to meet the global observability of the system and is prone to fall into a local optimal solution.
[0006] The present invention is achieved through the following technical solutions:
[0007] A first aspect of the present invention provides a PMU configuration method based on an improved dung beetle optimization algorithm, comprising:
[0008] S1, determine the key nodes, important lines and zero injection nodes in the power system;
[0009] S2, setting the key node to be observed by at least two PMUs, setting the important line to be observed by at least one PMU, and taking the adjacent nodes of the zero injection node as computing nodes, and setting the computing nodes to be observable;
[0010] S3, under the condition of S2, the optimization objective function is established with the global observability of power system nodes as the constraint and the minimum number of PMUs as the goal;
[0011] S4, converting the dung beetle optimization algorithm into a binary dung beetle optimization algorithm through a Sigmoid conversion function;
[0012] S5, solving the objective function by using a binary dung beetle optimization algorithm to obtain an optimal PMU configuration solution.
[0013] The present invention divides key nodes and important lines to ensure that the key nodes are observed by at least two PMUs and at least one end of the important line can be directly observed by the PMU, thereby ensuring that the system can remain stable when a fault occurs. At the same time, zero injection nodes are taken into consideration, and computing nodes exist in a power grid with zero injection nodes, so as to reduce the number of PMU configurations, thereby significantly reducing the configuration cost and the number of solutions, thereby improving the global optimization capability. By using the Sigmoid conversion function in the dung beetle algorithm to convert continuous positions into a two-dimensional problem of node configuration, the problem that traditional heuristic optimization methods are prone to fall into local optimality is solved.
[0014] Furthermore, the step of determining a key node in the power system includes:
[0015] S110, calculating the three indices of node degree, eigenvector and proximity;
[0016] The degree of the node is calculated as:
[0017]
[0018] Where De(m) represents the degree of node m, branch is the total number of branches, node n is the neighboring node of node m, and A mn is the element in the mth row and nth column of the node relationship matrix A, m,n∈(0,M], M is the total number of nodes in the circuit system;
[0019] The eigenvector is calculated as:
[0020]
[0021] Where T(m) represents the eigenvector of node m, K is the total number of nodes in the power system, λ1,λ2,…,λ K are the K eigenvalues of the adjacency matrix B, λ is the largest eigenvalue, B mn is the element in the mth row and nth column of the adjacency matrix, e=[e1,e2,…,e K ] is the maximum eigenvector corresponding to the maximum eigenvalue λ;
[0022] The proximity is calculated as:
[0023]
[0024] Among them, D m represents the proximity of node m, d mn is the shortest distance from node m to node n, K is the total number of nodes in the power system;
[0025] S120, the three indicators are processed by the TOPSIS method to obtain key nodes.
[0026] Furthermore, the three indicators are processed by TOPSIS method to obtain the key node positions, including:
[0027] S121, the calculation results of the node's degree, eigenvector and proximity form a matrix Z K×H , where K is the total number of nodes in the system, H is the type of indicator for judging important nodes, H = 3;
[0028] S122, for the matrix Z K×H Standardize and get Z′ K×H ;
[0029] S123, find the standardized matrix The maximum value matrix D in each column + And the minimum matrix D - , calculate the relationship between each node and D + and D - The Euclidean distance of the nodes is calculated by assigning the same weight to the three indicators.
[0030] S124, normalizing the score matrix, and obtaining the first T nodes as key nodes.
[0031] Furthermore, the step of determining important lines in the power system includes:
[0032] S130, calculate the intermediate centrality of the line, the formula is:
[0033]
[0034] Among them, (m,n) represents the line between node m and node n, G represents the total number of shortest paths, and c represents the shortest path number. Is the cth shortest path through the line (m,n), if it passes, If not passed
[0035] S131, obtaining an intermediate centrality matrix according to the intermediate centrality formula, and obtaining important routes according to element values of the intermediate centrality matrix.
[0036] Furthermore, the optimization objective function is expressed as:
[0037]
[0038] StAX≥b
[0039] Among them, F1 represents the minimum number of PMUs required to be installed in the power system, x m is a binary variable, indicating whether node m is equipped with PMU. If it is equipped, x m =1, if not configured, x m =0, M is the total number of nodes in the circuit system; F2 represents the minimum value of the inverse of the redundancy of the power system, Re is the redundancy of the power system, P is the set of nodes equipped with PMU, d m is the number of branches associated with the node m configured with PMU; St represents the constraint symbol, A is an M×M dimensional node relationship matrix, and its element Ax n It is expressed as: m,n∈(0,M],X=(x1,x2,…,x M ) represents the configuration of PMU in each node, and b is an n-dimensional column vector whose elements are all 1.
[0040] Furthermore, the dung beetle optimization algorithm is converted into a binary dung beetle optimization algorithm through a Sigmoid conversion function, which is expressed as:
[0041]
[0042] Among them, X i is the position of the i-th dung beetle, Y i is the individual position after being changed by the Sigmoid function, indicating the PMU configuration of node i.
[0043] Furthermore, the step of solving the optimization objective function by using the binary dung beetle optimization algorithm includes:
[0044] S410, initializing the dung beetle population position and algorithm parameters;
[0045] S420, converting the dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all dung beetle positions according to an objective function;
[0046] S430, updating the positions of all dung beetles;
[0047] S440, determining whether each updated dung beetle position exceeds the boundary;
[0048] S450, converting the updated dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all updated positions of the dung beetles according to the objective function;
[0049] S460, update the population according to fitness ranking;
[0050] S470, determine whether the maximum number of iterations has been reached, if not, repeat steps S420 to S470, if so, output the current updated population to obtain the optimal PMU configuration solution.
[0051] Further, the initializing the position of the dung beetle population includes:
[0052] Generate chaotic sequence through Tent chaotic map:
[0053]
[0054] Among them, S i is the state value of the i-th generation, S i+1 is the state value of the next generation, S i is a random number between 0 and 1, τ∈(0,1);
[0055] According to S i The population initialization position is obtained as:
[0056] X i =Lb+(Ub-Lb)S i
[0057] Among them, X i is the initial position of the i-th dung beetle, Lb is the lower bound of the optimization problem search space, and Ub is the upper bound of the optimization problem search space.
[0058] Furthermore, the step S460 includes:
[0059] S461, merge the new population generated in the tth generation with the parent population to form population R t ;
[0060] S462, calculate R t The non-dominated order level and crowding degree of each individual in the network, wherein the non-dominated order level is set according to the domination of the individual by other individuals. The less the individual is dominated by other individuals, the lower the non-dominated order level is, and the more crowded the area where the individual is located is, the smaller the crowding degree is;
[0061] S463, sorting the individuals according to the non-dominated order level and the crowding degree, the sorting rule is: the individual with the smaller non-dominated order level wins, if the non-dominated order levels of two individuals are the same, the one with the larger crowding degree wins;
[0062] S464, taking the first N individuals according to the sorting result to form a new population, where N is the updated population size.
[0063] Furthermore, the method for setting the non-dominated order level is:
[0064] Step 1, calculate the domination count Num(pn) of each individual pn in the population, Num(pn) is the number of individuals that dominate the solution of individual pn;
[0065] Step 2, initialize parameter t = 1, find all individuals in the population that are not dominated by other individuals, that is, individuals with Num(pn) = 0, store them in the set Fr(t), and assign all individuals in the set Fr(t) a non-dominated order level of t;
[0066] Step 3, find the individual qn dominated by the individuals in the set Fr(t), store it in the set Sr(qn), and reduce the domination count of each individual in the set Sr(qn) by one;
[0067] Step 4, let t = t + 1, store the individual qn with a dominance count of 0 into the set Fr (t), and assign the non-dominance order level of all individuals in the set Fr (t) to t;
[0068] Stpe5, determine whether all individuals are assigned non-dominated order levels. If not, repeat Stpe3 to Stpe5. If yes, end.
[0069] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0070] 1. By dividing key nodes and important lines, ensure that key nodes are observed by at least two PMUs and at least one end of important lines can be directly observed by PMUs, thus ensuring that the system can remain stable when a fault occurs;
[0071] 2. Taking into account the zero injection nodes, the computing nodes in the power grid with zero injection nodes are used to reduce the number of PMU configurations, thereby significantly reducing the configuration cost and the number of solutions;
[0072] 3. The sigmoid conversion function and Tent chaos mapping are used in the dung beetle algorithm, which effectively solves the shortcomings of traditional heuristic optimization methods such as easy to fall into local optimality and weak optimization ability;
[0073] 4. Adding non-dominated sorting with elite strategy ensures the diversity of the population, expands the sampling space, and improves the population level. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0075] Figure 1 is a flow chart of a PMU configuration method based on an improved dung beetle optimization algorithm according to an embodiment of the present invention;
[0076] Figure 2 It is a schematic diagram of the IEEE-14 node system;
[0077] Figure 3 It is a work flow chart of a PMU configuration method based on an improved dung beetle optimization algorithm according to an embodiment of the present invention;
[0078] Figure 4 is a schematic diagram of a non-dominated sorting and congestion sorting according to an embodiment of the present invention;
[0079] Figure 5 4 is a schematic diagram of a non-dominated sorting level according to an embodiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0081] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to or inherent to other steps or units of the device.
[0082] The terms used in the various embodiments of the application are only used to describe the purpose of specific embodiments and are not intended to limit the various embodiments of the application. As used herein, the singular form is intended to also include the plural form, unless the context clearly indicates otherwise. Unless otherwise limited, all terms used here (including technical terms and scientific terms) have the same meaning as the meanings commonly understood by ordinary technicians in the field of the various embodiments of the application. The terms (such as the terms defined in the dictionary generally used) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning, unless clearly defined in the various embodiments of the application.
[0083] The embodiment of the present invention provides a PMU configuration method based on an improved dung beetle optimization algorithm, which is suitable for PMU configuration optimization of a power system, ensures global observability of the power system, and is conducive to reducing the number of PMU configurations and improving the stability of the power system.
[0084] As a key device in power system monitoring and control, the synchronized phasor measurement unit (PMU) has the characteristics of high sampling rate and high precision, and can obtain the phase and amplitude information of the power grid state in real time. However, although the application of PMU brings richness and real-time data, if PMU is configured at each node in the power grid, a large amount of data redundancy will be generated, which not only increases the cost of data transmission, storage and processing, but also reduces the reliability and availability of the system.
[0085] In the latest PMU configuration optimization technology, the optimal configuration of the power system PMU of key nodes and important lines is taken into account. This configuration scheme optimizes the configuration of PMU by improving the manta ray foraging algorithm and taking into account key nodes and important lines, thereby ensuring the security and stability of the power grid and avoiding falling into local optimality. However, this method still requires pre-configuration of more PMUs for solution, and in complex power systems, there is still the problem of possible local optimal solutions. Therefore, the present invention aims to solve these problems and limitations in the prior art and provide a more efficient, accurate and reliable power system PMU optimization configuration solution.
[0086] The relevant professional concepts involved in the present invention are explained below to facilitate a better understanding of the technology of the present invention.
[0087] (1) Power system observability: When all node voltage phasors of a power system can be directly or indirectly observed by PMU, the system is said to be fully observable. The state of the power system is divided into two types: observable and unobservable. The corresponding observable node types are divided into three categories: direct observation nodes, indirect measurement nodes, and calculation nodes.
[0088] (2) Direct measurement node: If a node is configured with a PMU and can directly measure its voltage, current phasor and frequency change, then the node is a direct measurement node.
[0089] (3) Indirect measurement node: If a node is equipped with a PMU and can calculate the voltage phasor of its adjacent nodes through Kirchhoff’s law and then obtain the frequency value of the adjacent node using the frequency state equation, then the node is an indirect measurement node.
[0090] (4) Zero injection buses (ZIBs): In actual power systems, there are nodes without generators and loads. When a node is connected to a zero injection bus, the node is a computational node.
[0091] (5) Computational node: If a node is a ZIB and the number of its adjacent nodes is y, if any y adjacent nodes are observable, and the voltage phasor and frequency value of the y+1th node can be calculated by Ohm’s law, Kirchhoff’s law and the frequency state equation, then the node is observable.
[0092] like Figure 1 FIG. 1 is a flow chart of a PMU configuration method based on an improved dung beetle optimization algorithm of the present invention, comprising the following steps:
[0093] S1, determine the key nodes, important lines and zero injection nodes in the power system;
[0094] S2, set the key nodes to be observed by at least two PMUs, set the important lines to be observed by at least one PMU, and use the adjacent nodes of the zero injection node as computing nodes, and set the computing nodes to be observable;
[0095] S3, under the condition of S2, the optimization objective function is established with the global observability of power system nodes as the constraint and the minimum number of PMUs as the goal;
[0096] S4, converting the dung beetle optimization algorithm into a binary dung beetle optimization algorithm through a Sigmoid conversion function;
[0097] S5, solving the objective function through the binary dung beetle optimization algorithm to obtain the optimal PMU configuration solution.
[0098] Based on the global observability rules of power system nodes, the present invention adds observability rules for key nodes, important lines and zero injection nodes to ensure that at least two PMUs are required to observe key nodes and at least one of the two ends of important lines is observed by PMUs, thereby ensuring that the system can remain stable when a fault occurs and avoiding objective factors (such as line aging) from affecting line parameters. Key nodes and important lines can be determined based on experience or power system specifications, that is, nodes and lines that contribute more to the power system and have a greater impact, and zero injection nodes can be determined based on their definitions.
[0099] In one embodiment of the present invention, a more scientific and computable method for determining key nodes, important lines and zero injection nodes is provided. The key nodes in the power system are determined by evaluating the three indicators of node degree, eigenvector and proximity, and the importance of the line and the zero injection node are evaluated by calculating the intermediate centrality of the line.
[0100] Furthermore, the key nodes are determined as follows:
[0101] S110, first calculate the three indicators of node degree, eigenvector and proximity.
[0102] The degree of a node represents the degree of connection between the node and the surrounding nodes. The larger the degree of a node, the more important the node is. The degree calculation formula of node m is:
[0103]
[0104] Where De(m) represents the degree of node m, branch is the total number of branches, node n is the adjacent node of node m, and Amn is the element in the mth row and nth column of the node relationship matrix A. m,n∈(0,M], M is the total number of nodes in the circuit system.
[0105] When evaluating the importance of a node, the feature vector takes into account the connection relationship of the node. The feature vector calculation formula for node m is:
[0106]
[0107] Where T(m) represents the eigenvector of node m, K is the total number of nodes in the power system, λ1,λ2,…,λ K are the K eigenvalues of the adjacency matrix B, λ is the largest eigenvalue, B mn is the element in the mth row and nth column of the adjacency matrix B, e=[e1,e2,…,e K ] is the maximum eigenvector corresponding to the maximum eigenvalue λ.
[0108] The elements in the adjacency matrix B indicate whether there is an edge connecting the corresponding nodes. If there is an edge connecting node n and node m, the element in the nth row and mth column of the adjacency matrix is 1; if there is no edge connecting them, it is 0.
[0109] Proximity reflects the ease with which a node can reach other nodes through the network. The proximity of node m is the reciprocal of the sum of the shortest distances from the node to other nodes in the network. The calculation formula for the proximity of node m is:
[0110]
[0111] Among them, D m represents the proximity of node m, d mn is the shortest distance from node m to node n, and K is the total number of nodes in the power system.
[0112] S120, obtaining key nodes through weighted calculation of the three indicators. In this embodiment, the TOPSIS method is used to process the three indicators.
[0113] Specifically, the evaluation steps by TOPSIS method are as follows:
[0114] S121, the calculation results of the node's degree, eigenvector and proximity form a matrix Z K×H , where K is the total number of nodes in the system, H is the type of indicator for judging important nodes, H = 3;
[0115] S122, for the matrix Z K×H Standardize and get Z′ K×H ;
[0116] S123, find the standardized matrix The maximum value matrix D in each column + And the minimum matrix D - , calculate the relationship between each node and D + and D - The Euclidean distance of the nodes is calculated by assigning the same weight to the three indicators.
[0117] S124, normalizing the score matrix, and obtaining the first T nodes as key nodes.
[0118] Take the IEEE-14 node system as an example. Figure 2 The figure shows the schematic diagram of the IEEE-14 node system. In the IEEE-14 node system, K = 14 and H = 3. First, the degree, eigenvector and proximity of each node are calculated by formulas (1), (2) and (3). The calculation results are shown in Table 1.
[0119] Table 1 Results of judging key nodes by three types of indicators
[0120]
[0121] Write the calculation results as matrix Z K×H ,as follows:
[0122]
[0123] For the matrix Z K×H The purpose of standardization is to eliminate the influence of dimension. The mathematical formula for standardization is as follows:
[0124]
[0125] Among them, x kh is the matrix Z K×H The elements in , n is the number of elements, is the standardized element.
[0126] Get the standardized matrix Z s for:
[0127]
[0128] In step S123, the maximum value matrix D + And the minimum matrix D - The formula is:
[0129]
[0130] Among them, z kh is the matrix Z s The elements in is the matrix Z s The largest element in the pth column, W p is the element in the pth column of the weight matrix W, is the maximum value matrix D + The largest element in the qth column of is the maximum value matrix D - The largest element in the qth column of .
[0131] Calculate each node and the maximum value matrix D + And the minimum matrix D - Euclidean distance, giving the three indicators the same weight, weight matrix
[0132] Then calculate the score matrix S of all nodes and normalize it. The score matrix calculation formula is:
[0133]
[0134] Among them, Sq is the qth column element of the matrix S.
[0135] The normalization formula is:
[0136]
[0137] Where K is the total number of nodes in the system.
[0138] Then the normalized score matrix of the IEEE-14 node system is as follows:
[0139]
[0140] Usually, key nodes account for about 10% of the total number of nodes. For the IEEE-14 node system, the first three nodes with the largest weights are taken as key nodes, that is, nodes 2, 4, and 5 are key nodes. Key nodes 2, 4, and 5 can be observed by at least two PMUs to ensure the validity of node measurement data.
[0141] Furthermore, important routes can be determined by calculating the intermediate centrality of the route. The intermediate centrality of a route measures the number of times a route appears on a shortest path. It is necessary to consider all the shortest paths between two points in the system that pass through the route and calculate the proportion of the route in all shortest paths. It can reflect the importance of the route. The judgment method is as follows:
[0142] S130, calculate the intermediate centrality of the line, the formula is:
[0143]
[0144] Among them, (m,n) represents the line between node m and node n, G represents the total number of shortest paths, and c represents the shortest path number. Is the cth shortest path through the line (m,n), if it passes, If not passed
[0145] S131, the intermediate centrality matrix is calculated according to the intermediate centrality formula, and the important routes are obtained according to the element values of the intermediate centrality matrix.
[0146] Taking the IEEE-14 node system as an example, the intermediate centrality matrix M of the line is calculated by formula (10), as follows:
[0147]
[0148] M is a symmetric matrix, "0" means that the nodes are not connected or are their own nodes, and the value represents the importance of the transmission line. It can be seen that lines 4-5, 5-6, 4-9 and 9-14 are important lines compared to other lines. When considering important lines, at least one of its two ends is observed by the PMU to avoid objective factors affecting the line parameters.
[0149] Furthermore, considering the zero injection node, combined with the observability principle, we can ensure that the power system is globally observable. Taking the IEEE-14 node system as an example, the zero injection node is node 7, and the nodes connected to node 7 are nodes 4, 8, and 9. These three nodes can become computing nodes. The computing nodes can calculate the voltage phasor and frequency value by Ohm's law, Kirchhoff's law and frequency state equation, so they are observable.
[0150] In step S3, the present invention takes the global observability of power system nodes as a constraint condition, takes key nodes, important lines and zero injection nodes into consideration, modifies the observation rules, and takes the configuration of the minimum number of PMUs as the goal. The fewer the number of PMUs, the better the economy of the configuration scheme. The optimization objective function of the K-node power system PMU configuration model is defined as follows:
[0151]
[0152] Among them, F1 represents the minimum number of PMUs required to be installed in the power system, x m is a binary variable, indicating whether node m is equipped with PMU. If it is equipped, x m =1, if not configured, x m =0, M is the total number of nodes in the circuit system; F2 represents the minimum value of the inverse of the redundancy of the power system, Re is the redundancy of the power system, P is the set of nodes equipped with PMU, d m is the number of branches associated with the node m configured with PMU; St represents the constraint symbol, A is an M×M dimensional node relationship matrix, and its element A mn It is expressed as: m,n∈(0,M],X=(x1,x2,…,x M ) represents the configuration of PMU in each node, and b is an n-dimensional column vector whose elements are all 1.
[0153] Under the global observable observation constraint of nodes, constraints on key nodes, important lines and zero injection nodes are also included. First, determine the key nodes and, then consider the zero injection nodes, combine the observability principle to ensure that the power system is globally observable, and preset the PMU configuration position according to the key nodes and important lines.
[0154] Steps S4-S5 are to solve the optimal configuration. The present invention improves the original dung beetle optimization algorithm. First, the original dung beetle optimization algorithm (DBO) is converted into a binary dung beetle optimization algorithm (BDBO) using a Sigmoid conversion function, and second, the chaotic sequence generated by the Tent chaotic map is used to initialize the population position. The shortcomings of the traditional heuristic optimization method that it is easy to fall into the local optimum and has a weak optimization ability are effectively solved.
[0155] The original dung beetle optimization algorithm uses random initialization to give the initial position of the dung beetle individuals. Although it ensures the randomness of the population, it is easy to cause the initial position of the population to be too far away from the optimal position, which affects the convergence speed and solution accuracy. The chaotic sequence generated by the Tent chaotic map can make the population distribution more uniform, which is defined as follows:
[0156]
[0157] Among them, S i is the state value of the current iteration, S i+1 is the state value of the next iteration, S i is a random number between 0 and 1, τ∈(0,1), which can take the value 0.499;
[0158] According to S i The population initialization position is obtained as:
[0159] X i =Lb+(Ub-Lb)S i (14)
[0160] Among them, X i is the initial position of the i-th dung beetle, Lb is the lower bound of the optimization problem search space, and Ub is the upper bound of the optimization problem search space.
[0161] The PMU optimization configuration belongs to the 0 / 1 problem, so it is necessary to convert the original dung beetle optimization algorithm into a binary dung beetle optimization algorithm. Specifically, the Sigmoid conversion function is used to discretize the continuous solution space into a binary number 0 or 1 suitable for PMU configuration. The expression is as follows:
[0162]
[0163] Among them, X i is the position of the i-th dung beetle, Y i is the individual position after being changed by the Sigmoid function, indicating the PMU configuration of node i.
[0164] like Figure 3The figure shows a workflow diagram of a PMU configuration method based on an improved dung beetle optimization algorithm, which includes the following steps:
[0165] S410, initializing the dung beetle population position and algorithm parameters;
[0166] S420, converting the dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all dung beetle positions according to an objective function;
[0167] S430, updating the positions of all dung beetles;
[0168] S440, determining whether each updated dung beetle position exceeds the boundary;
[0169] S450, converting the updated dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all updated positions of dung beetles according to the objective function.
[0170] S460, update the population according to fitness ranking;
[0171] S470, determine whether the maximum number of iterations has been reached, if not, repeat steps S420 to S470, if so, output the current optimal population to obtain the optimal PMU configuration solution.
[0172] Among them, fitness is the function value of bringing the individual into the objective functions F1 and F2. The objective function is also the fitness function. There are two objective functions in the present invention, which means that an individual has two fitnesses.
[0173] Preferably, in step S410, the position of the dung beetle population is initialized using Tent chaotic mapping, see formulas (12) and (13) for details.
[0174] The updated dung beetle position is converted into a number of 0 or 1 through the Sigmoid conversion function, see formula (14) and (15) for details.
[0175] In step S430, the ball rolling, dancing, foraging, breeding and stealing behaviors of dung beetles are designed as update rules to optimize the initial position. Each dung beetle population consists of four types of dung beetles with different behaviors, namely, ball rolling dung beetles, breeding dung beetles, small dung beetles and stealing dung beetles. The specific update operation is as follows:
[0176] 1. Rolling Ball Dung Beetle Update Rules
[0177] In order to simulate the rolling ball behavior, the rolling ball beetle needs to move in a given direction in the entire search space. During the rolling process, the position of the rolling ball beetle will be updated. The rolling mathematical model of the rolling ball beetle is expressed as:
[0178] x i(t+1)=x i (t)+α×β×x i (t-1)+b×Δx, (17)
[0179] Δx=|x i (t)-X w |
[0180] Among them, t represents the current iteration number, x i (t) represents the position information of the i-th dung beetle in the population at the t-th iteration, α is a natural coefficient, assigned a value of -1 or 1, β is a constant, β∈(0,0.2] represents the deflection coefficient, b is a constant belonging to (0,1), Δx is used to simulate the change of light intensity, X w represents the global worst position.
[0181] When a dung beetle encounters an obstacle and cannot move forward, it needs to reposition itself through dancing in order to obtain a new route. To simulate dancing behavior, the tangent function is used to obtain a new rolling direction. The mathematical expression of the position of the rolling dung beetle's dancing behavior is:
[0182] x i (t+1)=x i (t)+tanθx i (t)-x i (t-1)| (18)
[0183] Among them, we only need to consider the interval [0,π], x i (t)-x i (t-1) represents the absolute value of the difference between the position of the i-th dung beetle at the t-th iteration and its position at the t-1-th iteration.
[0184] 2. Updated rules for breeding dung beetles
[0185] Simulation of breeding dung beetles The boundary selection strategy for the dung beetle's egg-laying area is defined as:
[0186]
[0187] Among them, X * is the current local optimal position, Lb * and Ub * are the lower and upper limits of the spawning area, respectively, R1=1-t / T max , t represents the current iteration number, T max Represents the maximum number of iterations. Lb and Ub are the lower and upper bounds of the optimization problem, respectively.
[0188] Once the spawning area is determined, the breeding dung beetles will choose the breeding ball in this spawning area to lay eggs. Each breeding dung beetle will only lay one egg in each iteration. It can be clearly seen from formula (18) that the boundary range of the spawning area changes dynamically, which is mainly determined by the R1 value. Therefore, the position of the breeding ball is also dynamic during the iteration process. The iteration process is expressed as:
[0189] B j (t+1)=X * +b1×(B j (t)-Lb * )+b2×(B j (t)-Ub * ) (20)
[0190] Among them, B j (t) is the position information of the j-th breeding ball at the t-th iteration, b1 and b2 are two independent random vectors of size 1×D, and D is the dimension of the optimization problem.
[0191] 3. Update rules for dung beetles
[0192] The optimal foraging area was established to guide the dung beetles to forage and simulate the foraging process of the dung beetles in nature. The boundary of the optimal foraging area of the dung beetles is defined as:
[0193]
[0194] Among them, X best is the global optimal position, Lb best and Ub best are the lower and upper bounds of the optimal foraging area, respectively, R1=1-t / T max .
[0195] The expression for updating the position of the dung beetle is as follows:
[0196] x i (t+1)=x i (t)+C1×(x i (t)-Lb best )+C2×(x i (t)-Ub best ) (twenty two)
[0197] In the formula, x i (t+1) is the position information of the i-th dung beetle at the t+1th iteration, x i (t) is the position information of the i-th dung beetle at the t-th iteration, C1 is a random number that obeys the normal distribution, and C2 is a random vector belonging to (0.1).
[0198] 4. Stealing Dung Beetles
[0199] When X best is the best global food source, assuming X best The nearby is the best place to compete for food. During the iteration process, the location information of the thieving dung beetle is updated. The expression for updating the location information of the thieving dung beetle is:
[0200] x i (t+1)=X best +γ×g×(|x i (t)-X * |+|x i (t)-X best |) (23)
[0201] Among them, x i (t+1) is the position information of the i-th dung beetle at the t+1th iteration, g is a random vector of size 1×D that obeys the normal distribution, and γ is a constant.
[0202] Specifically, when updating the population position, the dung beetle population is divided into 35% of stealing dung beetles, 20% of rolling dung beetles, 25% of small dung beetles, and 20% of breeding dung beetles. When R<0.8, the rolling dung beetles use formula (17) to update their position. Otherwise, they perform dancing behavior and update their position according to formula (18). The position update formula for breeding dung beetles is formula (20); the position update formula for small dung beetles is based on formula (22), and the position update formula for stealing dung beetles is formula (23). According to formulas (19) and (21), the updated dung beetle population position is judged to be out of bounds.
[0203] In one embodiment, step S460 uses a non-dominated sorting with an elite strategy, including a non-dominated sorting and a crowdedness sorting. Both the non-dominated sorting and the crowdedness are related to fitness, and fitness determines the non-dominated level and crowdedness of an individual. Figure 4 The following is a schematic diagram of non-dominated sorting and congestion sorting, including the following steps:
[0204] 1. Non-dominated sorting rule
[0205] For each solution pn, two entities need to be calculated: the domination count Num(pn) and Sr(pn). Num(pn) is the number of solutions that dominate solution pn; Sr(pn) is the set of solutions dominated by solution pn. All individuals are classified according to Num(pn) and Sr(pn). The classification method is as follows:
[0206] Step 1, calculate the domination count Num(pn) of each individual pn in the population, Num(pn) is the number of individuals that dominate the solution of individual pn;
[0207] Step 2, initialize parameter t = 1, find all individuals in the population that are not dominated by other individuals, that is, individuals with Num(pn) = 0, store them in the set Fr(t), and assign all individuals in the set Fr(t) a non-dominated order level of t;
[0208] Step 3, find the individual qn dominated by the individuals in the set Fr(t), store it in the set Sr(qn), and reduce the domination count of each individual in the set Sr(qn) by one;
[0209] Step 4, let t = t + 1, store the individual qn with a dominance count of 0 into the set Fr (t), and assign the non-dominance order level of all individuals in the set Fr (t) to t;
[0210] Stpe5, determine whether all individuals are assigned non-dominated order levels. If not, repeat Stpe3 to Stpe5. If yes, end.
[0211] There are two objective functions in the present invention, that is, an individual has two fitness F1 and F2. The schematic diagram of the non-dominated ranking level according to the two fitness is as follows: Figure 5 shown.
[0212] The above non-dominated order levels can also be assigned from large to small, and the larger the level, the higher the priority of the individual.
[0213] 2. Crowding sorting rules
[0214] For each objective function, the boundary solutions (the solutions corresponding to the maximum and minimum values of the function) are assigned an infinite distance value. All other intermediate solutions are assigned a distance value pr that is the same as the absolute value of the normalized difference between the function values of the two adjacent solutions. d :
[0215]
[0216] Among them, Pr[pn+1].mr and Pr[pn-1].mr are the function values of the next and previous solutions of solution pn at the mrth objective function respectively. and are the maximum and minimum values of the mrth objective function respectively.
[0217] In step S410, after the non-dominated order level pn rank and congestion degree pn d , each individual pn in the population has two attributes, namely the non-dominated order level pn determined by the non-dominated sorting rank and congestion degree pn dBased on these two properties, the crowding comparison operator is defined: when individual pn is compared with another individual qn, individual pn wins as long as any of the following conditions is met:
[0218] (1) If the non-dominated order level of individual pn is better than the non-dominated layer of individual qn, that is, pn rank <qn rank For example, the smaller the number of non-dominated order level is, the better it is. The non-dominated order level of individual pn is 2, and the non-dominated order level of individual is 3qn, then pn rank <qn rank , individual pn wins.
[0219] (2) The non-dominated order of individual pn and individual qn is the same, if individual pn has a larger crowding distance than individual qn, that is, pn rank =qn rank , and pn d >qn d For example, if the non-dominated order levels of individuals pn and qn are both 2, then the crowding degrees of the two individuals are compared. If the crowding degree of individual pn is greater than that of individual qn, then individual pn wins.
[0220] The above decision condition (1) ensures that the selected individual belongs to the better non-inferior level (the one with the higher level wins), and decision condition (2) selects the individual located in the less crowded area among two individuals that are tied for the same non-inferior level according to their crowding distance (the one with the less crowded area wins). The winning individual enters the next operation.
[0221] Therefore, updating the population based on the above two sorting rules may include the following steps:
[0222] Step 1: Calculate the non-dominated order level pn of each individual rank and congestion degree pn d , according to pn rank and pn d Sort the individuals. The sorting rule is: the individual with the larger non-dominated order level wins. If the non-dominated order levels of two individuals are the same, the one with the larger crowding degree wins.
[0223] Step 2: According to the sorting results, take the first N individuals to form a new population, where N is the updated population size.
[0224] In one embodiment, based on the above ranking, the population is updated through the management strategy. First, the new population Q generated in the tth generation is t With the parent population P t Merge to form population R t , then R t The population size is 2N. Then for R tPerform non-dominated sorting to generate a series of non-dominated sets Zr i And calculate the congestion.
[0225] Then, based on the above two sorting rules, the population is updated, including the following steps:
[0226] S461, the new population Q generated in the tth generation t With the parent population P t Merge to form population R t ;
[0227] S462, calculate the non-dominated order level pn of each individual rank and congestion degree pn d ;
[0228] S463, according to pn rank and pn d Sort the individuals. The sorting rule is: the individual with the larger non-dominated order level wins. If the non-dominated order levels of two individuals are the same, the one with the larger crowding degree wins.
[0229] S464, taking the first N individuals according to the sorting result to form a new population, where N is the updated population size.
[0230] Furthermore, since both the offspring and parent individuals are included in R t Then the non-dominated set Zr1 after non-dominated sorting is the best. So first add Zr1 to P t+1 In the new parent population. If P t+1 If the population size is less than N, continue to move towards population P t+1 Add Zr2. And so on until P is added. t+1 When the population size exceeds N, the population size is increased based on the crowding comparison operator. t+1 The number of individuals reaches N (when adding a Zr2 will exceed N, then add the Zr2 with higher crowding). This method can reduce the crowding sorting calculation.
[0231] Through the above embodiments, the present invention provides an efficient, accurate and low-cost PMU optimization configuration solution, which has the following advantages:
[0232] Reducing costs: Since the present invention takes zero injection nodes into consideration and utilizes the property of computing nodes existing in a power grid with zero injection nodes, the number of PMU configurations is reduced, thereby significantly reducing configuration costs.
[0233] Improve global optimization capability: The present invention adopts Tent chaotic mapping in the dung beetle algorithm to make the population distribution more uniform and explore a wider space during the search process, effectively solving the shortcomings of the traditional dung beetle algorithm method that is easy to fall into local optimality and has weak optimization capability.
[0234] Extended application scenario: The present invention adopts the Sigmoid function in the dung beetle algorithm to convert the original dung beetle optimization algorithm (DBO) into a binary dung beetle optimization algorithm (binary DBO BDBO), which can effectively handle the PMU optimization configuration problem.
[0235] Improved algorithm performance: By retaining elite individuals through non-dominated sorting with elite strategy, the convergence, diversity, and robustness of the algorithm are improved, the parameter setting is simplified, and the solution search process is accelerated to solve optimization problems with multiple objective functions.
[0236] According to a second aspect of the present invention, an electronic device is provided, which includes a processor, a memory, an input device, an output device and a communication device; the number of processors in the computer device can be one or more; the processor, memory, input device and output device in the electronic device can be connected via a bus or other means.
[0237] The memory is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules. The processor executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory to implement the PMU configuration method based on the improved dung beetle optimization algorithm of any of the above embodiments of the present invention.
[0238] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0239] The input device 23 can be used to receive the ID and password input by the user, etc. The output device 24 is used to output the network configuration page.
[0240] In a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, a PMU configuration method based on an improved dung beetle optimization algorithm according to any embodiment of the present invention is implemented. The storage medium may be a ROM / RAM, a magnetic disk, an optical disk, etc.
[0241] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A PMU configuration method based on an improved dung beetle optimization algorithm, characterized in that: include: S1, determine the key nodes, important lines and zero injection nodes in the power system; S2, setting the key node to be observed by at least two PMUs, setting the important line to be observed by at least one PMU, and taking the adjacent nodes of the zero injection node as computing nodes, and setting the computing nodes to be observable; S3, under the condition of S2, the optimization objective function is established with the global observability of power system nodes as the constraint and the minimum number of PMUs as the goal; S4, converting the dung beetle optimization algorithm into a binary dung beetle optimization algorithm through a Sigmoid conversion function; S5, solving the objective function by using a binary dung beetle optimization algorithm to obtain an optimal PMU configuration solution.
2. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 1, characterized in that: The determining of key nodes in the power system includes: S110, calculating the three indices of node degree, eigenvector and proximity; The degree of the node is calculated as: Where De(m) represents the degree of node m, branch is the total number of branches, node n is the neighboring node of node m, and A mn is the element in the mth row and nth column of the node relationship matrix A, m,n∈(0,M], M is the total number of nodes in the circuit system; The eigenvector is calculated as: Where T(m) represents the eigenvector of node m, K is the total number of nodes in the power system, λ1,λ2,…,λ K are the K eigenvalues of the adjacency matrix B, λ is the largest eigenvalue, B mn is the element in the mth row and nth column of the adjacency matrix B, e=[e1,e2,…,e K ] is the maximum eigenvector corresponding to the maximum eigenvalue λ; The proximity is calculated as: Among them, D m represents the proximity of node m, d mn is the shortest distance from node m to node n, K is the total number of nodes in the power system; S120, the three indicators are processed by the TOPSIS method to obtain key nodes.
3. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 2, characterized in that: The three indicators are processed by the TOPSIS method to obtain the key node positions, including: S121, the calculation results of the node's degree, eigenvector and proximity form a matrix Z K×H , where K is the total number of nodes in the system, H is the type of indicator for judging important nodes, H = 3; S122, for the matrix Z K×H Standardize and get Z′ K×H ; S123, find the standardized matrix The maximum value matrix D in each column + And the minimum matrix D - , calculate the relationship between each node and D + and D - The Euclidean distance of the nodes is calculated by assigning the same weight to the three indicators. S124, normalizing the score matrix, and obtaining the first T nodes as key nodes.
4. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 1, characterized in that: The determining of important lines in the power system includes: S130, calculate the intermediate centrality of the line, the formula is: Among them, (m,n) represents the line between node m and node n, G represents the total number of shortest paths, and c represents the shortest path number. Is the cth shortest path through the line (m,n), if it passes, If not passed S131, obtaining an intermediate centrality matrix according to the intermediate centrality formula, and obtaining important routes according to element values of the intermediate centrality matrix.
5. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 1, characterized in that: The optimization objective function is expressed as: StAX≥b Among them, F1 represents the minimum number of PMUs required to be installed in the power system, x m is a binary variable, indicating whether node m is equipped with PMU. If it is equipped, x m =1, if not configured, x m =0, M is the total number of nodes in the circuit system; F2 represents the minimum value of the inverse of the redundancy of the power system, Re is the redundancy of the power system, P is the set of nodes equipped with PMU, d m is the number of branches associated with the node m configured with PMU; St represents the constraint symbol, A is an M×M dimensional node relationship matrix, and its element A mn It is expressed as: m,n∈(0,M],X=(x1,x2,…,x M ) represents the configuration of PMU in each node, and b is an n-dimensional column vector whose elements are all 1.
6. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 1, characterized in that: The dung beetle optimization algorithm is converted into a binary dung beetle optimization algorithm through the Sigmoid conversion function, which is expressed as: Among them, X i is the position of the i-th dung beetle, Y i is the individual position after being changed by the Sigmoid function, indicating the PMU configuration of node i.
7. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 6 is characterized in that: The step of solving the optimization objective function by using the binary dung beetle optimization algorithm comprises: S410, initializing the dung beetle population position and algorithm parameters; S420, converting the dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all dung beetle positions according to an objective function; S430, updating the positions of all dung beetles; S440, determining whether each updated dung beetle position exceeds the boundary; S450, converting the updated dung beetle position into a number of 0 or 1 through a Sigmoid conversion function, and calculating the fitness of all updated positions of the dung beetles according to the objective function; S460, update the population according to fitness ranking; S470, determine whether the maximum number of iterations has been reached, if not, repeat steps S420 to S470, if so, output the current updated population to obtain the optimal PMU configuration solution.
8. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 7, characterized in that: Initializing the position of the dung beetle population includes: Generate chaotic sequence through Tent chaotic map: Among them, S i is the state value of the i-th generation, S i+1 is the state value of the next generation, S i is a random number between 0 and 1, τ∈(0,1); According to S i The population initialization position is obtained as: X i =Lb+(Ub-Lb)S i Among them, X i is the initial position of the i-th dung beetle, Lb is the lower bound of the optimization problem search space, and Ub is the upper bound of the optimization problem search space.
9. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 7, characterized in that: Step S460 includes: S461, merge the new population generated in the tth generation with the parent population to form population R t ; S462, calculate R t The non-dominated order level and crowding degree of each individual in the network, wherein the non-dominated order level is set according to the domination of the individual by other individuals. The less the individual is dominated by other individuals, the lower the non-dominated order level is, and the more crowded the area where the individual is located is, the smaller the crowding degree is; S463, sorting the individuals according to the non-dominated order level and the crowding degree, the sorting rule is: the individual with the smaller non-dominated order level wins, if the non-dominated order levels of two individuals are the same, the one with the larger crowding degree wins; S464, taking the first N individuals according to the sorting result to form a new population, where N is the updated population size.
10. The PMU configuration method based on the improved dung beetle optimization algorithm according to claim 9, characterized in that: The method for setting the non-dominated order level is: Step 1, calculate the domination count Num(pn) of each individual pn in the population, Num(pn) is the number of individuals that dominate the solution of individual pn; Step 2, initialize parameter t = 1, find all individuals in the population that are not dominated by other individuals, that is, individuals with Num(pn) = 0, store them in the set Fr(t), and assign all individuals in the set Fr(t) a non-dominated order level of t; Step 3, find the individual qn dominated by the individuals in the set Fr(t), store it in the set Sr(qn), and reduce the domination count of each individual in the set Sr(qn) by one; Step 4, let t = t + 1, store the individual qn with a dominance count of 0 into the set Fr (t), and assign the non-dominance order level of all individuals in the set Fr (t) to t; Stpe5, determine whether all individuals are assigned non-dominated order levels. If not, repeat Stpe3 to Stpe5. If yes, end.
Citation Information
Cited By
PMU multi-working-condition test sequence automatic scheduling method and system
CN122044777A
A PMU multi-working condition test sequence automatic scheduling method and system
CN122044777B
