An object-oriented power grid topology graph data modeling method and related device
By using an object-oriented power grid topology data modeling method, a power grid topology graph instance is constructed, which solves the problem of difficult power grid graph model construction in existing technologies and realizes efficient and concise operation of power grid topology analysis.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD
- Filing Date
- 2025-10-22
- Publication Date
- 2026-08-04
AI Technical Summary
Existing technologies lack standardized methods for modeling graph data, which cannot effectively guide the construction of power grid graph model instances, resulting in low efficiency in power grid topology analysis and computation.
An object-oriented power grid topology data modeling method is adopted. By collecting power grid structure and measurement data, and based on preset node classes, edge classes and edge constraints, a power grid topology instance is constructed, including the connection of equipment nodes, container nodes and state time sequence nodes. The connection points are simplified, and the relationship is classified by connection, ownership, association, aggregation and tie edges.
It enables simple and efficient operation for power grid topology data modeling, simplifies the connection structure, allows for direct relationship queries, and provides diverse edge meanings, thereby improving the performance and efficiency of power grid analysis and calculation.
Smart Images

Figure CN121210425B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power systems and relates to an object-oriented method and related apparatus for power grid topology data modeling. Background Technology
[0002] With the development of new power systems, the node scale of power system topology analysis and power calculation is becoming increasingly larger. Traditional power systems use the Common Information Model (CIM) to describe the power grid, but this approach has relatively low performance and efficiency when performing complex relational queries and calculations. Meanwhile, graph data modeling methods, through graph data structures such as nodes, edges, and attributes, provide a natural way to express the relationships between entities, which can effectively improve the power grid graph analysis and calculation capabilities.
[0003] The Common Information Model for Power Grids (CIM) is a standardized model used to describe the various components of a power system and their interrelationships. It provides a unified framework for information exchange and system integration in the power system. CIM is developed and improved based on standards such as IEC 61970-301, and provides standardized interfaces for energy management system applications.
[0004] CIM is defined using object-oriented modeling techniques. It uses package diagrams and class diagrams, represented by UML, to represent classes and the relationships between them, and specifically defines the attributes of classes and their associations. Compared to relational data models, CIM can describe inheritance, aggregation, and association relationships between classes, but the data described by CIM can still be mapped to relational data and stored and retrieved using relational databases.
[0005] Currently, some scholars use graph data to describe power grid data. However, these studies generally focus on local power grid examples and lack fixed modeling methods and standards. They cannot practically guide the construction of all power grid graph model instances. Overall, there is currently no standard and generalized method for graph data modeling of power grid data. Summary of the Invention
[0006] The purpose of this invention is to overcome the shortcomings of the prior art and provide an object-oriented method and apparatus for modeling power grid topology graph data. This method and apparatus can model graph data models for power grid data.
[0007] To achieve the above objectives, this invention discloses an object-oriented method for modeling power grid topology data, comprising: Collect raw data on the power grid structure and raw data describing power grid measurements; Based on the original data of the power grid structure and the original data describing the power grid measurements, a power grid topology instance is constructed based on the node classes, edge classes, and edge constraints of the preset power grid diagram data model.
[0008] A further improvement of the object-oriented power grid topology data modeling method described in this invention is as follows: Furthermore, the raw data of the power grid structure includes at least a CIM file; the raw data describing the power grid measurements includes at least a QS file and measurement interface JSON data.
[0009] Furthermore, the process of constructing a power grid topology instance based on the original data of the power grid structure and the original data describing the power grid measurements, and based on the node classes, edge classes, and edge constraints of the preset power grid diagram data model, is as follows: Equipment nodes are extracted from the original data of the power grid structure, and each equipment node is connected according to the connecting edges in the edge constraints of the power grid diagram data model; Container nodes are extracted from the original data of the power grid structure. The device nodes and container nodes are connected according to the edge constraints in the power grid diagram data model. The container nodes are connected using the connecting edges in the edge constraints of the power grid diagram data model to form virtual logical relationships. Establish state timing nodes and measurement timing nodes for each device node, and connect the device nodes with the state timing nodes and measurement timing nodes through the associated edges in the edge constraints of the power grid diagram data model; The measurement data in the original data describing the power grid measurement is parsed, and the parsed measurement data is written into the attributes of the corresponding measurement time series node; Obtain the power grid operating status data and write the power grid operating status data into the attributes of the corresponding state time series node.
[0010] Furthermore, the measurement data includes at least the voltage and power of the device.
[0011] Furthermore, the power grid operating status can be obtained through state estimation or from the dispatching business system.
[0012] Furthermore, the process of extracting device nodes from the original data of the power grid structure and connecting each device node according to the connecting edges in the edge constraints of the power grid diagram data model is as follows: Based on the node class of the power grid diagram data model, device nodes are extracted from the original data of the power grid structure; Based on the relationship between equipment nodes and connection points in the original data of the power grid structure, the equipment nodes on both sides of the connection point are associated and the connection point is deleted. The bus and its connected equipment are directly associated. Based on the connection edges in the edge constraints of the power grid diagram data model, the equipment topology diagram structure is established.
[0013] Furthermore, the process of extracting container nodes from the original data of the power grid structure, connecting device nodes and container nodes according to the edges in the edge constraints of the power grid diagram data model, and connecting each container node using the connecting edges in the edge constraints of the power grid diagram data model to form a virtual logical relationship is as follows: Based on the node class of the power grid diagram data model, container nodes are extracted from the original data of the power grid structure; Based on the device affiliation relationships in the original data of the power grid structure, each container node is connected to its subordinate device nodes through the affiliation edges in the edge constraints of the power grid graph data model to establish an affiliation relationship graph structure.
[0014] This invention discloses an object-oriented power grid topology data modeling system, comprising: The data acquisition module is used to acquire raw data on the power grid structure and raw data describing power grid measurements. The construction module is used to construct a power grid topology graph instance based on the original data of the power grid structure and the original data describing the power grid measurements, and based on the node classes, edge classes, and edge constraints of the preset power grid graph data model.
[0015] This invention discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the object-oriented power grid topology data modeling method.
[0016] The present invention discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the object-oriented power grid topology data modeling method.
[0017] The present invention has the following beneficial effects: The object-oriented power grid topology data modeling method and related apparatus of the present invention, in specific operation, construct a power grid topology instance based on the original data of the power grid structure and the original data describing the power grid measurement, and based on the node class, edge class, and edge constraints of the preset power grid diagram data model. It is simple to operate and highly practical.
[0018] Furthermore, each device node is connected according to the edge constraints in the power grid diagram data model to simplify redundant connection points in the original data of the power grid structure. By associating the device nodes on both sides of the connection point and deleting the connection point, the connection points on both sides of switch-type nodes and conductor-type nodes are simplified. By directly associating the bus and its connected devices, the connection points associated with the bus node are simplified. The connection structure is simple, the relationship query is direct, and the edge meanings are diverse. Attached Figure Description
[0019] The accompanying drawings, which form part of this specification, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a flowchart of the method of the present invention; Figure 2 Example of a property diagram; Figure 3 A graph showing the attribute inheritance relationship between node classes; Figure 4a This is a diagram showing the multiple inheritance relationships of the EquipmentContainer class, the PowerSystemResource class, and the Set class. Figure 4b The node class inheritance structure UML diagram for this embodiment; Figure 5 Inherit the hierarchy graph for abstract nodes; Figure 6 An inheritance hierarchy diagram for sequence nodes and state nodes; Figure 7 For the inheritance hierarchy graph of collection nodes; Figure 8 For auxiliary device node inheritance hierarchy diagram; Figure 9 Inheritance hierarchy diagram for switch nodes; Figure 10 For the unit node inheritance hierarchy diagram; Figure 11 Inherit the hierarchy graph for energy connection nodes; Figure 12 Inheritance hierarchy diagram for other conductive device nodes; Figure 13 Inherit the hierarchy diagram for other device nodes; Figure 14 This is an example diagram of the internal topology of a 220kV substation. Figure 15 This is a diagram showing the ownership relationships of a 220kV substation. Figure 16 This is a diagram showing the connection relationships and ownership relationships of feeder lines. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. 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.
[0021] In the description of this invention, it should be understood that the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0022] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0023] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this invention generally indicates that the preceding and following objects have an "or" relationship.
[0024] It should be understood that although terms such as first, second, third, etc., may be used in the embodiments of the present invention to describe the preset range, these preset ranges should not be limited to these terms. These terms are only used to distinguish the preset ranges from one another. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0025] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0027] The accompanying drawings illustrate various structural schematic diagrams according to embodiments disclosed in this invention. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.
[0028] Example 1 refer to Figure 1 The object-oriented power grid topology data modeling method of the present invention includes the following steps: 1) Define the node classes for the power grid diagram data model, whereby the node classes are used to describe the physical entities and abstract entities of the power grid; 2) Define the edge classes of the power grid diagram data model and determine the edge constraints of the power grid diagram data model. The edge classes of the power grid diagram data model are used to describe the relationships between power grid entities. 3) Collect raw data on the power grid structure and raw data describing power grid measurements; The raw data of the power grid structure includes at least a CIM file; the raw data describing the power grid measurements includes at least a QS file and measurement interface JSON data.
[0029] 4) Based on the original data of the power grid structure and the original data describing the power grid measurements, construct a power grid topology instance based on the node class, edge class, and edge constraints of the power grid diagram data model.
[0030] The specific process of step 4) is as follows: 41) Extract equipment nodes from the original data of the power grid structure, and connect each equipment node according to the connecting edges in the edge constraints of the power grid diagram data model, so as to simplify the redundant connection points in the original data of the power grid structure. The specific process of step 41) is as follows: 411) Based on the node class of the power grid diagram data model, extract equipment nodes from the original data of the power grid structure. The equipment nodes include at least bus nodes, circuit breaker nodes, disconnector nodes, and line nodes. 412) Based on the relationship between equipment nodes and connection points in the original data of the power grid structure, the connection points on both sides of the switch type node and conductor type node are simplified by associating the equipment nodes on both sides of the connection point and deleting the connection point. The connection points associated with the bus node are simplified by directly associating the bus and the equipment connected to it. Then, based on the connection edges in the edge constraints of the power grid diagram data model, the equipment topology diagram structure is established.
[0031] 42) Extract container nodes from the original data of the power grid structure, connect the device nodes and container nodes according to the edge constraints in the power grid diagram data model, and connect each container node using the connecting edge in the edge constraints of the power grid diagram data model to form a virtual logical relationship; Step 42) consists of the following components: 421) Based on the node class of the power grid diagram data model, extract container nodes from the original data of the power grid structure. The container nodes include at least substations, bays, and feeders. Specifically, based on the device container node class specified by the node class of the power grid diagram data model described in step 1), container nodes are extracted from the original data of the power grid structure.
[0032] 422) Based on the ownership relationship of the equipment in the original data of the power grid structure, each container node and its subordinate equipment node are connected through the ownership edge in the edge constraint of the power grid diagram data model to establish the ownership relationship graph structure.
[0033] 43) Establish the state timing nodes and measurement timing nodes of each device node, and connect the device nodes with the state timing nodes and measurement timing nodes through the associated edges in the edge constraints of the power grid diagram data model; For each device node, state timing nodes and measurement timing nodes for voltage, current, and power are established. The device nodes are connected to the state timing nodes and measurement timing nodes through the associated edges in the edge constraints of the power grid diagram data model. The specific process is as follows: When the device node is a bus node, establish the voltage amplitude state time series node, voltage phase angle state time series node, voltage amplitude measurement time series node and voltage phase angle measurement time series node as specified by the node class of the power grid diagram data model, and connect the associated edges in the edge constraints of the power grid diagram data model to the corresponding device node. When a device node is an existing node that inherits from the generator node class, the voltage amplitude state time series node, voltage amplitude measurement time series node, active power injection state time series node, reactive power injection state time series node, active power injection measurement time series node, and reactive power injection measurement time series node specified by the node class of the power grid data model are established, and connected to the corresponding device node using the associated edges in the edge constraints of the power grid data model. When the device node is an established node that inherits from the energy connection node class, the active power injection state time series node, reactive power injection state time series node, active power injection measurement time series node, and reactive power injection measurement time series node specified by the node class of the power grid diagram data model are connected to the corresponding device node using the associated edges in the edge constraints of the power grid diagram data model. When the device node is an established line or transformer winding node, the active power flow state time series node, reactive power flow state time series node, active power injection state time series node, and reactive power injection state time series node specified by the node class of the power grid diagram data model are established, and the associated edges in the edge constraints of the power grid diagram data model are used to connect them to the corresponding device node.
[0034] 44) Parse the measurement data in the original data describing the power grid measurement, and write the parsed measurement data into the attributes of the corresponding measurement time series node. The measurement data includes at least the voltage and power of the equipment. 45) Obtain the power grid operating status quantity through state estimation or from the scheduling business system, and write the power grid operating status quantity into the attribute of the corresponding state time series node.
[0035] Example 2 The power grid data model constructed in this invention is an attribute graph, which includes nodes representing entities or objects and edges representing relationships between nodes. Nodes can have labels for categorizing nodes; attributes describe the characteristics of the nodes. Edges can have types for describing the category of relationships; attributes describe the characteristics of the relationships. Edges can be directed or undirected. An attribute graph is a collection of nodes and edges used to describe the network structure of entities and their relationships. It can contain multiple nodes and edges, forming a complex network. Attribute graphs are characterized by their intuitive and flexible structure, efficient querying, and support for dynamic expansion. The attribute graph modeling method is easy to understand and implement, suitable for complex data structures, and supports efficient graph traversal and pattern matching.
[0036] In this embodiment, specific power grid equipment (such as transformers, disconnect switches, etc.) and power grid containers (substations, feeders, etc.) are abstracted as node classes. Each node class has attributes that describe the characteristics of the object, and each attribute has a type (such as integer, floating-point, etc.); each edge has rules that constrain its starting node and ending node.
[0037] Subclasses can inherit or redefine the edge connection constraint rules of their parent classes. When redefining edge connection constraint rules, the class of the termination node in the original edge constraint rule can be changed to its subclass, thereby refining the edge constraint rules. For example... Figure 2 As shown, the Disconnector node class is a subclass of the Switch node class. The Disconnector node class inherits 10 properties from the Switch node class, including point, normalOpen, ratedCurrent, eFlag, inService, geographicalPosition, name, id, createTime, and expirationTime.
[0038] In this embodiment, the node class supports multiple inheritance, meaning a single node subclass inherits the attributes and related constraints of multiple node parent classes. When diamond inheritance exists among node classes, common attributes among multiple node parent classes are defined using the attribute of their common ancestor. The EquipmentContainer node class inherits the geographicalPosition, name, id, createTime, and expirationTime attributes from the PowerSystemResource connector class and the name, id, createTime, and expirationTime attributes from the set node class. The name and id attributes are inherited from the IdentifiedVertex attribute, the common ancestor of both the PowerSystemResource and set node classes.
[0039] like Figure 4a and Figure 4b The diagram shown is a node class inheritance structure diagram in this embodiment.
[0040] In this embodiment, all node classes can be specifically divided into nine major categories: abstract node class, sequence node class and state node class, set node class, auxiliary equipment node class, switch node class, unit node class, energy connection node class, other conductive equipment node class, and other equipment node class, as follows: Figures 5-13 As shown.
[0041] In this invention, five types of edges are specifically defined: connection, belonging, association, aggregation, and connection. Connection edges define the electrical connection relationships between primary equipment in the power grid; belonging edges define the inclusion relationships between power grid equipment resources and node sets, or between node sets; association edges define the indirect relationships between different objects; aggregation edges define the combination relationships between power grid equipment resources; and connection edges define the power supply or transfer relationships between containers. These five types of edges provide a complete description of the physical topology of the power grid and its related logical relationships.
[0042] In this invention, nodes should define their edge constraints. In this embodiment, edge constraints can be explicitly defined by an edge constraint table, as shown in Table 1. For edge constraint rules of a node class, it can include edge category, peer node category, allowed number of edges, and description. The "Edge Category" column describes the edge category involved in the edge constraint; the "Peer Node Category" column describes the category of the other node connected by the edge in this constraint rule; the "Allowed Number of Edges" column describes the number of edges of this type allowed to be connected in this constraint rule; n..m indicates that n to m edges of this type are allowed to be connected; * indicates any number of edges; and the "Description" column explains the meaning represented by the edge category in this constraint rule. If the constraint rule is inherited from a parent node class, the detailed name of the inherited parent class should be specified.
[0043] Table 1
[0044] Table 2 is the specific edge constraint table for the circuit breaker nodes in this embodiment. Each type of node should have its own unique edge constraint table.
[0045] Table 2
[0046] Subclasses can inherit edge constraints from their parent classes or redefine the edge constraints of nodes. As shown in Table 2, edge constraint 4 of the circuit breaker node class redefines edge constraint 2 of the device node. The edge constraints of the device nodes are shown in Table 3.
[0047] Table 3
[0048] During the redefinition process, edge constraint 4 of the circuit breaker node class redefines the set node class in edge constraint 2 of the equipment node class as the feeder node class (the feeder node class is a subclass of the set node class). In this way, edge constraints for each node class can be defined, enabling a refined description of the power grid topology data.
[0049] In this embodiment, the actual physical power grid is represented by instantiating the aforementioned power grid topology data model. For example... Figure 14The diagram shown is a simplified example of the physical topology of a 220kV substation. The substation's incoming lines are connected to "Busline 1" and "Busline 2" via "AC Line Terminal 1," "AC Line Terminal 2," circuit breakers, and disconnect switches, respectively. The two busbars can be connected via "Circuit Breaker 1." The upper and lower sides of "Transformer 1" and "Transformer 2" are transformer winding nodes. The low-voltage side windings are connected to "Busline 3" and "Busline 4," respectively, and can be connected via "Circuit Breaker 2." The low-voltage side windings are connected to "AC Line Terminal 3" and "AC Line Terminal 4" via circuit breakers and disconnect switches.
[0050] Figure 15 The diagram further describes the relationships included in this 220kV substation example, specifically the "220kV voltage level" and... Figure 14 The “Bus 1” and “Bus 2” lines are assigned to each other. The “110kV voltage level” line is assigned to each other as “Bus 3”, “Bus 4”, “Substation 1”, “Bus 1”, “Bus 2”, “Bus 3”, and “Bus 4”. The “220kV voltage level” and “110kV voltage level” lines are assigned to each other as “Substation 1”.
[0051] Figure 16 This example illustrates a feeder topology constructed using the power grid topology data model of this embodiment. Circuit breakers 3 and 4 are the outgoing switches for the feeders in the diagram, forming a tree-like branch topology downstream. Feeders 1 and 2 can be supplied with power via a tie switch (circuit breaker 5). Busbars 5 and 6 are connected to the high-voltage windings of two distribution transformers (transformer 4 and transformer 5) via circuit breakers, respectively. The feeder affiliations are established at the outgoing switches; that is, circuit breaker nodes "circuit breaker 1" and "circuit breaker 2" are associated with "feeder 1" and "feeder 2," respectively.
[0052] It should be noted that the present invention has the following characteristics: This invention employs a property graph modeling approach to describe the complex attributes of power grid nodes, featuring an intuitive and flexible structure, simplicity and efficiency, and support for dynamic expansion.
[0053] This invention uses an undirected, unweighted graph to describe power grid data. Considering application scenarios such as topology query and analysis calculation, it mainly uses the node attributes of the power grid topology graph instance as the data acquisition condition. Simplifying the edge description information can reduce attribute redundancy and significantly improve algorithm performance.
[0054] Compared to CIM and its relational data model, an object-oriented power grid topology data modeling method has the following advantages: 1) Concise connection structure: Both connection nodes and endpoints are uniquely identified objects (IdentifiedObject). When mapping CIM to a relational data model for data storage, connection nodes and endpoints need to be stored as independent objects, resulting in high redundancy in the power grid topology connection representation data. 2) Direct relation query: Since CIM indirectly expresses the connection relationship of conductive devices through endpoints, there is one connection node and two endpoints between two conductive devices with a connection relationship. Devices can only obtain their endpoint information and cannot directly obtain the connection point on the other side of the endpoint or its adjacent device information. The object-oriented power grid topology data modeling method omits connection nodes, and buses, line ends, and transformer windings directly participate in the construction of power grid connection relationships as conductive device nodes. 3) Diverse edge meanings: CIM only specifies the associated ends from one class to another. The specific meaning of inter-class associations needs to be determined according to the class, and the meaning of some inter-class associations is not clearly expressed. An object-oriented power grid topology data modeling method uses five types of edges—connection, belonging, association, aggregation, and linking—to classify different types of relationships, distinguish the meaning of different association relationships, and the linking relationship is one that CIM cannot express.
[0055] Example 3 The object-oriented power grid topology data modeling system of the present invention includes: The data acquisition module is used to acquire raw data on the power grid structure and raw data describing power grid measurements. The construction module is used to construct a power grid topology graph instance based on the original data of the power grid structure and the original data describing the power grid measurements, and based on the node classes, edge classes, and edge constraints of the preset power grid graph data model.
[0056] The module division in this embodiment is illustrative and represents only one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in each embodiment of this application can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0057] Example 4 A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of an object-oriented power grid topology data modeling method. For example, the steps include: acquiring raw data of the power grid structure and raw data describing power grid measurements; and constructing a power grid topology instance based on the raw data of the power grid structure and the raw data describing the power grid measurements, according to a preset power grid data model's node classes, edge classes, and edge constraints. The memory may include main memory, such as high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device. The processor, network interface, and memory are interconnected via an internal bus, which may be an industry-standard architecture bus, a peripheral component interconnection standard bus, an extended industry-standard architecture bus, etc. The bus can be classified as an address bus, data bus, control bus, etc. The memory stores the program; specifically, the program may include program code, which includes computer operation instructions. The memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0058] Example 5 A computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of an object-oriented power grid topology data modeling method. For example, the steps include: collecting raw data on the power grid structure and raw data describing power grid measurements; and constructing a power grid topology instance based on the raw data on the power grid structure and the raw data describing the power grid measurements, according to a preset power grid data model's node classes, edge classes, and edge constraints. Specifically, the computer-readable storage medium includes, but is not limited to, volatile memory and / or non-volatile memory. The volatile memory may include random access memory (RAM) and / or cache memory, etc. The non-volatile memory may include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.
[0059] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0060] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0061] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0062] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0063] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and disclosure of the invention. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0064] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
[0065] The above description is merely a preferred embodiment of the present invention and does not constitute any limitation on the present invention. Any simple modifications, alterations, or equivalent structural changes made to the above embodiments based on the technical essence of the present invention shall still fall within the protection scope of the present invention.
Claims
1. An object-oriented method for modeling power grid topology data, characterized in that, include: Collect raw data on the power grid structure and raw data describing power grid measurements; Based on the original data of the power grid structure and the original data describing the power grid measurements, a power grid topology graph instance is constructed based on the node class, edge class, and edge constraints of the preset power grid graph data model. The raw data of the power grid structure includes at least a CIM file; the raw data describing the power grid measurements includes at least a QS file and measurement interface JSON data. The process of constructing a power grid topology graph instance based on the original data of the power grid structure and the original data describing the power grid measurements, and based on the node classes, edge classes, and edge constraints of the preset power grid graph data model, is as follows: Equipment nodes are extracted from the original data of the power grid structure, and each equipment node is connected according to the connecting edges in the edge constraints of the power grid diagram data model; Container nodes are extracted from the original data of the power grid structure. The device nodes and container nodes are connected according to the edge constraints in the power grid diagram data model. The container nodes are connected using the connecting edges in the edge constraints of the power grid diagram data model to form virtual logical relationships. Establish state timing nodes and measurement timing nodes for each device node, and connect the device nodes with the state timing nodes and measurement timing nodes through the associated edges in the edge constraints of the power grid diagram data model; The measurement data in the original data describing the power grid measurement is parsed, and the parsed measurement data is written into the attributes of the corresponding measurement time series node; Obtain the power grid operating status data and write the power grid operating status data into the attributes of the corresponding state time series node; The process of extracting container nodes from the original data of the power grid structure, connecting device nodes and container nodes according to the edges in the edge constraints of the power grid diagram data model, and connecting each container node using the connecting edges in the edge constraints of the power grid diagram data model to form a virtual logical relationship is as follows: Based on the node class of the power grid diagram data model, container nodes are extracted from the original data of the power grid structure; Based on the device affiliation relationships in the original data of the power grid structure, each container node and its subordinate device nodes are connected through the affiliation edges in the edge constraints of the power grid graph data model to establish an affiliation relationship graph structure.
2. The object-oriented power grid topology data modeling method according to claim 1, characterized in that, The measurement data includes at least the voltage and power of the device.
3. The object-oriented power grid topology data modeling method according to claim 1, characterized in that, The power grid operating status is obtained through state estimation or from the dispatching system.
4. The object-oriented power grid topology data modeling method according to claim 1, characterized in that, The process of extracting device nodes from the original data of the power grid structure and connecting each device node according to the connecting edges in the edge constraints of the power grid diagram data model is as follows: Based on the node class of the power grid diagram data model, device nodes are extracted from the original data of the power grid structure; Based on the relationship between equipment nodes and connection points in the original data of the power grid structure, the equipment nodes on both sides of the connection point are associated and the connection point is deleted. The bus and its connected equipment are directly associated. Based on the connection edges in the edge constraints of the power grid diagram data model, the equipment topology diagram structure is established.
5. An object-oriented power grid topology data modeling system, characterized in that, include: The data acquisition module is used to acquire raw data on the power grid structure and raw data describing power grid measurements. The construction module is used to construct a power grid topology graph instance based on the original data of the power grid structure and the original data describing the power grid measurement, and based on the node class, edge class, and edge constraints of the preset power grid graph data model. The raw data of the power grid structure includes at least a CIM file; the raw data describing the power grid measurements includes at least a QS file and measurement interface JSON data. The process of constructing a power grid topology graph instance based on the original data of the power grid structure and the original data describing the power grid measurements, and based on the node classes, edge classes, and edge constraints of the preset power grid graph data model, is as follows: Equipment nodes are extracted from the original data of the power grid structure, and each equipment node is connected according to the connecting edges in the edge constraints of the power grid diagram data model; Container nodes are extracted from the original data of the power grid structure. The device nodes and container nodes are connected according to the edge constraints in the power grid diagram data model. The container nodes are connected using the connecting edges in the edge constraints of the power grid diagram data model to form virtual logical relationships. Establish state timing nodes and measurement timing nodes for each device node, and connect the device nodes with the state timing nodes and measurement timing nodes through the associated edges in the edge constraints of the power grid diagram data model; The measurement data in the original data describing the power grid measurement is parsed, and the parsed measurement data is written into the attributes of the corresponding measurement time series node; Obtain the power grid operating status data and write the power grid operating status data into the attributes of the corresponding state time series node; The process of extracting container nodes from the original data of the power grid structure, connecting device nodes and container nodes according to the edges in the edge constraints of the power grid diagram data model, and connecting each container node using the connecting edges in the edge constraints of the power grid diagram data model to form a virtual logical relationship is as follows: Based on the node class of the power grid diagram data model, container nodes are extracted from the original data of the power grid structure; Based on the device affiliation relationships in the original data of the power grid structure, each container node and its subordinate device nodes are connected through the affiliation edges in the edge constraints of the power grid graph data model to establish an affiliation relationship graph structure.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the object-oriented power grid topology data modeling method as described in any one of claims 1-4.
7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the object-oriented power grid topology data modeling method as described in any one of claims 1-4.