Multi-level power grid AGC joint closed-loop test scenario construction method, system and related devices

By constructing a multi-level power grid AGC joint closed-loop test scenario and utilizing a combination of the RTU simulation service model and the power grid simulation service model, the model duplication and data interaction issues in the multi-level power grid AGC joint test were resolved, plug-and-play testing and efficient data interaction were achieved, and the simulation accuracy and efficiency of power grid regulation were improved.

CN119813221BActive Publication Date: 2025-09-16CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411860251.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-09-16
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

In the existing technology, the joint testing of multi-level power grid AGC has problems such as model duplication, model conversion and boundary model processing. It cannot effectively solve the problems of massive control instruction concurrency and data interaction during the joint simulation of multi-level power grid AGC control models, and the existing test system cannot achieve plug-and-test.

Method used

Construct a multi-level power grid AGC joint closed-loop test scenario. Through the combination of RTU simulation service model, power grid simulation service model and plant simulation service model, and using the multi-level power grid model data conversion engine, including the AGC control model unified conversion module, the AGC control model and power grid model matching module, and the equivalent conversion module of the power grid boundary model at all levels, the generation of multi-level power grid AGC joint test scenario and data interaction are realized.

Benefits of technology

It improves the accuracy and computational efficiency of simulation, simplifies the AGC closed-loop control test process, realizes plug-and-play testing of multi-level power grid AGC joint testing, enhances the speed and flexibility of system data interaction, and meets the simulation requirements of power grid regulation and operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119813221B_ABST
    Figure CN119813221B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and related devices for constructing a multi-level power grid AGC joint closed-loop test scenario, belonging to the field of power grid simulation technology. The method includes: constructing an RTU simulation service model for each power grid according to the level and characteristics of the interconnected multi-level power grid under test; simulating the operating characteristics of the real power grid according to the calculation results to obtain the power grid simulation service model; constructing a plant simulation sample including the model, data, point table and channel of the multi-level power grid, classifying the data of the entire network through the multi-level power grid model data conversion engine, and building a plant simulation service model; building a test verification platform and a test system, combining the RTU simulation service model, the multi-level power grid simulation service model and the plant simulation service model as needed, and constructing a multi-level power grid AGC joint closed-loop test scenario; and realizing multi-level power grid AGC joint closed-loop test. The method is used to solve the problem of concurrency of massive AGC control instructions in multi-level power grids and the problem of building and data interaction between multi-level power grid AGC and simulation power grid models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power grid simulation, and in particular relates to a method, system and related devices for constructing a multi-level power grid AGC joint closed-loop test scenario. Background Art

[0002] The restructuring of new power systems is increasing the pressure on grid control. Reduced grid inertia is making frequency and voltage regulation more frequent and difficult. Grid control objectives are becoming more extensive, control objects are becoming more diverse and have significantly different characteristics, and control strategies are becoming more complex, placing higher demands on dispatching automation systems. Automatic Generation Control (AGC) software is a core component of power dispatching automation systems and plays a vital role in improving power quality and ensuring grid security. New power systems place even higher demands on automatic control software, necessitating detailed AGC testing to strengthen automatic control software risk prevention and control capabilities and ensure the safe and stable operation of large power grids. Summary of the Invention

[0003] In order to solve the problems existing in the prior art, the present invention proposes a method, system and related devices for constructing a multi-level power grid AGC joint closed-loop test scenario. The method is used to solve the problem of concurrency of massive AGC control instructions in multi-level power grids and the problem of building and data interaction between multi-level power grid AGC and simulation power grid models.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] In a first aspect, the present invention provides a method for constructing a multi-level power grid AGC joint closed-loop test scenario, comprising:

[0006] Build an RTU simulation service model for each power grid based on the level and characteristics of the interconnected multi-level power grid being tested;

[0007] Perform power flow and frequency calculations based on the full-grid model data and simulation events, simulate the actual grid operation characteristics based on the calculation results, and obtain a grid simulation service model; based on the composition of the multi-level grid, perform data splicing of the grid simulation service model to obtain a multi-level grid simulation service model;

[0008] Construct a plant simulation sample that includes multi-level power grid models, data, point tables, and channels. Use the multi-level power grid model data conversion engine to classify the entire network data and build a plant simulation service model.

[0009] Build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models, and plant simulation service models as needed, and construct a multi-level power grid AGC joint closed-loop test scenario;

[0010] Each service obtains scenario sample data in sequence as needed, and the multi-level power grid AGC issues control instructions. The power grid simulation and plant simulation service models process the control instructions and feedback the power grid currents at all levels to verify the accuracy of the AGC instructions and realize the joint closed-loop testing of the multi-level power grid AGC.

[0011] As a further improvement of the present invention, the RTU simulation service model is constructed for each power grid according to the level and characteristics of the measured interconnected multi-level power grid, specifically including: each RTU simulation service model reads the corresponding power grid data point table and channel, obtains the matching relationship between each measurement data ID, data transmission channel, data name and data value, and then establishes a data transmission model;

[0012] Among them, each RTU simulation service model is responsible for transmitting the control instructions and flow data required by this level of the power grid; when the AGC issues a control instruction, each RTU simulation service model corresponds to a FE device, and parses and transmits the control instructions issued by the AGC of this level of the power grid; when the simulated power grid calculates the power flow of the entire network, the RTU matches the power flow data of the entire network and the required transmission measurement data through the measurement ID, and uploads the measurement data of this level of the power grid.

[0013] As a further improvement of the present invention, the data of the power grid simulation service model is spliced ​​according to the composition of the multi-level power grid to obtain the power grid simulation service model, including:

[0014] Obtain grid model data at all levels of the actual power grid. Other grid models related to the dispatching grid at this level exist in the grid model at this level in the form of single-ended devices such as equivalent units or equivalent loads. Based on the network topology analysis method, identify boundary plants, equipment and their jurisdiction units, restore the boundary equivalent equipment to double-ended equipment, and splice the dispatching data of all levels of the power grid simulation service model to obtain a complete multi-level power grid full-network data model; and establish the association relationship between equivalent equipment and restored equipment.

[0015] As a further improvement of the present invention, the construction of a plant simulation sample including a multi-level power grid model, data, point table, and channels includes:

[0016] The plant simulation service model includes unit characteristic simulation, plant and master station closed-loop simulation, and plant and master station abnormal event simulation. Unit characteristic simulation simulates the ramping process of various units following master station instructions based on the unit ramp rate parameters in the AGC model. Plant and master station closed-loop simulation uses the front-end and RTU to receive master station AGC instructions in real time and upload plant and station control signals and power grid measurement data in real time.

[0017] Analyze the AGC units associated with the PLC, and then analyze and match the AGC units with the grid-side units for power regulation and interaction with the grid simulation;

[0018] Exchange network-wide flow data and simulation events through the message bus;

[0019] Based on the models and data of the multi-level power grid generated by power grid simulation, the AGC control model provided by the AGC software of the power grid at all levels, and the full-point table and full-channel data transmission model involving data communication provided by the dispatching automation system of the power grid at all levels, a plant simulation sample is constructed.

[0020] As a further improvement of the present invention, the multi-level power grid model data conversion engine includes an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for each level of power grid boundary model;

[0021] The AGC control model unified conversion module is used to read the AGC control models of all levels of power grids. The AGC control models include the AGC device model and the AGC measurement model. The AGC device model includes the AGC plant, AGC controller, and AGC unit. The measurement model refers to the correlation between the AGC device model and the data it needs to transmit. The AGC measurement model regenerates the AGC plant, PLC, and unit model IDs of all levels of power grids, as well as the device IDs in the measurement model, based on each power grid region number.

[0022] The AGC control model and grid model matching module is used to establish the association between the AGC model and the grid model based on the unified conversion of the AGC model and the grid model data provided by the grid simulation; set the AGC equivalent unit flag and the equivalent unit group corresponding to each AGC unit;

[0023] The equivalent conversion module of the boundary models of the power grids at all levels is used to restore the data of the power flow calculation results of the entire network to the boundary models of the power grids at all levels for data transmission.

[0024] As a further improvement of the present invention, the AGC control model unified conversion module is specifically used to assign different regions to power grids at all levels in the preparation stage of model construction, and replace the original region codes with binary conversion to generate a unified conversion AGC model for the entire network; when receiving control instructions during the test process, the RTU simulation service model provides the region codes and instruction object IDs of the power grids at all levels, and the plant simulation generates a converted ID, which is then matched with the unified conversion AGC model for the entire network during model construction to locate the equipment that needs adjustment.

[0025] As a further improvement of the present invention, the AGC control model and power grid model matching module is specifically used in the model preparation stage. When there is a many-to-one relationship, this flag takes effect, and the AGC unit immediately creates an equivalent unit group and adds all units associated with it on the power grid side; in the testing stage, after the plant simulation receives the AGC control instruction, if the equivalent unit flag of the AGC unit obtained after matching the PLC is 0, it is a conventional unit instruction, and the PLC power is directly assigned to the corresponding AGC conventional unit, and then the one-to-one conventional units on the power grid side are matched to interact with the power grid simulation; if the equivalent unit flag of the AGC unit obtained after matching the PLC is 1, it is a new energy equivalent unit instruction, and the power is evenly distributed or allocated to each power grid side unit according to the many-to-one relationship or according to the current power ratio, and transmitted to the power grid simulation, and the power of the equivalent unit group is accumulated and uploaded when the power grid measurement data is fed back, thereby realizing the fusion of the AGC model and the power grid model;

[0026] As a further improvement of the present invention, the equivalent conversion module of the boundary model of the power grid at each level is specifically used to obtain the interconnected large power grid model at each level by converting the single-ended equivalent equipment of the power grid at each level into double-ended equipment when generating the whole-network model data sample, and perform unified power flow calculation. The equivalent conversion module of the boundary model of the power grid at each level is constructed based on the matching model of the single-ended equipment of the power grid at each level and the double-ended equipment of the multi-level power grid, including the single-ended equipment ID, the double-ended equipment ID and the equivalent endpoint number; after the power grid simulation whole-network power flow calculation is completed in the test phase, the multi-level power grid double-ended equipment is subjected to hierarchical data processing, the plant simulation service model receives the whole-network power flow data and replaces the ID of the double-ended equipment with the equivalent single-ended equipment model ID of the power grid boundary at each level, and the single-ended equipment data value takes the negative or positive value of the double-ended equipment data value according to whether the original single-ended equivalent model is the head end or the end end of the double-ended equipment.

[0027] As a further improvement of the present invention, the test verification platform and test system are constructed, various services are combined as needed, and a multi-level power grid AGC joint closed-loop test scenario construction system is constructed, including:

[0028] The test system is directly copied and transplanted from the actual power grid dispatching automation system to build a virtual mirror of the actual dispatching automation system;

[0029] According to the multi-level grid structure and test requirements to be tested, the required RTU simulation service model, multi-level grid simulation service model and plant simulation service model are combined; specifically including:

[0030] Create an RTU simulation service model for each unit according to the number of power grids in the multi-level power grid. The RTU simulation service model transmits data with the test system FE device through each power grid point table and channel model.

[0031] Provides a power grid simulation service model containing model data of multi-level power grids, as well as a plant simulation service model containing models, data, point tables, and channels of multi-level power grids;

[0032] All service models are built in a microservice manner, do not interfere with each other, and can be deployed, maintained, and upgraded separately; all data within the test verification platform are communicated using a message bus, and each service agrees on a message topic to send and receive data. The message topic includes the service name and scenario number, and data can only be transmitted between two services that publish / subscribe to the same message topic.

[0033] As a further improvement of the present invention, each service obtains scenario sample data in sequence as needed. The power grid simulation first performs network-wide flow calculation and frequency calculation to simulate the operation of the power grid, and transmits the network-wide flow data to the plant simulation service model through the message bus, including:

[0034] The plant simulation service model obtains the full-network power flow data including all levels of grid boundaries through the grid boundary model conversion module at each level, and transmits it to all RTU simulation service models through the message bus. The RTU simulation service models at each level compare the full-network power flow data through the data transmission model, retaining only the measurement data that matches the grid point table at each level and transmitting it to the test system.

[0035] The test system forwards the data to the AGC software. After joint calculation, the AGC software at all levels generates AGC control instructions for the power grid at all levels. The instructions are then passed to the RTU simulation service model via the FE device. The RTU simulation service model then passes the control instructions to the plant simulation service model and also passes the power grid region code to the plant simulation service model.

[0036] The plant simulation service model, based on the unified conversion module of the AGC control model, parses control instructions to determine the AGC unit corresponding to the control instruction. The AGC control model and grid model matching module then determine the grid-side unit corresponding to the AGC unit. The plant simulation service model assigns control instruction adjustment target values ​​to each grid-side unit based on unit attributes such as unit ramp speed and unit active power upper and lower limits. The grid-side unit adjustment instructions are then sent to the grid simulation service model via the message bus.

[0037] After receiving the unit adjustment instructions, the power grid simulation service model performs power flow calculation and frequency calculation to verify the accuracy of the AGC instructions, and returns the power flow results of the entire network to the plant simulation service model, thereby realizing multi-level power grid AGC joint closed-loop testing.

[0038] In a second aspect, the present invention provides a multi-level power grid AGC joint closed-loop test scenario construction system, comprising:

[0039] The RTU simulation service model building module is used to build an RTU simulation service model for each power grid according to the level and characteristics of the interconnected multi-level power grid under test;

[0040] The power grid simulation service model construction module is used to perform power flow and frequency calculations based on the full network model data and simulation events, simulate the actual power grid operation characteristics based on the calculation results, and obtain the power grid simulation service model; according to the composition of the multi-level power grid, the data of the power grid simulation service model is spliced ​​to obtain a multi-level power grid simulation service model;

[0041] The plant simulation service model building module is used to build plant simulation samples that include multi-level power grid models, data, point tables, and channels. It uses the multi-level power grid model data conversion engine to classify the entire network data and build the plant simulation service model.

[0042] Closed-loop test scenario construction module, used to build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models, and plant simulation service models as needed to build a multi-level power grid AGC joint closed-loop test scenario;

[0043] The closed-loop test module is used for each service to obtain scenario sample data in sequence as needed. The multi-level power grid AGC issues control instructions. The power grid simulation and plant simulation service models process the control instructions and feedback the power grid currents at all levels to verify the accuracy of the AGC instructions and realize the joint closed-loop test of the multi-level power grid AGC.

[0044] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for constructing a multi-level power grid AGC joint closed-loop test scenario is implemented.

[0045] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for constructing a multi-level power grid AGC joint closed-loop test scenario.

[0046] In a fifth aspect, the present invention provides a computer program product, which includes computer instructions, and the computer instructions instruct a computer to execute the multi-level power grid AGC joint closed-loop test scenario construction method.

[0047] The beneficial effects of the present invention compared to the prior art are:

[0048] The present invention proposes a method for constructing a multi-level power grid model data conversion engine for multi-level power grid AGC joint testing, including an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for each level of power grid boundary model. This method solves the model duplication problem, the conversion problem between the actual power grid physical model and the AGC control model, and the multi-level power grid boundary model processing problem in the multi-level power grid AGC control model joint simulation, thereby improving the accuracy and computational efficiency of the simulation. By constructing a multi-level power grid AGC joint test scenario generation method including an RTU simulation service model, a multi-level power grid model data power grid simulation service model, and a multi-level power grid model, data, point table, and channel plant simulation service model test verification platform, the interactive simulation of the multi-level power grid "dispatching-plant-power grid" is realized in combination with the test system, eliminating the need to build a multi-level power grid dispatching automation system data interface, simplifying the AGC closed-loop control test process, providing a "plug and test" simulation service model for the multi-level power grid AGC joint testing, and building a digital full-process deduction environment for power grid control operation simulation and software quality management. Based on the multi-level power grid AGC joint closed-loop test data interaction method, each service obtains scenario sample data in turn as needed. The power grid simulation first performs full-network flow and frequency calculations to simulate power grid operation conditions, and transmits the full-network flow data to the plant simulation service model through the message bus. The message bus is used for data interaction, realizing real-time concurrent transmission of massive measurement data and control commands between the network-level and provincial power systems, and improving the speed and flexibility of system data interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following introduction is made to the drawings of the embodiments of the present invention or the related technical solutions in the prior art. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0050] Figure 1 A flowchart of the multi-level power grid AGC joint closed-loop test scenario provided by the present invention;

[0051] Figure 2 The unified conversion logic of the D5000 platform ID provided by the present invention;

[0052] Figure 3 AGC control model provided by the present invention and a matching model of the power grid model;

[0053] Figure 4 AGC control model provided by the present invention and a matching model of the power grid model;

[0054] Figure 5 A system for constructing a multi-level power grid AGC joint closed-loop test scenario provided by the present invention;

[0055] Figure 6 The present invention provides a multi-level power grid AGC joint closed-loop test data interaction method;

[0056] Figure 7 A multi-level power grid AGC joint closed-loop test scenario construction device provided by the present invention;

[0057] Figure 8 This is a schematic diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0058] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided for ease of explanation only and do not limit the order of the steps. The order of execution of the steps in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0059] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0060] Explanation of abbreviations and key terms:

[0061] AGC (Automatic Generation Control): Automatic generation control, whose main function is to control the output of generators in the power system to maintain the frequency stability of the power system.

[0062] ACE (Area Control Error): Area control error is a key concept in automatic generation control (AGC). The goal of the AGC system is to adjust generator output to accommodate changes in load and fluctuations in unit output, ensuring power system frequency stability and balanced power exchange on inter-area tie lines. ACE measures the difference between the actual output of a control area and the planned output.

[0063] SCADA (Supervisory Control and Data Acquisition) is a computer-based production process control and dispatch automation system. It is primarily used to monitor and control power grid equipment, performing functions such as data acquisition, equipment control, measurement, parameter adjustment, and various signal alarms.

[0064] FE (Front-End Server) device: A front-end server device, a key component of power system automation and smart grids. As part of the power grid dispatching and control system, the front-end server is responsible for real-time monitoring of the power system's operating status and data, organizing and transmitting this data to the dispatch center to support power system operation and management.

[0065] RTU simulation service model: The RTU simulation service model is used to simulate the remote terminal unit device of an actual power grid. It uses telecontrol standards and common protocols such as IEC104, IEC101, and DNP to communicate with the master station under test. It uses messages or files to communicate with the simulated power grid. It forwards remote signaling information such as switches, circuit breakers, and protection devices, as well as telemetry data such as voltage, current, active and reactive power factor, between the master station and the simulated power grid. It also processes remote control, remote adjustment, and setpoint commands issued by the master station to simulate various normal and abnormal responses.

[0066] Multi-level power grid: A complex power system composed of power grids at different dispatching levels, including national dispatching, network dispatching, provincial dispatching and local dispatching.

[0067] Message bus: A message bus is a message middleware system based on a subscription / publishing mechanism, providing reliable one-to-one, one-to-many, and other message transmission methods for applications.

[0068] Under a hierarchically distributed control and management system, AGC employs a coordinated control model. Actual power grids cannot sustain frequent testing and verification of control technologies, necessitating the support of multi-level grid AGC joint closed-loop verification technology. Existing support systems require independent data interfaces with multi-level grid dispatching automation systems. The close interaction between the AGC systems at each level complicates test scenario construction, making "plug-and-test" impossible. Furthermore, due to the decentralization of dispatching authority from some upper-level grids, upper-level AGCs no longer assume responsibility for specific unit equipment adjustment strategies for lower-level AGCs, but instead are solely responsible for calculating overall ACE target values ​​for the lower-level grids. Each grid level must analyze its own operating status and calculate and issue its own AGC control commands. However, joint AGC control model simulations using the same rules for each grid level present challenges in multi-level grid joint AGC testing, including model duplication, model conversion, and boundary model handling. Existing test systems only establish interfaces between the upper-level grid dispatching automation system and the simulated grid, failing to address the massive number of AGC control commands concurrently generated across multiple grids under this model, as well as the challenges of model construction and data exchange between the multi-level AGC and simulated grids.

[0069] like Figure 1 As shown, the first object of the present invention is to provide a method for constructing a multi-level power grid AGC joint closed-loop test scenario, comprising the following steps:

[0070] Build an RTU simulation service model for each power grid based on the level and characteristics of the interconnected multi-level power grid being tested;

[0071] Perform power flow and frequency calculations based on the full-grid model data and simulation events, simulate the actual grid operation characteristics based on the calculation results, and obtain a grid simulation service model; based on the composition of the multi-level grid, perform data splicing of the grid simulation service model to obtain a multi-level grid simulation service model;

[0072] Construct a plant simulation sample that includes multi-level power grid models, data, point tables, and channels. Use the multi-level power grid model data conversion engine to classify the entire network data and build a plant simulation service model.

[0073] Build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models, and plant simulation service models as needed, and construct a multi-level power grid AGC joint closed-loop test scenario;

[0074] Each service obtains scenario sample data in sequence as needed, and the multi-level power grid AGC issues control instructions. The power grid simulation and plant simulation service models process the control instructions and feedback the power grid currents at all levels to verify the accuracy of the AGC instructions and realize the joint closed-loop testing of the multi-level power grid AGC.

[0075] The principle of the above technical solution is:

[0076] Based on the level and characteristics of the interconnected multi-level grid under test, a corresponding RTU (remote terminal unit) simulation service model is constructed for each grid. This step ensures that the characteristics and behavior of each grid are accurately simulated in the simulation environment. Full-grid model data and simulation events are used to perform power flow and frequency calculations, simulating the operational characteristics of a real grid. These calculation results are used to construct a grid simulation service model that reflects the dynamic behavior of the grid under various conditions. Based on the composition of the multi-level grid, the data of each grid simulation service model is combined to form a complete multi-level grid simulation service model. This step ensures that the behavior of the entire multi-level grid is fully simulated in the simulation environment. A plant simulation sample is constructed, including the multi-level grid model, data, point tables, and channels. The multi-level grid model data conversion engine is used to classify the full-grid data. This step provides the necessary data and model support for plant simulation. A test verification platform and test system are established, combining RTU simulation service models, multi-level grid simulation service models, and plant simulation service models as needed to construct a multi-level grid AGC joint closed-loop test scenario. In the test scenario, each service sequentially acquired scenario sample data as needed. The multi-level grid AGC issued control instructions, and the grid simulation and substation simulation service models processed the control instructions and provided feedback on the grid power flow at each level. This step verified the accuracy of the AGC instructions and achieved a joint closed-loop test of the multi-level grid AGC.

[0077] This method can fully simulate the operating characteristics and behavior of multi-level power grids, including changes in key parameters such as power flow and frequency. This helps to more accurately evaluate the performance and effectiveness of the AGC system. By combining different simulation service models on demand, a variety of test scenarios can be constructed to meet different testing needs. This improves the flexibility and applicability of the test. This method uses simulation technology to complete a large number of tests in a short period of time, improving testing efficiency. At the same time, simulation testing can also avoid potential risks to the actual power grid. Through precise simulation calculations and model splicing, this method can simulate operating conditions similar to those of the actual power grid. This helps to more accurately verify the accuracy and effectiveness of AGC instructions. This method can be expanded and updated as the power grid develops and changes to adapt to new testing needs and technical requirements.

[0078] As a further improvement, the present invention proposes a multi-level power grid model data conversion engine construction method for multi-level power grid AGC joint testing, including an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for each level of power grid boundary model.

[0079] As a further improvement, the present invention proposes a multi-level power grid AGC joint test scenario generation method by constructing a test verification platform including an RTU simulation service model, a power grid simulation service model of multi-level power grid model data, and a plant simulation service model of models, data, point tables, and channels, and combining the test system to realize the interactive simulation of multi-level power grid "dispatching-plant-grid".

[0080] As a further improvement, the present invention proposes a multi-level power grid AGC joint closed-loop test data interaction method. Each service obtains scene sample data in turn as needed. The power grid simulation first performs full-network flow calculation and frequency calculation to simulate the power grid operation status, and transmits the full-network flow data to the plant simulation service model through the message bus.

[0081] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0082] Figure 1 Construct a flow chart for a multi-level power grid AGC joint closed-loop test scenario. The multi-level power grid AGC joint closed-loop test scenario consists of a test system and a test verification platform. The method includes the following steps:

[0083] Step (1) constructs the corresponding RTU simulation service model according to the characteristics of each multi-level power grid; specifically includes:

[0084] In the above steps, the multi-level power grid AGC joint closed-loop test scenario consists of a test system and a test verification platform. The test system is a virtual mirror of the actual power grid dispatching automation system, used to receive and analyze the grid operating status (measurement data) and issue control instructions. The test verification platform is a simulated physical power grid, used to simulate the operating characteristics of the actual power grid. The data flow modules involved in AGC services in the actual power grid dispatching automation system include AGC software, the SCADA system, FE devices, and RTU devices. The RTU device connects the dispatching automation system to the actual physical power grid substation. Both the FE and RTU devices are data forwarding devices, so data coupling points are set up between the FE and RTU devices. The FE device remains in the virtual mirror of the actual power grid dispatching automation system. The test verification platform creates a simulation service model for the RTU device to simulate its service functions. Data is exchanged with the FE via the 104 protocol, connecting the test system and the simulated physical power grid.

[0085] In the above steps, an RTU simulation service model is constructed for each grid based on the level and characteristics of the interconnected multi-level grid being measured. For example, in a two-level grid and provincial control system, where one grid controller manages n provincial controllers, 1+n RTU simulation service models are required. Each RTU simulation service model accesses the corresponding grid data point table and channel to establish a data transmission model, specifically matching the ID, data transmission channel, data name, and data value of each measurement data to be transmitted. Each RTU simulation service model is responsible for transmitting the control instructions and power flow data (measurement data) required by its own grid level. When the AGC software issues control instructions, each RTU simulation service model corresponds to a specific FE device and therefore only parses and transmits control instructions issued by the AGC for its own grid level. When the simulated grid calculates the global power flow, the RTU matches the global power flow data with the required measurement data using the measurement ID. Since each RTU only establishes a data transmission model for its own grid level, it can only match and transmit measurement data for its own grid level and cannot match measurement data from other grids. Therefore, it only uploads measurement data for its own grid level, avoiding data redundancy that reduces data transmission efficiency.

[0086] Step (2) constructs a power grid simulation sample containing a multi-level power grid model and data, and builds a power grid simulation service model.

[0087] In these steps, the power grid simulation service model performs power flow and frequency calculations based on network-wide model data and simulation events, simulating the operational characteristics of a real power grid. Simulation events include generator active power regulation, switch opening and closing, and other events that alter the simulated grid's operational state. The power grid simulation service model exchanges network-wide power flow data and simulation events via a message bus.

[0088] In the above steps, the entire network model data is spliced ​​based on the composition of the selected multi-level power grid. The grid model data of each level of the actual power grid is obtained. Other grid models related to the dispatching grid at this level exist in the grid model at this level in the form of single-ended devices such as equivalent units or equivalent loads. Based on the network topology analysis method, the boundary plants, equipment and their jurisdiction units are identified, and the boundary equivalent equipment is restored to two-ended devices such as lines or transformers. The data of the dispatching at all levels is automatically spliced ​​to obtain a complete multi-level power grid full network data model. At the same time, the association relationship between the equivalent equipment and the restored equipment is established to prepare for the subsequent upload of the corresponding measurement data to the grid dispatching automation system at all levels.

[0089] Step (3) constructs a plant simulation sample that includes a multi-level power grid model, data, point table, and channel, classifies the entire network data through a multi-level power grid model data conversion engine, and builds a plant simulation service model.

[0090] In the above steps, the plant simulation service model includes unit characteristic simulation, closed-loop simulation between the plant and the master station (dispatching automation system), and plant abnormal event simulation. Unit characteristic simulation, based on the unit ramp rate parameters in the AGC model, simulates the ramping process of various units following master station commands. Closed-loop simulation between the plant and the master station utilizes the front-end and RTU, enabling real-time reception of AGC commands from the master station. The plant simulation service model also needs to upload internal plant control signals and grid measurement data, such as AGC activation and deactivation signals and PLC power regulation limits. The AGC software uses a control model built using general AGC rules to issue control commands, which cannot be directly linked to the simulated power grid. After receiving the AGC commands at the RTU of the test verification platform, the plant simulation service model must parse and process the commands. The AGC commands control the plant controller (PLC). The plant simulation service model must parse the AGC units associated with the PLC and then match the parsed AGC units to the grid-side units for power regulation, interacting with the grid simulation. The plant and station abnormal event simulation can simulate events such as abnormal unit ramping, abnormal signal transmission, and abnormal master station instruction tracking, to verify the anti-error capability of the master station AGC. The plant and station simulation service model interacts with the entire network flow data and simulation events through the message bus. The plant and station simulation service model constructs a plant and station simulation sample based on the multi-level power grid model and data generated by the power grid simulation, the AGC control model provided by the AGC software of each level of the power grid, and the full-point table and full-channel data transmission model involving data communication provided by the dispatching automation system of each level of the power grid. Data transmission model reuse step (1) The data transmission model established by the RTU simulation service model is simply a direct combination of the data transmission models of the power grids at all levels into a full-network data transmission model on the plant and station simulation service model side to support full-network data interaction.

[0091] In the above steps, there are model conversion issues between the actual power grid physical model and the AGC control model. Specifically, the IDs and master-slave structures of the same device modeled on the AGC side and the grid side within the power plant differ. For example, the grid-side modeled generator set is directly associated with the power plant. AGC modeling can be divided into two scenarios: one in which a conventional generator set is associated with a PLC, which is then associated with the power plant; the other in which several new energy generator sets are collectively equivalent to a single AGC-equivalent generator set, which is then associated with the PLC and then with the power plant. In either case, during the AGC modeling process, each device ID has its own set of rules and cannot be directly matched with the grid-side model. Furthermore, the IDs of the AGC-side modeling at all levels of the power grid are based on the same rules. After ID parsing, each device record number starts at 1. This leads to ID duplication during data exchange required for multi-level power grid AGC joint testing. The power plant simulation service model serves as an intermediary between the full-network power grid simulation and the RTU simulation service models at all levels of the power grid. A multi-level power grid model data conversion engine is constructed to classify and match full-network model data, ensuring accurate identification and transmission of data at all levels of the power grid.

[0092] Among them, the multi-level power grid model data conversion engine includes an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for power grid boundary models at all levels.

[0093] The AGC control model unified conversion module reads the AGC control model of each level of the power grid. The AGC control model includes the AGC device model and the AGC measurement model. Figure 2 The D5000 platform implements unified ID conversion logic. The AGC device model includes the AGC plant, AGC controller (PLC), and AGC units. The measurement model refers to the mapping between the AGC device model and the data it needs to transmit. For example, the AGC unit measurement model includes the AGC unit active power value, AGC unit assembly status, and AGC unit commissioning and decommissioning status. Based on each grid region code, the AGC plant, PLC, and unit model IDs for each grid level, as well as the device IDs in the measurement model, are regenerated. For grids whose dispatching automation systems utilize the D5000 platform, the model ID is 8 bytes long and is broken down into a 2-byte table number, a 2-byte domain number, a 1-byte region number, and a 1-byte record number. Due to the universal modeling rules within the AGC software, the region number byte of the original AGC device model ID is always 0. This makes it difficult to distinguish the specific grid control object from the control instructions issued by each AGC during multi-level grid coordination. Therefore, during the preparatory stage of model construction, each grid level is assigned a different region. These region codes are then converted to binary to replace the original region codes, generating a unified conversion AGC model for the entire grid. When receiving control commands during the test, the RTU simulation service model provides the grid area codes and command object IDs at all levels. The plant simulation service model generates a converted ID based on this rule, which is then matched with the unified conversion AGC model for the entire network during model construction to quickly locate the equipment that needs adjustment, avoiding the problem of multi-level grid data interaction confusion caused by ID duplication.

[0094] Figure 3 To match the AGC control model with the power grid model, the AGC control model and power grid model matching module is based on the unified conversion of the AGC model and the full-network model data provided by the power grid simulation to establish the association relationship between the AGC model and the power grid model.

[0095] For conventional units, the AGC control model is modeled as a one-to-one relationship: one grid-side unit corresponds to one AGC unit. In this case, a direct ID matching relationship can be established. For renewable energy units, multiple renewable energy units on the grid side are represented by a single AGC equivalent unit on the AGC side, creating a many-to-one relationship. The AGC equivalent unit flag and the corresponding equivalent unit group for each AGC unit are set.

[0096] As an example, during the model preparation phase, when there is a many-to-one relationship, this flag takes effect, and the AGC unit immediately creates an equivalent unit group and adds all units associated with it on the grid side.

[0097] As a further example, during the testing phase, after the plant simulation service model receives an AGC control instruction, if the equivalent unit flag of the AGC unit obtained after matching the PLC is 0, it is a conventional unit instruction. The PLC power is directly assigned to the corresponding AGC conventional unit, and then the grid-side conventional units are matched one-to-one to interact with the grid simulation. If the equivalent unit flag of the AGC unit obtained after matching the PLC is 1, it is a new energy equivalent unit instruction. According to the many-to-one relationship, the power is evenly distributed or allocated to each grid-side unit according to the current power ratio, and transmitted to the grid simulation. When feeding back the grid measurement data, the equivalent unit group power is accumulated and uploaded, thereby realizing the integration of the AGC model and the grid model.

[0098] Furthermore, the equivalent conversion module of the grid boundary model at each level is to restore the whole network power flow calculation result data to the grid boundary model at each level for data transmission. Figure 4 As shown in FIG, the AGC control model and the power grid model matching model are used. When generating the full-network model data sample in step (2), the single-end equivalent devices of each level of power grid are converted into double-end devices to obtain the interconnected large power grid model of each level, and a unified power flow calculation is performed. Based on the matching model of the single-end devices of each level of power grid and the double-end devices of the multi-level power grid, the equivalent conversion module of the boundary model of each level of power grid is constructed, including the single-end device ID, the double-end device ID and the equivalent endpoint number. After the full-network power flow calculation of the power grid simulation is completed in the test phase, the multi-level power grid double-end devices are subjected to hierarchical data processing. The plant simulation service model receives the full-network power flow data and replaces the double-end device ID with the equivalent single-end device model ID of each level of power grid boundary. The single-end device data value is taken as the negative or positive value of the double-end device data value according to whether the original single-end equivalent model is the first or last end of the double-end device, ensuring the integrity of the measurement data transmission of each level of power grid.

[0099] Step (4) is to build a test verification platform and test system, combine various services as needed, and build a multi-level power grid AGC joint closed-loop test scenario construction system, such as Figure 5 shown.

[0100] In the above steps, the test system is directly copied and transplanted from the actual power grid dispatching automation system, creating a virtual mirror of the actual dispatching automation system. Therefore, there is no need to build the complex data transmission logic within the dispatching automation system to ensure data flow consistency between the test system and the actual power grid dispatching automation system. Taking the grid-level and provincial-level AGC testing as an example, the internal AGC commands of each dispatching automation system are issued through the AGC software, SCADA, and FE devices at each level. The measurement information at each level is also fed back to the AGC software via this link. At the same time, the dispatching automation systems at each level directly exchange measurement information such as the calculated ACE, AGC status, and frequency modulation results at each level through the 476 protocol.

[0101] Furthermore, based on the multi-level grid structure and test requirements, the required RTU simulation service models, grid simulation service models, and plant / substation simulation service models are combined. An RTU simulation service model is created for each unit in the multi-level grid, based on the number of grids in the multi-level grid. The RTU simulation service model transmits data to the test system's FE device via the 104 protocol, using each grid point table and channel model. A grid simulation service model containing multi-level grid model data and a plant / substation simulation service model containing multi-level grid models, data, point tables, and channels are provided. These services are built using a microservices approach, ensuring independent deployment, maintenance, and upgradeability. Within the test verification platform, all data is communicated using a message bus. Services agree on a message topic for data transmission and reception. The message topic includes the service name and scenario number. Data can only be transmitted between services that publish or subscribe to the same message topic. By generating different message topics for different scenario numbers, multiple multi-level grid combined AGC test scenarios can be tested simultaneously without interfering with each other's data communication.

[0102] In step (5), each service obtains the scenario sample data in turn as needed. The power grid simulation first performs the whole network flow calculation and frequency calculation to simulate the power grid operation, and transmits the whole network flow data to the plant simulation service model through the message bus.

[0103] In the above steps, the multi-level power grid AGC joint closed-loop test data interaction method is as follows Figure 6 The specific steps are as follows:

[0104] The plant / station simulation service model obtains grid-wide power flow data, including all grid boundaries, through the grid boundary model conversion module at each level. This data is then transmitted to all RTU simulation service models via the message bus. Each RTU simulation service model compares the grid-wide power flow data using the data transmission model, retaining only measurement data that matches the grid point table at each level and transmitting it to the test system. The test system then forwards this data to the AGC software. The AGC software at each level performs joint calculations to generate AGC control instructions for each grid level. These instructions are then transmitted to the RTU simulation service model via the FE device. The RTU simulation service model transmits the control instructions to the plant / station simulation service model and also transmits the grid region code to which the instructions belong. The plant / station simulation service model, based on the AGC control model's unified conversion module, parses the control instructions to determine the AGC unit corresponding to the control instruction. The AGC control model then matches the grid model to the corresponding grid-side unit. The plant / station simulation service model assigns control instruction adjustment targets to each grid-side unit based on unit attributes such as unit ramp speed and upper and lower limits for active power. The grid-side unit adjustment instructions are then transmitted to the grid simulation via the message bus. After receiving the unit adjustment instructions, the power grid simulation performs power flow calculations and frequency calculations to verify the accuracy of the AGC instructions, and returns the power flow results of the entire network to the plant simulation service model, thereby realizing multi-level power grid AGC joint closed-loop testing.

[0105] like Figure 7 As shown, the second object of the present invention is to provide a multi-level power grid AGC joint closed-loop test scenario construction system, comprising:

[0106] The RTU simulation service model construction module 701 is used to construct an RTU simulation service model for each power grid according to the level and characteristics of the interconnected multi-level power grid under test;

[0107] The power grid simulation service model construction module 702 is used to perform power flow calculation and frequency calculation based on the full network model data and simulation events, simulate the actual power grid operation characteristics based on the calculation results, and obtain the power grid simulation service model; according to the composition of the multi-level power grid, the data of the power grid simulation service model is spliced ​​to obtain a multi-level power grid simulation service model;

[0108] The plant simulation service model building module 703 is used to build a plant simulation sample including a multi-level power grid model, data, point table, and channels, classify the entire network data through the multi-level power grid model data conversion engine, and build a plant simulation service model;

[0109] Closed-loop test scenario construction module 704 is used to build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models and plant simulation service models as needed, and build a multi-level power grid AGC joint closed-loop test scenario;

[0110] The closed-loop test module 705 is used for each service to obtain scene sample data in sequence as needed. The multi-level power grid AGC issues control instructions. The power grid simulation and plant simulation service models process the control instructions and feedback the power grid currents at all levels to verify the accuracy of the AGC instructions and realize the joint closed-loop test of the multi-level power grid AGC.

[0111] The system is based on the above-mentioned multi-level power grid AGC joint closed-loop test scenario construction method.

[0112] like Figure 8 As shown, a third object of an embodiment of the present invention is to provide an electronic device, comprising a memory 801, a processor 802, and a computer program stored in the memory 801 and executable on the processor, wherein when the processor executes the computer program, the method for constructing a multi-level power grid AGC joint closed-loop test scenario is implemented. The electronic device also includes a communication interface 803 and a bus 804.

[0113] A fourth object of an embodiment of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for constructing a multi-level power grid AGC joint closed-loop test scenario.

[0114] A fifth objective of an embodiment of the present invention is to provide a computer program product, wherein the computer program product includes computer instructions, and the computer instructions instruct a computer to execute the multi-level power grid AGC joint closed-loop test scenario construction method.

[0115] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0117] The present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to magnetic disk storage, readable storage media, optical storage, etc.) containing computer-usable program code.

[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the present invention.

Claims

1. A method for constructing a multi-level power grid AGC joint closed-loop test scenario, characterized in that: include: Build an RTU simulation service model for each power grid based on the level and characteristics of the interconnected multi-level power grid being tested; Perform power flow and frequency calculations based on the full-grid model data and simulation events, simulate the actual grid operation characteristics based on the calculation results, and obtain a grid simulation service model; based on the composition of the multi-level grid, perform data splicing of the grid simulation service model to obtain a multi-level grid simulation service model; Construct a plant simulation sample that includes multi-level power grid models, data, point tables, and channels. Use the multi-level power grid model data conversion engine to classify the entire network data and build a plant simulation service model. Build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models, and plant simulation service models as needed, and construct a multi-level power grid AGC joint closed-loop test scenario; Each simulation service model sequentially acquires scenario sample data as needed. The multi-level power grid AGC issues control instructions. The power grid simulation service model and the plant simulation service model process the control instructions and provide feedback on power flow at each level to verify the accuracy of the AGC instructions, thus achieving multi-level power grid AGC joint closed-loop testing. The multi-level power grid model data conversion engine includes an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for each level of power grid boundary model; The AGC control model unified conversion module is used to read the AGC control models of all levels of power grids. The AGC control models include the AGC device model and the AGC measurement model. The AGC device model includes the AGC plant, AGC controller, and AGC unit. The measurement model refers to the correlation between the AGC device model and the data it needs to transmit. The AGC measurement model regenerates the AGC plant, PLC, and unit model IDs of all levels of power grids, as well as the device IDs in the measurement model, based on each power grid region number. The AGC control model and grid model matching module is used to establish the association between the AGC model and the grid model based on the unified conversion of the AGC model and the grid simulation service model; set the AGC equivalent unit flag and the equivalent unit group corresponding to each AGC unit; The equivalent conversion module of the boundary models of the power grids at all levels is used to restore the data of the power flow calculation results of the entire network to the boundary models of the power grids at all levels for data transmission.

2. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The RTU simulation service model is constructed for each power grid according to the level and characteristics of the measured interconnected multi-level power grid, specifically including: each RTU simulation service model reads the corresponding power grid data point table and channel, obtains the matching relationship between each measurement data ID, data transmission channel, data name and data value, and then establishes a data transmission model; Among them, each RTU simulation service model is responsible for transmitting the control instructions and flow data required by this level of the power grid; when the AGC issues a control instruction, each RTU simulation service model corresponds to a FE device, and parses and transmits the control instructions issued by the AGC of this level of the power grid; when the power grid simulation service model calculates the power flow of the entire network, the RTU matches the power flow data of the entire network and the required transmission measurement data through the measurement data ID, and uploads the measurement data of this level of the power grid.

3. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The data of the power grid simulation service model is spliced ​​according to the composition of the multi-level power grid to obtain the multi-level power grid simulation service model, including: The grid model data of all levels of the actual power grid are obtained. Other grid models related to the dispatching grid at this level exist in the grid model at this level in the form of equivalent units or equivalent loads. Based on the network topology analysis method, the boundary plants, equipment and their jurisdiction units are identified, and the boundary equivalent equipment is restored to a two-terminal equipment. The dispatching data of all levels of the power grid simulation service model are spliced ​​to obtain a complete multi-level power grid simulation service model; and the association relationship between the boundary equivalent equipment and the two-terminal equipment is established.

4. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The construction of a plant simulation sample including a multi-level power grid model, data, point tables, and channels includes: The plant simulation service model includes unit characteristic simulation, plant and master station closed-loop simulation, and plant and master station abnormal event simulation. Unit characteristic simulation simulates the ramping process of various units following master station instructions based on the unit ramp rate parameters in the AGC model. Plant and master station closed-loop simulation uses the front-end and RTU to receive master station AGC instructions in real time and upload plant and station control signals and power grid measurement data in real time. Analyze the AGC units associated with the PLC, and then analyze and match the AGC units with the grid-side units for power regulation, interacting with the grid simulation service model; Exchange network-wide flow data and simulation events through the message bus; A plant simulation sample is constructed based on the multi-level power grid model and data generated by the power grid simulation service model, the AGC control model provided by the AGC software of the power grid at all levels, and the full-point table and full-channel data transmission model involving data communication provided by the power grid dispatching automation system at all levels.

5. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The AGC control model unified conversion module is specifically used to allocate different regions to power grids at all levels in the preparation stage of model construction, and replace the original region codes through binary conversion to generate a unified conversion AGC model for the entire network; when receiving control instructions during the test process, the RTU simulation service model provides the region codes and instruction object IDs of the power grids at all levels, and the plant simulation service model generates a converted ID, which is then matched with the unified conversion AGC model for the entire network during model construction to locate the equipment that needs adjustment.

6. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The AGC control model and power grid model matching module is specifically used in the model preparation stage. When there is a many-to-one relationship, this flag takes effect, and the AGC unit immediately creates an equivalent unit group and adds all units associated with it on the power grid side; in the testing stage, after the plant simulation service model receives the AGC control instruction, if the equivalent unit flag of the AGC unit obtained after matching the PLC is 0, it is a conventional unit instruction, and the PLC power is directly assigned to the corresponding AGC conventional unit, and then the one-to-one conventional units on the power grid side are matched to interact with the power grid simulation service model; if the equivalent unit flag of the AGC unit obtained after matching the PLC is 1, it is a new energy equivalent unit instruction, and the power is evenly distributed or allocated to each power grid side unit according to the many-to-one relationship or according to the current power ratio, and transmitted to the power grid simulation service model, and the power of the equivalent unit group is accumulated and uploaded when the power grid measurement data is fed back, thereby realizing the fusion of the AGC model and the power grid model.

7. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The equivalent conversion module of the boundary model of the power grid at each level is specifically used to obtain the interconnected large power grid model at each level by converting the single-ended equivalent equipment of the power grid at each level into double-ended equipment when generating the whole-network model data sample, and perform unified power flow calculation. The equivalent conversion module of the boundary model of the power grid at each level is constructed based on the matching model of the single-ended equipment of the power grid at each level and the double-ended equipment of the multi-level power grid, including the single-ended equipment ID, the double-ended equipment ID and the equivalent endpoint number; after the whole-network power flow calculation of the power grid simulation service model is completed in the testing phase, the multi-level power grid double-ended equipment is subjected to hierarchical data processing, the plant simulation service model receives the whole-network power flow data and replaces the ID of the double-ended equipment with the ID of the equivalent single-ended equipment model of the power grid boundary at each level, and the single-ended equipment data value takes the negative or positive value of the double-ended equipment data value according to whether the original single-ended equivalent model is the first or end of the double-ended equipment.

8. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: The test verification platform and test system are built, and the RTU simulation service model, multi-level power grid simulation service model, and plant simulation service model are combined as needed to build a multi-level power grid AGC joint closed-loop test scenario, including: The test system is directly copied and transplanted from the actual power grid dispatching automation system to build a virtual mirror of the actual dispatching automation system; According to the multi-level grid structure and test requirements to be tested, the required RTU simulation service model, multi-level grid simulation service model and plant simulation service model are combined; specifically including: Create an RTU simulation service model for each unit according to the number of power grids in the multi-level power grid. The RTU simulation service model transmits data with the test system FE device through each power grid point table and channel model. Provides a power grid simulation service model that includes model data of multi-level power grids, as well as a plant simulation service model that includes models, data, point tables, and channels of multi-level power grids; Each simulation service model is built in a microservice manner, does not interfere with each other, and can be deployed, maintained, and upgraded separately; all data within the test verification platform uses a message bus for communication, and each service agrees on a message topic for sending and receiving data. The message topic includes the service name and scenario number. Data can only be transmitted between two services that publish / subscribe to the same message topic.

9. The method for constructing a multi-level power grid AGC joint closed-loop test scenario according to claim 1, characterized in that: Each simulation service model sequentially acquires scenario sample data as needed, and the multi-level power grid AGC issues control instructions. The power grid simulation service model and the plant simulation service model process the control instructions and feedback the power grid flow at each level, verify the accuracy of the AGC instructions, and implement a multi-level power grid AGC joint closed-loop test, including: The power grid simulation service model first performs network-wide power flow and frequency calculations to simulate power grid operation, and transmits network-wide power flow data to the plant simulation service model via the message bus. The plant simulation service model obtains the full-network power flow data including all levels of grid boundaries through the grid boundary model conversion module at each level, and transmits it to all RTU simulation service models through the message bus. The RTU simulation service models at each level compare the full-network power flow data through the data transmission model, retaining only the measurement data that matches the grid point table at each level and transmitting it to the test system. The test system forwards the data to the AGC software. After joint calculation, the AGC software at all levels generates AGC control instructions for the power grid at all levels. The instructions are then passed to the RTU simulation service model via the FE device. The RTU simulation service model then passes the control instructions to the plant simulation service model and also passes the power grid region code to the plant simulation service model. The plant simulation service model, based on the unified conversion module of the AGC control model, parses control instructions to determine the AGC unit corresponding to the control instruction. The AGC control model and the grid model matching module then determine the grid-side unit corresponding to the AGC unit. The plant simulation service model distributes control instruction adjustment target values ​​to each grid-side unit based on the unit's ramp speed and the upper and lower limits of the unit's active power. The grid-side unit adjustment instructions are then sent to the grid simulation service model via the message bus. After receiving the unit adjustment instructions, the power grid simulation service model performs power flow calculation and frequency calculation to verify the accuracy of the AGC instructions, and returns the power flow results of the entire network to the plant simulation service model, thereby realizing multi-level power grid AGC joint closed-loop testing.

10. A multi-level power grid AGC joint closed-loop test scenario construction system, characterized in that: include: The RTU simulation service model building module is used to build an RTU simulation service model for each power grid according to the level and characteristics of the interconnected multi-level power grid under test; The power grid simulation service model construction module is used to perform power flow and frequency calculations based on the full network model data and simulation events, simulate the actual power grid operation characteristics based on the calculation results, and obtain the power grid simulation service model; according to the composition of the multi-level power grid, the data of the power grid simulation service model is spliced ​​to obtain a multi-level power grid simulation service model; The plant simulation service model building module is used to build plant simulation samples that include multi-level power grid models, data, point tables, and channels. It uses the multi-level power grid model data conversion engine to classify the entire network data and build the plant simulation service model. Closed-loop test scenario construction module, used to build a test verification platform and test system, combine RTU simulation service models, multi-level power grid simulation service models, and plant simulation service models as needed to build a multi-level power grid AGC joint closed-loop test scenario; The closed-loop test module is used for each simulation service model to sequentially obtain scenario sample data as needed. The multi-level power grid AGC issues control instructions. The power grid simulation service model and the plant simulation service model process the control instructions and provide feedback on the power flow at each level to verify the accuracy of the AGC instructions and realize the joint closed-loop test of the multi-level power grid AGC. The multi-level power grid model data conversion engine includes an AGC control model unified conversion module, an AGC control model and power grid model matching module, and an equivalent conversion module for each level of power grid boundary model; The AGC control model unified conversion module is used to read the AGC control models of all levels of power grids. The AGC control models include the AGC device model and the AGC measurement model. The AGC device model includes the AGC plant, AGC controller, and AGC unit. The measurement model refers to the correlation between the AGC device model and the data it needs to transmit. The AGC measurement model regenerates the AGC plant, PLC, and unit model IDs of all levels of power grids, as well as the device IDs in the measurement model, based on each power grid region number. The AGC control model and grid model matching module is used to establish the association between the AGC model and the grid model based on the unified conversion of the AGC model and the grid simulation service model; set the AGC equivalent unit flag and the equivalent unit group corresponding to each AGC unit; The equivalent conversion module of the boundary models of the power grids at all levels is used to restore the data of the power flow calculation results of the entire network to the boundary models of the power grids at all levels for data transmission.

11. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for constructing a multi-level power grid AGC joint closed-loop test scenario as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for constructing a multi-level power grid AGC joint closed-loop test scenario according to any one of claims 1 to 9 is implemented.

13. A computer program product comprising computer instructions, characterized in that: The computer instructions instruct the computer to execute the multi-level power grid AGC joint closed-loop test scenario construction method described in any one of claims 1-9.

Citation Information

Patent Citations

  • Automatic power generating control target command receiving system of grid combined power generator set

    CN103701154A

  • Electric power simulation system, and multi-source automatic power generation control joint simulation system and method

    CN111193294A