Power distribution network equipment time diagram control method, device and equipment for fusing electrical topology
By constructing a temporal network of graph relationships for distribution network equipment and a graph version change set, the problem of low graph information storage efficiency is solved, enabling efficient historical version reconstruction and querying, saving storage space, and improving the efficiency of temporal analysis of distribution network equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, the storage efficiency of graph information is low, especially in the temporal topology analysis of power distribution network equipment. Traditional relational database management methods result in low query efficiency, and graph technology lacks an effective solution for temporal management, resulting in the storage of a large amount of duplicate historical graph information that occupies a large amount of storage space.
A temporal network of graph relationships for power distribution network equipment is constructed. By acquiring change information, topology node changes are identified, a graph version change set is built, information before the change is saved, and historical version graph information is reconstructed based on query conditions to reduce redundant storage.
It improves the storage efficiency of graph information, saves storage space, enables quick querying of the temporal historical changes of power distribution network equipment, and enhances query efficiency.
Smart Images

Figure CN116383316B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrical system diagram information technology, and in particular to a time-phase diagram control method, device and equipment for power distribution network equipment that integrates electrical topology. Background Technology
[0002] The spatial aggregation objects of digital twins of distribution network equipment are diverse and numerous, with complex spatiotemporal scales and many judgment factors. Spatiotemporal evolution analysis is difficult and research results are lacking. At the same time, the topological state of the distribution network is closely related to time, with multiple temporal states such as operation, history, and editing. With the large-scale access of distributed new energy sources, the temporal characteristics of the distribution network topology are becoming more obvious and complex.
[0003] Traditional relational databases manage the temporal state of device nodes using a device-temporal data table approach. However, when performing temporal topology analysis of distribution networks, this involves multiple table joins and aggregations, resulting in low query efficiency when analyzing large numbers of distribution network nodes. While using graph relational storage to store distribution network devices and their relationships leverages the topology analysis advantages of graph computing to improve the efficiency of distribution network device analysis, traditional graph technologies lack effective solutions for temporal management and analysis. When distribution network devices switch between planning, operation, construction, and historical phases, a large amount of duplicate historical graph information needs to be stored. Furthermore, significant redundancy is required to save newly added, modified, and deleted historical data when line switching occurs. Storing a large amount of duplicate historical graph information consumes substantial storage space, leading to low storage efficiency. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus and equipment for time-phase diagram control of power distribution network equipment that integrates electrical topology, so as to solve the technical problem of low storage efficiency of diagram information in the prior art.
[0005] The technical solution proposed in this invention is as follows:
[0006] The first aspect of this invention provides a temporal graph control method for distribution network equipment that integrates electrical topology, comprising: constructing a temporal network of distribution network equipment graph relationships, the distribution network equipment graph relationship temporal network including distribution network topology graphs in multiple temporal states, the distribution network topology graph including topology nodes and edge relationships corresponding to distribution network equipment; obtaining the topology nodes that have changed in the current change according to the change information of the distribution network equipment graph relationship temporal network; constructing a graph version change set, storing the information of the changed topology nodes before the change in the graph version change set and establishing a connection between the graph version change set and the changed topology nodes; obtaining graph information generated by the corresponding topology nodes and edge relationships from the changed distribution network equipment graph relationship temporal network based on query conditions; obtaining the information of the corresponding topology nodes before the change from the graph version change set according to the connection between the topology nodes in the graph information and the graph version change set, and reconstructing and obtaining graph information of a specified historical version according to the information of the topology nodes before the change.
[0007] Optionally, the topology node includes a device node, an electrical topology terminal node, a device ledger node, and a version node, and the electrical topology terminal node, device ledger node, and version node are all associated with the device node; the step of storing the information of the changed topology node before the change in the graph version change set and establishing the connection between the graph version change set and the changed topology node includes: determining, based on the change information, whether only the device node and the version node changed in this change; if only the device node and the version node changed, then storing the information of the changed topology node before the change in the graph version change set and establishing the connection between the graph version change set and the changed topology node includes: determining, based on the change information, whether only the device node and the version node changed in this change; if only the device node and the version node changed, then storing the information of the changed device node before the change in the graph version change set and establishing the connection between the changed topology node and the changed version node. The nodes are stored in the graph version change set; if not only the device nodes and the version nodes are changed, the previous device nodes associated with the changed electrical topology terminal nodes or the device ledger nodes are stored in the graph version change set, and the previous electrical topology terminal nodes and their edges connected to the device nodes, and / or the previous device ledger nodes and their edges connected to the device nodes are stored in the graph version change set; the previous version nodes in the changed topology nodes are associated with the graph version change set, and a connection is established between the previous version nodes and the changed version nodes.
[0008] Optionally, after storing the device node before the change in the graph version change set, the method further includes: obtaining and directly connecting the device node that has changed; and storing the edges connecting the changed device node and its directly connected device nodes in the graph version change set.
[0009] Optionally, the step of obtaining graph information generated from the corresponding topology nodes and edge relationships in the modified temporal network of the distribution network equipment graph relationship based on query conditions includes: obtaining query conditions input by the user; obtaining the corresponding topology nodes and edge relationships associated with the query conditions from the modified temporal network of the distribution network equipment graph relationship based on the query conditions; and generating graph information based on the corresponding topology nodes and edge relationships associated with the query conditions.
[0010] Optionally, the query criteria include a combination of one or more of the following: line name, equipment name, equipment type, manufacturer name, and equipment model.
[0011] Optionally, the step of obtaining the information of the corresponding topology node before the change from the graph version change set based on the connection between the topology node in the graph information and the graph version change set, and reconstructing the graph information of the specified historical version based on the information of the topology node before the change, includes: obtaining the graph version change set associated with the version node before the last change based on the version node that has established a connection with the version node in the corresponding topology node; replacing the corresponding device node, electrical topology terminal node, equipment ledger node and edge relationship in the graph information with the device node, electrical topology terminal node, equipment ledger node and edge relationship in the graph version change set associated with the version node before the last change to obtain the graph information of the previous version; repeating the above steps recursively until the graph information of the specified historical version is obtained.
[0012] Optionally, before replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node with the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information, the method further includes: comparing the attribute information of the device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph version change set associated with the previous version node with the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information to obtain the difference information of each node; after replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node with the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information, the method further includes: associating each of the difference information with the corresponding replaced device nodes, electrical topology terminal nodes, and equipment ledger nodes.
[0013] Optionally, after obtaining the device nodes that have changed in this change based on the change information of the temporal network of the distribution network equipment diagram relationship, the method further includes: generating a new version node for the changed topology node based on the change information, and storing the change information in the new version node.
[0014] A second aspect of this invention provides a temporal graph control device for distribution network equipment that integrates electrical topology, comprising: a first construction module for constructing a temporal network of distribution network equipment graph relationships, the temporal network of distribution network equipment graph relationships including distribution network topology graphs in multiple temporal states, the distribution network topology graphs including topology nodes and edge relationships corresponding to distribution network equipment; a change module for obtaining the topology nodes that have changed in the current change based on the change information of the temporal network of distribution network equipment graph relationships; a second construction module for constructing a graph version change set, storing the information of the changed topology nodes before the change in the graph version change set and establishing a connection between the graph version change set and the changed topology nodes; a current version information query module for obtaining graph information generated by the corresponding topology nodes and edge relationships from the changed temporal network of distribution network equipment graph relationships based on query conditions; and a historical version information reconstruction module for obtaining the information of the corresponding topology nodes before the change from the graph version change set based on the connection between the topology nodes in the graph information and the graph version change set, and reconstructing the graph information of a specified historical version based on the information of the topology nodes before the change.
[0015] Optionally, the topology node includes a device node, an electrical topology terminal node, a device ledger node, and a version node, and the electrical topology terminal node, the device ledger node, and the version node are all associated with the device node; the second construction module includes: a first judgment module, used to determine, based on the change information, whether only the device node and the version node have changed in this change of the topology node; a first storage module, used to store the device node before the change in the graph version change set if only the device node and the version node have changed, and if not only the device node and the version node have changed, store the device node before the change associated with the electrical topology terminal node or the device ledger node that has changed in the graph version change set, and store the electrical topology terminal node before the change and its edge connected to the device node, and / or the device ledger node before the change and its edge connected to the device node in the graph version change set; an association module, used to associate the version node before the change in the changed topology node with the graph version change set, and establish a connection between the version node before the change and the version node after the change.
[0016] Optionally, the first storage module is further configured to obtain and the device nodes directly connected to the changed device node, and store the edges connecting the changed device node and its directly connected device nodes in the graph version change set.
[0017] Optionally, the current version information query module includes: an input acquisition module for acquiring query conditions input by the user; a graph information query module for acquiring the corresponding topology nodes and edge relationships associated with the query conditions from the modified distribution network equipment graph relationship temporal network according to the query conditions; and a graph information generation module for generating graph information according to the corresponding topology nodes and edge relationships associated with the query conditions.
[0018] Optionally, the query criteria include a combination of one or more of the following: line name, equipment name, equipment type, manufacturer name, and equipment model.
[0019] Optionally, the historical version information reconstruction module includes: a change set acquisition module, used to acquire the graph version change set associated with the version node before the last change based on the version node that has established a connection with the corresponding version node in the topology node; a replacement module, used to replace the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes and edge relationships in the graph information with the device nodes, electrical topology terminal nodes, equipment ledger nodes and edge relationships in the graph version change set associated with the version node before the last change, to obtain the graph information of the previous version; and a recursive module, used to repeat the above steps for recursive calls until the graph information of the specified historical version is obtained.
[0020] Optionally, the distribution network equipment temporal diagram control device further includes: a difference information association module, used to compare the attribute information of the device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph version change set associated with the previous version node with the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information before replacing the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information with the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information, obtain the difference point information of each node, and associate each of the difference point information with the corresponding replaced device nodes, electrical topology terminal nodes, and equipment ledger nodes.
[0021] Optionally, the distribution network equipment time-phase diagram control device further includes: a node generation module, used to generate new version nodes for the changed topology nodes according to the change information, and store the change information in the new version nodes.
[0022] A third aspect of the present invention provides an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the time-phase diagram control method for distribution network equipment with integrated electrical topology as described in any of the first aspects of the present invention.
[0023] A fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions for causing the computer to execute a time-phase diagram control method for distribution network equipment with integrated electrical topology as described in any of the first aspects of the present invention.
[0024] As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:
[0025] This invention provides a temporal graph control method, apparatus, and device for power distribution network equipment that integrates electrical topology. By constructing a temporal network of graph relationships for power distribution network equipment, and obtaining the topology nodes that have changed in the current change based on the change information of the temporal network of graph relationships, a graph version change set is constructed. The information of the changed topology nodes before the change is stored in the graph version change set, and a connection is established between the graph version change set and the changed topology nodes. Based on query conditions, graph information generated from the corresponding topology nodes and edge relationships is obtained from the changed temporal network of graph relationships for power distribution network equipment. The information of the corresponding topology nodes before the change is obtained based on the connection between the topology nodes in the graph information and the graph version change set. The graph information of a specified historical version is reconstructed based on the information of the topology nodes before the change. When the temporality of power distribution network equipment changes, only the information of the topology nodes of the changed power distribution network equipment needs to be stored in the graph version change set. Any historical version of the graph information can be obtained through the reconstruction of the graph version change set, facilitating the query of change history and eliminating the need to store a large amount of duplicate historical graph information, saving storage space and improving the storage efficiency of graph information. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a flowchart of the time-phase diagram control method for power distribution network equipment in an embodiment of the present invention;
[0028] Figure 2 This is a schematic diagram of the distribution network topology in an embodiment of the present invention.
[0029] Figure 3 This is a schematic diagram of the structure of the time-phase diagram control device for power distribution network equipment in an embodiment of the present invention;
[0030] Figure 4 This is a schematic diagram of the structure of the electronic device in an embodiment of the present invention;
[0031] Figure 5 This is a schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. Detailed Implementation
[0032] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] This invention provides a time-phase diagram control method for distribution network equipment that integrates electrical topology, such as... Figure 1 As shown, the method includes:
[0034] Step S100: Construct a temporal network of distribution network equipment graph relationships. This temporal network includes distribution network topology graphs at multiple temporal levels, where each topology graph includes the topology nodes and edge relationships corresponding to the distribution network equipment. The temporal network of distribution network equipment graph relationships includes distribution network topology graphs for various temporal levels, such as planning, operation, construction, and outage. Figure 2 As shown, the distribution network topology diagrams for each time phase are formed by connecting the topology nodes and corresponding edge relationships of historical distribution network equipment during planning, operation, construction, and shutdown. For example, the topology nodes include equipment nodes (GNode), electrical topology terminal nodes (CPoint), equipment ledger nodes (DNode), and version nodes (Version). Equipment nodes are used to store equipment node information, electrical topology terminal nodes are used to store electrical connection relationships, and equipment ledger nodes are used to store detailed equipment ledger information. In other embodiments, the topology nodes may also include other nodes, such as sheet nodes, which are similar to the concept of a grid and play the role of a grid.
[0035] Step S200: Obtain the topology nodes that have changed in this change based on the change information of the distribution network equipment graph relationship temporal network. Specifically, when the temporal state of distribution network equipment changes, such as when distribution network equipment switches between planning, operation, construction, and historical states, the topology graph in the distribution network equipment graph relationship temporal network needs to be changed. Each time the topology graph in the distribution network equipment graph relationship temporal network changes, the change information is first saved in the in-memory graph database, and then the change status is statistically analyzed to obtain the topology nodes that have changed in this change.
[0036] Step S300: Construct a graph version change set, storing the information of the changed topology nodes before the change in the graph version change set and establishing a connection between the graph version change set and the changed topology nodes. Specifically, the information of each topology node before the change is stored in its corresponding graph version change set, and a connection is established between the graph version change set and the changed topology nodes. The changed topology nodes can obtain the information before the last change through this connection, while topology nodes that have not changed do not need to be stored. By recording the historical information of individual changed topology nodes in the graph version change set, the change history can be stored based on the smallest unit of the topology graph, thereby reducing storage space.
[0037] Step S400: Based on the query conditions, obtain the graph information generated by the corresponding topology nodes and edge relationships from the temporal network of the changed distribution network equipment graph relationships. Specifically, the query only queries the graph information generated by the latest version of the topology nodes and edge relationships. The query conditions can be parameters such as a specified line, equipment name, equipment type, manufacturer, and equipment model. For example, if the query condition is line A, the graph topology analysis algorithm is used to obtain all the topology nodes and edge relationships on line A based on the name of line A, and generate graph information. The graph information includes the topology nodes and edge relationships contained in the graph.
[0038] Step S500: Based on the relationship between the topology nodes in the graph information and the graph version change set, obtain the information of the corresponding topology node before the change from the graph version change set, and reconstruct the graph information of the specified historical version based on the information of the topology node before the change. Specifically, each time the graph information changes, if the topology node changes, the topology node records the information before the change in the graph version change set. Therefore, the information before the change can be found in the graph version change set. Replacing the information after the change with the information before the change can reconstruct the graph information of the previous version. Repeated recursive calls can reconstruct and obtain the graph information of any historical version. By specifying a historical version, the graph information of that specified historical version can be reconstructed and obtained.
[0039] The temporal graph control method for distribution network equipment integrating electrical topology of this invention constructs a temporal network of distribution network equipment graph relationships. Based on the change information of the temporal network of distribution network equipment graph relationships, it obtains the topology nodes that have changed in the current change, constructs a graph version change set, stores the information of the changed topology nodes before the change in the graph version change set, and establishes a connection between the graph version change set and the changed topology nodes. Based on query conditions, it retrieves graph information generated by the corresponding topology nodes and edge relationships from the changed distribution network equipment graph relationship temporal network. Based on the connection between the topology nodes in the graph information and the graph version change set, it retrieves the information of the corresponding topology nodes before the change, and reconstructs the graph information of a specified historical version based on the information of the topology nodes before the change. When the temporality of distribution network equipment changes, it is only necessary to store the information of the topology nodes of the changed distribution network equipment in the graph version change set. Any historical version of the graph information can be retrieved through the reconstruction of the graph version change set, facilitating the query of change history and eliminating the need to store a large amount of duplicate historical graph information, saving storage space and improving the storage efficiency of graph information.
[0040] In one embodiment, the topology nodes include device nodes, electrical topology terminal nodes, device ledger nodes, and version nodes, and all of these nodes are associated with the device nodes. Step S300 involves storing the information of the changed topology node before the change in a graph version change set and establishing a connection between the graph version change set and the changed topology node, including:
[0041] Step S310: Determine, based on the change information, whether only the device node and the version node have changed in this change of the topology node that has been changed.
[0042] Step S320: If only the device node and version node have changed, store the device node before the change in the graph version change set;
[0043] Step S330: If not only device nodes and version nodes have changed, store the device nodes before the change associated with the electrical topology terminal node or device ledger node that has changed in the graph version change set, and store the electrical topology terminal node before the change and the edges connected to the device node, and / or the device ledger node before the change and the edges connected to the device node in the graph version change set.
[0044] Step S340: Associate the version node before the change and the graph version change set in the changed topology node, and establish the connection between the version node before the change and the version node after the change.
[0045] Specifically, device nodes are self-associated, meaning that device nodes are associated with each other. For example, a device node on pole 1 is associated with a device node on pole 2. Device nodes are also associated with electrical topology terminal nodes, equipment ledger nodes, and version nodes. Device nodes include abstract information about distribution network equipment, including device ID, device name, device type, and location information. Electrical topology terminal nodes include electrical topology connection information, including terminal node name and electrical connection type information. The equipment ledger includes specific information about distribution network equipment, including equipment ledger parameters, manufacturer information, and operation and maintenance information. Version nodes include electrical topology change information for the power grid, including change time, change context, and change user information.
[0046] After obtaining the device nodes that have changed in the current change based on the change information of the temporal network of the distribution network equipment graph, the process also includes: generating new version nodes for the changed topology nodes based on the change information, and storing the change information in the new version nodes. Each time a change occurs, the device nodes will change, and a new version node will be generated for the changed distribution network equipment, recording the current temporal state, the temporal state of the previous version, the change date, the change date of the previous version, the user who changed the version, the user of the previous version, etc., so that users can easily view the version change status. Therefore, it can be understood that each time a topology node changes, both the device nodes and the version nodes change, while the electrical topology terminal nodes and equipment ledger nodes may or may not change depending on the actual situation. Therefore, it is necessary to construct graph version change sets separately for these two different scenarios to avoid storing the device nodes, electrical topology terminal nodes, equipment ledger nodes, and version nodes in the graph version change set for each change, thereby reducing storage redundancy and improving storage efficiency.
[0047] In one embodiment, after storing the device node before the change in the graph version change set, step S320 or step S330 further includes: obtaining the device nodes directly connected to the changed device node; and storing the edges connecting the changed device node and its directly connected device nodes in the graph version change set.
[0048] Specifically, when the information of the equipment nodes of the distribution network equipment changes, the electrical topology terminal nodes of its associated equipment nodes may also change. Therefore, it is necessary to include the directly connected equipment nodes and related edges in the graph version change set so as to store accurate change information.
[0049] In one embodiment, step S400, obtaining graph information generated from the corresponding topology nodes and edge relationships from the modified distribution network equipment graph relationship temporal network based on query conditions, includes: obtaining query conditions input by the user; obtaining the corresponding topology nodes and edge relationships associated with the query conditions from the modified distribution network equipment graph relationship temporal network based on the query conditions; and generating graph information based on the corresponding topology nodes and edge relationships associated with the query conditions.
[0050] Specifically, the query conditions include a combination of one or more of the following: line name, equipment name, equipment type, manufacturer name, and equipment model. For example, if the query condition is line A, the query version is set to the latest version. A graph topology analysis algorithm is used to obtain all topological nodes and edge relationships on line A based on its name. The latest version's graph information is then generated using the obtained latest version's topological nodes and edge relationships. By leveraging the advantages of graph computing's topology analysis, the latest version's graph information can be obtained quickly.
[0051] In one embodiment, step S500 involves obtaining the information of the corresponding topology node before the change from the graph version change set based on the relationship between the topology node in the graph information and the graph version change set, and reconstructing the graph information of the specified historical version based on the information of the topology node before the change, including:
[0052] Step S510: Obtain the graph version change set associated with the version node before the last change based on the version node that has established a connection with the version node in the corresponding topology node.
[0053] Step S520: Replace the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information with the device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node, and obtain the graph information of the previous version;
[0054] Step S530: Repeat the above steps to make recursive calls until the graph information of the specified historical version is obtained.
[0055] Specifically, the version node existing in the topology nodes is the current version node. The current version node is associated with the version node before the last change, i.e., the version node of the previous version. Based on the association, the version node of the previous version is obtained. Then, based on the version node of the previous version, the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships of the previous version are obtained from the graph version change set. Replacing the current version node with the node corresponding to the previous version will obtain the graph information of the previous version. By repeatedly recursively calling the function, the graph information of a specified version can be obtained. This allows users to view the specific information of the distribution network equipment in different versions, making it convenient for users to understand the change history of the distribution network equipment.
[0056] In one embodiment, before step S520, which replaces the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information with the device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the version node before the last change, the method further includes:
[0057] Step S521: Compare the attribute information of the device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph version change set associated with the previous version node with the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information to obtain the difference information of each node. Specifically, first, compare the attribute information of the device nodes in the graph version change set associated with the previous version node with the current device node information to obtain the difference information of the device nodes. Then, check whether there are electrical topology terminal nodes and equipment ledger nodes in the graph version change set. If they exist, compare them with the current version's electrical topology terminal node and equipment ledger node information to obtain the difference information of the electrical topology terminal node and equipment ledger node.
[0058] After replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node, the process also includes:
[0059] Step S522: Associate each difference point information with the corresponding replaced device node, electrical topology terminal node and device ledger node.
[0060] By comparing the node information of the previous version with that of the current version to obtain the differences and linking them, users can easily see the differences between the previous and current versions and understand the changes that have occurred between the two versions.
[0061] The present invention discloses a temporal diagram control method for distribution network equipment that integrates electrical topology. This method stores information on changed topology nodes through a graph version change set, enabling temporal management of the equipment graph and saving temporal data of distribution network equipment across various versions. When the temporal network of distribution network equipment graph relationships changes, such as switching between planning, operation, construction, and historical versions, the change information is saved. Leveraging the topology analysis advantages of graph computing, the latest version of graph information can be quickly obtained, enabling rapid querying of the current temporal state of distribution network equipment. By reconstructing historical version graph information through the information of changed topology nodes stored in the graph version change set, the method enables rapid querying of changes in distribution network equipment planning, operation, construction, and historical transitions, and even faster querying of line switching changes, thus improving the efficiency of storing and querying temporal graph relationships of distribution network equipment.
[0062] This invention also provides a time-phase diagram control device for distribution network equipment that integrates electrical topology, such as... Figure 3 As shown, it includes:
[0063] The first construction module 201 is used to construct a temporal network of distribution network equipment graph relationships. The temporal network of distribution network equipment graph relationships includes distribution network topology graphs under multiple temporal states. The distribution network topology graphs include topology nodes and edge relationships corresponding to distribution network equipment.
[0064] The change module 202 is used to obtain the topology nodes that have changed in this change based on the change information of the temporal network of the distribution network equipment diagram.
[0065] The second construction module 203 is used to construct a graph version change set, store the information of the changed topology nodes before the change in the graph version change set, and establish the connection between the graph version change set and the changed topology nodes.
[0066] The current version information query module 204 is used to obtain graph information generated by the corresponding topology nodes and edge relationships from the temporal network of the changed distribution network equipment graph relationship based on query conditions;
[0067] The historical version information reconstruction module 205 is used to obtain the information of the corresponding topology node before the change from the graph version change set according to the relationship between the topology node in the graph information and the graph version change set, and reconstruct the graph information of the specified historical version according to the information of the topology node before the change.
[0068] The distribution network equipment temporal diagram control device integrating electrical topology of this invention constructs a distribution network equipment graph relationship temporal network, obtains the topology nodes that have changed in the current change based on the change information of the distribution network equipment graph relationship temporal network, constructs a graph version change set, stores the information of the changed topology nodes before the change in the graph version change set, and establishes a connection between the graph version change set and the changed topology nodes. Based on query conditions, it obtains graph information generated by the corresponding topology nodes and edge relationships from the changed distribution network equipment graph relationship temporal network, obtains the information of the corresponding topology nodes before the change based on the connection between the topology nodes in the graph information and the graph version change set, and reconstructs the graph information of the specified historical version based on the information of the topology nodes before the change. When the temporality of the distribution network equipment changes, it is only necessary to store the information of the topology nodes of the changed distribution network equipment in the graph version change set, and any historical version of the graph information can be obtained through the reconstruction of the graph version change set. This facilitates querying the change history and avoids storing a large amount of duplicate historical graph information, saving storage space and improving the storage efficiency of graph information.
[0069] In one embodiment, the topology nodes include device nodes, electrical topology terminal nodes, device ledger nodes, and version nodes, and the electrical topology terminal nodes, device ledger nodes, and version nodes are all associated with the device nodes; the second construction module 203 includes: a first judgment module, used to determine, based on the change information, whether only the device nodes and version nodes have changed in this change of the topology nodes; a first storage module, used to store the device nodes before the change in the graph version change set if only the device nodes and version nodes have changed, and if not only the device nodes and version nodes have changed, store the device nodes before the change associated with the electrical topology terminal nodes or device ledger nodes that have changed in the graph version change set, and store the electrical topology terminal nodes before the change and their edges connected to the device nodes, and / or the device ledger nodes before the change and their edges connected to the device nodes in the graph version change set; and an association module, used to associate the version nodes before the change in the changed topology nodes with the graph version change set, and establish a connection between the version nodes before the change and the version nodes after the change.
[0070] In one embodiment, the first storage module is further configured to acquire and directly connect the device nodes of the changed device node, and store the edges connecting the changed device node to its directly connected device nodes in the graph version change set.
[0071] In one embodiment, the current version information query module 204 includes: an input acquisition module for acquiring query conditions input by the user; a graph information query module for acquiring the corresponding topology nodes and edge relationships associated with the query conditions from the modified distribution network equipment graph relationship temporal network according to the query conditions; and a graph information generation module for generating graph information according to the corresponding topology nodes and edge relationships associated with the query conditions.
[0072] In one embodiment, the query criteria include a combination of one or more of the following: line name, device name, device type, manufacturer name, and device model.
[0073] In one embodiment, the historical version information reconstruction module 205 includes: a change set acquisition module, used to acquire the graph version change set associated with the version node before the last change based on the version node that has established a connection with the version node in the corresponding topology node; a replacement module, used to replace the corresponding device node, electrical topology terminal node, equipment ledger node and edge relationship in the graph information with the device node, electrical topology terminal node, equipment ledger node and edge relationship in the graph version change set associated with the version node before the last change, so as to obtain the graph information of the previous version; and a recursive module, used to repeat the above steps to perform recursive calls until the graph information of the specified historical version is obtained.
[0074] In one embodiment, the distribution network equipment temporal diagram control device further includes: a difference information association module, used to compare the attribute information of the device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph version change set associated with the version nodes before the last change with the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information before replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph information, thereby obtaining the difference point information of each node, and associating each difference point information with the corresponding replaced device nodes, electrical topology terminal nodes, and equipment ledger nodes.
[0075] In one embodiment, the distribution network equipment time-phase diagram control device further includes: a node generation module, used to generate new version nodes for the changed topology nodes according to the change information, and store the change information in the new version nodes.
[0076] This invention also provides an electronic device, such as... Figure 4As shown, the system includes a memory 420 and a processor 410, which are interconnected. The memory 420 stores computer instructions, and the processor 410 executes these computer instructions to perform the time-phase diagram control method for power distribution network equipment with integrated electrical topology as described in the above embodiments of the present invention. The processor 410 and the memory 420 can be connected via a bus or other means. The processor 410 can be a central processing unit (CPU). The processor 410 can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof. The memory 420, as a non-transitory computer storage medium, can be used to store non-transitory software programs, non-transitory executable programs, and modules, such as the corresponding program instructions / modules in the embodiments of the present invention. The processor 410 executes various functional applications and data processing by running non-transitory software programs, instructions, and modules stored in the memory 420, thereby implementing the time-phase diagram control method for distribution network equipment with integrated electrical topology in the above method embodiments. The memory 420 may include a program storage area and a data storage area. The program storage area may store the application program required for operating the device and at least one function; the data storage area may store data created by the processor 410, etc. Furthermore, the memory 420 may include a high-speed random access memory 420, and may also include non-transitory memory 420, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 420 may optionally include remotely located memories 420 relative to the processor 410, which can be connected to the processor 410 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. One or more modules are stored in the memory 420, and when executed by the processor 410, perform the time-phase diagram control method for distribution network equipment with integrated electrical topology as described in the above method embodiments. The specific details of the aforementioned electronic device can be understood by referring to the relevant descriptions and effects in the above method embodiments, and will not be repeated here.
[0077] This invention also provides a computer-readable storage medium, such as... Figure 5As shown, a computer program 510 is stored on it. When executed by a processor, this program implements the steps of the time-phase diagram control method for power distribution network equipment with integrated electrical topology described in the above embodiments. The storage medium also stores audio and video stream data, feature frame data, interactive request signaling, encrypted data, and preset data sizes. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory.
[0078] The storage medium may include random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; combinations of the above types of memory may also be included. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program 13 may be stored in a computer-readable storage medium, and when executed, it may include the processes of the embodiments of the above methods. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory.
[0079] Random Access Memory (RAM), Flash Memory, Hard Disk Drive (HDD), or Solid-State Drive (SSD), etc.; storage media may also include combinations of the above types of memory.
[0080] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method of controlling a power distribution network equipment time graph of a fused electrical topology, characterized by, include: A temporal network of distribution network equipment graph relationships is constructed, which includes distribution network topology graphs in multiple temporal states, and the distribution network topology graphs include the topology nodes and edge relationships corresponding to the distribution network equipment; Based on the change information of the temporal network of the distribution network equipment diagram, obtain the topology nodes that have changed in this change; Construct a graph version change set, store the information of the changed topology nodes before the change in the graph version change set, and establish the connection between the graph version change set and the changed topology nodes; Based on the query conditions, obtain graph information generated from the corresponding topology nodes and edge relationships from the modified temporal network of the distribution network equipment graph relationship; Based on the relationship between the topology nodes in the graph information and the graph version change set, obtain the information of the corresponding topology nodes before the change from the graph version change set, and reconstruct the graph information of the specified historical version based on the information of the topology nodes before the change. The topology nodes include device nodes, electrical topology terminal nodes, device ledger nodes, and version nodes, and the electrical topology terminal nodes, device ledger nodes, and version nodes are all associated with the device nodes; The step of storing the information of the changed topology node before the change in the graph version change set and establishing a connection between the graph version change set and the changed topology node includes: Based on the change information, determine whether only the device node and the version node changed in this change of the topology node; If only the device node and the version node change, the device node before the change is stored in the graph version change set; if more than just the device node and the version node change, the device node before the change associated with the electrical topology terminal node or the device ledger node that changed is stored in the graph version change set, and the electrical topology terminal node before the change and the edge connected to the device node, and / or the device ledger node before the change and the edge connected to the device node are stored in the graph version change set. Associate the previous version node in the changed topology node with the graph version change set, and establish the connection between the previous version node and the changed version node. The step of obtaining the information of the corresponding topology node before the change from the graph version change set based on the relationship between the topology node in the graph information and the graph version change set, and reconstructing the graph information of the specified historical version based on the information of the topology node before the change, includes: Step S510: Obtain the graph version change set associated with the version node before the last change based on the version node that has established a connection with the version node in the corresponding topology node; Step S520: Replace the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes and edge relationships in the graph version change set associated with the previous version node with the previous version node to obtain the graph information of the previous version. Step S530: Repeat steps S510 and S520 recursively until the graph information of the specified historical version is obtained.
2. The method of claim 1, wherein the method further comprises: After storing the device nodes before the change in the graph version change set, the method further includes: The device nodes directly connected to the acquired and changed device nodes; The edges connecting the changed device node to its directly connected device node are stored in the graph version change set.
3. The method of claim 1, wherein the method further comprises: The step of obtaining graph information generated from the corresponding topology nodes and edge relationships from the modified temporal network of the distribution network equipment graph relationship based on query conditions includes: Get the query criteria input by the user; Based on the query conditions, obtain the corresponding topological nodes and edge relationships associated with the query conditions from the modified temporal network of the distribution network equipment graph; Graph information is generated based on the corresponding topological nodes and edge relationships associated with the query conditions.
4. The time-phase diagram control method for distribution network equipment with integrated electrical topology according to claim 3, characterized in that, The query criteria include a combination of one or more of the following: line name, equipment name, equipment type, manufacturer name, and equipment model.
5. The method of claim 1, wherein, Before replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node, the following is also included: The device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph version change set associated with the previous version node are compared with the corresponding device nodes, electrical topology terminal nodes, and equipment ledger nodes in the graph information to obtain the difference information of each node. After replacing the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes, and edge relationships in the graph version change set associated with the previous version node, the process also includes: The information on each of the aforementioned differences is associated with the corresponding replaced device nodes, electrical topology terminal nodes, and device ledger nodes.
6. The method of claim 1, wherein the method further comprises: After obtaining the device nodes that have changed in this change based on the change information of the temporal network of the distribution network equipment diagram, the process further includes: Based on the change information, a new version node is generated for the changed topology node, and the change information is stored in the new version node.
7. An electrical power distribution network equipment time graph control apparatus for a fused electrical topology, characterized by, include: The first construction module is used to construct a temporal network of distribution network equipment graph relationships. The temporal network of distribution network equipment graph relationships includes distribution network topology graphs in multiple temporal states. The distribution network topology graphs include topology nodes and edge relationships corresponding to distribution network equipment. The change module is used to obtain the topology nodes that have changed in this change based on the change information of the temporal network of the distribution network equipment diagram relationship; The second construction module is used to construct a graph version change set, store the information of the changed topology node before the change in the graph version change set, and establish the connection between the graph version change set and the changed topology node; The current version information query module is used to obtain graph information generated by the corresponding topology nodes and edge relationships from the modified distribution network equipment graph relationship temporal network based on query conditions; The historical version information reconstruction module is used to obtain the information of the corresponding topology node before the change from the graph version change set according to the relationship between the topology node in the graph information and the graph version change set, and reconstruct the graph information of the specified historical version according to the information of the topology node before the change. The topology nodes include device nodes, electrical topology terminal nodes, device ledger nodes, and version nodes, and the electrical topology terminal nodes, device ledger nodes, and version nodes are all associated with device nodes; The second construction module includes: a first judgment module, used to determine whether only device nodes and version nodes have changed in this change of the topology node that has changed based on the change information; a first storage module, used to store the device node before the change in the graph version change set if only device nodes and version nodes have changed, and to store the device node before the change associated with the electrical topology terminal node or equipment ledger node that has changed in the graph version change set if more than one device node and version node has changed, and to store the electrical topology terminal node before the change and its edges connected to the device node, and / or the equipment ledger node before the change and its edges connected to the device node in the graph version change set; and an association module, used to associate the version node before the change in the changed topology node with the graph version change set, and to establish the connection between the version node before the change and the version node after the change. The historical version information reconstruction module includes: a change set acquisition module, used to acquire the graph version change set associated with the version node before the last change based on the version node that has established a connection with the version node in the corresponding topology node; a replacement module, used to replace the corresponding device nodes, electrical topology terminal nodes, equipment ledger nodes and edge relationships in the graph information with the device nodes, electrical topology terminal nodes, equipment ledger nodes and edge relationships in the graph version change set associated with the version node before the last change, to obtain the graph information of the previous version; and a recursive module, used to recursively call the steps in the change set acquisition module and the replacement module until the graph information of the specified historical version is obtained.
8. An electronic device, characterized in that, include: The system includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the time-phase control method for distribution network equipment with integrated electrical topology as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the time-phase control method for distribution network equipment with integrated electrical topology as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Grid topology version management tool and method based on graph database
CN113610661A