Power grid data temporal management method, device, equipment and medium based on graph computing
By constructing and managing power grid topology graph data based on graph computing methods, the problem of inconvenient multi-temporal data management of power grid topology is solved, the change and unified management of temporal versions are realized, and the management efficiency and lean level of power grid data are improved.
Patent Information
- Application Number
- CN202311517374.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Existing technologies are difficult to effectively manage multiple temporal data of power grid topology, resulting in large amounts of data and inconvenient management.
Using a graph-based computing method, the current tense is determined by constructing the power grid topology diagram data, and the temporal incremental diagram data is obtained according to the target tense, and the power grid topology diagram data is changed to obtain the target tense, thereby realizing the analysis of the power grid topology diagram data. Change and unified management of temporal versions.
It realizes the evolution or restoration of the temporal version of the power grid topology map data, meets the unified management needs of different temporal versions on the timeline, and improves the level of lean management of power grid data.
Smart Images

Figure CN117332541B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid data management, and in particular to a method, device, equipment and medium for temporal management of power grid data based on graph computing. Background Art
[0002] The power system has formed a huge network topology. The grid structure and operation mode of the power grid are becoming increasingly complex, showing new trends of rapid growth in quantity, rapid structural changes, and diversified types. The power grid topology exists in multiple time states. For example, the power grid topology gradually evolves from the planning state to the construction state, operation state, and historical state. Therefore, the requirements for the time state management of power grid equipment are constantly increasing.
[0003] At present, separate topological temporal data are required to be saved for different temporal data, which results in a large amount of stored data. As the amount of data continues to increase, it is inconvenient to manage each temporal data. Therefore, it is necessary to establish a multi-time granularity power grid data temporal mechanism to improve the unified organization and management capabilities of multi-temporal power grids. Summary of the invention
[0004] In view of this, the present invention provides a method, device, equipment and medium for temporal management of power grid data based on graph computing to solve the problem of inconvenient management of various temporal data of power grid topology structure.
[0005] In a first aspect, the present invention provides a method for temporal management of power grid data based on graph computing, comprising: constructing power grid topology map data in the form of nodes, edges and attributes according to graph computing; determining the current tense of the power grid topology map data, and assigning the current tense to the power grid topology map data; obtaining temporal incremental graph data according to the target tense to be converted; changing the power grid topology map data according to the temporal incremental graph data, and obtaining the power grid topology map data of the target tense.
[0006] Optionally, the current tense of the power grid topology data is determined and the current tense is assigned to the power grid topology data, including: determining the current tense of the power grid topology data according to the temporal logic and management mechanism; establishing the state type of the nodes and edges corresponding to the current tense, and generating a version number node of the current tense; establishing an edge between the node of the power grid topology data corresponding to the current state and the version number node of the current tense.
[0007] Optionally, the target tense to be converted is the target tense to be evolved, and the power grid topology data is changed according to the temporal incremental graph data to obtain the power grid topology data of the target tense, including: converting the current tense of the power grid topology data into the target tense to be evolved, and converting the state types of the nodes and edges of the power grid topology data into the state types of the target tense; increasing the version number corresponding to the target tense, and establishing a version number node of the target tense; adding the incremental data between the target tense and the current tense as the temporal incremental graph data to the power grid topology data corresponding to the current tense, to obtain the power grid topology data of the target tense.
[0008] Optionally, after obtaining the target temporal power grid topology map data, it includes: generating nodes of the temporal incremental map data; establishing edges between the nodes of the temporal incremental map data and the version number nodes of the current version, and between the nodes of the temporal incremental map data and the version number nodes of the target version.
[0009] Optionally, the target tense to be converted is the target tense to be restored, and the temporal incremental graph data is obtained according to the target tense to be converted, including: based on the current tense and the target tense to be restored, searching for the version number node of the current tense and the version number node of the target tense according to the temporal logic; searching for common nodes according to the edges of the version number nodes of the current tense and the edges of the version number nodes of the target tense to obtain the nodes of the temporal incremental graph data and extracting the temporal incremental graph data.
[0010] Optionally, the power grid topology data is changed according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state, including: eliminating the temporal incremental graph data in the power grid topology data corresponding to the current temporal state, and restoring the power grid topology data of the target temporal state to be restored.
[0011] Optionally, the power grid topology data is changed according to the temporal incremental graph data to obtain the power grid topology data of the target time state, including: judging whether the target time state and the current time state are adjacent time states, if not, obtaining all intermediate time states between the target time state and the current time state, starting from the current time state, and changing the power grid topology data in turn according to the temporal incremental graph data between any two adjacent time states until the power grid topology data of the target time state is obtained.
[0012] Optionally, after changing the power grid topology map data according to the temporal incremental map data to obtain the power grid topology map data of the target time state, it includes: traversing the version number nodes of each time state to obtain the temporal change process and the topological morphology change process of the power grid topology map data; forming a power grid topology map data chain according to the temporal change process and the topological morphology change process of the power grid topology map data.
[0013] In the second aspect, the present invention provides a power grid data temporal management device based on graph calculation, including: a graph construction module, which is used to construct power grid topology map data in the form of nodes, edges and attributes according to graph calculation; a temporal assignment module, which is used to determine the current tense of the power grid topology map data and assign the current tense to the power grid topology map data; an incremental acquisition module, which is used to obtain temporal incremental graph data according to the target tense to be converted; and a temporal conversion module, which is used to change the power grid topology map data according to the temporal incremental graph data to obtain the power grid topology map data of the target tense.
[0014] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the graph computing-based temporal management method for power grid data according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the graph-computing-based temporal management method for power grid data of the first aspect or any corresponding embodiment thereof.
[0016] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0017] The present invention provides a method, device, equipment and medium for temporal management of power grid data based on graph calculation. The method constructs power grid topology map data in the form of nodes, edges and attributes according to graph calculation, determines the current tense of the power grid topology map data, and assigns the current tense to the power grid topology map data. The temporal incremental graph data is obtained according to the target tense to be converted, and the power grid topology map data is changed according to the temporal incremental graph data to obtain the power grid topology map data of the target tense. The method can realize the change of the temporal version of the power grid topology map data, meet the evolution or restoration requirements of different temporal versions on the time axis, and facilitate the unified management of power grid temporal data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a flow chart of a method for temporal management of power grid data based on graph computing according to an embodiment of the present invention;
[0020] Figure 2is a flow chart of another method for temporal management of power grid data based on graph computing according to an embodiment of the present invention;
[0021] Figure 3 is a structural block diagram of a power grid data temporal management device based on graph computing according to an embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0024] As the grid structure and operation mode become increasingly complex, the requirements for temporal management of grid equipment are constantly increasing. It is urgent to establish a multi-time granularity grid data temporal mechanism to achieve the temporal superposition of different versions on the time axis, meet the node adaptive model expression requirements, and solve the temporal management and time evolution problems of grid topology data.
[0025] Graph theory is a branch of mathematics that studies topological graphs. A graph in graph theory is a topological graph composed of a number of given points and lines connecting two points. This type of graph is usually used to describe a given relationship between certain things, using points to represent things and lines connecting two points to represent this relationship between two things. The introduction of graph theory methods and graph data processing technology solves the temporal management problem of power grid topological graph data. It can quickly realize the conversion and superposition between data states through the temporal incremental graph data method, meet the requirements of temporal superposition and morphological evolution between different state versions on the timeline, and realize the temporal management mechanism of power grid data with adaptive expansion and transformation of nodes, further improving the lean management level of the power grid. Aiming at the needs of temporal management of power grid data, the embodiment of the present invention pioneered the introduction of graph theory methods, and realized the rapid conversion and superposition between data states by realizing the temporal incremental graph data, meeting the requirements of temporal superposition and morphological evolution between different state versions on the timeline.
[0026] The embodiment of the present invention provides a method for temporal management of power grid data based on graph computing, such as Figure 1 and Figure 2 As shown, the method includes:
[0027] Step S101, constructing power grid topology data in the form of nodes, edges and attributes according to graph calculation.
[0028] Specifically, nodes represent various components in the power grid, such as transformers, generators, circuit breakers, etc.; edges represent the connection relationship between nodes. Attributes are fields recorded in the graph structure. Both nodes and edges can have multiple attributes. For example, the attributes of power grid equipment type nodes include: ID, equipment name, equipment type, voltage level, switch status, operating unit, power station, line, tower, energized state, geographic coordinates, etc. For cross-link power grid data, it is represented in the form of nodes, edges and attributes and the power grid topology data is constructed.
[0029] Step S102, determining the current tense of the power grid topology data, and assigning the current tense to the power grid topology data.
[0030] There are multiple time states in the power grid topology, such as planning state, construction state, operation state and historical state. When constructing the power grid topology data, different time states will establish different vertices and edges. The data time state is the data structure type for the time state. During the time state transfer and evolution, the original nodes and edges may be converted to the nodes and edges corresponding to other time states. For example, the power grid equipment node is a planning equipment node in the planning state. When it is transferred to the operation state, the node type needs to be converted to an operation equipment node; when the operation equipment changes state or is returned, the original operation equipment node needs to be converted to a historical equipment node, and the updated operation equipment node is established according to the demand. The same applies to the edge conversion.
[0031] After constructing the power grid topology data, it is necessary to determine the current tense of the power grid topology data. According to the temporal logic and temporal management mechanism, the current tense of the power grid topology data is determined to facilitate the management of topological temporal data. The current tense refers to the current state of the power grid, such as the current time point, or a specific operating state.
[0032] Step S103, acquiring temporal incremental graph data according to the target temporal state to be converted.
[0033] The target state refers to the state of the power grid to be evolved or restored. For example, the current state is the planning state, and the target state is the construction state after further evolution, or the historical state to be restored. The temporal incremental graph data refers to the difference between two temporal states, that is, the change from the current state to the target state.
[0034] Step S104, changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state.
[0035] Specifically, when changing the power grid topology map data according to the temporal incremental graph data, it may involve the addition or deletion of nodes, the connection or disconnection of edges, or the change of attributes, etc. It is also necessary to change the state types of the nodes and edges of the power grid topology map data to the state types of the target tense, so that the power grid topology map data is transformed into an evolving tense or a historical tense.
[0036] A method for temporal management of power grid data based on graph computing in an embodiment of the present invention constructs power grid topology map data in the form of nodes, edges and attributes according to graph computing, determines the current tense of the power grid topology map data, and assigns the current tense to the power grid topology map data, obtains temporal incremental graph data according to the target tense to be converted, changes the power grid topology map data according to the temporal incremental graph data, and obtains power grid topology map data of the target tense. This method can realize the change of the temporal version of the power grid topology map data, meet the evolution or restoration requirements of different temporal versions on the timeline, and facilitate unified management of power grid temporal data.
[0037] A graph computing-based temporal management method for power grid data in an embodiment of the present invention innovatively introduces graph theory methods to meet the needs of temporal management of power grid data. By realizing rapid conversion and superposition of data states using temporal incremental graph data, the requirements of temporal superposition and morphological evolution between different state versions on the timeline are met.
[0038] In an optional embodiment, step S102, determining the current tense of the power grid topology data and assigning the current tense to the power grid topology data, includes:
[0039] Step S1021, determining the current tense of the power grid topology data according to the temporal logic and management mechanism;
[0040] Step S1022, establishing the state types of nodes and edges corresponding to the current tense, and generating a version number node of the current tense;
[0041] Step S1023: establishing an edge between the node of the power grid topology data corresponding to the current state and the version number node of the current state.
[0042] Specifically, the grid temporal logic refers to the transition and evolution logic from the grid planning state to the construction state, operation state and historical state. The temporal management mechanism refers to the management and control methods in the process of temporal transition and evolution, including but not limited to: planning version management, planning version approval, engineering construction management, equipment commissioning management, operation and dispatch management, operation and maintenance management, equipment life cycle management, etc.
[0043] By establishing the state types of nodes and edges, and establishing the edges between nodes and version number nodes of the power grid topology data, the temporal state is assigned to the power grid topology data, which facilitates the unified planning and management of the power grid topology data of each temporal state.
[0044] In an optional embodiment, the target temporal state to be converted is the target temporal state to be evolved, and step S104, changing the power grid topology map data according to the temporal incremental map data to obtain the power grid topology map data of the target temporal state, includes:
[0045] Step S10411, converting the current tense of the power grid topology data into the target tense to be evolved, and converting the state types of the nodes and edges of the power grid topology data into the state types of the target tense;
[0046] Step S10412, increase the version number corresponding to the target tense, and establish a version number node of the target tense;
[0047] Step S10413, adding the incremental data between the target time state and the current time state as time state incremental graph data to the power grid topology graph data corresponding to the current time state, to obtain the power grid topology graph data of the target time state.
[0048] Specifically, the current tense is recorded as tense 1, the target tense is recorded as tense 2, and when the power grid topology data is transferred from tense 1 to tense 2, the temporal description of the power grid topology data is converted into tense 2 according to the temporal logic and temporal management mechanism.
[0049] The version number corresponding to the target temporal state is increased, the node and edge state types of the conversion are changed, and the incremental data from temporal state 1 to temporal state 2 is added to the power grid topology map data as temporal incremental graph data to obtain the power grid topology map data of temporal state 2.
[0050] Furthermore, after obtaining the target time-state power grid topology data, the following steps are included:
[0051] Step S10414, generating nodes of temporal incremental graph data;
[0052] Step S10415, establishing edges between the nodes of the temporal incremental graph data and the version number nodes of the current version, and edges between the nodes of the temporal incremental graph data and the version number nodes of the target version.
[0053] Specifically, edges are established between the nodes of the temporal incremental graph data and the version number nodes of temporal 1 and the version number nodes of temporal 2, so as to associate the temporal incremental graph data with different temporal states. Each time a temporal conversion is performed, the corresponding temporal incremental graph data can be found based on the version number node, which facilitates the management of temporal data.
[0054] When transferring across multiple temporal states, it can be executed iteratively, and the temporal incremental graph data between each temporal state is added to the power grid topology graph data respectively, and associated with the version number node of the corresponding temporal state. For example, in the planning state, the running state data is used to edit the power grid planning version. After completion and verification, the planning state is released, and the relevant data enters the construction state for review. In the construction state, review whether the planning state version is compliant and meets the requirements. If it meets the requirements, it is submitted for construction after approval. After the construction version is completed and put into operation, the construction state is released, and the construction version data is stored and overwritten in the running state.
[0055] In an optional embodiment, the target tense to be converted is the target tense to be restored, and step S103, obtaining temporal incremental graph data according to the target tense to be converted, includes:
[0056] S1031, based on the current tense and the target tense to be restored, searching for the version number node of the current tense and the version number node of the target tense according to the temporal logic;
[0057] S1032, searching for common nodes according to the edges of the version number nodes of the current temporal state and the edges of the version number nodes of the target temporal state to obtain nodes of the temporal incremental graph data and extract the temporal incremental graph data.
[0058] Specifically, if the current tense is recorded as tense 2 and the target tense is recorded as tense 1, when restoring the power grid topology data of the adjacent tense 1 from tense 2, according to the temporal logic and temporal management mechanism, starting from the version number node of tense 1 and the version number node of tense 2, along the edge between the temporal version number node and the node of the temporal incremental graph data, the node of the temporal incremental graph data is obtained, and the temporal incremental graph data is extracted from the node.
[0059] Furthermore, step S104, changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state, includes:
[0060] Step S10421, eliminating the temporal incremental graph data from the power grid topology graph data corresponding to the current temporal state, and restoring the power grid topology graph data of the target temporal state to be restored.
[0061] Specifically, the temporal incremental graph data is eliminated based on the temporal power grid topology graph data of temporal state 2 to obtain the restored temporal power grid topology graph data of temporal state 1.
[0062] In an optional embodiment, step S104, changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state, includes:
[0063] Determine whether the target tense and the current tense are adjacent tenses. If not, obtain all intermediate tenses between the target tense and the current tense. Starting from the current tense, change the power grid topology data in turn according to the temporal incremental graph data between any two adjacent tenses until the power grid topology data of the target tense is obtained.
[0064] Specifically, the data spanning multiple time states can be restored iteratively, starting from all the time state version number nodes spanned in the middle, obtaining the current time state power grid topology data and the time state incremental graph data between each adjacent time state, and sequentially eliminating the time state incremental graph data between each adjacent time state on the basis of the current time state power grid topology data, and restoring the required power grid topology data. For example, the operation state data is incrementally stored at specified intervals, the construction state release content and the operation state edit content are saved, and the historical data incremental management is realized. According to the current time data of the operation state and the historical incremental data, the historical version section is restored.
[0065] In an optional embodiment, in step S104, after the power grid topology data is changed according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state, the following steps are included:
[0066] Step S105, traversing the version number nodes of each temporal state, obtaining the temporal change process and the topological morphological change process of the power grid topology map data;
[0067] Step S106, forming a power grid topology data chain according to the temporal change process and the topological morphological change process of the power grid topology data.
[0068] Specifically, by traversing the data state version number, the power grid topology data state transfer and topology morphology change process are obtained, multi-time granularity state version data are superimposed, and multi-time granularity node adaptive expansion is performed to meet the temporal superposition requirements between different state versions on the timeline, forming a power grid topology data chain that includes the temporal change process of the power grid topology data and the topology morphology change process, meeting the morphological evolution requirements between different state versions on the timeline.
[0069] The method of the embodiment of the present invention innovatively uses graph theory methods and graph data processing technology to design multi-time granularity power grid data temporality and data evolution mechanism, realizes temporal incremental management of power grid topology map data, efficiently completes power grid map data state conversion and historical state recovery, realizes temporal superposition and morphological evolution between multi-time granularity versions on the time axis, and meets the unified organization and management capabilities of multi-temporal power grids with time as the main line.
[0070] The embodiment of the present invention also provides a power grid data temporal management device based on graph computing, such as Figure 3 As shown, including:
[0071] The graph construction module 301 is used to construct power grid topology data in the form of nodes, edges and attributes according to graph calculation; the specific content is shown in the above method embodiment, which will not be repeated here.
[0072] The time state assigning module 302 is used to determine the current time state of the power grid topology data and assign the current time state to the power grid topology data; the specific content is shown in the above method embodiment and will not be repeated here.
[0073] The incremental acquisition module 303 is used to acquire temporal incremental graph data according to the target temporal state to be converted; the specific content is shown in the above method embodiment, which will not be repeated here.
[0074] The temporal conversion module 304 is used to change the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state. The specific contents are shown in the above method embodiment and will not be described here.
[0075] An embodiment of the present invention provides a power grid data temporal management device based on graph computing, which constructs power grid topology map data in the form of nodes, edges and attributes according to graph computing, determines the current tense of the power grid topology map data, and assigns the current tense to the power grid topology map data, obtains temporal incremental graph data according to the target tense to be converted, changes the power grid topology map data according to the temporal incremental graph data, and obtains the power grid topology map data of the target tense. It can realize the change of the temporal version of the power grid topology map data, meet the evolution or restoration requirements of different temporal versions on the time axis, and facilitate unified management of power grid temporal data.
[0076] In an optional embodiment, the tense assignment module 302 includes:
[0077] A temporal determination module, used to determine the current temporal state of the power grid topology data according to the temporal logic and management mechanism;
[0078] The node establishment module is used to establish the state types of nodes and edges corresponding to the current tense and generate the version number node of the current tense;
[0079] The edge establishment module is used to establish the edge between the node of the power grid topology data corresponding to the current state and the version number node of the current state.
[0080] In an optional embodiment, the target tense to be converted is the target tense to be evolved, and the tense conversion module 304 includes:
[0081] A type conversion module, used to convert the current tense of the power grid topology data into the target tense to be evolved, and convert the state types of the nodes and edges of the power grid topology data into the state types of the target tense;
[0082] A version number establishment module is used to increase the version number corresponding to the target tense and establish a version number node of the target tense;
[0083] The evolution module is used to add the incremental data between the target time state and the current time state as the time state incremental graph data to the power grid topology graph data corresponding to the current time state to obtain the power grid topology graph data of the target time state.
[0084] In an optional embodiment, the evolution module is further configured to:
[0085] Nodes that generate temporal incremental graph data;
[0086] The edges between the nodes of the temporal incremental graph data and the version number nodes of the current version, and the edges between the nodes of the temporal incremental graph data and the version number nodes of the target version are established respectively.
[0087] In an optional embodiment, the target tense to be converted is the target tense to be restored, and the incremental acquisition module 308 includes:
[0088] The incremental search module is used to search for the version number node of the current tense and the version number node of the target tense according to the temporal logic based on the current tense and the target tense to be restored;
[0089] The incremental extraction module is used to find common nodes according to the edges of the version number nodes of the current temporal state and the edges of the version number nodes of the target temporal state to obtain the nodes of the temporal incremental graph data and extract the temporal incremental graph data.
[0090] In an optional embodiment, the temporal conversion module 304 includes:
[0091] The restoration module is used to eliminate the temporal incremental map data in the power grid topology map data corresponding to the current temporal state, and restore the power grid topology map data of the target temporal state to be restored.
[0092] In an optional embodiment, the temporal conversion module 304 includes:
[0093] The iterative change module is used to determine whether the target tense and the current tense are adjacent tenses. If not, all intermediate tenses between the target tense and the current tense are obtained. Starting from the current tense, the power grid topology data is changed in turn according to the temporal incremental graph data between any two adjacent tenses until the power grid topology data of the target tense is obtained.
[0094] In an optional embodiment, the power grid data temporal management device based on graph computing further includes:
[0095] The traversal module is used to traverse the version number nodes of each time state and obtain the temporal change process of the power grid topology data and the topological morphology change process;
[0096] The data chain building module is used to form a power grid topology data chain according to the temporal change process of the power grid topology data and the topological morphology change process.
[0097] The graph computing-based power grid data temporal management device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0098] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0099] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0100] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0101] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0103] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0104] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0105] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0106] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for temporal management of power grid data based on graph computing, characterized in that: include: Construct power grid topology data in the form of nodes, edges and attributes based on graph calculation; Determine the current tense of the power grid topology data, and assign the current tense to the power grid topology data; Acquire temporal incremental graph data according to the target temporal state to be converted; Changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state; Wherein, determining the current tense of the power grid topology data and assigning the current tense to the power grid topology data includes: Determine the current tense of the power grid topology data according to the temporal logic and management mechanism; Establish the state types of nodes and edges corresponding to the current state, and generate the version number node of the current state; An edge is established between a node of the power grid topology map data corresponding to the current state and a node of the version number in the current tense.
2. The method according to claim 1, characterized in that The target tense to be converted is the target tense to be evolved, and the power grid topology map data is changed according to the temporal incremental map data to obtain the power grid topology map data of the target tense, including: Converting the current tense of the power grid topology data into a target tense to be evolved, and converting the state types of the nodes and edges of the power grid topology data into the state types of the target tense; Increase the version number corresponding to the target tense and create a version number node for the target tense; The incremental data between the target tense and the current tense is added as the temporal incremental graph data to the power grid topology graph data corresponding to the current tense to obtain the power grid topology graph data of the target tense.
3. The method according to claim 2, characterized in that After obtaining the target time-state power grid topology data, including: Generate a node of the temporal incremental graph data; The edges between the nodes of the temporal incremental graph data and the version number nodes of the current version, and the edges between the nodes of the temporal incremental graph data and the version number nodes of the target version are respectively established.
4. The method according to claim 1, characterized in that The target tense to be converted is the target tense to be restored, and acquiring temporal incremental graph data according to the target tense to be converted includes: Based on the current tense and the target tense to be restored, search for the version number node of the current tense and the version number node of the target tense according to the temporal logic; According to the edges of the version number nodes of the current temporal state and the edges of the version number nodes of the target temporal state, common nodes are searched to obtain nodes of the temporal incremental graph data and the temporal incremental graph data is extracted.
5. The method according to claim 4, characterized in that The step of changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state includes: The temporal incremental graph data is eliminated from the power grid topology graph data corresponding to the current temporal state, and the power grid topology graph data of the target temporal state to be restored is restored.
6. The method according to claim 1, characterized in that Changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state includes: Determine whether the target tense and the current tense are adjacent tenses. If not, obtain all intermediate tenses between the target tense and the current tense. Starting from the current tense, change the power grid topology data in sequence according to the temporal incremental graph data between any two adjacent tenses until the power grid topology data of the target tense is obtained.
7. The method according to claim 2, characterized in that After the power grid topology data is changed according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state, the method includes: Traversing the version number nodes of each time state, obtaining the time state change process and the topology morphology change process of the power grid topology map data; A power grid topology data chain is formed according to the temporal change process and the topological morphological change process of the power grid topology data.
8. A power grid data temporal management device based on graph computing, characterized in that: include: A graph construction module, used to construct power grid topology data in the form of nodes, edges and attributes according to graph calculation; A tense assignment module, used to determine the current tense of the power grid topology data and assign the current tense to the power grid topology data; An incremental acquisition module, used for acquiring temporal incremental graph data according to a target temporal state to be converted; A temporal conversion module, used for changing the power grid topology data according to the temporal incremental graph data to obtain the power grid topology data of the target temporal state; The tense assignment module includes: A temporal determination module, used to determine the current temporal state of the power grid topology data according to the temporal logic and management mechanism; The node establishment module is used to establish the state types of nodes and edges corresponding to the current tense and generate the version number node of the current tense; The edge establishment module is used to establish the edge between the node of the power grid topology data corresponding to the current state and the version number node of the current state.
9. A computer device, characterized in that: include: 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 graph-computing-based temporal management method for power grid data as described in any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the power grid data temporal management method based on graph computing according to any one of claims 1 to 7.
