Power grid line optimization method and system based on edge calculation
By arranging sensors in the power grid and using ant colony and genetic algorithm models to screen optimization paths, the problem of uneven direction vector selection in the MEMD algorithm is solved, and the estimation accuracy of multivariate signals and the decomposition efficiency of power grid signals are improved.
Patent Information
- Application Number
- CN202410721309.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
AI Technical Summary
The existing MEMD algorithm fails to make full use of prior knowledge in direction vector selection, resulting in inaccurate estimation of the multivariate signal envelope and local mean, which affects the accuracy of MEMD decomposition.
Arrange sensors and sensor collectors in the power grid, combine ant colony algorithm and genetic algorithm models to screen out optimized paths, and combine sensor signals, signal transmission routes and special circumstances to select optimal lines to solve the problem of uneven direction vector selection. .
It improves the estimation accuracy of multivariate signal envelope surface and local mean, achieves more effective multivariate EMD decomposition, and avoids the problem of uneven sensor direction vector data caused by power grid faults.
Smart Images

Figure CN118735089A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid technology, and in particular to a power grid line optimization method and system based on edge computing. Background Art
[0002] The synchronous multi-channel data multi-scale analysis method is developed in the big data environment, making full use of the advantages of the MEMD algorithm in multi-scale analysis, and studying how to select more effective direction vectors under the condition of obtaining prior knowledge of the spatial orientation of multiple sensors, so as to achieve more effective estimation of the multivariate signal envelope surface and local mean, improve the accuracy of MEMD decomposition, and achieve more effective multivariate EMD decomposition; the current MEMD algorithm generally adopts the method based on direction vectors, and regards the calculation of local mean as an estimation of the integral of all envelope lines along the direction vector of n-dimensional space, so the accuracy of the estimation depends on the direction vector selection. The existing direction vector selection algorithms (uniform angle coordinate algorithm, low difference point set algorithm) only consider the uniformity of vector selection, and do not consider any prior knowledge. It is impossible to effectively calculate the optimal line and local mean of multivariate signals. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for optimizing power grid lines based on edge computing to solve the technical problems existing in the above-mentioned background technology.
[0004] To achieve the above object, the technical solution of the present invention is as follows:
[0005] A method for optimizing power grid lines based on edge computing specifically includes the following steps:
[0006] S1. Arrange sensors at several key nodes of the target power grid;
[0007] S2. A sensor collector is arranged at the edge node of the target power grid, and several sensors are aggregated to the sensor collector through communication cables;
[0008] S3, constructing an ant colony algorithm model and a genetic algorithm model, using the ant colony algorithm model to select a number of first nodes to be allocated from the several key nodes in step 1, and connecting the several first nodes to be allocated to form a first optimization path; using the genetic algorithm model to select a number of second nodes to be allocated from the several key nodes in step 1, and connecting the several second nodes to be allocated to form a second optimization path;
[0009] S4, comparing the first optimization path and the second optimization path, and obtaining the optimal route recommended by the model;
[0010] S5. Combine the optimal line, the ratio of the sensor signals received by the edge nodes to the total number of sensors, the number of alarms, and special circumstances, comprehensively determine the optimal signal transmission route, and output the optimal selection result of the signal transmission route.
[0011] Furthermore, the key nodes in S1 include: power units of the power grid, at least one sensor is arranged at each power unit, and the sensor is used to obtain the working status of the power unit corresponding thereto, and the sensor has two states: abnormal and normal.
[0012] Furthermore, the expression of the ant colony algorithm model in S3 is as follows:
[0013]
[0014] In the formula, represents the probability that the kth ant in the tth generation of ants goes to node i or node j; α represents the importance of pheromone; β represents the relative importance of the heuristic factor; n ij represents the heuristic factor; J k (i) represents the node that ant k can choose at the current time; τ ij (t) represents the pheromone of the tth generation ant on the path i~j;
[0015] in, dij represents the distance from node i to node j.
[0016] Furthermore, when all ants complete an iteration, the pheromones on the path they pass through are iterated:
[0017] τ ij (t+1)=(1-ρ)τ ij (t)+Δτ ij ;
[0018]
[0019] In the formula, τ ij (t+1) represents the sum of pheromones left by the ants of the t+1th generation on the path from i to j; represents the pheromone left by the kth ant on the path from i to j; Q represents the pheromone an ant possesses in its lifetime; k represents the ant number; m represents the number of ants; Lk represents the total distance of the path traveled by ant k.
[0020] Furthermore, the working steps of the genetic algorithm model in S3 are as follows:
[0021] S31, taking any key node as the starting point and the edge node as the end point, the population is initialized by using non-fixed-length coding. According to prior knowledge, the next hop node of each key node is randomly selected from X adjacent nodes;
[0022] S32, crossover processing is performed on the population, using single-point crossover, randomly generating a crossover position in the two chromosomes, and performing crossover with probability pc;
[0023] S33, perform mutation processing on the population, and perform mutation in the chromosome with probability pm;
[0024] S34. The population selects individuals with high fitness and stronger ability to adapt to the environment as the new population according to the set fitness function, and determines whether the number of iterations reaches the preset value. If so, the nodes of the generated path are marked and output as the second node to be allocated. If not, return to S32.
[0025] Furthermore, in S31, any key node is used as the starting point and the edge node is used as the end point, and the population is initialized by using a non-fixed-length coding method. According to prior knowledge, the next hop node of each key node is randomly selected from X adjacent nodes;
[0026] When the total number of key nodes in the power grid is 0-100, X=9; when the total number of key nodes in the power grid is 100-300, X=15; when the total number of key nodes in the power grid is 300-1000, X=20.
[0027] Furthermore, the expression of pc in S32 is as follows:
[0028]
[0029] In the formula, Pc represents the crossover rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; h e represents the average fitness value of the population, h′ represents the fitness value of the individual to be crossed; a and b are constant values in the interval (0,1);
[0030] The expression of pm in S33 is as follows:
[0031]
[0032] Where pm represents the mutation rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; he represents the average fitness value of the population, h represents the fitness value of the individual to be mutated; c and d are constant values in the interval (0,1).
[0033] Furthermore, the fitness function in S34 is specifically:
[0034]
[0035]
[0036] In the formula, w s represents the weight of the remaining energy value; wd represents the key node z u and key node z u+1 The weight of the distance between e Represents the weight of the energy consumed; s(z u ,z u+1 ) represents the key node z u and key node z u+1 The penalty function of the residual energy value; d(z u ,z u+1 ) represents the key node z u and key node z u+1 The distance between u ,z u+1 ) represents the key node z u and key nodes +1 The energy value consumed; y represents the number of key nodes in the path; E represents the key node zu and the key node zu +1 The average initial energy value of ; Eu represents the residual energy value of the key node zu; Eu +1 Represents the remaining energy value of the key node zu+1.
[0037] Furthermore, the special circumstances in S5 specifically include the following:
[0038] Case 1: Sensor abnormality (alarm data exists) + model recommended optimal route abnormality (alarm data exists), edge node cannot receive sensor data (abnormal);
[0039] Case 2: Sensor anomaly + model recommended optimal route is normal, edge node cannot receive sensor data (abnormal);
[0040] Case 3: The sensor is normal + the optimal route recommended by the model is abnormal. The edge node cannot receive sensor data (abnormal), and the non-fault suboptimal route is the optimal route.
[0041] Case 4: The sensor is normal + the optimal route recommended by the model is normal, and the edge node takes the shorter route (normal) between the ant colony algorithm and the genetic algorithm.
[0042] A power grid line optimization system based on edge computing, comprising:
[0043] Several sensors are placed at key nodes of the target power grid;
[0044] Sensor collector. It is deployed at the edge node of the target power grid, and several sensors are connected to the sensor collector through communication cables;
[0045] A first model building unit is used to build an ant colony algorithm model, and use the ant colony algorithm model to select a number of first nodes to be allocated from the number of key nodes in step 1, and the first nodes to be allocated are connected to form a first optimization path;
[0046] A second model building unit is used to build a genetic algorithm model, and use the genetic algorithm model to select a plurality of second nodes to be allocated from the plurality of key nodes in step 1, and the plurality of second nodes to be allocated are connected to form a second optimization path;
[0047] A comparison module, used to compare the first optimization path with the second optimization path to obtain the optimal route recommended by the model;
[0048] The output module combines the optimal route, the ratio of the sensor signals received by the edge nodes to the total number of sensors, the number of alarms, and special situations, comprehensively determines the optimal signal transmission route, and outputs the optimal selection result of the signal transmission route.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] The present invention obtains multi-sensor spatial orientation information, regional volume and number of sampling points in the power grid through multi-sensor, and adopts a multi-sensor orientation direction vector selection method to solve the problem of uneven direction vector selection in the power grid; realizes more effective estimation of multivariate signal envelope surface and local mean, improves the accuracy of MEMD decomposition, and realizes more effective multivariate EMD decomposition. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of a method for optimizing power grid lines based on edge computing of the present invention;
[0052] Figure 2 It is the workflow diagram of the genetic algorithm model in the present invention. DETAILED DESCRIPTION
[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
[0054] See also Figures 1-2 As shown, a method for optimizing power grid lines based on edge computing specifically includes the following steps:
[0055] S1. Arrange sensors at several key nodes of the target power grid;
[0056] The key nodes include: power units of the power grid, each of which is equipped with at least one sensor, which is used to obtain the working status of the corresponding power unit, and the sensor has two states: abnormal and normal;
[0057] S2. A sensor collector is arranged at the edge node of the target power grid, and several sensors are aggregated to the sensor collector through communication cables;
[0058] S3, constructing an ant colony algorithm model and a genetic algorithm model, using the ant colony algorithm model to select a number of first nodes to be allocated from the several key nodes in step 1, and connecting the several first nodes to be allocated to form a first optimization path; using the genetic algorithm model to select a number of second nodes to be allocated from the several key nodes in step 1, and connecting the several second nodes to be allocated to form a second optimization path;
[0059] Among them, the expression of the ant colony algorithm model is as follows:
[0060]
[0061] In the formula, represents the probability that the kth ant in the tth generation of ants goes to node i or node j; α represents the importance of pheromone; β represents the relative importance of the heuristic factor; n ij represents the heuristic factor; J k (i) represents the node that ant k can choose at the current time; τ ij (t) represents the pheromone of the tth generation ant on the path i~j;
[0062] in, dij represents the distance from node i to node j.
[0063] When all ants complete an iteration, the pheromones on the path they pass through are iterated:
[0064] τ ij (t+1)=(1-ρ)τ ij (t)+Δτ ij ;
[0065]
[0066] In the formula, τ ij (t+1) represents the sum of pheromones left by the ants of the t+1th generation on the path from i to j; represents the pheromone left by the kth ant on the path from i to j; Q represents the pheromone an ant has in its lifetime; k represents the ant number; m represents the number of ants; Lk represents the total distance of the path traversed by ant k;
[0067] Among them, the working steps of the genetic algorithm model are as follows;
[0068] S31, taking any key node as the starting point and the edge node as the end point, the population is initialized by using non-fixed-length coding. According to prior knowledge, the next hop node of each key node is randomly selected from X adjacent nodes;
[0069] When the total number of key nodes in the power grid is 0-100, X=9; when the total number of key nodes in the power grid is 100-300, X=15; when the total number of key nodes in the power grid is 300-1000, X=20;
[0070] S32, crossover processing is performed on the population, using single-point crossover, randomly generating a crossover position in the two chromosomes, and performing crossover with probability pc;
[0071] Among them, the expression of pc is as follows:
[0072]
[0073] In the formula, Pc represents the crossover rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; h e represents the average fitness value of the population, h′ represents the fitness value of the individual to be crossed; a and b are constant values in the interval (0,1);
[0074] S33, perform mutation processing on the population, and perform mutation in the chromosome with probability pm;
[0075] Among them, the expression of pm is as follows:
[0076]
[0077] In the formula, pm represents the mutation rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; he represents the average fitness value of the population, h represents the fitness value of the individual to be mutated; c and d are constant values in the interval (0,1);
[0078] S34, the population selects individuals with high fitness and stronger ability to adapt to the environment as a new population according to the set fitness function, and determines whether the number of iterations reaches the preset value. If so, the nodes of the generated path are marked and output as the second node to be allocated. If not, return to S32;
[0079] Among them, the fitness function is specifically:
[0080]
[0081] In the formula, ws represents the weight of the remaining energy value; wd represents the key node z u and key node z u+1 The weight of the distance between e Represents the weight of the energy consumed; s(z u ,z u+1 ) represents the key node z u and key node z u+1 The penalty function of the residual energy value; d(z u ,z u+1 ) represents the key node z u and key node z u+1 The distance between u ,z u+1 ) represents the key node z u and key nodes +1 The energy value consumed; y represents the number of key nodes in the path; E represents the key node zu and the key node zu +1 The average initial energy value of ; Eu represents the residual energy value of the key node zu; Eu +1 Represents the key node zu +1 The remaining energy value;
[0082] S4. Compare the first optimization path with the second optimization path, obtain information such as the optimal line recommended by the model and the total number of lines in the same direction, and provide analytical data to solve the problem of uneven direction vector selection in the power grid; avoid the problem of uneven direction vector data of large-area abnormal sensors in the regional volume caused by power grid failure;
[0083] S5. Combine the optimal route, the ratio of sensor signals received by edge nodes to the total number of sensors, the number of alarms, and special situations. The special situations include the following:
[0084] Case 1: Sensor abnormality (alarm data exists) + model recommended optimal route abnormality (alarm data exists), edge node cannot receive sensor data (abnormal);
[0085] Case 2: Sensor anomaly + model recommended optimal route is normal, edge node cannot receive sensor data (abnormal);
[0086] Case 3: The sensor is normal + the optimal route recommended by the model is abnormal. The edge node cannot receive sensor data (abnormal), and the non-fault suboptimal route is the optimal route.
[0087] Case 4: The sensor is normal + the optimal route recommended by the model is normal, and the edge node takes the shorter route between the ant colony algorithm and the genetic algorithm (normal);
[0088] Comprehensively determine the optimal signal transmission route and possible uneven ratio of sensor nodes, so as to analyze the problem of uneven direction vector data of large-area abnormal sensors in the regional volume caused by power grid failure; output the optimal selection result of the signal transmission route.
[0089] The signal receiving line analysis table is as follows:
[0090]
[0091] A power grid line optimization system based on edge computing, comprising:
[0092] Several sensors are placed at key nodes of the target power grid;
[0093] Sensor collector. It is deployed at the edge node of the target power grid, and several sensors are connected to the sensor collector through communication cables;
[0094] A first model building unit is used to build an ant colony algorithm model, and use the ant colony algorithm model to select a number of first nodes to be allocated from the number of key nodes in step 1, and the first nodes to be allocated are connected to form a first optimization path;
[0095] A second model building unit is used to build a genetic algorithm model, and use the genetic algorithm model to select a plurality of second nodes to be allocated from the plurality of key nodes in step 1, and the plurality of second nodes to be allocated are connected to form a second optimization path;
[0096] A comparison module, used to compare the first optimization path with the second optimization path to obtain the optimal route recommended by the model;
[0097] The output module combines the optimal route, the ratio of the sensor signals received by the edge nodes to the total number of sensors, the number of alarms, and special situations, comprehensively determines the optimal signal transmission route, and outputs the optimal selection result of the signal transmission route.
[0098] The present invention obtains multi-sensor spatial orientation information, regional volume and number of sampling points in the power grid through multi-sensors, and adopts a multi-sensor orientation direction vector selection method to solve the problem of uneven direction vector selection in the power grid; realizes more effective estimation of multivariate signal envelope surface and local mean, improves the accuracy of MEMD decomposition, and realizes more effective multivariate EMD decomposition;
[0099] A multi-sensor collector is built in each regional volume at the edge of the power grid to obtain the collected log information and analyze the power grid data obtained by multiple sensors. The ant colony algorithm model is innovatively used to compare the genetic algorithm model to obtain the optimal shortest distance between multiple sensors and the aggregation point, the total number of lines in the same direction (mapping regional volume) and other information to provide analytical data for solving the problem of uneven directional vector selection in the power grid, and avoid the problem of uneven directional vector data caused by large-area abnormal sensors in the regional volume due to power grid failures.
[0100] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any technician familiar with the profession, without departing from the scope of the technical solution of the present invention, according to the technical essence of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.
Claims
1. A method for optimizing power grid lines based on edge computing. It is characterized in that The specific steps include: S1. Arrange sensors at several key nodes of the target power grid; S2. A sensor collector is arranged at the edge node of the target power grid, and several sensors are aggregated to the sensor collector through communication cables; S3, constructing an ant colony algorithm model and a genetic algorithm model, using the ant colony algorithm model to select a number of first nodes to be allocated from the several key nodes in step 1, and connecting the several first nodes to be allocated to form a first optimization path; using the genetic algorithm model to select a number of second nodes to be allocated from the several key nodes in step 1, and connecting the several second nodes to be allocated to form a second optimization path; S4, comparing the first optimization path and the second optimization path, and obtaining the optimal route recommended by the model; S5. Combine the optimal line, the ratio of the sensor signals received by the edge nodes to the total number of sensors, the number of alarms, and special circumstances, comprehensively determine the optimal signal transmission route, and output the optimal selection result of the signal transmission route.
2. According to the method for optimizing power grid lines based on edge computing according to claim 1, Features: The key nodes in S1 include: power units of the power grid, at least one sensor is arranged at each power unit, and the sensor is used to obtain the working status of the power unit corresponding to it. The sensor has two states: abnormal and normal.
3. According to the method for optimizing power grid lines based on edge computing according to claim 1, Features: The expression of the ant colony algorithm model in S3 is as follows: In the formula, represents the probability that the kth ant in the tth generation of ants goes to node i or node j; α represents the importance of pheromone; β represents the relative importance of the heuristic factor; n ij represents the heuristic factor; J k (i) represents the node that ant k can choose at the current time; τ ij (t) represents the pheromone of the tth generation ant on the path i~j; in, dij represents the distance from node i to node j.
4. According to the method for optimizing power grid lines based on edge computing according to claim 3, Features: When all ants complete an iteration, the pheromones on the path they pass through are iterated: t ij (t+1)=(1-ρ)τ ij (t)+Δτ ij ; In the formula, τ ij (t+1) represents the sum of pheromones left by the ants of the t+1th generation on the path from i to j; represents the pheromone left by the kth ant on the path from i to j; Q represents the pheromone an ant possesses in its lifetime; k represents the ant number; m represents the number of ants; Lk represents the total distance of the path traveled by ant k.
5. According to the method for optimizing power grid lines based on edge computing according to claim 1, Features: The working steps of the genetic algorithm model in S3 are as follows: S31, taking any key node as the starting point and the edge node as the end point, the population is initialized by using non-fixed-length coding. According to prior knowledge, the next hop node of each key node is randomly selected from X adjacent nodes; S32, crossover processing is performed on the population, using single-point crossover, randomly generating a crossover position in the two chromosomes, and performing crossover with probability pc; S33, perform mutation processing on the population, and perform mutation in the chromosome with probability pm; S34. The population selects individuals with high fitness and stronger ability to adapt to the environment as the new population according to the set fitness function, and determines whether the number of iterations reaches the preset value. If so, the nodes of the generated path are marked and output as the second node to be allocated. If not, return to S32.
6. A method for optimizing power grid lines based on edge computing according to claim 5, Features: In S31, any key node is used as the starting point and the edge node is used as the end point, and the population is initialized by using a non-fixed-length coding method. According to prior knowledge, the next hop node of each key node is randomly selected from X adjacent nodes; When the total number of key nodes in the power grid is 0-100, X=9; when the total number of key nodes in the power grid is 100-300, X=15; when the total number of key nodes in the power grid is 300-1000, X=20.
7. A method for optimizing power grid lines based on edge computing according to claim 5, Features: The expression of pc in S32 is as follows: In the formula, Pc represents the crossover rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; h e represents the average fitness value of the population, h′ represents the fitness value of the individual to be crossed; a and b are constant values in the interval (0,1); The expression of pm in S33 is as follows: Where pm represents the mutation rate of the genetic algorithm; hmax represents the maximum fitness value of the population; hmin represents the minimum fitness value of the population; he represents the average fitness value of the population, h represents the fitness value of the individual to be mutated; c and d are constant values in the interval (0,1).
8. A method for optimizing power grid lines based on edge computing according to claim 7, Features: The fitness function in S34 is specifically: In the formula, w s represents the weight of the remaining energy value; wd represents the key node z u and key node z u+1 The weight of the distance between e Represents the weight of the energy consumed; s(z u ,z u+1 ) represents the key node z u and key node z u+1 The penalty function of the residual energy value; d(z u ,z u+1 ) represents the key node z u and key node z u+1 The distance between u ,z u+1 ) represents the key node z u and key nodes +1 The energy value consumed; y represents the number of key nodes in the path; E represents the key node zu and the key node zu +1 The average initial energy value of ; Eu represents the residual energy value of the key node zu; Eu +1 Represents the key node zu +1 The remaining energy value.
9. The method for optimizing power grid lines based on edge computing according to claim 1, Features: The special cases in S5 specifically include: the following: Case 1: Sensor abnormality (there is alarm data) + model recommended optimal route abnormality (there is alarm data), edge node cannot receive sensor data (abnormal); Case 2: Sensor anomaly + model recommended optimal route is normal, edge node cannot receive sensor data (abnormal); Case 3: The sensor is normal + the optimal route recommended by the model is abnormal. The edge node cannot receive sensor data (abnormal), and the non-fault suboptimal route is the optimal route. Case 4: The sensor is normal + the optimal route recommended by the model is normal, and the edge node takes the shorter route (normal) between the ant colony algorithm and the genetic algorithm.
10. A power grid line optimization system based on edge computing, Features: include: Several sensors are placed at key nodes of the target power grid; Sensor collector. Arranged at the edge nodes of the target power grid, several sensors are connected to the sensor collector via communication cables; A first model building unit is used to build an ant colony algorithm model, and use the ant colony algorithm model to select a number of first nodes to be allocated from the number of key nodes in step 1, and the first nodes to be allocated are connected to form a first optimization path; A second model building unit is used to build a genetic algorithm model, and use the genetic algorithm model to select a plurality of second nodes to be allocated from the plurality of key nodes in step 1, and the plurality of second nodes to be allocated are connected to form a second optimization path; A comparison module, used to compare the first optimization path with the second optimization path to obtain the optimal route recommended by the model; The output module combines the optimal route, the ratio of the sensor signals received by the edge nodes to the total number of sensors, the number of alarms, and special situations, comprehensively determines the optimal signal transmission route, and outputs the optimal selection result of the signal transmission route.
