A method and device for optimizing power grid based on power grid structure diagram

The power grid structure diagram is topologically analyzed and simplified through methods such as network graph theory and power flow analysis, and high-flow nodes and connection lines are extracted. This solves the problem of extracting key nodes and connection lines in the power grid and correlating load data, and realizes the intelligence of the power grid structure diagram. Chemical analysis and power supply path traceability.

CN118539432BActive Publication Date: 2024-10-11TONGLU COUNTY POWER SUPPLY CO OF STATE GRID ZHEJIANG ELECTRIC POWER CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410994414.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-11
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing technology is difficult to quickly and accurately extract key nodes and connecting lines from complex power grid structural diagrams and effectively associate them with load data, resulting in low accuracy and reliability of intelligent power grid operation and management.

Method used

The critical path algorithm, K-means clustering method, power flow analysis, sensitivity analysis and minimum cut set algorithm based on network graph theory are used, combined with depth-first search and linear programming model, to conduct topology analysis and simplification of the power grid structure diagram, and extract High-traffic nodes and low-redundancy connection lines establish a mapping relationship between nodes and load data.

Benefits of technology

It realizes the automatic extraction and simplification of the power grid structure diagram, quickly identifies key information, improves the analysis accuracy and data processing efficiency of the power grid structure diagram, and supports real-time traceability and intelligent analysis of power supply paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118539432B_ABST
    Figure CN118539432B_ABST
Patent Text Reader

Abstract

The present invention discloses a power grid optimization method based on a power grid structure diagram, including performing time series analysis on a time series data set to obtain a quantitative evaluation result reflecting the importance of the node; performing topological analysis on the power grid structure diagram, and evaluating the load level of each connecting line, determining the key transmission path and potential bottleneck line; identifying high-flow nodes and connecting lines, obtaining load flow concentrated channels and high-transmission efficiency channels; analyzing the connection redundancy of the power grid structure diagram; simplifying the power grid structure diagram based on the results of the quantitative evaluation, the key transmission path, the potential bottleneck line, the high-flow node, the high-flow connecting line, the load flow concentrated channel, the high-transmission efficiency channel and the analyzed connection redundancy result; inputting the simplified power grid structure diagram into a preset linear programming model to obtain the optimization result output by the linear programming model. The method provided by the embodiment of the present invention realizes automatic extraction and simplification of the power grid structure diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a power grid optimization method based on a power grid structure diagram. Background Art

[0002] There are a large number of nodes and connecting lines in the power grid structure diagram, which have different geographical locations and electrical parameters. At the same time, a large amount of load data will be generated during the operation of the power grid, and this load data is closely related to the nodes and connecting lines. How to quickly and accurately extract key nodes and connecting lines from the complex power grid structure diagram and associate them with the load data is a technical problem that needs to be solved urgently.

[0003] At present, the analysis of power grid structure diagrams mainly relies on manual experience and simple data statistics, lacking intelligent analysis methods. Due to the large number of nodes and connecting lines in the power grid structure diagram and the complex associations, manual analysis is difficult to fully consider various factors and is prone to missing key information, resulting in low accuracy and reliability of the analysis results. In addition, there is a lack of effective association mechanism between the power grid structure diagram and load data, which affects the intelligent operation and management of the power grid.

[0004] Therefore, there is an urgent need for an intelligent power grid structure diagram analysis technology to achieve real-time tracing and intelligent analysis of the power supply path. Summary of the invention

[0005] The present invention provides a power grid optimization method based on a power grid structure diagram to solve the technical problem of how to quickly and accurately extract key nodes and connecting lines from a complex power grid structure diagram and associate them with load data, so as to achieve real-time tracing and intelligent analysis of power supply paths.

[0006] In order to solve the above technical problems, an embodiment of the present invention provides a power grid optimization method based on a power grid structure diagram, comprising:

[0007] Constructing a power grid structure diagram based on the target power grid, acquiring data of nodes and connecting lines on the power grid structure diagram, and collecting electrical parameters of the nodes and the connecting lines;

[0008] Respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node;

[0009] Applying the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram, obtaining the topological structure of the target power grid, performing power flow analysis based on the topological structure, and respectively determining the critical transmission paths and potential bottleneck lines in the connecting lines;

[0010] Performing sensitivity analysis on the electrical parameters according to the topological structure, respectively obtaining high-flow nodes and connecting lines whose impact on the safety and stability of the target power grid exceeds a preset threshold; processing the topological structure according to the minimum cut set algorithm, respectively obtaining load flow concentrated channels and high transmission efficiency channels;

[0011] Using a depth-first search algorithm and a maximum flow minimum cut theorem to analyze the connection redundancy of the power grid structure diagram;

[0012] Simplifying the power grid structure diagram based on the quantitative evaluation results, the key transmission paths, the potential bottleneck lines, the high-flow nodes, the connecting lines, the load flow concentration channels, the high-transmission efficiency channels and the analyzed connection redundancy results;

[0013] The simplified power grid structure diagram is input into a preset linear programming model to obtain an optimization result output by the linear programming model.

[0014] As one of the preferred solutions, the historical load data, real-time load data and load forecast data of the node are respectively obtained, and a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node, including:

[0015] Applying a time series analysis method to smooth the load time series data, extracting the long-term trend and periodicity characteristics of the load time series data, and determining the peak period and peak level of the load time series data through a local maximum algorithm;

[0016] Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods;

[0017] Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

[0018] As one of the preferred solutions, the critical path algorithm and K-means clustering method in network graph theory are applied to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, and power flow analysis is performed based on the topological structure to respectively determine the key transmission paths and potential bottleneck lines in the connecting lines, including:

[0019] Applying the critical path algorithm in network graph theory to perform topological analysis on the power grid structure diagram, calculating the shortest path between any two nodes in the power grid structure diagram, obtaining the critical transmission path in the power grid, and counting the occurrence frequency of nodes and edges on the critical path to identify the critical nodes and critical lines in the power grid;

[0020] Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes;

[0021] Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure;

[0022] For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines;

[0023] According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

[0024] As one of the preferred solutions, the electrical parameters are subjected to sensitivity analysis according to the topological structure, and high-flow nodes and high-flow connection lines whose impact values ​​on the safety and stability of the target power grid exceed a preset threshold are obtained respectively, and the topological structure is processed according to the minimum cut set algorithm to obtain load flow concentrated channels and high transmission efficiency channels respectively, including:

[0025] Based on the grid topology and electrical parameters, a power flow calculation model of the target grid is obtained using a power flow calculation method;

[0026] Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters;

[0027] Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid;

[0028] The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel;

[0029] The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

[0030] As one of the preferred solutions, the method of analyzing the connection redundancy of the power grid structure diagram using a depth-first search algorithm and a maximum flow minimum cut theorem includes:

[0031] Converting the topological structure into a directed graph to construct a basic data model for power grid connection redundancy analysis;

[0032] Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph;

[0033] Based on the connectivity information, the connection redundancy of each node is calculated.

[0034] Another embodiment of the present invention provides a power grid optimization device based on a power grid structure diagram, comprising the following modules:

[0035] An acquisition module, used to construct a power grid structure diagram based on the target power grid, acquire data of nodes and connecting lines on the power grid structure diagram, and collect electrical parameters of the nodes and the connecting lines;

[0036] The first analysis module is used to respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node;

[0037] The second analysis module applies the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, and performs power flow analysis based on the topological structure to determine the key transmission paths and potential bottleneck lines in the connecting lines respectively;

[0038] The third analysis module performs a sensitivity analysis on the electrical parameters according to the topological structure, and obtains high-flow nodes and connecting lines whose impact on the safety and stability of the target power grid exceeds a preset threshold; processes the topological structure according to a minimum cut set algorithm and obtains a load flow concentrated channel and a high transmission efficiency channel respectively;

[0039] A fourth analysis module uses a depth-first search algorithm and a maximum flow minimum cut theorem to analyze the connection redundancy of the power grid structure diagram;

[0040] A simplification module, configured to simplify the power grid structure diagram based on the quantitative evaluation result, the key transmission path, the potential bottleneck line, the high flow node, the connection line, the load flow concentration channel, the high transmission efficiency channel and the analyzed connection redundancy result;

[0041] The optimization module is used to input the simplified power grid structure diagram into a preset linear programming model to obtain an optimization result output by the linear programming model.

[0042] As one preferred solution, the first analysis module is further used for:

[0043] Applying a time series analysis method to smooth the load time series data, extracting the long-term trend and periodicity characteristics of the load time series data, and determining the peak period and peak level of the load time series data through a local maximum algorithm;

[0044] Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods;

[0045] Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

[0046] As one preferred solution, the second analysis module is further used for:

[0047] Applying the critical path algorithm in network graph theory to perform topological analysis on the power grid structure diagram, calculating the shortest path between any two nodes in the power grid structure diagram, obtaining the critical transmission path in the power grid, and counting the occurrence frequency of nodes and edges on the critical path to identify the critical nodes and critical lines in the power grid;

[0048] Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes;

[0049] Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure;

[0050] For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines;

[0051] According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

[0052] As one preferred solution, the third analysis module is further used for:

[0053] Based on the grid topology and electrical parameters, a power flow calculation model of the target grid is obtained using a power flow calculation method;

[0054] Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters;

[0055] Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid;

[0056] The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel;

[0057] The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

[0058] As one preferred solution, the fourth analysis module is further used for:

[0059] Converting the topological structure into a directed graph to construct a basic data model for power grid connection redundancy analysis;

[0060] Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph;

[0061] Based on the connectivity information, the connection redundancy of each node is calculated.

[0062] Compared with the prior art, the embodiments of the present invention have the following advantages:

[0063] 1) The present invention conducts a comprehensive analysis of the geographical location, electrical parameters, and load data of the nodes and connecting lines in the power grid structure diagram, extracts and simplifies the power grid structure diagram with dense nodes and connecting lines, extracts nodes and connecting lines with high flow and low redundancy, removes non-critical nodes and edge connections, forms a simplified power grid structure diagram, and associates the simplified power grid structure diagram with the power load data, establishes a mapping relationship between the nodes and the load data, and realizes the traceability of the power supply path.

[0064] 2) The present invention has efficient data processing capabilities and intelligent analysis algorithms, which can quickly and accurately identify key information from massive and complex power grid structure diagrams, and realize automatic extraction and simplification of power grid structure diagrams. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a schematic diagram of a flow chart of a power grid optimization method based on a power grid structure diagram in one embodiment of the present invention;

[0066] Figure 2 is a schematic structural diagram of a power grid optimization device based on a power grid structure diagram in one embodiment of the present invention;

[0067] Figure 3 It is a schematic diagram of a power grid optimization device based on a power grid structure diagram in one embodiment of the present invention. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0069] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0070] In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are only for illustrative purposes, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0071] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0072] An embodiment of the present invention provides a power grid optimization method based on a power grid structure diagram. For details, see Figure 1 , Figure 1 The flowchart of a power grid optimization method based on a power grid structure diagram provided in one embodiment of the present invention is shown, which includes steps S1 to S7:

[0073] S1. constructing a power grid structure diagram based on the target power grid, obtaining data of nodes and connecting lines on the power grid structure diagram, and collecting electrical parameters of the nodes and connecting lines;

[0074] Specifically, the data of the power grid structure diagram is obtained, and the information of the elements such as nodes and connecting lines in the diagram is extracted through image recognition technology such as edge detection and region segmentation algorithms, and the extracted node and connecting line elements are subjected to attribute analysis and classification to obtain structured power grid topology data. According to the power grid topology data, the geographic information system (GIS) technology is used to map the nodes and connecting lines to the geographic coordinate system through spatial coordinate conversion and geocoding methods to obtain the geographical location information of the elements. For the transmission line, the electrical parameters such as the resistance, reactance, and transmission capacity of the line are obtained by querying the power equipment asset database, and a mapping relationship table between the transmission line and the connecting line elements is established to associate the electrical parameters with the corresponding connecting line elements. For the node, by analyzing the connection mode, number of connections, voltage level and other characteristics of the node with other nodes, and according to the predefined node type judgment rules, the type of the node is judged, such as power plant, substation or load center, and the voltage level and substation capacity parameters of the node are queried. The geographical location information of the nodes and connecting lines obtained is integrated with the electrical parameters to construct a complete power grid model data structure containing multi-dimensional attributes such as topological structure, geographic information and electrical parameters. Perform quality inspection and cleansing on the power grid model data. Design and implement data consistency verification rules and outlier detection algorithms for different types of data. Check and process the data item by item to ensure the integrity, accuracy and reliability of the data. Store the processed power grid model data in the graph database, establish the association between nodes and connection lines, and form structured power grid data that is easy to query and analyze, providing high-quality data support for subsequent power grid analysis and optimization applications.

[0075] Exemplarily, a power grid structure diagram is collected, and image recognition technology is first used for edge detection. The Canny operator is used to detect the nodes and connecting lines in the diagram, and rough information of the nodes and connecting lines is obtained by identifying different grayscale values. Next, the rough information is segmented into regions, such as by using a segmentation algorithm based on regional growth to further subdivide the graph elements to ensure that the extracted information of the power grid nodes and connecting lines is more accurate. Then, the identified nodes and connecting lines are attribute analyzed and classified. For example, an identified node has 6 connecting lines, and the voltage level is marked as 500 kV. The node is judged to be a regional substation through predefined rules. For example, through the identification in the image or manual auxiliary identification, a node is identified as a power plant, and its voltage level is recorded as 220 kV. Next, GIS technology is used to convert the spatial coordinates of the nodes and connecting lines. Through geographic coding, such as converting the drawing coordinates of a node into the longitude and latitude position in the geographic coordinate system, such as 1120 degrees east longitude and 310 degrees north latitude. For the attribute analysis of the transmission line, for example, it is found that the resistance of a transmission line is 0.2 ohms / km, the reactance is 0.6 ohms / km, and the transmission capacity is 1000 MW. These electrical parameters are associated with the line elements in GIS to form the electrical characteristics of the power grid line. For the quality inspection and processing of the power grid model data, if the resistance value of a connecting line element is found to be negative, it is obviously a data anomaly, and it is marked and corrected. For example, check whether the node voltage level is consistent with the marking in the figure, and find that the actual attribute of a node marked as 110 kV is 220 kV, and make necessary data corrections. Finally, the structured data of the power grid is stored in the graph database. For example, the node longitude and latitude, voltage level, node type and their interconnected relationships are stored to ensure that data can be quickly and accurately obtained in subsequent queries and analyses. At this time, the structured data of the power grid stored in the database is a complete power grid model data structure that integrates the multi-dimensional attributes of topological structure, geographic information and electrical parameters.

[0076] S2. respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node;

[0077] In the embodiment of the present invention, preferably, a time series analysis method is applied to smooth the load time series data, extract the long-term trend and periodic characteristics of the load time series data, and determine the peak period and peak level of the load time series data by a local maximum algorithm;

[0078] Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods;

[0079] Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

[0080] Specifically, by establishing a data interface with the power grid dispatching system, using API or database connection, etc., the historical load data of each power grid node in the past year, including daily load curves, weekly load curves and monthly load curves, etc., and the data is stored in the time series database to establish a mapping relationship between the node and the load data. Using real-time data acquisition technologies such as smart meters and load monitoring equipment, the current load information of each node is collected in real time, including active power, reactive power, current, voltage and other parameters, and the data is transmitted to the real-time data processing platform for correlation analysis with historical load data. For load forecasting in the future, by introducing third-party weather data services, historical weather data and weather forecast data are obtained, and they are correlated with load data for analysis. At the same time, considering the impact of special periods such as holidays, load forecasting algorithms such as ARIMA models based on time series and neural network models are applied to generate load forecast curves for each node, and the forecast results are compared and verified with actual load data. The historical load data, real-time load information and load forecast data are aligned and cleaned in time series. Interpolation or resampling methods are used to normalize time series data of different granularities and frequencies, unify data formats and time granularities, process missing values ​​and outliers, and form a structured load time series data set. Time series analysis methods such as moving average and exponential smoothing are used to smooth the load time series data, remove short-term fluctuations and noise interference, extract long-term trends and periodic characteristics of load data, and use peak detection algorithms such as local maximum algorithms, such as the sliding window method, to set appropriate window sizes and thresholds to determine the peak period and peak level of the load. According to the characteristic analysis results of the load time series, specific time periods are selected, such as seasonal peak periods, typical working days and weekends, and the load changes in these time periods are analyzed in detail. Statistical indicators such as the mean, variance, peak-to-valley difference of the load are calculated to characterize the volatility and change law of the load, obtain the power consumption pattern of the node in different time periods, and extract key indicators of the power consumption pattern, such as the peak-to-valley ratio of the load curve and the load rate. Based on the historical load data of the nodes, the characteristics of the power consumption pattern and the load forecast results, a node importance assessment model is constructed, such as a weighted comprehensive scoring model. The statistical characteristics of the node load data, the power consumption pattern indicators and the load forecast accuracy are comprehensively considered to quantitatively evaluate and rank the importance of the nodes, providing a basis for subsequent power grid optimization and scheduling decisions.

[0081] For example, when obtaining historical load data, a database connection can be established with the power grid dispatching system, and the load data of each node in the past year can be queried using SQL statements. The query results are stored in a time series database such as InfluxDB, and the timestamp is used as an index to establish a mapping relationship between the node ID and the load data. For the collection of real-time load data, real-time data can be obtained from smart meters and load monitoring devices at a frequency of once per minute through communication protocols such as Modbus and OPC, and the data can be transmitted to the data processing platform in real time using message queues such as Kafka. When performing load forecasting, a third-party weather API, such as the Hefeng Weather API, can be called to obtain weather forecast data for the next 7 days, including parameters such as temperature, humidity, and wind speed, and correlated with the historical load data of the node. The LSTM neural network model is trained, and the number of hidden layers is set to 3, the number of neurons in each layer is 64, the learning rate is 0.01, and the number of iterations is 100, to obtain the load forecast curve for each node in the next week. For the alignment and cleaning of time series data, the resample function of the pandas library can be used to resample the minute-level data to the hourly level through the mean, and use linear interpolation to fill missing values, and then filter and remove outliers that are beyond the normal range (such as negative load values). When detecting the peak load period, the sliding window method can be used, with the window size set to 7 days and the threshold set to 1.5 times the standard deviation. The local maximum value detection of the load time series data is performed to find the peak point where the load value is significantly higher than the surrounding data points, and mark it as the peak period. When analyzing the power consumption pattern, the mean, variance, peak-to-valley difference and other statistical indicators of the load data in each time period can be calculated, such as the average load on weekdays is 500kW, the average load on weekends is 300kW, the peak-to-valley difference is 200kW, the load rate is 0.6, etc., and the power consumption pattern of the node can be characterized and compared based on these indicators. Finally, when evaluating the importance of nodes, a weighted comprehensive scoring model can be constructed, and the weights of the three dimensions of historical load data, power consumption pattern indicators, and load forecast accuracy are set to 0.5, 0.3, and 0.2 respectively. The indicator values ​​of each node are normalized, multiplied by the corresponding weight coefficient, and the sum is obtained to obtain a comprehensive score. The nodes are then sorted according to the scores to determine their importance rankings.

[0082] S3, applying the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, and performing power flow analysis based on the topological structure to respectively determine the key transmission paths and potential bottleneck lines in the connecting lines;

[0083] In the embodiment of the present invention, preferably, a critical path algorithm in network graph theory is applied to perform topological analysis on the power grid structure diagram, the shortest path between any two nodes in the power grid structure diagram is calculated, the key transmission path in the power grid is obtained, and the frequency of occurrence of nodes and edges on the critical path is counted to identify the key nodes and key lines in the power grid;

[0084] Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes;

[0085] Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure;

[0086] For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines;

[0087] According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

[0088] Specifically, the grid structure data is converted into a network graph model, nodes are used to represent generators, transformers, busbars and other equipment in the grid, edges are used to represent the transmission line connections between nodes, and the voltage level, line resistance, reactance and other attribute information of the nodes and edges are stored in the attributes of the nodes and edges of the network graph model. The key path algorithm such as the Dijkstra algorithm or the Floyd algorithm is applied to perform topological analysis on the grid structure, calculate the shortest path between any two nodes in the electrical network graph model, obtain the key transmission path in the grid, and count the frequency of occurrence of nodes and edges on the key path to identify the key nodes and key lines in the grid. The K-means clustering algorithm is used to cluster the nodes in the grid graph model according to their geographical coordinates, and by calculating the silhouette coefficient of the clustering results under different clustering numbers K, the K value with the largest silhouette coefficient is selected as the optimal clustering number to obtain the dense area division of the grid nodes. For each node-dense area, the connection relationship between its internal nodes is analyzed, the number and distribution of connecting lines are counted, the sub-area with dense connecting lines is identified, and the density of connecting lines within the sub-area is calculated to obtain the dense connecting line area in the grid topology structure. For each sub-area with dense connection lines, the frequency of occurrence of its internal lines in the key transmission path is counted. According to the frequency of occurrence of the line and the density of connection lines, the criticality index of each line is calculated, and the lines with criticality index exceeding a certain threshold are selected as the key lines in the dense connection line area. For the key lines and dense connection line areas of the power grid, power flow calculation and analysis are carried out. According to the scale, accuracy requirements and calculation efficiency of the power grid, a suitable power flow calculation model, such as the Newton-Raphson method or the Fast Decoupled method, is selected to calculate the active power and reactive power flow on the line, and compared with the rated transmission capacity of the line to obtain the load rate level of the line. According to the line load rate level, combined with the frequency of occurrence of the line in the key transmission path and the criticality index, the potential bottleneck risk of the line is comprehensively evaluated, and the lines with load rates exceeding the threshold and high criticality indicators are marked as potential bottleneck lines of the power grid. The analysis results of key nodes, key lines, node-dense areas, connection-dense areas and potential bottleneck lines of the power grid are visualized. Using graphical methods such as network topology diagrams and heat maps, the key characteristics and potential risks of the power grid topology structure are intuitively presented, providing an intuitive reference for power grid operation optimization and planning decisions.

[0089] Exemplarily, the grid structure data is converted into a network graph model, and a directed weighted graph G is created using the NetworkX library. The nodes represent the equipment in the grid, such as generators represented by "G", transformers represented by "T", and busbars represented by "B". The edges represent the transmission line connections between the nodes, and the weights are the electrical distances of the lines, such as the sum of line resistance and reactance. The Dijkstra shortest path algorithm is applied to calculate the shortest path between any two nodes in the graph G, such as calculating the shortest path from node B1 to B10 as B1-T3-B5-T6-B10, and define the path with the shortest path length less than or equal to 3 as the critical transmission path. The frequency of occurrence of nodes and edges on the critical path is counted, such as the frequency of occurrence of node B5 is 8, and the frequency of occurrence of line T3-B5 is 6. The K-means clustering algorithm is used, and the geographic coordinates of the nodes are used as features. K=3, 4, and 5 are set respectively. The silhouette coefficients of the clustering results under different K values ​​are calculated. For example, when K=4, the maximum silhouette coefficient is 0.85. K=4 is selected as the optimal cluster number, and 4 node-dense areas are obtained. For each dense area, the number and distribution of internal connection lines are counted. For example, there are 20 connection lines inside area 1, 10 of which are concentrated in sub-area 1-A, and the connection line density is 0.8, which is identified as a connection line-dense sub-area. For each connection line-dense sub-area, the frequency of occurrence of its internal lines in the critical transmission path is counted. For example, the internal line L1 of sub-area 1-A appears 5 times in the critical path, and L2 appears 3 times. Combined with the line connection line density, the criticality index is calculated. For example, the criticality of L1 is 5*0.8=4, and the lines with a criticality greater than or equal to 3 are selected as critical lines. For key lines and areas with dense connections, the Newton-Raphson method is used for power flow calculation and analysis. The maximum number of iterations is set to 10, the error threshold is 0.001, and the active and reactive power flows of the lines are calculated. For example, the active power of line L1 is 80MW, the reactive power is 20Mvar, the rated transmission capacity is 100MVA, and the calculated load rate is 80%. According to the load rate and criticality indicators, the bottleneck risk of the line is evaluated. For example, if the load rate of L1 exceeds 80% and the criticality is 4, it is marked as a potential bottleneck line. Finally, the Matplotlib library is used to draw the power grid topology diagram. The nodes are represented by circles, the size represents the criticality of the nodes, the connecting lines are represented by curves, the width represents the load rate of the line, the color represents the dense area, and the potential bottleneck lines are marked in red, which intuitively displays the key characteristics and potential risks of the power grid.

[0090] S4. Perform sensitivity analysis on the electrical parameters according to the topological structure, and obtain high-flow nodes and connecting lines whose impact on the safety and stability of the target power grid exceeds a preset threshold; process the topological structure according to a minimum cut set algorithm to obtain load flow concentrated channels and high transmission efficiency channels;

[0091] In the embodiment of the present invention, preferably, based on the power grid topology and electrical parameters, a power flow calculation method is used to obtain a power flow calculation model of the target power grid;

[0092] Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters;

[0093] Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid;

[0094] The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel;

[0095] The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

[0096] Specifically, based on the topological structure and electrical parameters of the power grid, the power flow calculation methods such as the Newton-Raphson method or the Fast Decoupled method are used to calculate the power flow distribution results such as node voltage and line power flow under different operating conditions of the power grid, and obtain the power flow calculation model of the power grid. On the basis of the power flow calculation model, by changing the input conditions such as line resistance value, reactance value, transformer tap position, node injection power, etc., the sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, that is, the percentage change of node voltage and line power flow when the parameter changes by the preset value. By sorting the sensitivity coefficients, the key parameters with the greatest impact are determined, and the sensitivity analysis of the electrical parameters is performed. According to the results of the sensitivity analysis, the key electrical parameters that have a greater impact on the safety and stability of the power grid system are identified, the high-flow nodes and high-flow connecting lines in the power grid are determined, and the nodes and lines with flow exceeding the preset threshold are defined as high-flow, as the objects of key monitoring and optimization. The Stoer-Wagner minimum cut set algorithm is applied to transform the power flow calculation model into a weighted undirected graph. The nodes represent the busbars, the edges represent the lines, and the weight of the edges is the transmission capacity of the lines. By calculating the maximum flow between all pairs of nodes in the graph, the minimum cut set is updated until only one node is left in the graph. The node set corresponding to the minimum cut set is output to identify the transmission channels with concentrated load flows in the power grid. The channels with an average line load rate exceeding 80% are defined as channels with concentrated load flows. For transmission channels with concentrated load flows, their transmission efficiency is analyzed, and indicators such as the transmission capacity utilization rate of the channels and the average line load rate are calculated. Channels with a transmission capacity utilization rate exceeding the preset threshold are defined as channels with high transmission efficiency. Key channels with concentrated load flows and high transmission efficiency are identified. Comprehensively considering factors such as high-flow nodes, high-flow connecting lines, concentrated load flow channels, and high-transmission efficiency channels, nodes, lines, or channels that meet two or more conditions at the same time are marked as potential weak links, indicating operational risks, and evaluating the operating status of various parts of the power grid. The results of power flow calculation, sensitivity analysis, minimum cut set identification, and operating status assessment are visualized, and power grid power flow distribution diagrams, key parameter sensitivity diagrams, load flow concentration channel diagrams, etc. are drawn to intuitively present the power grid's power flow characteristics and weak links, providing decision support for power grid dispatch optimization and risk warning.

[0097] For example, based on the topology and electrical parameters of the power grid, the Newton-Raphson method is used to calculate the power flow. The power flow calculation model sets the maximum number of iterations to 10 and the error threshold to 0.001. The node voltage and line power flow distribution of the power grid under heavy load conditions are calculated, where the lowest node voltage is 0.95pu and the maximum line power flow is 120% of the rated value. Based on the power flow calculation model, the sensitivity matrix method is used to calculate the sensitivity coefficients of the line reactance value, transformer tap position and other parameters to the node voltage and line power flow. For example, when the line reactance value increases by 1%, the node voltage decreases by 0.5%, and the line power flow increases by 1.2%. By sorting the sensitivity coefficients, it is determined that the line reactance value and the transformer tap position are the most influential key parameters. According to the sensitivity analysis results, the high-flow nodes are identified as nodes A and B, and the high-flow lines are lines AB and BC, whose flows reach 95% and 98% of the rated values, respectively. The Stoer-Wagner algorithm is applied to identify the minimum cut set, and the power grid is converted into a weighted undirected graph with 100 nodes and 150 edges. The minimum cut set is updated by calculating the maximum flow between node pairs until only one node is left in the graph. The minimum cut set is {A, B, C, D}, and the corresponding load flow concentrated channels are channel ABC and channel ACD, and their line average load rates are 85% and 90% respectively. The transmission efficiency of the load flow concentrated channels is analyzed, and the transmission capacity utilization of channel ABC is calculated to be 75%, and the transmission capacity utilization of channel ACD is 80%. Channel ACD is identified as a key channel with concentrated load flow and high transmission efficiency. Comprehensive analysis shows that nodes A and B, lines AB and BC, and channel ACD simultaneously meet the conditions of high flow, concentrated load flow, and high transmission efficiency, and are marked as potential weak links, indicating their operation risks. Finally, the Matplotlib library is used to draw the power flow distribution diagram, showing the node voltage and line power flow distribution in the form of a heat map, and the color depth of the nodes and lines indicates the flow level; the key parameter sensitivity diagram is drawn, and the sensitivity coefficient ranking of each parameter is displayed in the form of a bar chart; the load flow concentration channel diagram is drawn, and the minimum cut set identification result is displayed in the form of a network diagram, and the channel edge width is used to indicate its transmission efficiency, intuitively presenting the power flow characteristics and weak links of the power grid.

[0098] S5. Analyze the connection redundancy of the power grid structure diagram using a depth-first search algorithm and a maximum flow minimum cut theorem;

[0099] In the embodiment of the present invention, preferably, the topological structure is converted into a directed graph to construct a basic data model for power grid connection redundancy analysis;

[0100] Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph;

[0101] Based on the connectivity information, the connection redundancy of each node is calculated.

[0102] Specifically, based on the grid topology and electrical parameters, the Newton-Raphson method is used for power flow calculation. The maximum number of iterations of the power flow calculation model is set to 10, and the error threshold is 0.001. The node voltage and line power flow distribution of the power grid under heavy load conditions are calculated, where the lowest node voltage is 0.95pu and the maximum line power flow is 120% of the rated value. Based on the power flow calculation model, the sensitivity matrix method is used to calculate the sensitivity coefficients of parameters such as line reactance value and transformer tap position to node voltage and line power flow. For example, if the line reactance value increases by 1%, the node voltage decreases by 0.5%, and the line power flow increases by 1.2%. By sorting the sensitivity coefficients, it is determined that the line reactance value and transformer tap position are the most influential key parameters. According to the sensitivity analysis results, the high-flow nodes are identified as nodes A and B, and the high-flow lines are lines AB and BC, whose flows reach 95% and 98% of the rated values, respectively. The Stoer-Wagner algorithm is applied to identify the minimum cut set, and the power grid is converted into a weighted undirected graph with 100 nodes and 150 edges. The minimum cut set is updated by calculating the maximum flow between node pairs until only one node is left in the graph. The minimum cut set is {A, B, C, D}, and the corresponding load flow concentrated channels are channel ABC and channel ACD, and their line average load rates are 85% and 90% respectively. The transmission efficiency of the load flow concentrated channels is analyzed, and the transmission capacity utilization of channel ABC is calculated to be 75%, and the transmission capacity utilization of channel ACD is 80%. Channel ACD is identified as a key channel with concentrated load flow and high transmission efficiency. Comprehensive analysis shows that nodes A and B, lines AB and BC, and channel ACD simultaneously meet the conditions of high flow, concentrated load flow, and high transmission efficiency, and are marked as potential weak links, indicating their operation risks. Finally, the Matplotlib library is used to draw the power flow distribution diagram, showing the node voltage and line power flow distribution in the form of a heat map, and the color depth of the nodes and lines indicates the flow level; the key parameter sensitivity diagram is drawn, and the sensitivity coefficient ranking of each parameter is displayed in the form of a bar chart; the load flow concentration channel diagram is drawn, and the minimum cut set identification result is displayed in the form of a network diagram, and the channel edge width is used to indicate its transmission efficiency, intuitively presenting the power flow characteristics and weak links of the power grid.

[0103] For example, the power grid topology data is converted into a directed graph model, and the NetworkX library is used to create a directed graph G, with 500 nodes and 800 directed edges. The attribute dictionaries of nodes and edges are node_attrs and edge_attrs, respectively, where the edge attribute 'capacity' represents the transmission capacity of the connection line, with a value range of 50~500MW, to build a basic data model for power grid connection redundancy analysis. The depth-first search algorithm dfs_tree is used for traversal, starting from the starting node 0, recursively accessing adjacent nodes, and generating a depth-first search tree T, with a tree depth of 15 and 120 leaf nodes. The connection redundancy of the nodes is calculated according to the search tree T. For the middle-layer nodes of the tree, the redundancy is the number of subtrees, such as the redundancy of node 8 is 3; for the leaf nodes, the redundancy is 1. Combined with the power grid level and historical data, the redundancy thresholds of the backbone network, regional network and distribution network are set to 3, 2, and 1 respectively. Through sensitivity analysis, it is found that when the threshold is reduced by 1, the number of low-redundancy nodes increases by 20%, and when the threshold is increased by 1, the recognition accuracy decreases by 15%. Finally, the above thresholds are selected to identify 45 low-redundancy nodes and 78 connecting lines, accounting for 9% and 10% of the total, respectively. The maximum flow minimum cut algorithm max_flow is used to calculate the importance of low-redundancy links. For example, link (2, 3) appears twice in the minimum cut set, with a cut set capacity of 120MW, and link (4, 5) appears once, with a cut set capacity of 200MW. A weighted scoring model is constructed based on the frequency of occurrence and the cut set capacity, and the importance score of link (2, 3) is 0.017, which is higher than 0.005 of link (4, 5). The top 10% of links are selected as key links by ranking by score, totaling 80. For key links, a fault simulation model is constructed to simulate N-1, N-2 and other fault scenarios, and calculate indicators such as line overload rate and voltage deviation. For example, when link (2, 3) fails, the overload rate of adjacent lines reaches 120%, the voltage deviation of nearby nodes exceeds 5%, and the load loss is 10MW. A fault risk assessment model is constructed, and the risk index of the link is 600, which is in the top 5% of key links and needs to be monitored and maintained. Finally, the Matplotlib library is used to draw visual graphics. For example, in the connection redundancy distribution diagram, nodes with different redundancy are represented by circles of different colors. In the key connection line diagram, the size of the node is proportional to its importance, and the thickness of the connection line is proportional to its risk index. In the fault impact heat map, the color depth of the nodes and connection lines indicates the degree of impact, providing intuitive auxiliary decision-making information for power grid operation and maintenance personnel.

[0104] S6. Simplify the power grid structure diagram based on the quantitative evaluation results, the key transmission paths, the potential bottleneck lines, the high-flow nodes, the connecting lines, the load flow concentration channels, the high-transmission efficiency channels and the analyzed connection redundancy results;

[0105] Specifically, according to the grid topology and power flow calculation results, the role and importance of each node in the grid are analyzed, and the electrical centrality index of the node, such as electrical betweenness centrality, is calculated. By calculating the shortest path between any two nodes in the grid, the shortest path matrix is ​​obtained. For each node, its electrical betweenness centrality is calculated, that is, the proportion of the number of shortest paths passing through the node to the total number of shortest paths, and the threshold of the centrality index is set. The nodes whose centrality index is lower than the threshold and are not directly connected to the power supply or important load are marked as non-critical nodes. For non-critical nodes, the power transmission and distribution functions of the edge lines connected to them are analyzed, and the average power flow, maximum power flow and other indicators of the edge lines are calculated. Combined with the position and role of the edge connection in the grid topology, a comprehensive judgment is made, such as calculating the betweenness centrality of the edge connection, that is, the proportion of the number of shortest paths passing through the connection line to the total number of shortest paths. The edge connection with lower betweenness centrality can be regarded as a non-critical connection. At the same time, the role of the edge connection in the case of a grid accident is analyzed, and the impact of the disconnection of the edge connection on the grid operation is simulated. The edge connection with less impact can be regarded as a non-critical connection, and the non-critical edge connection is marked as a connection to be removed. In the power grid structure diagram, remove the nodes and edge connections marked as non-critical, and update the numbers of nodes and connecting lines to form a simplified power grid structure diagram. At the same time, record the information of nodes and connecting lines removed during the simplification process, and establish a corresponding table of nodes and connecting lines before and after simplification. Map the simplified power grid structure diagram with the load data. According to the corresponding relationship between the node numbers, assign the node load in the original load data to the simplified nodes to form the node load data of the simplified power grid, and calculate the changes in the node load before and after simplification. According to the simplified power grid structure, construct the node admittance matrix and node power injection vector to form a power flow calculation model. Use the power flow calculation algorithm to solve the power flow model to obtain the node voltage and line power flow distribution of the simplified power grid, and calculate the transmission power and available transmission capacity of the tie line based on this as an indicator to measure the power supply capacity of the node. Evaluate the matching degree between the simplified power grid structure and the load data, judge whether the power supply capacity of the node meets its load demand, and calculate the total power supply capacity and total load demand of the simplified power grid to evaluate the supply and demand balance of the power grid. If the simplified power grid does not meet the requirements in terms of node power supply capacity or supply and demand balance, the simplification process needs to be adjusted. According to the evaluation results, the nodes and areas with insufficient power supply capacity or supply and demand imbalance are identified, and the non-critical nodes and edge connections removed during the simplification process are analyzed. The degree of their impact on the operation of the power grid is evaluated, and the removed non-critical nodes and edge connections are gradually restored in order from large to small until the power grid operation requirements are met. The identification thresholds of non-critical nodes and edge connections are dynamically adjusted to balance the degree of simplification of the power grid structure and operational reliability. The simplified power grid structure diagram is regenerated, and the mapping and evaluation process is repeated until the requirements of power grid operation are met.The results of simplification and mapping are visualized to generate a grid structure diagram before and after simplification. Different colors or shapes are used to distinguish key nodes, non-key nodes, key connecting lines and non-key edge connections. The load demand is represented by the size of the node, and the power transmission capacity is represented by the thickness of the connecting line. The characteristics of the simplified grid structure and the load distribution are intuitively displayed, providing a reference for grid planning and optimization.

[0106] Exemplarily, according to the grid topology and flow calculation results, the Floyd algorithm is used to calculate the shortest path between any two nodes in the grid, and a 500x500 shortest path matrix is ​​obtained. For each node, its electrical betweenness centrality is calculated. For example, the electrical betweenness centrality of node A is 0.15, indicating that the number of shortest paths passing through node A accounts for 15% of the total number of shortest paths. The centrality index threshold is set to 0.1, and nodes with centrality indexes lower than the threshold and not directly connected to power sources or important loads are marked as non-critical nodes. A total of 50 non-critical nodes are identified. For non-critical nodes, the edge lines connected to them are analyzed, and the average power flow of the edge lines is calculated to be 20MW, the maximum power flow is 30MW, and the betweenness centrality of the edge connection is 0.05. When the simulated edge connection is disconnected, the impact on the operation of the grid is that the node voltage deviation is less than 1%, and the load loss is less than 5MW. The non-critical edge connections are marked as connections to be removed, and a total of 80 connections to be removed are marked. Use the NetworkX library to remove the marked non-critical nodes and edge connections, update the node and connection line numbers, and form a simplified power grid structure diagram. The number of nodes after simplification is 450, the number of connection lines is 720, and the correspondence table of nodes and connection lines before and after simplification is established. The simplified power grid structure diagram is mapped with the load data. The load of node A after simplification is 20MW, which is 2MW less than before simplification. The total load of the simplified power grid is 900MW. Construct a power flow calculation model for the simplified power grid, use the Newton-Raphson method for power flow calculation, and obtain the node voltage and line power flow distribution of the simplified power grid. The transmission power of the tie line AB is calculated to be 50MW, and the available transmission capacity is 30MW. It is evaluated that the power supply capacity of node A meets its 20MW load demand. The total power supply capacity of the simplified power grid is 1000MW, which meets the total load demand of 900MW. If the supply and demand balance requirements are not met, such as the insufficient power supply capacity of node B, the non-critical nodes and edge connections removed by node B during the simplification process are restored, such as restoring node C and connecting line BC, regenerating the simplified power grid structure diagram, and repeating the mapping and evaluation process until the power grid operation requirements are met. The Matplotlib library is used to draw the power grid structure diagram before and after simplification, with red circles representing key nodes, blue circles representing non-critical nodes, thick lines representing key connecting lines, and thin lines representing non-critical edge connections. The node size is proportional to the load demand, and the thickness of the connecting line is proportional to the power transmission capacity, which intuitively displays the characteristics of the simplified power grid structure and the load distribution.

[0107] S7. Input the simplified power grid structure diagram into a preset linear programming model to obtain an optimization result output by the linear programming model.

[0108] Specifically, the transmission loss is calculated by line resistance and current, and the investment cost is estimated by the equipment life cycle cost method. The initial investment, operation and maintenance costs, scrap disposal costs, etc. of the equipment, as well as the time value of money are considered, and the future costs are converted into equivalent costs at the current time point through the discount rate. In the constraints of the optimization model, the requirements for safe and stable operation of the power grid are fully considered, such as the upper and lower limits of node voltage amplitude and phase angle, the upper and lower limits of line power flow, the thermal stability limit of line current, the upper and lower limits of transformer capacity, etc. These requirements are converted into the value range and inequality constraints of decision variables, among which the line current constraint is determined by comparing the line current with the rated current to determine whether it exceeds the thermal stability limit. Large-scale linear programming algorithms, such as the simplex method and the interior point method, are used to solve the optimization model and obtain the optimal solution that minimizes the objective function under the constraints, that is, the optimal operating state of the power grid, including the voltage amplitude and phase angle of each node, the active power and reactive power flow of each line, etc. According to the solution results of the optimal operating state, the weak links and optimization potential in the power grid are analyzed to form a series of alternative plans for power grid optimization measures. Qualitative evaluation is carried out from the perspectives of technical feasibility, economic rationality, and difficulty of implementation. Obviously inappropriate or unfeasible plans are eliminated. Quantitative evaluation indicators are set from the aspects of improving power supply reliability, improving voltage quality, reducing transmission losses, and reducing investment costs. The alternative plans after the initial screening are comprehensively scored and ranked according to the weights of quantitative indicators. For key alternative plans, a comprehensive technical and economic analysis is carried out to estimate the full life cycle costs and operating benefits of various plans. By comparing the cost-benefit ratio of different plans, the most economical combination of power grid optimization plans is selected. The selected power grid optimization plans are converted into specific adjustments to the power grid structure and parameters to form a power grid optimization adjustment plan, and the power grid structure diagram and parameter library are updated accordingly. For the adjusted grid structure and parameters, the power flow calculation and safety check are re-performed, and the calculation results are evaluated for safety using methods such as the Newton-Raphson method or the Fast Decoupled method. The node voltage amplitude, line power flow, transformer load factor, line current, etc. are checked to see if they meet the safety operation requirements. If they do, the optimized adjustment plan will be used as the basis for grid planning and transformation. If they do not, further adjustment and optimization are required until a feasible grid optimization plan is found.

[0109] Exemplarily, according to the simplified grid structure diagram and node load data, a grid linear programming model is established, with the voltage amplitude and phase angle of 500 nodes and the active and reactive power flow of 1000 lines as decision variables, and the total transmission loss of the line and the total cost of the equipment throughout the life cycle as optimization targets, wherein the line resistance is 0.010.05Ω / km, the current is 1001000A, the unit cost of the equipment is 5001000 million yuan / unit, the discount rate is 6%, the annual operation and maintenance fee rate is 2%, the service life is 20 years, and the objective function is min(∑(Ii^2*Ri)+∑(Cj / (1+r)^t)). The constraints include that the node voltage amplitude is between 0.951.05p.u., the line power flow does not exceed 90% of the rated transmission capacity, the line current does not exceed the thermal stability limit of 1200A, and the transformer load rate does not exceed 95% of the rated value. The relevant parameter values ​​are obtained by querying the equipment parameter table and the operation database, and converted into upper and lower limit constraints of the state variables. The optimization model was solved by the interior point method, and converged to the optimal solution after 200 iterations. The node voltage amplitudes were all between 0.98 and 1.02 pu, the average line load rate was 60%, the maximum load rate was 85%, the average transformer load rate was 70%, and the transmission loss was 5%, which was 2 percentage points lower than before optimization. The total life cycle cost was 5 billion yuan, saving 500 million yuan compared with before optimization. According to the optimal operating state, 10 heavy-loaded lines and 5 heavy-loaded transformers were identified, and 10 alternative optimization measures such as increasing reactive power compensation, replacing conductors, and building new lines were proposed. Through technical and economic evaluation, the optimal combination plan of adding 10Mvar capacitors, replacing 2 line conductors, and building a new line was selected, with an investment cost of 200 million yuan, an annual operating benefit of 50 million yuan, and an investment payback period of 4 years. The optimization plan was refined into the location and capacity of the capacitor installation, the material and cross-sectional area of ​​the replacement conductor, and the voltage level and corridor of the new line, forming a detailed power grid optimization adjustment plan. For the adjusted power grid, the Newton-Raphson method is used to calculate the power flow, and to check the operating indicators such as voltage deviation, line power flow, line current, and transformer load rate. The voltage qualification rate is increased to 99.5%, the average line load rate is reduced to 55%, the maximum load rate is reduced to 75%, and the average transformer load rate is reduced to 65%, meeting the N-1 verification standard. The results show that the security and economy of the optimized power grid are significantly improved.

[0110] Another embodiment of the present invention provides a power grid optimization device based on a power grid structure diagram. For details, see Figure 2 , Figure 2 The schematic diagram of the structure of a power grid optimization device based on a power grid structure diagram provided in one embodiment of the present invention is shown, which includes: an acquisition module 11, a first analysis module 12, a second analysis module 13, a third analysis module 14, a fourth analysis module 15, a simplification module 16, and an optimization module 17, wherein:

[0111] An acquisition module 11 is used to construct a power grid structure diagram based on the target power grid, acquire data of nodes and connecting lines on the power grid structure diagram, and collect electrical parameters of the nodes and connecting lines;

[0112] The first analysis module 12 is used to respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node;

[0113] The second analysis module 13 applies the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, performs power flow analysis based on the topological structure, and determines the key transmission paths and potential bottleneck lines in the connecting lines respectively;

[0114] The third analysis module 14 performs a sensitivity analysis on the electrical parameters according to the topological structure, and obtains high-flow nodes and connecting lines whose impact on the safety and stability of the target power grid exceeds a preset threshold; processes the topological structure according to a minimum cut set algorithm and obtains a load flow concentrated channel and a high transmission efficiency channel respectively;

[0115] A fourth analysis module 15 is used to analyze the connection redundancy of the power grid structure diagram using a depth-first search algorithm and a maximum flow minimum cut theorem;

[0116] A simplification module 16 is used to simplify the power grid structure diagram based on the quantitative evaluation results, the key transmission paths, the potential bottleneck lines, the high-flow nodes, the connecting lines, the load flow concentration channels, the high-transmission efficiency channels and the analyzed connection redundancy results;

[0117] The optimization module 17 is used to input the simplified power grid structure diagram into a preset linear programming model to obtain an optimization result output by the linear programming model.

[0118] In the embodiment of the present invention, preferably, the first analysis module is further used for:

[0119] Applying a time series analysis method to smooth the load time series data, extracting the long-term trend and periodicity characteristics of the load time series data, and determining the peak period and peak level of the load time series data through a local maximum algorithm;

[0120] Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods;

[0121] Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

[0122] In the embodiment of the present invention, preferably, the second analysis module is further used for:

[0123] Applying the critical path algorithm in network graph theory to perform topological analysis on the power grid structure diagram, calculating the shortest path between any two nodes in the power grid structure diagram, obtaining the critical transmission path in the power grid, and counting the occurrence frequency of nodes and edges on the critical path to identify the critical nodes and critical lines in the power grid;

[0124] Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes;

[0125] Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure;

[0126] For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines;

[0127] According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

[0128] In the embodiment of the present invention, preferably, the third analysis module is further used for:

[0129] Based on the grid topology and electrical parameters, a power flow calculation model of the target grid is obtained using a power flow calculation method;

[0130] Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters;

[0131] Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid;

[0132] The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel;

[0133] The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

[0134] In the embodiment of the present invention, preferably, the fourth analysis module is further used for:

[0135] Converting the topological structure into a directed graph to construct a basic data model for power grid connection redundancy analysis;

[0136] Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph;

[0137] Based on the connectivity information, the connection redundancy of each node is calculated.

[0138] Another embodiment of the present invention provides a power grid optimization device based on a power grid structure diagram. For details, see Figure 3 , Figure 3 A schematic diagram of a power grid optimization device based on a power grid structure diagram provided in one embodiment of the present invention is shown, comprising a processor 21, a memory 22, and a computer program stored in the memory 22 and configured to be executed by the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned power grid optimization method embodiment based on the power grid structure diagram are implemented, for example Figure 1 or, the processor 21 implements the functions of each module in the above-mentioned device embodiments, such as the acquisition module 11, when executing the computer program.

[0139] Exemplarily, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the power grid optimization device based on the power grid structure diagram. For example, the computer program may be divided into an acquisition module 11, a first analysis module 12, a second analysis module 13, a third analysis module 14, a fourth analysis module 15, a simplification module 16, and an optimization module 17.

[0140] The power grid optimization device based on the power grid structure diagram may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of a power grid optimization device based on a power grid structure diagram, and does not constitute a limitation on computer devices, and may include more or fewer components than shown in the diagram, or a combination of certain components, or different components, for example, the power grid optimization device based on the power grid structure diagram may also include input and output devices, network access devices, buses, and the like.

[0141] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

[0142] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the power grid optimization device based on the power grid structure diagram by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0143] Wherein, if the module integrated by the power grid optimization device based on the power grid structure diagram is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0145] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to perform the steps in the power grid optimization method based on the power grid structure diagram of the above embodiment, for example Figure 1 Steps S1 to S7 described in .

[0146] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A power grid optimization method based on a power grid structure diagram, characterized in that: The following steps are involved: Constructing a power grid structure diagram based on the target power grid, acquiring data of nodes and connecting lines on the power grid structure diagram, and collecting electrical parameters of the nodes and the connecting lines; Respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node; Applying the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram, obtaining the topological structure of the target power grid, performing power flow analysis based on the topological structure, and respectively determining the critical transmission paths and potential bottleneck lines in the connecting lines; Performing sensitivity analysis on the electrical parameters according to the topological structure, and respectively obtaining high-flow nodes and high-flow connection lines whose impact on the safety and stability of the target power grid exceeds a preset threshold; The topological structure is processed according to the minimum cut set algorithm to obtain a load flow concentrated channel and a high transmission efficiency channel respectively; Using a depth-first search algorithm and a maximum flow minimum cut theorem to analyze the connection redundancy of the power grid structure diagram; Simplifying the power grid structure diagram based on the quantitative evaluation results, the key transmission paths, the potential bottleneck lines, the high-flow nodes, the high-flow connection lines, the load flow concentration channels, the high-transmission efficiency channels and the analyzed connection redundancy results; The simplified power grid structure diagram is input into a preset linear programming model to obtain an optimization result output by the linear programming model.

2. The power grid optimization method based on the power grid structure diagram according to claim 1, characterized in that: The obtaining of the historical load data, the real-time load data and the load forecast data of the node respectively, and constructing a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node, includes: Applying a time series analysis method to smooth the load time series data, extracting the long-term trend and periodicity characteristics of the load time series data, and determining the peak period and peak level of the load time series data through a local maximum algorithm; Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods; Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

3. The power grid optimization method based on the power grid structure diagram according to claim 1, characterized in that: The method of applying the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, and performing power flow analysis based on the topological structure to respectively determine the key transmission paths and potential bottleneck lines in the connecting lines, including: Applying the critical path algorithm in network graph theory to perform topological analysis on the power grid structure diagram, calculating the shortest path between any two nodes in the power grid structure diagram, obtaining the critical transmission path in the power grid, and counting the occurrence frequency of nodes and edges on the critical path to identify the critical nodes and critical lines in the power grid; Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes; Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure; For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines; According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

4. The power grid optimization method based on the power grid structure diagram according to claim 1, characterized in that: The sensitivity analysis of the electrical parameters is performed according to the topological structure, and high-flow nodes and high-flow connection lines whose impact values ​​on the safety and stability of the target power grid exceed a preset threshold are obtained respectively; the topological structure is processed according to the minimum cut set algorithm, and load flow concentrated channels and high transmission efficiency channels are obtained respectively, including: Based on the grid topology and electrical parameters, a power flow calculation model of the target grid is obtained using a power flow calculation method; Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters; Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid; The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel; The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

5. The power grid optimization method based on the power grid structure diagram according to claim 1, characterized in that: The method of analyzing the connection redundancy of the power grid structure diagram using a depth-first search algorithm and a maximum flow minimum cut theorem includes: Converting the topological structure into a directed graph to construct a basic data model for power grid connection redundancy analysis; Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph; Based on the connectivity information, the connection redundancy of each node is calculated.

6. A power grid optimization device based on a power grid structure diagram, characterized in that: Includes the following modules: An acquisition module, used to construct a power grid structure diagram based on the target power grid, acquire data of nodes and connecting lines on the power grid structure diagram, and collect electrical parameters of the nodes and the connecting lines; The first analysis module is used to respectively obtain the historical load data, real-time load data and load forecast data of the node, and construct a node importance evaluation model to obtain a quantitative evaluation result reflecting the importance of the node; The second analysis module applies the critical path algorithm and K-means clustering method in network graph theory to perform topological analysis on the power grid structure diagram to obtain the topological structure of the target power grid, and performs power flow analysis based on the topological structure to determine the key transmission paths and potential bottleneck lines in the connecting lines respectively; A third analysis module performs a sensitivity analysis on the electrical parameters according to the topological structure, and obtains high-flow nodes and high-flow connection lines whose impact on the safety and stability of the target power grid exceeds a preset threshold value; The topological structure is processed according to the minimum cut set algorithm to obtain a load flow concentrated channel and a high transmission efficiency channel respectively; A fourth analysis module uses a depth-first search algorithm and a maximum flow minimum cut theorem to analyze the connection redundancy of the power grid structure diagram; A simplification module, configured to simplify the power grid structure diagram based on the quantitative evaluation result, the key transmission path, the potential bottleneck line, the high flow node, the high flow connection line, the load flow concentration channel, the high transmission efficiency channel and the analyzed connection redundancy result; The optimization module is used to input the simplified power grid structure diagram into a preset linear programming model to obtain the optimization result output by the linear programming model.

7. The power grid optimization device based on the power grid structure diagram according to claim 6, characterized in that: The first analysis module is further used for: Applying a time series analysis method to smooth the load time series data, extracting the long-term trend and periodicity characteristics of the load time series data, and determining the peak period and peak level of the load time series data through a local maximum algorithm; Based on the long-term trend and periodic characteristics of the load time series data and the peak period and peak level of the load time series data, the load change in a specific time period is analyzed to obtain the power consumption pattern of the node in different time periods; Based on the historical load data of the node, the power consumption pattern and the load forecast data, a node importance evaluation model is constructed to obtain a quantitative evaluation result reflecting the importance of the node.

8. The power grid optimization device based on the power grid structure diagram according to claim 6, characterized in that: The second analysis module is further used for: Applying the critical path algorithm in network graph theory to perform topological analysis on the power grid structure diagram, calculating the shortest path between any two nodes in the power grid structure diagram, obtaining the critical transmission path in the power grid, and counting the occurrence frequency of nodes and edges on the critical path to identify the critical nodes and critical lines in the power grid; Using K-means clustering algorithm, the nodes are clustered according to geographical location coordinates to obtain dense areas of power grid nodes; Analyze the connection relationship between the internal nodes of each dense area, count the number and distribution of connection lines, and obtain the connection line dense area in the topological structure; For the key lines and the areas with dense connection lines, flow calculation and analysis are performed to calculate the active power and reactive power flow on the key lines to obtain the load rate level of the key lines; According to the load rate level, combined with the occurrence frequency and criticality index of the key line in the key transmission path, the line with a load rate exceeding a threshold and a high criticality index is regarded as a potential bottleneck line of the power grid.

9. The power grid optimization device based on the power grid structure diagram according to claim 6, characterized in that: The third analysis module is further used for: Based on the grid topology and electrical parameters, a power flow calculation model of the target grid is obtained using a power flow calculation method; Based on the power flow calculation model, a sensitivity matrix method is used to calculate the sensitivity coefficient of each electrical parameter to the power flow distribution, so as to perform sensitivity analysis of the electrical parameters; Based on the results of the sensitivity analysis, determining high flow nodes and high flow connection lines in the power grid; The power flow calculation model is converted into a weighted undirected graph, and a minimum cut set algorithm is used to calculate and identify the transmission channel where the load flow is concentrated in the power grid as the load flow concentrated channel; The transmission capacity utilization rate of the load flow concentration channel is calculated, and the channel with a transmission capacity utilization rate exceeding a preset threshold is a channel with high transmission efficiency.

10. The power grid optimization device based on the power grid structure diagram according to claim 6, characterized in that: The fourth analysis module is further used for: Converting the topological structure into a directed graph to construct a basic data model for power grid connection redundancy analysis; Applying a depth-first search algorithm to analyze the basic data model to obtain connectivity information of nodes in the directed graph; Based on the connectivity information, the connection redundancy of each node is calculated.

Citation Information

Patent Citations

  • A Method for Detecting Vulnerability of Large-scale Power Grid Based On Complex Network

    AU2020103195A4

  • Practical quick search method of active splitting section of electrical power system

    CN104866611A

  • Power grid topology analysis engine system and method based on graph database

    CN108334572A

  • Power transmission network structure form evaluation method

    CN110969347A

  • Simplified modeling and analysis method and system for bus node of power flow model

    CN117458494A