A model hierarchical incremental synchronization method, device, electronic equipment, storage medium and power grid simulation model driven scheduling method for power grid simulation
Patent Information
- Application Number
- CN202611270757.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]本发明提供一种面向电网仿真的模型分层增量同步方法,装置、电子设备、存储介质及电网仿真模型驱动的调度方法,用于解决现有同步方法中,各仿真设备的导入更新操作相互独立,同步顺序不受约束,容易出现先导入的设备指向后导入的配套设备尚未就位的情况,造成悬空的引用便直接报错终止的技术问题
本发明实施例提供了一种面向电网仿真的模型分层增量同步方法,装置、电子设备、存储介质及电网仿真模型驱动的调度方法,通过解析源端和目标仿真计算库中的各仿真设备的参数数据,按照电网设备之间的电气连接关系将各仿真设备划分为厂站层仿真设备、主设备层仿真设备、附属层仿真设备的层结构,并基于电网设备之间固有的物理从属关系与电气耦合约束确定各仿真设备之间的依赖关系,以三层设备为顶点、设备之间的依赖关系为有向边构建有向无环图,进而通过拓扑排序生成父节点先于子节点执行的执行顺序,依赖方向依次执行,从流程上保证被依赖设备在依赖设备之前完成同步,从而避免同步过程中出现引用悬空的状态,减少后续仿真计算过程因设备的配套缺失而产生的报错,提升同步后仿真数据的可用性。
Smart Images

Figure CN122925508A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system simulation technology, and in particular to a hierarchical incremental synchronization method for power grid simulation models, a scheduling method driven by devices, electronic equipment, storage media, and power grid simulation models. Background Technology
[0002] Power grid simulation is a core supporting tool for power grid planning, dispatching, operation, and safety and stability analysis. Dispatch and planning departments at all levels typically maintain multi-year historical simulation databases, multi-planning scheme simulation databases, and multi-regional segmented simulation databases. Efficient and accurate synchronization and reuse of models across these databases are crucial for improving simulation modeling efficiency. Currently, synchronization between the simulation database to be synchronized and the target simulation database mainly employs batch data migration based on ETL tools, or utilizes the built-in equipment import and update functions of power simulation tools such as PSASP and BPA to batch import model parameters according to equipment type. The update logic is centered on matching equipment IDs or names.
[0003] Because there are clear interrelationships between various devices in a power grid simulation model, the normal operation of some devices depends on the synchronous presence and parameter matching of other related devices. For example, a generator must be paired with an excitation system, a PSS (Power System Stabilizer), and a speed governor to participate in transient stability calculations. However, in existing synchronization technologies, the import and update operations of each simulation device are independent, and the synchronization order is unrestricted. This can easily lead to situations where the device imported first points to a later-imported device that is not yet in place. For example, when importing the parameters of a newly added generator first, and then importing the parameters of its associated excitation system, the excitation system ID referenced by the generator cannot be found in the target simulation calculation library within the time window between the two import operations. When the simulation tool encounters such a dangling reference, it will directly report an error and terminate, causing subsequent simulation calculations to fail. Summary of the Invention
[0004] This invention provides a hierarchical incremental synchronization method for power grid simulation models, and a scheduling method driven by devices, electronic equipment, storage media, and power grid simulation models. It is used to solve the technical problem in existing synchronization methods where the import and update operations of each simulation device are independent, the synchronization order is not constrained, and the situation is prone to the case where the device imported earlier points to the supporting device imported later that has not yet been put in place, resulting in the dangling reference directly reporting an error and terminating.
[0005] An embodiment of the present invention provides a hierarchical incremental synchronization method for power grid simulation models, comprising: The parameter data of each simulation device stored in the simulation calculation library to be synchronized and the target simulation calculation library are analyzed, and according to the electrical connection relationship between the power grid equipment, each simulation device is divided into a layer structure of plant and substation layer simulation device, main equipment layer simulation device and auxiliary layer simulation device. The dependencies between simulation devices are determined based on the physical subordination and electrical coupling constraints between power grid devices; Using the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary level simulation equipment as vertices, and the dependencies between simulation equipment as directed edges, a directed acyclic graph is constructed; wherein, the directed edges point from the dependent equipment to the dependent equipment, the plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary level simulation equipment is a child node of the main equipment level simulation equipment; Several simulation devices to be synchronized are obtained from the simulation computing library to be synchronized. According to the layer structure to which each simulation device belongs, the parameter data of the simulation devices to be synchronized are synchronized to the target simulation computing library in sequence according to the execution order of parent node before child node.
[0006] Furthermore, several simulation devices to be synchronized are obtained from the simulation computing library to be synchronized. Based on the layer structure of each simulation device and following the execution order of parent nodes executing before child nodes, the parameter data of the simulation devices to be synchronized are sequentially synchronized to the target simulation computing library, including: Several simulation devices to be synchronized are obtained from the simulation calculation library to be synchronized. According to the layer structure to which each simulation device belongs, the following operations are performed in the order of plant layer simulation devices, main equipment layer simulation devices, and auxiliary layer simulation devices. Search the target simulation calculation library for a simulation device that matches the current device to be synchronized: If a simulation device that matches the current simulation device to be synchronized exists, then the parameter data of the current simulation device to be synchronized is synchronized to the simulation device that matches the current simulation device to be synchronized. If no simulation device matches the current simulation device to be synchronized, a new simulation device is created in the target simulation calculation library, and all parameter data of the current simulation device to be synchronized in the simulation calculation library are synchronized to the new simulation device.
[0007] Furthermore, searching the target simulation calculation library for a simulation device that matches the current device to be synchronized includes: When the current device to be synchronized is a plant simulation device, extract the plant ID of the current device to be synchronized. In the target simulation calculation library, extract the plant IDs corresponding to the candidate simulation equipment belonging to the plant layer simulation equipment; Compare the plant ID of the device to be synchronized with the plant IDs of each candidate device: If the comparison results show that the plant IDs of the two devices are consistent, the candidate simulation device will be selected as the simulation device that matches the current device to be synchronized.
[0008] Furthermore, searching the target simulation calculation library for a simulation device that matches the current device to be synchronized also includes: When the current device to be synchronized is a master device layer simulation device or a slave device layer simulation device, extract the simulation device ID and the plant ID to which the simulation device belongs; In the target simulation calculation library, extract the simulation device ID and the plant ID to which the simulation device belongs to the candidate simulation device belonging to the main equipment layer simulation device or the auxiliary equipment layer simulation device; For each candidate simulation device, the semantic similarity between the simulation device ID and the plant ID to which the simulation device belongs is calculated between the current simulation device to be synchronized and the candidate simulation device. The two semantic similarities are then weighted and fused to obtain the similarity between the current simulation device to be synchronized and the corresponding candidate simulation device. The highest similarity in the calculation results is taken as the target semantic similarity, and the candidate simulation device corresponding to the target semantic similarity is taken as the target matching device. Compare the target semantic similarity with a similarity threshold: If the target semantic similarity is not less than the similarity threshold, the target matching device is determined to be a simulation device that matches the simulation device to be synchronized.
[0009] Furthermore, synchronizing the parameter data of the current simulation device to be synchronized to a simulation device that matches the current simulation device includes: Each parameter field of the current simulation device to be synchronized in the simulation calculation library is compared with each parameter field of the matching simulation device in the target simulation calculation library. The parameter fields that have changed are identified, and only the parameters of the current simulation device that have changed are synchronized to the simulation device that matches the current simulation device.
[0010] Furthermore, after synchronizing the parameter data of the device to be simulated to the target simulation calculation library in sequence, the process also includes: Perform parameter validity verification and electrical coupling constraint verification on each simulation device in the target simulation calculation library; If the parameter validity check or electrical coupling constraint check fails, the corresponding simulation device in the target simulation calculation library will be restored to its state before synchronization.
[0011] An embodiment of the present invention provides a model hierarchical incremental synchronization method apparatus for power grid simulation, comprising: The layer structure parsing module is used to parse the simulation model parameter data stored in the simulation calculation library to be synchronized and the target simulation calculation library. According to the electrical connection relationship between power grid equipment, the simulation equipment is divided into the layer structure of plant and substation layer simulation equipment, main equipment layer simulation equipment and auxiliary layer simulation equipment. The dependency determination module is used to determine the dependencies between simulation devices based on the physical subordination and electrical coupling constraints between power grid devices. The directed acyclic graph (DAG) construction module is used to construct a directed acyclic graph with the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary equipment level simulation equipment as vertices and the dependencies between simulation equipment as directed edges. The directed edges point from the dependent equipment to the dependent equipment. The plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary equipment level simulation equipment is a child node of the main equipment level simulation equipment. The data synchronization module is used to obtain several simulation devices to be synchronized from the simulation computing library to be synchronized, and according to the layer structure to which each simulation device belongs, and in accordance with the execution order of parent node before child node, synchronize the parameter data of the simulation devices to be synchronized to the target simulation computing library in sequence.
[0012] An embodiment of the present invention provides a scheduling method driven by a power grid simulation model, comprising: Obtain the target simulation calculation library and load the target simulation calculation library into the engineering environment of the power system dispatch simulation analysis platform; wherein, the target simulation calculation library is synchronized based on the model hierarchical incremental synchronization method for power grid simulation described in any one of the present invention; Obtain the next day's load forecast data, equipment maintenance plan, and power output forecast data for the target power grid planning area; Based on the load forecast data, equipment maintenance plan and power output forecast data for the next day, define the dispatch simulation calculation job for the next day in the power system dispatch simulation analysis platform; Based on the power system dispatch simulation analysis platform, the next day's dispatch simulation calculation operation is simulated according to the parameter data of the target simulation calculation library, and the voltage over-limit information of each node and the power over-limit information of each branch are output. Based on the voltage over-limit information of each node and the power over-limit information of each branch, determine the next day's unit output adjustment plan for the target power grid planning area.
[0013] An embodiment of the present invention provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; wherein, when the processor executes the computer program, it implements the model hierarchical incremental synchronization method for power grid simulation as described in any one of the present invention.
[0014] One embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to execute the model hierarchical incremental synchronization method for power grid simulation as described in any one of the present invention.
[0015] The embodiments of the present invention have the following beneficial effects: This invention provides a hierarchical incremental synchronization method for power grid simulation models, a scheduling method driven by devices, electronic equipment, storage media, and power grid simulation models. By parsing the parameter data of each simulation device in the source and target simulation calculation libraries, the method divides each simulation device into a layered structure of substation-level simulation devices, main equipment-level simulation devices, and auxiliary equipment-level simulation devices according to the electrical connection relationships between power grid devices. Based on the inherent physical subordination and electrical coupling constraints between power grid devices, the method determines the dependencies between each simulation device. A directed acyclic graph is constructed using the three layers of devices as vertices and the dependencies between devices as directed edges. Then, through topological sorting, an execution order is generated where parent nodes execute before child nodes, and dependencies are executed sequentially. This ensures that the dependent device completes synchronization before the dependent device, thereby avoiding dangling references during synchronization, reducing errors caused by missing device components in subsequent simulation calculations, and improving the usability of the synchronized simulation data. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating a hierarchical incremental synchronization method for power grid simulation provided in an embodiment of the present invention.
[0017] Figure 2 This is a schematic diagram of a model hierarchical incremental synchronization method device for power grid simulation provided in an embodiment of the present invention.
[0018] Figure 3 This is a flowchart illustrating a power grid simulation model-driven scheduling method according to an embodiment of the present invention. Detailed Implementation
[0019] 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 embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0021] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0022] like Figure 1 As shown, one embodiment of the present invention provides a hierarchical incremental synchronization method for power grid simulation models, which may include at least: S1: Parse the parameter data of each simulation device stored in the simulation calculation library to be synchronized and the target simulation calculation library, and divide each simulation device into a layer structure of plant and substation layer simulation devices, main equipment layer simulation devices, and auxiliary layer simulation devices according to the electrical connection relationship between power grid devices.
[0023] Specifically, the simulation calculation library to be synchronized (i.e., the source simulation calculation library) is a standard reference library containing the latest model parameters, and the target simulation calculation library (i.e., the target simulation calculation library) is a local working library to be updated. The parameter data of each simulation device stored in the source and target simulation calculation libraries are read through a data interface. The parameter data of the simulation devices includes the basic parameters of each simulation device and the connection relationships between devices. Device types include physical buses, generators, loads, transformers, parallel capacitor reactors, AC lines, DC lines, and series capacitor reactors, etc. The specific implementation steps are as follows: S11: Connect to the source simulation library and the target simulation library via a database connection interface or a file reading interface to read the simulation equipment parameter data. The simulation library can be a relational database (such as SQLite, MySQL, Oracle, etc.) or a data file format specific to power simulation tools such as PSASP and BPA.
[0024] S12: While reading the parameter data of each device, extract the electrical connection relationships between each simulation device. The electrical connection relationships include: the affiliation relationship between the device and its affiliated substation (determined by the "affiliated substation ID" field in the device data table), the connection relationship between the device and the connected bus (determined by the "connected bus ID" field in the device data table), and the topological connection relationship between the devices (determined by the "head bus ID" and "end bus ID" fields in the line data table).
[0025] S13: Based on the electrical connection relationships between power grid equipment, the simulation equipment is divided into a layered structure of substation layer simulation equipment, main equipment layer simulation equipment, and auxiliary layer simulation equipment: The plant records in the plant data table are divided into plant-level simulation devices. As the root node of the entire simulation model, each plant-level simulation device must contain at least the following attributes: plant ID (unique identifier), plant name, voltage level, and region.
[0026] Primary equipment directly electrically connected to the substation is classified as main equipment layer simulation equipment. This main equipment layer simulation equipment includes basic power grid components such as generators, transformers, lines, busbars, and loads. Each main equipment layer simulation equipment must contain at least the following attributes: equipment ID (unique identifier), equipment name, equipment type, rated parameters, and the substation ID to which it belongs. The main equipment layer simulation equipment establishes its affiliation with the substation layer simulation equipment through the "substation ID" field.
[0027] Secondary / auxiliary equipment that is attached to the main equipment or provides control or compensation functions to the main equipment is classified as auxiliary layer simulation equipment. The auxiliary layer simulation equipment includes: excitation systems, PSS (Power System Stabilizer), speed governors, series compensation devices, high-voltage reactors, etc. Each auxiliary layer simulation equipment must contain at least the following attributes: equipment ID (unique identifier), equipment name, equipment type, and the ID of the main equipment it is attached to. The auxiliary layer simulation equipment establishes its dependency relationship with the main equipment layer simulation equipment through the "attached main equipment ID" field.
[0028] S14: After completing the three-layer structure division, the system stores the simulation equipment of each layer in the form of structured data in a computer-readable storage medium. Specifically, this can be done in the following ways: Create three equipment tables in a relational database (plant / site layer equipment table, main equipment layer equipment table, and auxiliary layer equipment table), storing equipment records for the corresponding layer, and recording the inter-layer relationships through foreign key fields (such as "plant / site ID" and "attached main equipment ID"). Alternatively, generate a structured description file for the three-layer equipment in JSON or XML format, containing the attribute information of each layer of equipment and its inter-layer relationships.
[0029] S2: Determine the dependencies between each simulation device based on the physical subordination and electrical coupling constraints between power grid devices.
[0030] Specifically, based on the parsed and partitioned three-layer structure (plant layer, main equipment layer, and auxiliary layer), the dependencies between various simulation devices are identified. These dependencies refer to the following: during synchronization, the existence or correct operation of one simulation device presupposes the existence or correct configuration of another simulation device; the dependent device must complete synchronization before the device it depends on. Specifically, dependencies between simulation devices are first determined based on physical subordination, and then the parameter matching conditions that need to be verified between dependent simulation devices are determined based on electrical coupling constraints.
[0031] The physical dependency relationship refers to the affiliation and dependence of the simulation equipment within the physical structure of the power grid, specifically including: (1) The attribution relationship between the plant / station layer and the main equipment layer: The simulation equipment (generator, transformer, line, busbar, etc.) of the main equipment layer must physically belong to a certain plant / station layer simulation equipment (plant / station node). Without a plant / station, the main equipment has no physical location attribution. This attribution relationship is identified through the "belonging plant / station ID" field in the equipment data table. For example, if the value of the "belonging plant / station ID" field in the data record of a certain generator is "Sub_001", then the generator is physically subordinate to the plant / station "Sub_001". In terms of synchronization order, the plant / station "Sub_001" must complete synchronization before the generator. If the plant / station has not yet synchronized, the generator has no plant / station to which it can belong at the target end and cannot be correctly established.
[0032] (2) Dependency relationship between the main equipment layer and the auxiliary layer: The auxiliary layer simulation equipment (excitation system, PSS, speed governor, series compensation, high-voltage reactor, etc.) must be physically attached to a certain main equipment layer simulation equipment. Without a main equipment, the auxiliary equipment has nowhere to attach. The system identifies this dependency relationship through the "attached main equipment ID" field in the equipment data table. For example, if the value of the "attached main equipment ID" field in the data record of an excitation system is "Gen_001", then the excitation system is physically attached to the generator "Gen_001". In terms of synchronization sequence, the generator "Gen_001" must be synchronized before the excitation system. If the generator has not yet been synchronized, the excitation system has no main equipment to attach to at the target end and cannot be correctly connected.
[0033] The electrical coupling constraint refers to the coupling relationship between devices that have electrical connection or parameter matching requirements, where there are parameter matching requirements between the main device and the auxiliary device. For example, electrical coupling constraints are identified in the following ways: For generators and excitation systems: Identify whether the reference voltage of the excitation system is consistent with the rated voltage of the connected generator; For generators and PSS: Identify whether the input signal of the PSS matches the speed / power signal of the generator; For generators and governors: Identify whether the governor's adjustment parameters match the generator's rated capacity; Electrical coupling constraints are used to verify whether the parameter configurations between dependent simulation devices meet physical constraints.
[0034] For lines and series compensation / high-voltage reactance: Identify whether the compensation degree of the series compensation / high-voltage reactance matches the electrical parameters of the line.
[0035] For example, the system identifies that the "Substation ID" field of the data record for "#1 Generator" (device ID "Gen_001") is "Sub_001", determining that this generator is physically subordinate to "Substation A". Therefore, "Substation A" is the dependent device, "#1 Generator" is the dependent device, and the dependency direction is "Substation A → #1 Generator". The system also identifies that the "Attached Master Device ID" field of the data record for "#1 Generator Excitation System" (device ID "Exc_001") is "Gen_001", determining that this excitation system is physically attached to "#1 Generator". Therefore, "#1 Generator" is the dependent device, "#1 Generator Excitation System" is the dependent device, and the dependency direction is "#1 Generator → #1 Generator Excitation System". Simultaneously, the system identifies an electrical coupling constraint between "#1 Generator" and "#1 Generator Excitation System": the reference voltage of the excitation system must be consistent with the rated voltage of the generator. The system records this constraint as an edge attribute.
[0036] S3: Construct a directed acyclic graph with the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary layer simulation equipment as vertices and the dependencies between simulation equipment as directed edges; wherein, the directed edges point from the dependent equipment to the dependent equipment, the plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary layer simulation equipment is a child node of the main equipment level simulation equipment.
[0037] All the simulation devices obtained from the partitioning are defined as vertices of a directed acyclic graph, specifically including: Plant / station layer vertices: Each plant / station layer simulation device corresponds to a vertex, which serves as the root node of the entire directed acyclic graph. Plant / station layer vertices have no incoming edges (i.e., no other vertices point to plant / station layer vertices), only outgoing edges (plant / station layer vertices point to their subordinate main equipment layer vertices); Main equipment layer vertices: Each main equipment layer simulation device corresponds to a vertex, which is a child node of the plant layer vertex. Main equipment layer vertices have incoming edges (pointed to by the plant layer vertex to which they belong) and outgoing edges (pointing to the subordinate layer vertices attached to them). Subsidiary layer vertices: Each subsidiary layer simulation device corresponds to one vertex, which is a child node of the primary device layer vertex. Subsidiary layer vertices have incoming edges (pointed to by the primary device layer vertex to which they are attached) and no outgoing edges (i.e., no other vertices depend on the subsidiary layer vertex).
[0038] Directed edges represent the dependencies between simulation devices. The specific rule is that a directed edge points from the device that is depended upon to the device that depends upon it. That is, the vertex of the plant layer points to the vertex of the master device layer below it (the plant is the device that is depended upon, and the master device is the device that depends on it); the vertex of the device layer points to the vertex of the subordinate layer attached to it (the master device is the device that is depended upon, and the subordinate device is the device that depends on it).
[0039] In addition to recording the dependency direction, each directed edge also records the following attributes: Dependency Type: Identifies the type of dependency relationship corresponding to this edge. Dependency types include, but are not limited to: "Plant-Main Equipment Ownership Relationship", "Main Equipment-Auxiliary Equipment Dependency Relationship", and "Main Equipment-Auxiliary Equipment Electrical Coupling Relationship".
[0040] Electrical coupling constraints: If there are electrical coupling constraints between the devices corresponding to the edge (such as the reference voltage of the excitation system needing to be consistent with the rated voltage of the generator), the system records the specific content of the constraint as the edge's attribute, which can be called in the verification step after synchronization is completed.
[0041] Using the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary level simulation equipment as vertices, and the dependencies between simulation equipment as directed edges, a directed acyclic graph is constructed, including the following process: All the simulated devices obtained from the partitioning are added to the vertex set. Each vertex contains the following information: vertex ID (device ID of the corresponding simulated device), vertex name (device name of the corresponding simulated device), and vertex level (plant layer / main device layer / subsidiary layer).
[0042] Traverse all dependencies determined in step S2. For each pair of devices with a dependency (dependent device A points to dependent device B), add a directed edge from vertex A to vertex B in the directed acyclic graph. Each directed edge contains at least the following information: start point ID, end point ID, dependency type, and electrical coupling constraints (if any).
[0043] A circular dependency detection process is performed on the constructed directed graph. Specifically, the system performs a depth-first search (DFS) traversal on the directed graph to check for circular dependencies (i.e., starting from a vertex and returning to that vertex along the direction of a directed edge). If a circular dependency is detected, the system outputs an error message and terminates subsequent synchronization operations. Since the dependencies in this invention are determined solely by physical hierarchical relationships (plant to master equipment to auxiliary equipment), the dependency direction always points from the upper layer to the lower layer, and there are no reverse edges from the lower layer to the upper layer; therefore, circular dependencies will not occur. The circular dependency detection step serves as a security verification mechanism to prevent graph structure errors caused by data anomalies.
[0044] S4: Obtain several simulation devices to be synchronized from the simulation computing library to be synchronized, and according to the layer structure to which each simulation device belongs, synchronize the parameter data of the simulation devices to be synchronized to the target simulation computing library in sequence according to the execution order of the parent node before the child node.
[0045] In this embodiment, based on the execution order generated by the directed acyclic graph and its topological sorting, the simulation devices that need to be synchronized are obtained from the simulation computing library to be synchronized (i.e., the source simulation computing library), and the parameter data of each simulation device are synchronized to the target simulation computing library (i.e., the target simulation computing library) in sequence according to the execution order of the parent node before the child node, that is, the order of "from the plant layer simulation device to the main equipment layer simulation device to the auxiliary layer simulation device".
[0046] During the synchronization process, the system first searches the target simulation calculation library for a simulation device that matches the current simulation device to be synchronized. If a matching device exists, an update operation is performed, synchronizing only the changed parameter fields; if no matching device exists, a new addition operation is performed, creating a new simulation device record in the target simulation calculation library and synchronizing all parameter data.
[0047] S4 specifically includes the following steps: Several simulation devices to be synchronized are obtained from the simulation calculation library to be synchronized. According to the layer structure to which each simulation device belongs, the following operations are performed in the order of plant layer simulation devices, main equipment layer simulation devices, and auxiliary layer simulation devices. Search the target simulation calculation library for a simulation device that matches the current device to be synchronized: If a simulation device that matches the current simulation device to be synchronized exists, then the parameter data of the current simulation device to be synchronized is synchronized to the simulation device that matches the current simulation device to be synchronized. In this embodiment, it specifically includes: Each parameter field of the current simulation device to be synchronized in the simulation calculation library is compared with each parameter field of the matching simulation device in the target simulation calculation library. The parameter fields that have changed are identified, and only the parameters of the current simulation device that have changed are synchronized to the simulation device that matches the current simulation device.
[0048] If no simulation device matches the current simulation device to be synchronized, a new simulation device is created in the target simulation calculation library, and all parameter data of the current simulation device to be synchronized in the simulation calculation library are synchronized to the new simulation device.
[0049] Specifically, the simulation is executed sequentially according to the following order: plant-level simulation equipment, main equipment level simulation equipment, and auxiliary level simulation equipment. This includes: First, the system retrieves the plant-level simulation equipment from the simulation calculation library to be synchronized. For each plant simulation equipment to be synchronized, the system searches for a matching plant equipment in the plant layer of the target simulation calculation library. If a matching plant equipment exists, the plant parameters are updated; otherwise, a new plant equipment is created in the target simulation calculation library.
[0050] After the plant / station level synchronization is completed, the simulation equipment (including generators, transformers, lines, buses, etc.) of the master equipment level is retrieved from the simulation calculation library to be synchronized. For each master equipment simulation equipment to be synchronized, the system searches for a matching master equipment in the master equipment layer of the target simulation calculation library. If a matching master equipment exists, the master equipment parameters are updated; otherwise, a new master equipment is created in the target simulation calculation library and assigned to the corresponding plant / station equipment.
[0051] After the master device layer synchronization is completed, the auxiliary layer simulation devices (including excitation systems, PSS, speed governors, series compensation devices, or high-voltage reactors, etc.) are retrieved from the simulation calculation library to be synchronized. For each auxiliary device simulation device to be synchronized, the system searches for a matching auxiliary device in the auxiliary layer of the target simulation calculation library. If a matching auxiliary device exists, the auxiliary device parameters are updated; otherwise, a new auxiliary device is created in the target simulation calculation library and attached to the corresponding master device.
[0052] In one embodiment of the present invention, searching for a simulation device in the target simulation calculation library that matches the current simulation device to be synchronized includes: When the current device to be synchronized is a plant simulation device, extract the plant ID of the current device to be synchronized. The plant ID is a unique identifier for the plant simulation device in the simulation calculation library, used to distinguish different plants.
[0053] In the target simulation calculation library, extract the plant IDs corresponding to the candidate simulation equipment belonging to the plant layer simulation equipment; Compare the plant ID of the device to be synchronized with the plant IDs of each candidate device: If the comparison results show that the plant IDs of the two devices are consistent, the candidate simulation device will be selected as the simulation device that matches the current device to be synchronized.
[0054] If no candidate device with the same plant ID is found in the comparison results, it is determined that there is no plant device in the target simulation calculation library that matches the current device to be synchronized.
[0055] In this embodiment, the plant ID comparison uses an exact match method. Since the plant ID is a unique identifier for plant equipment in the simulation calculation library, it will not be repeated in the same simulation calculation library. Therefore, exact matching can accurately identify the same plant equipment.
[0056] In one embodiment of the present invention, searching for a simulation device matching the current simulation device to be synchronized in the target simulation calculation library further includes: When the current device to be synchronized is a master device layer simulation device or a slave device layer simulation device, extract the simulation device ID and the plant ID to which the simulation device belongs; the simulation device ID is a unique identifier of the device in the simulation calculation library, and the plant ID to which the simulation device belongs identifies the plant to which the device belongs.
[0057] In the target simulation calculation library, extract the simulation device ID and the plant ID to which the simulation device belongs to the candidate simulation device belonging to the main equipment layer simulation device or the auxiliary equipment layer simulation device; For each candidate simulation device, the semantic similarity between the simulation device ID and the plant ID to which the simulation device belongs is calculated. The two semantic similarities are then weighted and fused to obtain the similarity between the current simulation device to be synchronized and the corresponding candidate simulation device.
[0058] Specifically, the semantic similarity is calculated as follows: For the simulation device ID, a character similarity algorithm (such as the Jaro-Winkler algorithm) is used to calculate the similarity between two device IDs; for the plant ID to which the simulation device belongs, the same character similarity algorithm is used to calculate the similarity between two plant IDs. The two similarities are then weighted and fused to obtain the comprehensive similarity between the current simulation device to be synchronized and the candidate simulation device.
[0059] In this embodiment, the similarity weight of the device ID is set to 0.6, and the similarity weight of the plant ID is set to 0.4. This is because the device ID has a higher degree of recognition when distinguishing different devices, while the plant ID serves as an auxiliary matching feature to exclude devices with the same name belonging to different plants. Furthermore, the similarity weights of the device ID and the plant ID can be dynamically adjusted according to the device type or simulation scenario to optimize the matching accuracy.
[0060] Repeat the above calculations to obtain the overall similarity between each candidate simulation device and the current device to be synchronized.
[0061] The highest similarity in the calculation results is taken as the target semantic similarity, and the candidate simulation device corresponding to the target semantic similarity is taken as the target matching device. Compare the target semantic similarity with a similarity threshold: If the target semantic similarity is not less than the similarity threshold, the target matching device is determined to be a simulation device that matches the simulation device to be synchronized.
[0062] In this embodiment, the similarity threshold is set to 0.85. When the target similarity is greater than or equal to 0.85, the two devices are considered to be the same device; when the target similarity is less than 0.85, the two devices are considered to be different devices. This threshold can be adjusted according to the actual application scenario and matching accuracy requirements.
[0063] In one embodiment of the present invention, when the current simulation device to be synchronized is a master layer simulation device or a slave layer simulation device, the dimensions of similarity comparison, in addition to the simulation device ID and the plant ID to which the simulation device belongs, may also include rated parameters and topological adjacency consistency. Using the method described in the above embodiment, for each candidate simulation device, the similarity between the current simulation device to be synchronized and the candidate simulation device is calculated, including the simulation device ID, the plant ID to which the simulation device belongs, the rated parameters, and the topological adjacency consistency. The calculated similarities are then weighted and fused to obtain the similarity between the current simulation device to be synchronized and the corresponding candidate simulation device. Subsequent threshold judgment operations are then performed. Adaptively, the corresponding similarity threshold needs to be adjusted according to the changes in the feature comparison dimensions in this embodiment.
[0064] Specifically, the rated parameters are calculated using normalized difference similarity, and the specific calculation formula is as follows: ; in, The similarity score for the rated parameters; These are the rated parameter values of the equipment in the source simulation calculation library; The rated parameter values corresponding to the candidate devices in the target simulation calculation library; This represents the absolute difference between the parameters at the source and target ends. To take the maximum of the two as the benchmark, the absolute difference is converted into a relative deviation ratio; The values are set to extremely small positive numbers to prevent calculation anomalies caused by a zero denominator. If the rated parameter values of the equipment in the source simulation library are exactly equal to the rated parameter values of the candidate equipment in the target simulation library, the difference is 0, and the score is 1. If the two values differ greatly, with the difference approaching the maximum value, the score approaches 0. By using the larger of the two values as a normalization scale, the absolute deviation is converted into a relative deviation ratio, making the similarity between equipment of different magnitudes comparable.
[0065] In one embodiment of the present invention, when the current simulation device to be synchronized is a master device layer simulation device or a subsidiary device layer simulation device, in addition to the simulation device ID, the plant ID to which the simulation device belongs, the rated parameters, and the consistency of topological adjacency, a hard constraint is added as a prerequisite for similarity comparison. That is, the voltage level of the current simulation device to be synchronized is compared to whether it is consistent with that of the master device layer simulation device or the subsidiary device layer simulation device. If they are inconsistent, it is directly determined that the current simulation device to be synchronized and the candidate simulation device do not belong to the same device, and the subsequent similarity comparison process is no longer performed.
[0066] After synchronizing the parameter data of the device to be simulated to the target simulation computing library, an update step is also included, which specifically includes: Perform parameter validity verification and electrical coupling constraint verification on each simulation device in the target simulation calculation library; If either parameter validity verification or electrical coupling constraint verification fails, the corresponding simulation device in the target simulation calculation library will be restored to its state before synchronization. Parameter validity verification checks whether the parameter values of each simulation device are within a reasonable range; electrical coupling constraint verification checks whether the parameter configurations between devices with electrical coupling relationships meet physical constraints. If either verification fails, the system will restore the corresponding simulation device to its state before synchronization to prevent unusable data from affecting subsequent simulation calculations.
[0067] Specifically, parameter validity verification refers to checking whether the values of each parameter field of each simulation device in the target simulation calculation library are within a preset reasonable range. A pre-built parameter specification library stores the valid value ranges of each parameter for various types of simulation devices. These valid value ranges are determined based on the physical characteristics of the power grid equipment, equipment manufacturing standards, and power grid operation procedures. For each simulation device, the system queries the parameter specification library for the valid value ranges of each parameter corresponding to that type of equipment, based on the device type. Then, it checks each parameter field of the device item by item to determine whether its value falls within the corresponding valid value range. Parameter validity verification specifically includes checking the numerical range, whether different parameters within the same device meet logical conditions, and whether any parameters are missing.
[0068] The electrical coupling constraint verification refers to checking whether the parameter configurations of two devices with an electrical coupling relationship meet the preset physical coupling constraint conditions. Physical coupling constraint conditions: starting from the physical connection and electromagnetic coupling relationship between the devices, it determines whether the parameter configurations of the supporting devices meet physical laws (e.g., checking whether the excitation system reference voltage is equal to the generator rated voltage). Specifically, based on the electrical coupling constraints in the directed edge attributes calculated in S2, the parameter matching between pairs of devices with electrical coupling relationships is checked item by item. For example, the electrical coupling constraints include: Coupling constraint verification between generator and excitation system: Check whether the rated voltage of the generator matches the reference voltage of the excitation system. For example, if the rated voltage of the generator is 13.8kV, then the reference voltage of its matching excitation system should be equal to 13.8kV. Check whether the rated excitation voltage and rated excitation current of the excitation system match the excitation parameters of the generator.
[0069] The coupling constraint verification between the generator and the PSS is performed by checking whether the input signal type of the PSS matches the output signal of the generator. For example, the PSS typically uses the generator's speed deviation or power deviation as the input signal. If the input signal configured for the PSS is inconsistent with the signal type that the generator can provide, the verification will fail.
[0070] In one embodiment of the present invention, if the parameter validity check or electrical coupling constraint check fails, the system restores the corresponding simulation device in the target simulation calculation library to its state before synchronization. Specifically, during the synchronization operation in step S4, the complete parameter state of each simulation device before synchronization is recorded synchronously. The parameter state before synchronization can be stored in a temporary buffer or log file, including the values of all parameter fields of the device in the target simulation calculation library.
[0071] If the verification fails, the system performs the following rollback operation: Based on the verification results, locate the simulation devices that failed the verification. If the parameter validity verification failed, locate the corresponding simulation device; if the electrical coupling constraint verification failed, locate one or both of the devices with abnormal coupling constraints.
[0072] Read the device's parameter status before synchronization from the temporary buffer or log file, and restore all its parameter fields to their values before synchronization.
[0073] For simulation devices that pass verification, their parameter status remains unchanged, and no rollback operation is performed.
[0074] Through the aforementioned rollback mechanism, the system ensures that only devices that pass verification and have usable data are retained in the target simulation computing library, while devices that fail verification are automatically restored to their safe state before synchronization, thereby guaranteeing the overall data availability of the target simulation computing library.
[0075] Please see Figure 2 Based on the same inventive concept as the above embodiments, the present invention also provides a model hierarchical incremental synchronization method apparatus for power grid simulation, comprising at least: The layer structure parsing module is used to parse the simulation model parameter data stored in the simulation calculation library to be synchronized and the target simulation calculation library. According to the electrical connection relationship between power grid equipment, the simulation equipment is divided into the layer structure of plant and substation layer simulation equipment, main equipment layer simulation equipment and auxiliary layer simulation equipment. The dependency determination module is used to determine the dependencies between simulation devices based on the physical subordination and electrical coupling constraints between power grid devices. The directed acyclic graph (DAG) construction module is used to construct a directed acyclic graph with the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary equipment level simulation equipment as vertices and the dependencies between simulation equipment as directed edges. The directed edges point from the dependent equipment to the dependent equipment. The plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary equipment level simulation equipment is a child node of the main equipment level simulation equipment. The data synchronization module is used to obtain several simulation devices to be synchronized from the simulation computing library to be synchronized, and according to the layer structure to which each simulation device belongs, and in accordance with the execution order of parent nodes before child nodes, sequentially synchronize the parameter data of the simulation devices to be synchronized to the target simulation computing library. Specifically, the data synchronization module 04 is configured to execute the following modules: Several simulation devices to be synchronized are obtained from the simulation calculation library to be synchronized. According to the layer structure to which each simulation device belongs, the following operations are performed in the order of plant layer simulation devices, main equipment layer simulation devices, and auxiliary layer simulation devices. Search the target simulation calculation library for a simulation device that matches the current device to be synchronized: If a simulation device that matches the current simulation device to be synchronized exists, then the parameter data of the current simulation device to be synchronized is synchronized to the simulation device that matches the current simulation device to be synchronized. If no simulation device matches the current simulation device to be synchronized, a new simulation device is created in the target simulation calculation library, and all parameter data of the current simulation device to be synchronized in the simulation calculation library are synchronized to the new simulation device.
[0076] In one embodiment, the synchronization module includes a first search unit and a second search unit, which are configured to perform the following process: The first lookup unit is used to extract the plant ID of the current device to be synchronized when the current device to be synchronized is a plant simulation device; In the target simulation calculation library, extract the plant IDs corresponding to the candidate simulation equipment belonging to the plant layer simulation equipment; Compare the plant ID of the device to be synchronized with the plant IDs of each candidate device: If the comparison results show that the plant IDs of the two devices are consistent, the candidate simulation device will be selected as the simulation device that matches the current device to be synchronized.
[0077] The second lookup unit is used to extract the simulation device ID and the plant ID to which the simulation device belongs when the current simulation device to be synchronized is a master device layer simulation device or a slave device layer simulation device; In the target simulation calculation library, extract the simulation device ID and the plant ID to which the simulation device belongs to the candidate simulation device belonging to the main equipment layer simulation device or the auxiliary equipment layer simulation device; For each candidate simulation device, the semantic similarity between the simulation device ID and the plant ID to which the simulation device belongs is calculated between the current simulation device to be synchronized and the candidate simulation device. The two semantic similarities are then weighted and fused to obtain the similarity between the current simulation device to be synchronized and the corresponding candidate simulation device. The highest similarity in the calculation results is taken as the target semantic similarity, and the candidate simulation device corresponding to the target semantic similarity is taken as the target matching device. Compare the target semantic similarity with a similarity threshold: If the target semantic similarity is not less than the similarity threshold, the target matching device is determined to be a simulation device that matches the simulation device to be synchronized.
[0078] Please see Figure 3 Based on the same inventive concept as the above embodiments, the present invention also provides a power grid simulation model-driven scheduling method, comprising at least: S01: Obtain the target simulation calculation library and load the target simulation calculation library into the engineering environment of the power system dispatch simulation analysis platform; wherein, the target simulation calculation library is synchronized based on the model hierarchical incremental synchronization method for power grid simulation described in any of the above embodiments.
[0079] Pre-dispatch planning is one of the core tasks of power grid dispatching and operation. Dispatch and operation personnel need to prepare the power generation plan for the next day (D+1 day) based on the load forecast data, equipment maintenance plan, and new energy output forecast data for the next day (D day) every day (D day), and conduct safety verification of the plan to ensure that the power grid can operate safely and stably in all time periods of the next day.
[0080] S02: Obtain the next day's load forecast data, equipment maintenance plan, and power output forecast data for the target power grid planning area.
[0081] Specifically, the next-day load forecast data refers to the predicted total power load of the power grid for each time period of the next day (usually at 15-minute intervals, totaling 96 time periods throughout the day). Load forecasting is the basis for compiling the day-ahead power generation plan and is obtained from the load forecasting system of the power grid dispatching agency. Dispatching and operation personnel need to determine the output level of generator units for each time period of the next day based on the predicted load. The equipment maintenance plan refers to the power grid equipment (including generator units, transmission lines, transformers, etc.) scheduled to be shut down the next day and their shutdown times, obtained from the maintenance management system of the power grid dispatching agency. The power forecast data is the predicted output of wind power, photovoltaic, and other new energy generator units for each time period of the next day, obtained from the new energy power generation system.
[0082] S03: Based on the load forecast data, equipment maintenance plan and power output forecast data for the next day, define the dispatch simulation calculation job for the next day in the power system dispatch simulation analysis platform.
[0083] Specifically, the system integrates the next day's load forecast data, equipment maintenance plans, and new energy output forecast data into the loaded target simulation calculation library to generate the next day's operating mode profile. The next day's operating mode profile refers to a description of the power grid's operating status at a certain moment (or period) on the next day, including complete information such as the output of each generator unit, the load of each node, and the operational status of each piece of equipment. Based on the generated next day's operating mode profile, the next day's dispatch simulation calculation job is defined in the dispatch simulation analysis platform. The next day's dispatch simulation calculation job includes at least a basic state power flow calculation job and a static security analysis (N-1 interruption check) job. The basic state power flow calculation job is defined in the dispatch simulation analysis platform. This job involves calling the power flow calculation module to calculate the distribution of voltage at each node and power in each branch of the power grid based on the generated next day's operating mode profile. Basic power flow calculation methods such as the Newton-Raphson method and the PQ decomposition method can be used for basic power flow calculation. The static security analysis (N-1 interruption check) job is defined in the dispatch simulation analysis platform. The static security analysis is the N-1 fault check. The N-1 fault check refers to simulating the operating state of a specific component in the power grid (such as a line, transformer, or generator) after it is disconnected due to a fault, based on the ground-state power flow calculation results. It determines whether the power grid can maintain safe and stable operation without branch overload or node voltage exceeding limits, provided that other components are still operating normally. The calculation is performed in the order of "normal (fully connected) + N-1": first, the normal power flow calculation is performed, then the N-1 fault calculation is performed one by one, until the N-1 fault calculation for all selected components is completed. In one embodiment, the system determines the N-1 calculation range according to equipment type, voltage level, and zone. For example, N-1 checks are performed only on lines and transformers with voltage levels of 220kV and above, or only on equipment within a specific area, to improve calculation efficiency.
[0084] S04: Based on the power system dispatch simulation analysis platform, the system performs the next day's dispatch simulation calculation based on the parameter data of the target simulation calculation library, outputting voltage over-limit information for each node and power over-limit information for each branch. Specifically, the system calls the power flow calculation module of the dispatch simulation analysis platform, and performs basic state power flow calculation based on the loaded target simulation calculation library and the generated next day's operating mode profile. If the basic state power flow calculation converges, the system further calls the static security analysis module to perform N-1 switching check calculation. The system simulates each anticipated fault (such as a line disconnection, a transformer disconnection, etc.), calculates the distribution of voltage at each node and power in each branch of the power grid after the fault, and determines whether there are any over-limits. Output simulation calculation results: Node voltage over-limit information: Records of voltage amplitude deviations from the rated voltage allowable range for each node. When the voltage amplitude of a node is lower than the lower voltage limit or higher than the upper voltage limit, the system records the node name, current voltage value, allowable voltage range, and degree of over-limit.
[0085] Branch power over-limit information: This refers to records of active or reactive power exceeding the allowable current carrying capacity or capacity limit for each branch (including lines and transformers). When the power of a branch exceeds its allowable limit, the system records the branch name, current power value, allowable power limit, and degree of over-limit. In one embodiment, the system also stores the power flow calculation results in a historical database for subsequent analysis and traceability.
[0086] S05: Based on the voltage over-limit information of each node and the power over-limit information of each branch, determine the next day's unit output adjustment plan for the target power grid planning area.
[0087] Check for convergence issues in the ground-state power flow calculation. If the ground-state power flow does not converge, it indicates a serious data problem or improper physical configuration in the next day's operating mode section. Output an error message, requiring dispatching personnel to check and correct the operating mode data. If the ground-state power flow converges, further check for node voltage or branch power exceeding limits under the ground-state power flow. If limits are exceeded, the system records the exceeding devices and the degree of exceeding the limits.
[0088] Check the N-1 switching verification results: For each anticipated fault, the system determines whether new limits are exceeded in the power grid after the fault. If a anticipated fault causes other branches or node voltages to exceed limits, the system records the fault and the corresponding limit exceeding information. The unit output adjustment scheme includes the active power output setpoints and reactive power output setpoints for each generator unit in each time period of the following day. The goal of the adjustment scheme is to eliminate the limits exceeding identified in the ground-state power flow and N-1 verification, so that the power grid can meet the safe operation requirements in each time period of the following day.
[0089] This invention provides a hierarchical incremental synchronization method for power grid simulation models, and a scheduling method driven by devices, electronic equipment, storage media, and power grid simulation models. By parsing the parameter data of simulation devices in the simulation calculation library to be synchronized and the target simulation calculation library, this hierarchical incremental synchronization method for power grid simulation models, and a scheduling method driven by devices, electronic equipment, storage media, and power grid simulation models, enables data synchronization operations to be executed sequentially from the plant / station layer, main equipment layer, to auxiliary layers. The process ensures that the dependent device completes synchronization before the dependent device, eliminating the time window of dangling references during synchronization and avoiding simulation errors caused by missing supporting equipment or mismatched parameters. Simultaneously, multi-dimensional feature semantic similarity calculation and weighted fusion are introduced in the device matching stage, effectively improving the recognition accuracy of cross-version devices. In the parameter synchronization stage, changed field identification and incremental synchronization are adopted, avoiding the destruction of local debugging results by full coverage of the entire set of parameters, reducing data transmission volume, and improving synchronization efficiency.
[0090] After synchronization, this invention further performs parameter validity checks and electrical coupling constraint checks on each simulation device in the target simulation calculation library. The electrical coupling constraint check targets two devices with a coupling relationship and checks whether their parameter configurations meet the physical coupling constraint conditions. It can detect abnormal situations where the parameters of a single device are within their respective valid ranges but the matching parameters cannot be matched. When the check fails, the corresponding device is automatically rolled back to the state before synchronization, ensuring the overall availability of the synchronized data. On this basis, this invention further applies the synchronized target simulation calculation library to the day-ahead dispatch scenario of the power grid. By integrating the next day's load forecast, equipment maintenance plan, and new energy output forecast data into the target simulation calculation library to generate the operation mode profile, performing basic state power flow calculation and N-1 switching verification, and generating unit output adjustment schemes based on over-limit information, it ensures that the synchronized data can be directly used for actual dispatch operations.
[0091] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0092] Those skilled in the art will clearly understand that, for convenience and simplicity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0093] One embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the model hierarchical incremental synchronization method for power grid simulation according to any one of the present invention.
[0094] Electronic devices can be computing devices such as desktop computers, laptops, handheld computers, and cloud servers. Electronic devices may include, but are not limited to, processors and memory.
[0095] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the electronic device, connecting all parts of the electronic device through various interfaces and lines.
[0096] Memory can be used to store computer programs. The processor implements various functions of electronic devices by running or executing computer programs stored in memory and accessing data stored in memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, applications required for at least one function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD cards), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0097] One embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the storage medium is located to execute the model hierarchical incremental synchronization method for power grid simulation according to any one of the present invention.
[0098] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0099] One embodiment of the present invention provides a computer program product that, when run on a terminal device, causes the electronic device to execute the model hierarchical incremental synchronization method for power grid simulation described above.
[0100] The above are preferred embodiments of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A hierarchical incremental synchronization method for power grid simulation models, characterized in that, include: The parameter data of each simulation device stored in the simulation calculation library to be synchronized and the target simulation calculation library are analyzed, and according to the electrical connection relationship between the power grid equipment, each simulation device is divided into a layer structure of plant and substation layer simulation device, main equipment layer simulation device and auxiliary layer simulation device. The dependencies between simulation devices are determined based on the physical subordination and electrical coupling constraints between power grid devices; Using the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary level simulation equipment as vertices, and the dependencies between simulation equipment as directed edges, a directed acyclic graph is constructed; wherein, the directed edges point from the dependent equipment to the dependent equipment, the plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary level simulation equipment is a child node of the main equipment level simulation equipment; Several simulation devices to be synchronized are obtained from the simulation computing library to be synchronized. According to the layer structure to which each simulation device belongs, the parameter data of the simulation devices to be synchronized are synchronized to the target simulation computing library in sequence according to the execution order of parent node before child node.
2. The hierarchical incremental synchronization method for power grid simulation as described in claim 1, characterized in that, Several simulation devices to be synchronized are obtained from the simulation computing library to be synchronized. Based on the layer structure of each simulation device and following the execution order of parent nodes executing before child nodes, the parameter data of the simulation devices to be synchronized are sequentially synchronized to the target simulation computing library, including: Several simulation devices to be synchronized are obtained from the simulation calculation library to be synchronized. According to the layer structure to which each simulation device belongs, the following operations are performed in the order of plant layer simulation devices, main equipment layer simulation devices, and auxiliary layer simulation devices. Search the target simulation calculation library for a simulation device that matches the current device to be synchronized: If a simulation device that matches the current simulation device to be synchronized exists, then the parameter data of the current simulation device to be synchronized is synchronized to the simulation device that matches the current simulation device to be synchronized. If no simulation device matches the current simulation device to be synchronized, a new simulation device is created in the target simulation calculation library, and all parameter data of the current simulation device to be synchronized in the simulation calculation library are synchronized to the new simulation device.
3. The hierarchical incremental synchronization method for power grid simulation as described in claim 2, characterized in that, The target simulation calculation library is used to search for simulation devices that match the current device to be synchronized, including: When the current device to be synchronized is a plant simulation device, extract the plant ID of the current device to be synchronized. In the target simulation calculation library, extract the plant IDs corresponding to the candidate simulation equipment belonging to the plant layer simulation equipment; Compare the plant ID of the device to be synchronized with the plant IDs of each candidate device: If the comparison results show that the plant IDs of the two devices are consistent, the candidate simulation device will be selected as the simulation device that matches the current device to be synchronized.
4. The hierarchical incremental synchronization method for power grid simulation as described in claim 2, characterized in that, The process of searching the target simulation calculation library for a simulation device that matches the current device to be synchronized also includes: When the current device to be synchronized is a master device layer simulation device or a slave device layer simulation device, extract the simulation device ID and the plant ID to which the simulation device belongs; In the target simulation calculation library, extract the simulation device ID and the plant ID to which the simulation device belongs to the candidate simulation device belonging to the main equipment layer simulation device or the auxiliary equipment layer simulation device; For each candidate simulation device, the semantic similarity between the simulation device ID and the plant ID to which the simulation device belongs is calculated between the current simulation device to be synchronized and the candidate simulation device. The two semantic similarities are then weighted and fused to obtain the similarity between the current simulation device to be synchronized and the corresponding candidate simulation device. The highest similarity in the calculation results is taken as the target semantic similarity, and the candidate simulation device corresponding to the target semantic similarity is taken as the target matching device. Compare the target semantic similarity with a similarity threshold: If the target semantic similarity is not less than the similarity threshold, the target matching device is determined to be a simulation device that matches the simulation device to be synchronized.
5. The hierarchical incremental synchronization method for power grid simulation as described in claim 2, characterized in that, Synchronizing the parameter data of the currently simulated device to a simulation device that matches the currently simulated device includes: Each parameter field of the current simulation device to be synchronized in the simulation calculation library is compared with each parameter field of the matching simulation device in the target simulation calculation library. The parameter fields that have changed are identified, and only the parameters of the current simulation device that have changed are synchronized to the simulation device that matches the current simulation device.
6. The hierarchical incremental synchronization method for power grid simulation as described in claim 1, characterized in that, After synchronizing the parameter data of the device to be simulated to the target simulation computing library in sequence, the method further includes: Perform parameter validity verification and electrical coupling constraint verification on each simulation device in the target simulation calculation library; If the parameter validity check or electrical coupling constraint check fails, the corresponding simulation device in the target simulation calculation library will be restored to its state before synchronization.
7. A hierarchical incremental synchronization method device for power grid simulation, characterized in that, include The layer structure parsing module is used to parse the simulation model parameter data stored in the simulation calculation library to be synchronized and the target simulation calculation library. According to the electrical connection relationship between power grid equipment, the simulation equipment is divided into the layer structure of plant and substation layer simulation equipment, main equipment layer simulation equipment and auxiliary layer simulation equipment. The dependency determination module is used to determine the dependencies between simulation devices based on the physical subordination and electrical coupling constraints between power grid devices. The directed acyclic graph (DAG) construction module is used to construct a directed acyclic graph with the plant-level simulation equipment, the main equipment level simulation equipment, and the auxiliary equipment level simulation equipment as vertices and the dependencies between simulation equipment as directed edges. The directed edges point from the dependent equipment to the dependent equipment. The plant-level simulation equipment is the root node, the main equipment level simulation equipment is a child node of the plant-level simulation equipment, and the auxiliary equipment level simulation equipment is a child node of the main equipment level simulation equipment. The data synchronization module is used to obtain several simulation devices to be synchronized from the simulation computing library to be synchronized, and according to the layer structure to which each simulation device belongs, and in accordance with the execution order of parent node before child node, synchronize the parameter data of the simulation devices to be synchronized to the target simulation computing library in sequence.
8. A scheduling method driven by a power grid simulation model, characterized in that, include: Obtain the target simulation calculation library and load the target simulation calculation library into the engineering environment of the power system dispatch simulation analysis platform; wherein, the target simulation calculation library is synchronized based on the model hierarchical incremental synchronization method for power grid simulation as described in any one of claims 1-6; Obtain the next day's load forecast data, equipment maintenance plan, and power output forecast data for the target power grid planning area; Based on the load forecast data, equipment maintenance plan and power output forecast data for the next day, define the dispatch simulation calculation job for the next day in the power system dispatch simulation analysis platform; Based on the power system dispatch simulation analysis platform, the next day's dispatch simulation calculation operation is simulated according to the parameter data of the target simulation calculation library, and the voltage over-limit information of each node and the power over-limit information of each branch are output. Based on the voltage over-limit information of each node and the power over-limit information of each branch, determine the next day's unit output adjustment plan for the target power grid planning area.
9. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; wherein, when the processor executes the computer program, it implements the model hierarchical incremental synchronization method for power grid simulation as described in any one of claims 1-6.
10. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to perform the model hierarchical incremental synchronization method for power grid simulation as described in any one of claims 1-6.