Grid equipment operation mode generation method and device based on graph database, terminal equipment and storage medium
Through the connected component detection and topological path completion of the graph database, the problem of traditional databases retrieving and generating redundant data in large-scale power grids is solved, and efficient and accurate generation of power grid equipment operation modes is achieved.
Patent Information
- Application Number
- CN202510719626.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-09
AI Technical Summary
Traditional relational databases are unable to meet the needs of fast retrieval in large-scale power grids, resulting in exponentially increased response time for cascade queries, generation of redundant data, low efficiency of manual verification, and the risk of misjudgment of topological connectivity.
A graph database is used to generate the operation mode of power grid equipment. Through connected component detection and topological path completion, a fully connected subnet topology model is generated to reduce redundant data and improve storage efficiency and data consistency.
It achieves rapid retrieval and efficient generation of power grid equipment operating modes, reduces redundant data, improves storage efficiency and data consistency, and reduces the possibility of misjudgment in manual verification.
Smart Images

Figure CN120611066A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system operation mode generation, and in particular to a method, device, terminal device and storage medium for generating the operation mode of power grid equipment based on a graph database. Background Art
[0002] As the construction of new power systems progresses, grid topologies are characterized by high-dimensional interconnectedness. The complexity of device connections and the diversity of operating scenarios pose new requirements for data storage and computing. Graph databases, with their native topology storage capabilities, high-performance path query features, and flexible relationship extension mechanisms, have become ideal vehicles for grid topology modeling. Graph database-based topology retrieval technology can directly map the physical connection characteristics of grid equipment. Compared to the two-dimensional table structure storage method of traditional relational databases, its topology-oriented storage architecture improves query efficiency and provides storage support for the refined modeling of backbone networks or specific areas in large-scale power grids.
[0003] Currently, there are two main problems in the refined modeling of backbone networks or specific areas in large-scale power grids. First, during the refined construction of subnets, the topological storage model of traditional relational databases cannot meet the needs of fast retrieval. Faced with large power grids containing tens of thousands of nodes, the response time of SQL-based cascade queries increases exponentially, unable to meet the timeliness requirements of subnet construction. Second, the operation mode generation adopts the topology-state Cartesian product model, resulting in m-1 redundant data for every m new operation scenarios. When processing n topologies, the system redundancy reaches the n*m level, seriously restricting storage efficiency and data consistency. Secondly, when analyzing a local backbone network or a selected subnet, the results obtained based on search conditions (such as those based on region or voltage level) may cut off the electrical connection boundary, resulting in isolated nodes in the generated sub-topology. In this case, manual experience is required to retrospectively analyze the main network topology structure, manually fill in missing boundary devices, connection lines and other key devices, and perform aggregation and equalization operations on the devices. This correction method based on expert intervention is not only inefficient, but also has the risk of incomplete topology connectivity repair due to manual misjudgment. Therefore, the existing technology suffers from the dual problems of storage efficiency and manual verification. Summary of the Invention
[0004] The present invention provides a method, apparatus, terminal device, and storage medium for generating power grid equipment operating modes based on a graph database. These methods address the existing problem that, during the refined construction of subnets, the topological storage model of traditional relational databases is unable to meet fast retrieval requirements. For large power grids containing tens of thousands of nodes, the response time of SQL-based cascade queries increases exponentially, failing to meet the timeliness requirements of subnet construction. The operating mode generation uses a topology-state Cartesian product model, resulting in m-1 redundant data for every m newly added operating scenarios. When processing n topologies, the system redundancy reaches n*m levels, severely restricting storage efficiency and data consistency. During analysis of a local backbone network or selected subnet, the results obtained based on search conditions (such as those based on region or voltage level) may cut off electrical connection boundaries, resulting in isolated nodes in the generated subtopology. This requires manual experience to retrospectively analyze the main network topology, manually complete missing boundary devices, key equipment such as interconnecting lines, and perform aggregation and equivalence operations on the equipment. This results in low storage efficiency and a high probability of manual verification errors.
[0005] An embodiment of the present invention provides a method for generating an operating mode of a power grid device based on a graph database, comprising:
[0006] Obtaining an initial target power equipment set according to a preset graph database;
[0007] Performing connected component detection on the initial target power equipment set to obtain a connected component set, and taking the connected component with the most power equipment as the main network;
[0008] Among all connected components corresponding to the non-main network, the power equipment that has no direct connection relationship and no indirect connection relationship with the main network is regarded as an island device, and an initial island device set is obtained based on all the above island devices;
[0009] According to the preset graph database, the initial target power equipment set, and the initial island equipment set, topological path completion is performed on each power equipment in the initial island equipment set to obtain a fully connected subnet topology model;
[0010] According to the fully connected subnet topology model, a boundary power device set is determined, and a plurality of nested device sets are obtained based on the boundary power device set;
[0011] Obtaining the active output and reactive output of each power device in the preset graph database;
[0012] The source-load output of the fully connected subnet topology model is calculated based on the active output, the reactive output, the nested device set, and the fully connected subnet topology model, and the grid equipment operation mode is generated based on the fully connected subnet topology model and the source-load output.
[0013] Furthermore, the above-mentioned obtaining of the initial target power equipment set according to the preset graph database includes:
[0014] Obtain the query conditions of the power equipment input by the user, and generate a query statement based on the query conditions;
[0015] According to the query statement, a device query is performed from the preset graph database to obtain the initial target power device set.
[0016] Furthermore, based on the preset graph database, the initial target power equipment set, and the initial island equipment set, topology paths of the power equipment in the initial island equipment set are completed to obtain a fully connected subnet topology model, including:
[0017] Obtaining the voltage level of each power device in the initial island device set;
[0018] Repeat the island device connection operation until the current island device set is empty, and generate a fully connected subnet topology model based on the current target power device set and the topological connection path within the current target power device set;
[0019] The above-mentioned island device connectivity operations include:
[0020] Obtain the current island device set, and if the current island device set is not empty, obtain the current target power device set; wherein the initial island device set is the initial island device set, and the initial target power device set is the initial target power device set;
[0021] Centralize the current islanded devices to any power device as the current target islanded device;
[0022] According to the voltage level of the current target island device, a device search is performed from the above-mentioned preset graph database. If the current first power device that meets the preset first connectivity condition can be obtained, the current topological connection path between the current first power device and the current target island device is obtained, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the above-mentioned preset first connectivity condition is: the voltage level of all power devices on the current topological connection path with the current target island device as the starting point and the current first power device as the end point is the voltage level of the current target island device, and the current first power device belongs to the current target power device set but does not belong to the current island device set;
[0023] Otherwise, a cross-voltage level search is performed from the above-mentioned preset graph database to obtain the current second power device that meets the preset second connection condition, as well as the current topological connection path between the current second power device and the current target island device, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the above-mentioned preset second connection condition is: the second topological connection path with the current target island device as the starting point and the current second power device as the end point contains power devices with different voltage levels, and the current second power device belongs to the current target power device set but does not belong to the current island device set;
[0024] According to the updated target power equipment set, the power equipment that has no direct connection relationship and no indirect connection relationship with the above-mentioned main network obtains the updated island equipment set.
[0025] Furthermore, according to the current topological connection path and the power devices on the current topological connection path, the current target power device set is updated, including:
[0026] Obtain all selected power devices on the current topological connection path, and add the selected power devices to the current target power device set; wherein the selected power devices are power devices on the current topological connection path, belonging to the current target power device set but not belonging to the current island device set;
[0027] According to the current topological connection path, each power device in the target device set to which the selected power device has been added is connected to obtain an updated target power device set.
[0028] Furthermore, the above-mentioned fully connected subnet topology model is used to determine a boundary power device set, and a plurality of nested device sets are obtained based on the boundary power device set, including:
[0029] The power devices in the fully connected subnet topology model that meet both the preset internal connection conditions and the preset external connection conditions are defined as boundary power devices, thereby obtaining a boundary power device set; wherein the preset internal connection condition is that the boundary power device has a direct or indirect topological connection relationship with at least one power device in the fully connected subnet topology model; and the preset external connection condition is that the boundary power device has a direct or indirect topological connection relationship with at least one power device outside the fully connected subnet topology model.
[0030] From the preset graph database, power equipment having a voltage level less than the query condition, not belonging to the boundary power equipment set, and having a direct or indirect topological connection relationship with any boundary power equipment in the boundary power equipment set is extracted to generate several nested equipment sets; wherein, the voltage levels of the power equipment in different nested equipment sets are different.
[0031] Furthermore, the source-load output of the fully connected subnet topology model is calculated based on the active output, the reactive output, the nested device set, and the fully connected subnet topology model, including:
[0032] For each nested device set, a power device that belongs to the fully connected subnet topology model but does not belong to the nested device set and has a direct or indirect topological connection relationship with any power device in the nested device set is used as the first aggregation bearer node, thereby obtaining the first aggregation bearer node of each nested device set; wherein each nested device set corresponds to one first aggregation bearer node;
[0033] Calculate a first active output and a first reactive output of each power device in the fully connected subnet topology model according to the active output, the reactive output, the nested device set, and the first aggregation bearer node;
[0034] Obtaining a first source-load output in the fully connected subnet topology model according to the first active output and the first reactive output;
[0035] Obtain a second aggregation bearer node corresponding to each boundary power device in the boundary power device set; wherein the second aggregation bearer node is: for each boundary power device, any one power device that has a direct topological connection relationship with the boundary power device, does not belong to the fully connected subnet topology model, and does not have a direct topological connection relationship with other boundary power devices other than the boundary power device;
[0036] For each second aggregation bearer node, calculate a second source-load output outside the fully connected subnet topology model based on the active output and reactive output of the power equipment that has a direct or indirect topological connection relationship with the second aggregation bearer node and does not belong to the fully connected subnet topology model, the active output of the second aggregation bearer node, and the reactive output of the second aggregation bearer node;
[0037] The source-load output of the fully connected subnet topology model is obtained according to the first source-load output and the second source-load output.
[0038] Based on the above method embodiment, the present invention provides a corresponding device embodiment;
[0039] The present invention provides a device for generating an operation mode of a power grid device based on a graph database, comprising:
[0040] Initial target power equipment set acquisition module, main network determination module, initial island equipment set acquisition module, fully connected subnet topology model generation module, nested equipment set acquisition module, power data acquisition module and operation mode generation module;
[0041] The initial target power equipment set acquisition module is used to acquire the initial target power equipment set according to a preset graph database;
[0042] The main network determination module is configured to detect connected components of the initial target power equipment set to obtain a connected component set, and take the connected component with the most power equipment as the main network;
[0043] The initial island device set acquisition module is configured to identify, among all connected components corresponding to the non-main network, power devices that have no direct connection relationship and no indirect connection relationship with the main network as island devices, and to obtain an initial island device set based on all the island devices.
[0044] The fully connected subnet topology model generation module is configured to complete the topology path of each power device in the initial island device set based on the preset graph database, the initial target power device set, and the initial island device set to obtain a fully connected subnet topology model;
[0045] The nested device set acquisition module is used to determine a boundary power device set according to the fully connected subnet topology model, and obtain a plurality of nested device sets based on the boundary power device set;
[0046] The power data acquisition module is used to obtain the active output and reactive output of each power device in the preset graph database;
[0047] The above-mentioned operating mode generation module is used to calculate the source-load output of the fully connected subnet topology model based on the active output, the reactive output, the nested device set and the fully connected subnet topology model, and generate the power grid equipment operating mode based on the fully connected subnet topology model and the source-load output.
[0048] Furthermore, the initial target power equipment set acquisition module includes:
[0049] Query statement generation unit and device query unit;
[0050] The query statement generating unit is configured to obtain a query condition of the power equipment input by the user and generate a query statement according to the query condition;
[0051] The device query unit is configured to perform a device query from the preset graph database according to the query statement to obtain the initial target power device set.
[0052] Based on the above method embodiment, the present invention provides a corresponding terminal device embodiment;
[0053] The present invention provides a terminal device, including a processor, a memory, and a computer program stored in the above-mentioned memory and configured to be executed by the above-mentioned processor. When the above-mentioned processor executes the above-mentioned computer program, it implements the above-mentioned method for generating the operation mode of power grid equipment based on a graph database in any embodiment of the present invention.
[0054] Based on the above method embodiment, the present invention provides a storage medium embodiment;
[0055] The present invention provides a storage medium comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a method for generating an operating mode of a power grid device based on a graph database according to any embodiment of the present invention.
[0056] The embodiments of the present invention have the following beneficial effects:
[0057] The present invention provides a method, device, terminal device and storage medium for generating an operation mode of a power grid device based on a graph database. The method comprises: first, obtaining an initial target power device set according to a preset graph database; then performing a connected component detection on the initial target power device set to obtain a connected component set, and taking the connected component with the most power devices as the main network; then, among all connected components corresponding to non-main networks, power devices that have no direct connection relationship with the main network and no indirect connection relationship are regarded as island devices, and an initial island device set is obtained based on all the above island devices; then, according to the preset graph database, the initial target power device set and the connected component detection, the connected component detection is performed on the initial target power device set to obtain a connected component set, and taking the connected component with the most power devices as the main network; then, according to the preset graph database, the initial target power device set and the connected component detection, the connected component with the most power devices is regarded ... and the above-mentioned initial island device set, completing the topological path of each power device in the above-mentioned initial island device set to obtain a fully connected subnet topology model; then, based on the above-mentioned fully connected subnet topology model, determining the boundary power device set, and obtaining a number of nested device sets based on the above-mentioned boundary power device set; then obtaining the active output and reactive output of each power device in the preset graph database; finally, based on the active output, the reactive output, the nested device set and the fully connected subnet topology model, calculating the source-load output of the fully connected subnet topology model, and generating the power grid equipment operation mode based on the fully connected subnet topology model and the source-load output. Therefore, the present invention obtains the initial target power equipment set based on a preset graph database, and after obtaining the initial target power equipment set, first performs path completion, boundary demarcation and nested equipment set demarcation operations based on the initial target power equipment set, and then generates the power grid equipment operation mode after obtaining the fully connected subnet topology model based on this topology model. Therefore, the present invention first uses a graph database to store topology information, which meets the need of the existing technology to use the topology storage mode of traditional relational databases, which is difficult to perform fine modeling of the backbone network or specific areas in large-scale power grids; secondly, the topology information is combined with the operating status during calculation, which reduces the redundant data stored, and the entire generation process only processes this one topology model structure, which greatly reduces the problem of reduced efficiency caused by the use of the topology-state Cartesian product mode in the existing technology, which needs to process multiple topological structures and numerous redundant data. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0059] Figure 1 This is a flow chart of a method for generating an operating mode of power grid equipment based on a graph database provided by one embodiment of the present invention.
[0060] Figure 2 This is a schematic diagram of the topological relationship of device nodes provided by an embodiment of the present invention.
[0061] Figure 3 This is a structural diagram of a device for generating an operating mode of a power grid device based on a graph database provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0062] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0063] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0064] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0065] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0066] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0067] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0068] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0069] See also Figure 1 To address the problem in the prior art that the efficiency of generating an operating mode is greatly reduced due to the need to simultaneously process multiple topologies and generate a large amount of redundant data, an embodiment of the present invention provides a method for generating an operating mode of a power grid device based on a graph database, comprising:
[0070] Step S101: obtaining an initial target power equipment set according to a preset graph database;
[0071] Specifically, the topology data of a large power grid containing tens of thousands of nodes is stored in a preset graph database.
[0072] In a preferred embodiment, the above-mentioned obtaining the initial target power equipment set according to the preset graph database includes:
[0073] Obtain the query conditions of the power equipment input by the user, and generate a query statement based on the query conditions;
[0074] Specifically, the query conditions include: station area, voltage level, equipment type, and equipment name. The station area corresponds to the area attribute value in the node of the preset graph database; the voltage level corresponds to the voltage attribute value in the node of the preset graph database; the equipment type corresponds to the equipment type value in the node of the preset graph database; and the equipment name corresponds to the equipment name attribute value in the node of the preset graph database. Finally, all the above query conditions are combined through a logical AND operation to generate a query statement.
[0075] According to the query statement, a device query is performed from the preset graph database to obtain the initial target power device set.
[0076] Specifically, the above query conditions can be expressed by the following set:
[0077] Q={q area ,q vol,q type ,q name}
[0078] In the formula, Q represents the query condition set, q area represents the station area, q vol Indicates voltage level, q type Indicates the device type, q name Indicates the device name.
[0079] Specifically, since the target power equipment set is obtained according to the above query conditions, the node attributes corresponding to each power equipment in the target power equipment set can be determined synchronously, and the node attributes are represented by the following set:
[0080] N={n.area,n.voltage,n.type,n.name}
[0081] Where N represents the node attribute set, n.area represents the station area corresponding to the power equipment, n.voltage represents the voltage level corresponding to the power equipment, n.type represents the device type corresponding to the power equipment, and n.name represents the device name corresponding to the power equipment.
[0082] Specifically, the above query statement can be expressed as:
[0083] MATCH(n)WHERE n.area∈q area ∧n.voltage∈q vol ∧n.type∈q type ∧n.name∈q name
[0084] Schematically, the topological relationship diagram of the device nodes is as follows Figure 2 As shown, Figure 2 "GD", "YN", "GX", and "GZ" are all station areas, and "node" corresponds to "power equipment". If the query conditions currently obtained are "station area" is "GD", "voltage level" is "500kV", "device type" is "bus", and "device name" contains "A", then the query statement generated is: "MATCH(n:Device)WHERE n.area IN["GD"]AND n.voltage=500AND n.type IN["bus"]AND n.name=~"*A*"RETURN n". The result is as follows Figure 2 The contents selected by "GD" and "YN" are shown in the figure.
[0085] Specifically, the target power equipment set obtained can be modeled as follows:
[0086] G=(V,E)
[0087] Where G represents the graph structure corresponding to the initial target power equipment set, V represents the device nodes in the initial target power equipment set, and E represents the connection relationship between the device nodes in the initial target power equipment set.
[0088] In this preferred embodiment, a query statement is generated by the query condition input by the user, and then an initial target power equipment set is obtained in a preset graph database according to the query statement.
[0089] Step S102: performing connected component detection on the initial target power equipment set to obtain a connected component set, and taking the connected component with the most power equipment as the main network;
[0090] Specifically, based on the initial target power equipment set found in the query, a connected component analysis algorithm such as depth-first search (DFS) in graph theory is used to detect connected components. The largest connected component in the connected component set (i.e., the one with the most nodes and edges) is used as the main network. Using depth-first search, all reachable power equipment are recursively traversed from any power equipment, marked as a connected component, and the connected component set is divided:
[0091] {C1,C2,…,C k}
[0092] Where C1, C2, …, C k They are all different connected components in the connected component set.
[0093] Step S103: Among all connected components corresponding to the non-main network, power equipment that has no direct connection relationship and no indirect connection relationship with the main network is regarded as an island device, and an initial island device set is obtained based on all the above island devices;
[0094] In schematic form, assuming that the connected component C1 in the above connected component set is the largest connected component, then C1 is taken as the main network. When identifying isolated devices, if there is a connected component C1 of a non-main network, i (i≠1), and the component contains at least one node, namely |C i |≥1, then the power equipment in the connected component is an island device. Finally, the initial island device set S is obtained, which is expressed as:
[0095] Step S104: Based on the preset graph database, the initial target power equipment set, and the initial island equipment set, topology paths of the power equipment in the initial island equipment set are completed to obtain a fully connected subnet topology model;
[0096] In a preferred embodiment, the above-mentioned topological path completion is performed on each power device in the above-mentioned initial island device set based on the above-mentioned preset graph database, the above-mentioned initial target power device set and the above-mentioned initial island device set to obtain a fully connected subnet topology model, including:
[0097] Obtaining the voltage level of each power device in the initial island device set;
[0098] Repeat the island device connection operation until the current island device set is empty, and generate a fully connected subnet topology model based on the current target power device set and the topological connection path within the current target power device set;
[0099] The above-mentioned island device connectivity operations include:
[0100] Obtain the current island device set, and if the current island device set is not empty, obtain the current target power device set; wherein the initial island device set is the initial island device set, and the initial target power device set is the initial target power device set;
[0101] Centralize the current islanded devices to any power device as the current target islanded device;
[0102] According to the voltage level of the current target island device, a device search is performed from the above-mentioned preset graph database. If the current first power device that meets the preset first connectivity condition can be obtained, the current topological connection path between the current first power device and the current target island device is obtained, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the above-mentioned preset first connectivity condition is: the voltage level of all power devices on the current topological connection path with the current target island device as the starting point and the current first power device as the end point is the voltage level of the current target island device, and the current first power device belongs to the current target power device set but does not belong to the current island device set;
[0103] Specifically, based on the voltage level of the current target island device, a topology search of the same voltage level is performed from a preset graph database to search whether there is a feasible path from the island device to the current target power equipment set at the same voltage level.
[0104] Schematically, when the initial island device collection When the same voltage level topology search is performed first, the current topology connection path that meets the preset first connectivity condition is retrieved from the preset graph database:
[0105] P=(v1,e1,v2,…,v n-1 ,e n-1 ,vn ,e n ,v n+1 )
[0106] Where P represents the current topological connection path corresponding to the current first power device that meets the preset first connectivity condition, v1, v2, ..., v n-1 ,v n ,v n+1 Each of them represents each power device on the current topological connection path that meets the preset first connectivity condition, and e1,…,e n It represents the connection relationship between the corresponding power equipment. The endpoints at both ends of this path satisfy: v1∈S∧v n+1 ∈V, the voltage levels of all power equipment in P are equal.
[0107] Otherwise, a cross-voltage level search is performed from the above-mentioned preset graph database to obtain the current second power device that meets the preset second connection condition, as well as the current topological connection path between the current second power device and the current target island device, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the above-mentioned preset second connection condition is: the second topological connection path with the current target island device as the starting point and the current second power device as the end point contains power devices with different voltage levels, and the current second power device belongs to the current target power device set but does not belong to the current island device set;
[0108] According to the updated target power equipment set, the power equipment that has no direct connection relationship and no indirect connection relationship with the above-mentioned main network obtains the updated island equipment set.
[0109] Specifically, if the topology search at the same voltage level is unsuccessful, a topology search across voltage levels is performed to obtain the topology connection path corresponding to the current second power device:
[0110] P′=(v1′,e1′,v2′,…,v n-1 ′,e n-1 ,v n ,e n ′,v n+1 ′)
[0111] Where, P′ represents the current topological connection path corresponding to the current second power device that meets the preset second connectivity condition, v1′, v2′,…, v n-1 ′,v n+1 ′ represents each power device on the current topological connection path that meets the preset second connectivity condition, e1′,…,e n′ represents the connection relationship between the corresponding power devices. The endpoints at both ends of the current topological connection path that meets the preset first connectivity condition meet the following conditions: v1′∈S∧v n+1 ′∈V, there are power equipment with unequal voltage levels in P′. The final fully connected subnet topology model can be expressed as G′. G′ must satisfy the following: if the connected component detection is performed on G′, there is only one connected component in the connected component set obtained by division, that is, the entire graph is connected. Among them, the fully connected subnet topology model can be expressed as:
[0112] G′=(V′,E′)
[0113] Where G′ represents the fully connected subnet topology model, V′ represents all the power devices in the fully connected subnet topology model, that is, the nodes in the graph structure composed of the fully connected subnet topology model, and E′ represents the connection relationship between all the power devices in the fully connected subnet topology model, that is, the edges in the graph structure composed of the fully connected subnet topology model.
[0114] Indicative, Figure 2 When completing the topology path for the island device set, the current topology connection path that meets the preset second connection condition is searched out as: node C->transformer CQ->node Q->transformer DQ->node D.
[0115] In this preferred embodiment, by continuously performing island device connection operations on the island device set, a fully connected subnet topology model with full graph connectivity is obtained.
[0116] In another preferred embodiment, updating the current target power device set according to the current topological connection path and the power devices on the current topological connection path includes:
[0117] Obtain all selected power devices on the current topological connection path, and add the selected power devices to the current target power device set; wherein the selected power devices are power devices on the current topological connection path, belonging to the current target power device set but not belonging to the current island device set;
[0118] According to the current topological connection path, each power device in the target device set to which the selected power device has been added is connected to obtain an updated target power device set.
[0119] Schematically, for the set update that meets the preset first connectivity condition, the power equipment in P that does not belong to the current target power equipment set is added to the current target power equipment set, and the connection relationship (edge) of the power equipment on the entire current topological connection path is also updated to the current target power equipment set. The update formula is shown as follows:
[0120] V←V∪{v2,…,v n}
[0121] E←E∪{e1,…,e n}
[0122] For set updates that meet the preset second connectivity condition, the power equipment that does not belong to the current target power equipment set is added to the current target power equipment set, and the connection relationship (edge) of the power equipment on the entire current topological connection path is also updated to the current target power equipment set. The update formula is shown as follows:
[0123] V←V∪{v2′,…,v n ′}
[0124] E←E∪{e1′,…,e n ′}
[0125] In this preferred embodiment, the power devices in the current target power device set and the connection relationships between the power devices are updated through the current topological connection path.
[0126] Step S105: determining a boundary power device set according to the fully connected subnet topology model, and obtaining a plurality of nested device sets according to the boundary power device set;
[0127] In a preferred embodiment, the boundary power device set is determined based on the fully connected subnet topology model, and a plurality of nested device sets are obtained based on the boundary power device set, including:
[0128] The power devices in the fully connected subnet topology model that meet both the preset internal connection conditions and the preset external connection conditions are defined as boundary power devices, thereby obtaining a boundary power device set; wherein the preset internal connection condition is that the boundary power device has a direct or indirect topological connection relationship with at least one power device in the fully connected subnet topology model; and the preset external connection condition is that the boundary power device has a direct or indirect topological connection relationship with at least one power device outside the fully connected subnet topology model.
[0129] Specifically, the boundary power equipment set can be defined as:
[0130]
[0131] Where B represents the boundary power equipment set, v represents the determined boundary power equipment, u represents the power equipment that has a direct or indirect topological connection relationship with v in the fully connected subnet topology model, and V extrepresents the set of power devices outside the fully connected subnet topology model, Path(v,u) indicates that there is at least one connected path from the boundary power device v to the power device u, w represents the power device outside the fully connected subnet topology model that has a direct or indirect topological connection relationship with v, and Path(v,w) indicates that there is at least one connected path from the boundary power device v to the power device w.
[0132] Indicative, Figure 2 The "node D", "node Q" and "node B" in the diagram are the above-mentioned boundary power devices, and Figure 2 The dotted line in the figure indicates that it belongs to the fully connected subnet topology model and is not a connection between boundary power devices. The dot-dash line is the second topological connection relationship between the boundary power device and the power devices outside the fully connected subnet topology model; the solid line is the connection between the power devices that do not belong to the fully connected subnet topology model.
[0133] Extract from the preset graph database the power equipment with a voltage level less than the query condition, which does not belong to the boundary power equipment set and has a direct or indirect topological connection relationship with any boundary power equipment in the boundary power equipment set, and generate several nested device sets; wherein the voltage levels of the power equipment in different nested device sets are different
[0134] Specifically, when generating a nested device set, the voltage levels of the power devices in the same nested device set are the same. The nested device set represents a set of devices that are not obtained by the above query conditions but have a connection relationship with the power devices in the boundary power device set and meet the following requirements:
[0135]
[0136] Where T represents the nested device set, t represents the power device in the nested device set, v″ represents the power device in the boundary power device set, Path(v″,t) indicates that there is at least one connected path from the power device v″ in the boundary power device set to the power device t in the nested device set, and t.voltage vol Indicates that the voltage level of power device t in the nested device set is lower than the voltage level corresponding to the query condition. t.voltage represents the voltage level of power device t.
[0137] In this preferred embodiment, the boundary power device set is determined through the topological connection relationship between each power device within the fully connected subnet topology model, and the topological connection relationship between each power device and the power devices outside the fully connected subnet topology model, and then different nested device sets are determined.
[0138] Step S106: Obtaining the active output and reactive output of each power device in the preset graph database;
[0139] Specifically, the operation mode of the power grid equipment can be obtained according to the above active output and reactive output.
[0140] Step S107: Calculate the source-load output of the fully connected subnet topology model based on the active output, the reactive output, the nested device set, and the fully connected subnet topology model, and generate the grid equipment operation mode based on the fully connected subnet topology model and the source-load output.
[0141] Specifically, after obtaining the source-load output of the fully connected subnet topology model, the final generated grid equipment operation mode can be expressed as:
[0142] M=<G′,Φ>
[0143] Where M represents the operation mode of the power grid equipment, and Φ represents the source and load output of the fully connected subnetwork topology model.
[0144] Preferably, after the operation mode of the power grid equipment is obtained, power grid simulation calculation and business analysis can be performed based on various data within the operation mode of the power grid equipment.
[0145] Indicative, Figure 2 The "area to be aggregated" includes the above-mentioned nested device set and the aggregation bearer node corresponding to the nested device set, where "Node A" is the first aggregation bearer node, and "Node A1", "Node A2" and "Node A3" are the various power equipment in the nested device set corresponding to the first aggregation bearer node.
[0146] In a preferred embodiment, the calculating the source-load output of the fully connected subnet topology model based on the active output, the reactive output, the nested device set, and the fully connected subnet topology model includes:
[0147] For each nested device set, a power device that belongs to the fully connected subnet topology model but does not belong to the nested device set and has a direct or indirect topological connection relationship with any power device in the nested device set is used as a first aggregation bearer node, thereby obtaining the first aggregation bearer node of each nested device set; wherein each nested device set corresponds to one first aggregation bearer node;
[0148] Specifically, the power equipment d∈V′ is selected as the first aggregation bearer node, and the power equipment d satisfies That is, the power device d has a direct or indirect topological connection relationship with at least one power device t in the corresponding nested device set T.
[0149] Calculate a first active output and a first reactive output of each power device in the fully connected subnet topology model according to the active output, the reactive output, the nested device set, and the first aggregation bearer node;
[0150] Specifically, for the first aggregation bearer node, the active outputs of all power devices in a single nested device set are first accumulated to obtain an active aggregate, and then the sum of the active aggregate and the active output of the corresponding first aggregation bearer node is calculated to obtain the first active output of the first aggregation bearer node. The active aggregate is calculated using the following formula:
[0151]
[0152] Where, P agg represents active aggregation, P(t) represents the active output of power device t in the nested device set, where the active output of power supply type power equipment is positive and the active output of load type power equipment is negative.
[0153] Specifically, the first active output of the power equipment corresponding to the first aggregation bearer node is expressed by the following formula:
[0154] v′ a .P=v a .P+P agg
[0155] Where v′ a .P represents the first aggregation bearer node v a The first active output of the corresponding power equipment, v a .P represents the first aggregation bearer node v a The active output of the corresponding power equipment.
[0156] Specifically, the reactive outputs of all power devices in a single nested device set are first accumulated to obtain a reactive aggregate, and then the reactive aggregate is added to the reactive output of the corresponding first aggregation bearer node to obtain the first reactive output of the first aggregation bearer node. The reactive aggregate is calculated using the following formula:
[0157]
[0158] Where Q agg represents reactive aggregation, Q(t) represents the reactive output of power device t in the nested device set, where the reactive output of power devices that emit inductive reactive power or absorb capacitive reactive power is positive, and the reactive output of power devices that emit capacitive reactive power or absorb inductive reactive power is negative.
[0159] Specifically, the first reactive output of the power equipment corresponding to the first aggregation bearer node is expressed by the following formula:
[0160] v′ a .Q=v a .Q+Q agg
[0161] Where v′ a Q represents the first aggregation bearer node v a The first reactive output of the corresponding power equipment, v a Q represents the first aggregation bearer node v a The reactive output of the corresponding power equipment.
[0162] Specifically, for non-first aggregation bearer nodes in the fully connected subnet extension model, their own active output is directly used as the first active output of the power equipment, and their own reactive output is directly used as the first reactive output of the power equipment.
[0163] Obtaining a first source-load output in the fully connected subnet topology model according to the first active output and the first reactive output;
[0164] Specifically, the first active output and the first reactive output of all power equipment in the fully connected subnet topology model are combined to obtain the first source-load output in the fully connected subnet topology model.
[0165] Obtain a second aggregation bearer node corresponding to each boundary power device in the boundary power device set; wherein the second aggregation bearer node is: for each boundary power device, any one power device that has a direct topological connection relationship with the boundary power device, does not belong to the fully connected subnet topology model, and does not have a direct topological connection relationship with other boundary power devices other than the boundary power device;
[0166] Schematically, if for a boundary power device α, there are two power devices that have a direct topological connection relationship with α, do not belong to the fully connected subnet topology model, and do not have a direct topological connection relationship with other boundary power devices other than the boundary power device, then any one of the two power devices is selected as the second aggregation carrying node of α.
[0167] For each second aggregation bearer node, calculate a second source-load output outside the fully connected subnet topology model based on the active output and reactive output of the power equipment that has a direct or indirect topological connection relationship with the second aggregation bearer node and does not belong to the fully connected subnet topology model, the active output of the second aggregation bearer node, and the reactive output of the second aggregation bearer node;
[0168] Specifically, for each second aggregation bearer node, the active output of the power equipment that has a direct or indirect topological connection relationship with the second aggregation bearer node and does not belong to the fully connected subnet topology model is accumulated, and then added to the active output of the corresponding second aggregation bearer node to obtain the active output outside the fully connected subnet topology model. Similarly, the reactive output of the power equipment that has a direct or indirect topological connection relationship with the second aggregation bearer node and does not belong to the fully connected subnet topology model is accumulated, and then added to the reactive output of the corresponding second aggregation bearer node to obtain the reactive output outside the fully connected subnet topology model. Finally, the active output of all the power equipment outside the fully connected subnet topology model and the reactive output outside the fully connected subnet topology model are combined to obtain the second source-load output outside the fully connected subnet topology model.
[0169] The source-load output of the fully connected subnet topology model is obtained according to the first source-load output and the second source-load output.
[0170] In this preferred embodiment, the source-load output of the fully connected subnet topology model is calculated through the active output and reactive output nested device set of all power devices and the fully connected subnet topology model.
[0171] Based on the above method embodiments, the present invention provides corresponding device embodiments.
[0172] like Figure 3 As shown, an embodiment of the present invention provides a device for generating an operation mode of a power grid device based on a graph database, comprising:
[0173] Initial target power equipment set acquisition module, main network determination module, initial island equipment set acquisition module, fully connected subnet topology model generation module, nested equipment set acquisition module, power data acquisition module and operation mode generation module;
[0174] The initial target power equipment set acquisition module is used to acquire the initial target power equipment set according to a preset graph database;
[0175] The main network determination module is configured to detect connected components of the initial target power equipment set to obtain a connected component set, and take the connected component with the most power equipment as the main network;
[0176] The initial island device set acquisition module is configured to identify, among all connected components corresponding to the non-main network, power devices that have no direct connection relationship and no indirect connection relationship with the main network as island devices, and to obtain an initial island device set based on all the island devices.
[0177] The fully connected subnet topology model generation module is configured to complete the topology path of each power device in the initial island device set based on the preset graph database, the initial target power device set, and the initial island device set to obtain a fully connected subnet topology model;
[0178] The nested device set acquisition module is used to determine a boundary power device set according to the fully connected subnet topology model, and obtain a plurality of nested device sets based on the boundary power device set;
[0179] The power data acquisition module is used to obtain the active output and reactive output of each power device in the preset graph database;
[0180] The above-mentioned operating mode generation module is used to calculate the source-load output of the fully connected subnet topology model based on the active output, the reactive output, the nested device set and the fully connected subnet topology model, and generate the power grid equipment operating mode based on the fully connected subnet topology model and the source-load output.
[0181] In a preferred embodiment, the initial target power equipment set acquisition module includes:
[0182] Query statement generation unit and device query unit;
[0183] The query statement generating unit is configured to obtain a query condition of the power equipment input by the user and generate a query statement according to the query condition;
[0184] The device query unit is configured to perform a device query from the preset graph database according to the query statement to obtain the initial target power device set.
[0185] It should be noted that the device embodiments described above are merely illustrative, wherein the modules described above as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without inventive effort. The above schematic diagram is merely an example of a device for generating an operating mode of a power grid device based on a graph database, and does not constitute a limitation on a device for generating an operating mode of a power grid device based on a graph database. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0186] Based on the above method embodiment, the present invention provides a corresponding terminal device embodiment.
[0187] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the above-mentioned memory and configured to be executed by the above-mentioned processor. When the above-mentioned processor executes the above-mentioned computer program, it implements the above-mentioned method for generating the operation mode of power grid equipment based on the graph database in any embodiment of the present invention.
[0188] For example, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the device.
[0189] The terminal device may be a computing device such as a desktop computer, notebook, PDA, or cloud server. The device may include, but is not limited to, a processor and memory;
[0190] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the device, connecting the various parts of the device using various interfaces and lines.
[0191] The above-mentioned memory can be used to store the above-mentioned computer programs and / or modules. The above-mentioned processor realizes various functions of the above-mentioned device by running or executing the computer programs and / or modules stored in the above-mentioned memory, and calling the data stored in the memory. The above-mentioned memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; in addition, the memory 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 device.
[0192] Based on the above method embodiment, the present invention provides a corresponding storage medium embodiment.
[0193] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for generating the operation mode of power grid equipment based on a graph database according to any embodiment of the present invention.
[0194] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, an executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.
[0195] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for generating an operation mode of a power grid device based on a graph database, characterized in that: include: Obtaining an initial target power equipment set according to a preset graph database; Performing connected component detection on the initial target power equipment set to obtain a connected component set, and taking the connected component with the most power equipment as the main network; Among all connected components corresponding to the non-main network, power equipment that has no direct connection relationship and no indirect connection relationship with the main network is regarded as an island device, and an initial island device set is obtained based on all the island devices; According to the preset graph database, the initial target power equipment set and the initial island equipment set, topological path completion is performed on each power equipment in the initial island equipment set to obtain a fully connected subnet topology model; Determine a boundary power device set according to the fully connected subnet topology model, and obtain a plurality of nested device sets according to the boundary power device set; Obtaining the active output and reactive output of each power device in the preset graph database; The source-load output of the fully connected subnet topology model is calculated based on the active output, the reactive output, the nested device set, and the fully connected subnet topology model, and the grid equipment operation mode is generated based on the fully connected subnet topology model and the source-load output.
2. A method for generating a power grid equipment operation mode based on a graph database according to claim 1, characterized in that: The step of obtaining an initial target power equipment set according to a preset graph database includes: Obtaining query conditions for power equipment input by a user, and generating a query statement based on the query conditions; According to the query statement, a device query is performed from the preset graph database to obtain the initial target power device set.
3. The method for generating a power grid equipment operation mode based on a graph database according to claim 2, characterized in that: The method of performing topological path completion on each power device in the initial island device set according to the preset graph database, the initial target power device set, and the initial island device set to obtain a fully connected subnet topology model includes: Obtaining the voltage level of each power device in the initial island device set; Repeat the island device connection operation until the current island device set is empty, and generate a fully connected subnet topology model based on the current target power device set and the topological connection path within the current target power device set; The island device connection operation includes: Obtaining a current island device set, and if the current island device set is not empty, obtaining a current target power device set; wherein the initial island device set is the initial island device set, and the initial target power device set is the initial target power device set; Centralize the current islanded devices to any power device as the current target islanded device; According to the voltage level of the current target island device, a device search is performed from the preset graph database. If the current first power device that meets the preset first connectivity condition can be obtained, the current topological connection path between the current first power device and the current target island device is obtained, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the preset first connectivity condition is: the voltage level of all power devices on the current topological connection path with the current target island device as the starting point and the current first power device as the end point is the voltage level of the current target island device, and the current first power device belongs to the current target power device set but does not belong to the current island device set; Otherwise, a cross-voltage level search is performed from the preset graph database to obtain the current second power device that meets the preset second connection condition, and the current topological connection path between the current second power device and the current target island device, and the current target power device set is updated according to the current topological connection path and the power devices on the current topological connection path; wherein the preset second connection condition is: the second topological connection path with the current target island device as the starting point and the current second power device as the end point contains power devices with different voltage levels, and the current second power device belongs to the current target power device set but does not belong to the current island device set; An updated island device set is obtained based on the power devices in the updated target power device set that have no direct connection relationship and no indirect connection relationship with the main network.
4. The method for generating a power grid equipment operation mode based on a graph database according to claim 3, characterized in that: According to the current topology connection path and the power devices on the current topology connection path, the current target power device set is updated, including: Acquire all selected power devices on the current topological connection path, and add the selected power devices to the current target power device set; wherein the selected power devices are power devices on the current topological connection path, belonging to the current target power device set but not belonging to the current island device set; According to the current topological connection path, each power device in the target device set to which the selected power device has been added is connected to obtain an updated target power device set.
5. The method for generating a power grid equipment operation mode based on a graph database according to claim 4, characterized in that: Determining a boundary power device set according to the fully connected subnet topology model, and obtaining a plurality of nested device sets according to the boundary power device set, including: The power devices in the fully connected subnet topology model that simultaneously meet the preset internal connection conditions and the preset external connection conditions are used as boundary power devices, thereby obtaining a boundary power device set; wherein the preset internal connection condition is that there is a direct or indirect topological connection relationship between the boundary power device and at least one power device in the fully connected subnet topology model; and the preset external connection condition is that there is a direct or indirect topological connection relationship between the boundary power device and at least one power device outside the fully connected subnet topology model; From the preset graph database, power equipment with a voltage level lower than the query condition, which does not belong to the boundary power equipment set and has a direct or indirect topological connection relationship with any power equipment in the fully connected subnet topology model is extracted to generate several nested device sets; wherein, the voltage levels of the power equipment in different nested device sets are different.
6. A method for generating a power grid equipment operation mode based on a graph database according to claim 5, characterized in that: The calculating the source-load output of the fully connected subnet topology model according to the active output, the reactive output, the nested device set, and the fully connected subnet topology model includes: For each nested device set, a power device that belongs to the fully connected subnet topology model but does not belong to the nested device set and has a direct or indirect topological connection relationship with any power device in the nested device set is used as a first aggregation bearer node, thereby obtaining the first aggregation bearer node of each nested device set; wherein each nested device set corresponds to one first aggregation bearer node; Calculate a first active output and a first reactive output of each power device in the fully connected subnet topology model according to the active output, the reactive output, the nested device set, and the first aggregation bearer node; Obtaining a first source-load output in the fully connected subnet topology model according to the first active output and the first reactive output; Obtain a second aggregation bearer node corresponding to each boundary power device in the boundary power device set; wherein the second aggregation bearer node is: for each boundary power device, any one power device that has a direct topological connection relationship with the boundary power device, does not belong to the fully connected subnet topology model, and does not have a direct topological connection relationship with other boundary power devices other than the boundary power device; For each second aggregation bearer node, calculate a second source-load output outside the fully connected subnet topology model based on the active output and reactive output of the power equipment that has a direct or indirect topological connection relationship with the second aggregation bearer node and does not belong to the fully connected subnet topology model, the active output of the second aggregation bearer node, and the reactive output of the second aggregation bearer node; The source-load output of the fully connected subnet topology model is obtained according to the first source-load output and the second source-load output.
7. A device for generating an operation mode of a power grid device based on a graph database, characterized in that: include: Initial target power equipment set acquisition module, main network determination module, initial island equipment set acquisition module, fully connected subnet topology model generation module, nested equipment set acquisition module, power data acquisition module and operation mode generation module; The initial target power equipment set acquisition module is used to acquire the initial target power equipment set according to a preset graph database; The main network determination module is configured to perform connected component detection on the initial target power equipment set to obtain a connected component set, and take the connected component with the most power equipment as the main network; The initial island device set acquisition module is configured to identify, among all connected components corresponding to the non-main network, power devices that have no direct connection relationship and no indirect connection relationship with the main network as island devices, and obtain an initial island device set based on all the island devices; The fully connected subnet topology model generation module is configured to complete the topology path of each power device in the initial island device set according to the preset graph database, the initial target power device set, and the initial island device set, to obtain a fully connected subnet topology model; The nested device set acquisition module is used to determine a boundary power device set according to the fully connected subnet topology model, and obtain a plurality of nested device sets according to the boundary power device set; The power data acquisition module is used to obtain the active output and reactive output of each power device in the preset graph database; The operation mode generation module is used to calculate the source-load output of the fully connected subnet topology model based on the active output, the reactive output, the nested device set and the fully connected subnet topology model, and generate the power grid equipment operation mode based on the fully connected subnet topology model and the source-load output.
8. The device for generating a power grid equipment operation mode based on a graph database according to claim 7, characterized in that: The initial target electric equipment set acquisition module includes: Query statement generation unit and device query unit; The query statement generating unit is configured to obtain a query condition of the power equipment input by the user and generate a query statement according to the query condition; The device query unit is configured to perform a device query from the preset graph database according to the query statement to obtain the initial target power device set.
9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a method for generating an operating mode of a power grid device based on a graph database as described in any one of claims 1 to 6.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a method for generating an operation mode of a power grid device based on a graph database as described in any one of claims 1 to 6.