A method and system for generating test scenarios for power grid security analysis software
Through the automatic generation method of the smart grid regulation system safety analysis software test scenarios based on the index system, the problem of generating complex functional test scenarios of the new generation of control systems is solved, and the rapid and automatic generation of test scenarios that meet the real situation of the power grid is achieved, and the safety analysis and testing needs of complex power grid systems are met.
Patent Information
- Application Number
- CN201910686610.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-29
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2039-07-29
AI Technical Summary
The existing technology is difficult to meet the needs of complex functional testing of the new generation of regulatory systems, especially when building cross-regional testing scenarios, it is difficult to simulate the continuous closed-loop operating environment of the power grid and various safety issues.
The automatic generation method of testing scenarios of the smart grid regulation system safety analysis software based on the index system is adopted. By setting the test scenario search space, simulating the continuous closed-loop operation environment of the power grid, and calculating pre-set grid safety indicators, the test scenarios that meet the real situation of the power grid are automatically generated.
It realizes rapid and automatic generation of test scenarios that meet the true situation and functional specifications of the power grid, which can meet the safety analysis and testing needs of complex power grid systems.
Smart Images

Figure CN110457213B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and in particular to a method for generating a test scenario for power grid security analysis software. Background Art
[0002] With the rapid development of ultra-high voltage AC / DC hybrid large power grids and clean energy, the characteristics of the power system have undergone profound changes. The integrated characteristics of power grid operation have become more prominent; the needs for global monitoring, network-wide prevention and control, and centralized decision-making have become increasingly prominent; and the market-oriented reform of the power grid has brought tremendous pressure to the dispatching and operation of the power grid. In order to meet the above challenges, the new generation of dispatching and control systems draws on the concept of cloud computing and adopts the overall architecture of "physical distribution and logical unification". The grid monitoring function is deployed locally, and the grid analysis and decision-making function is deployed centrally. At the same time, new technologies such as cloud computing, artificial intelligence, and big data analysis are widely used, making the new generation of control systems have completely different characteristics from traditional dispatching and control systems. Whether it is the change of system architecture or the application of a large number of new technologies, the correlation of various applications of the new system has been enhanced, the complexity of the functional structure of application software has increased, and the amount of software development has doubled. There is a certain degree of uncertainty and control risk in the software development of the entire system. In order to ensure the quality and reliable operation of the new generation of control systems, comprehensive software testing is essential.
[0003] The new generation of control system strives to improve the overall monitoring, analysis and decision-making level of the control system, and is designed according to the idea of "distributed acquisition and control, centralized analysis and decision-making". On the one hand, the software architecture of the supporting platform is quite different from the traditional system, the scale of application data of the control system has increased significantly, the correlation of various applications has increased, the functional structure of the application software has increased, and the difficulty of verification has increased greatly; on the other hand, in order to achieve the complex functional test effect of global analysis and early warning applications, it is necessary to build a cross-regional test scenario involving a large number of model data, various types of sources and loads, complex and changeable meteorological environment, high coupling of AC and DC, various fault evolution modes, and rich application scenarios.
[0004] Previous test scenarios were often based on the tester's experience, and some common equipment failures or extreme grid operation modes were manually set, which is no longer able to meet the needs. It is necessary to design and develop functional-level test scenarios for smart grid control systems, and use a single test scenario or a combination of multiple test scenarios to test the quality of each software in the control system to meet different test requirements. Summary of the invention
[0005] In order to address the deficiencies in the prior art, the present invention provides a method for automatically generating test scenarios for security analysis software of a smart grid control system based on an indicator system, thereby constructing a grid operation scenario that is realistic and reasonable and includes various grid security issues, which can be used to evaluate whether the analysis software deployed in the smart grid control system meets the functional specification requirements.
[0006] The technical solution provided by the present invention is:
[0007] A method for generating a test scenario for power grid security analysis software, comprising:
[0008] Set the test scenario search space according to the preset security test requirements;
[0009] Based on the historical operation change data of the power grid, the continuous operation mode data of the power grid is obtained;
[0010] In the test scenario search space, simulating a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data;
[0011] Based on the continuous closed-loop operation environment, the index value of the preset power grid security index is calculated to obtain the power grid security analysis software test scenario.
[0012] Preferably, the establishment of the test scenario search space includes:
[0013] Based on one or more types of faulty devices involved in each test scenario, a corresponding faulty device search space is set for each test scenario;
[0014] Based on one or more types of equipment failure types involved in each test scenario, a corresponding failure type search space is set for each test scenario;
[0015] Based on the external meteorological characteristics involved in each test scenario, a corresponding external meteorological data search space is set for each test scenario;
[0016] Based on the characteristics of the power grid operation mode involved in each test scenario, a corresponding power grid operation mode search space is set for each test scenario;
[0017] Based on the output and distribution characteristics of the new energy and flexible loads involved in each test scenario, a corresponding new energy / flexible load search space is set for each test scenario.
[0018] Preferably, obtaining the power grid continuous operation mode data based on the power grid historical operation change data includes:
[0019] The historical operation change data of the power grid are interpolated to obtain the load and power generation values at the set time as the continuous operation mode data of the power grid.
[0020] Preferably, the simulating a continuous closed-loop operation environment of a power grid based on the continuous operation mode data of the power grid includes:
[0021] Based on the continuous operation mode data of the power grid, a power flow calculation including power grid automatic control simulation is adopted to simulate the continuous closed-loop operation environment of the power grid.
[0022] Preferably, the calculation of the preset power grid security index based on the continuous closed-loop operation environment to obtain the power grid security analysis software test scenario includes:
[0023] S01: Performing grid simulation calculation in the continuous closed-loop operation environment to obtain grid state variables;
[0024] S02: Based on the preset power grid security index, one or more sub-index result values to be tested are calculated according to the power grid state variable;
[0025] S03: Compare the sub-indicator result value with the corresponding pre-set sub-indicator threshold value. When the sub-indicator result value reaches the threshold, save the current power grid model, power grid mode, fault condition, and control mode as a test scenario, and stop the power grid simulation calculation. Otherwise, repeat steps S01 to S03.
[0026] Furthermore, the grid state variables include: grid voltage, power and frequency.
[0027] Further, the faulty equipment includes: lines, transformers, generators, capacitors / reactors, DC lines, and energy storage devices;
[0028] The equipment failure types include: single-phase line failure, phase-to-phase line failure, same-pole line failure, DC commutation failure, DC interlocking failure, main transformer tripping failure, busbar tripping failure and interlocking equipment failure;
[0029] The external meteorological characteristics include: temperature, humidity, wind speed, rainfall, air pressure, lightning, typhoon, and ice cover;
[0030] The grid operation mode characteristics include: load peak, load valley, equipment maintenance, large-scale DC power supply, and maximum / minimum startup mode;
[0031] The new energy sources include: wind power, hydropower, and photovoltaics; the flexible loads include: electric vehicles, temperature control loads, municipal lighting, and commercial loads.
[0032] Preferably, the set power grid safety indicators include: power balance indicator, network security indicator, frequency safety indicator, voltage safety indicator, power angle stability indicator, voltage stability indicator and frequency stability indicator.
[0033] Furthermore, the power grid automatic control simulation includes: automatic power generation control simulation and automatic voltage control simulation.
[0034] A power grid security analysis software test scenario generation system, the system comprising:
[0035] A search space module is used to set the test scenario search space according to the preset security test requirements;
[0036] A data processing module, used to obtain the continuous operation mode data of the power grid based on the historical operation change data of the power grid;
[0037] An environment generation module, used to simulate a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data within the test scenario search space;
[0038] The scenario generation module is used to calculate the preset power grid security indicators based on the continuous closed-loop operation environment to obtain the power grid security analysis software test scenario.
[0039] The search space module includes: a fault equipment unit, a fault type unit, an external meteorological data unit, a power grid operation mode unit and a new energy / flexible load unit;
[0040] A fault device unit is used to set one or more types of fault devices involved in the test scenario;
[0041] The fault type unit is used to set one or more types of equipment fault types involved in the test scenario;
[0042] External meteorological data unit, used to set the external meteorological characteristics involved in the test scenario;
[0043] A power grid operation mode unit, used to set the power grid operation mode characteristics involved in the test scenario;
[0044] The new energy / flexible load unit is used to set the output and distribution characteristics of the new energy and flexible loads involved in the test scenario.
[0045] The data processing module includes: an input unit and an output unit;
[0046] An input unit is used to collect historical operation change data of the power grid;
[0047] The output unit is used to interpolate the collected historical operation change data of the power grid to obtain the load and power generation values at the set time as the continuous operation mode data of the power grid.
[0048] The scenario generation module includes: an indicator threshold setting unit, an indicator calculation unit and a scenario unit;
[0049] An indicator threshold setting unit, used to set the threshold of the sub-item indicator to be tested as a test scenario search termination mark based on the pre-set power grid security indicator and in accordance with the test requirements;
[0050] An indicator calculation unit, used to perform power grid simulation calculation during the simulation operation to obtain rolling updated power grid state variables, and calculate the one or more sub-item indicator result values to be tested according to the rolling updated power grid state variables;
[0051] The scenario unit is used to compare the result values of one or more sub-indicators to be tested calculated by the indicator calculation unit with the corresponding sub-indicator thresholds. When the result values of one or more sub-indicators to be tested reach the threshold, the power grid simulation calculation is stopped, and the current power grid model, power grid mode, fault condition, and control mode are saved as test scenarios.
[0052] Compared with the prior art, the present invention has the following beneficial effects:
[0053] The present invention provides a method for generating a test scenario for power grid security analysis software. According to preset security test requirements, a test scenario search space is set; based on historical power grid operation change data, power grid continuous operation mode data is obtained; within the test scenario search space, a power grid continuous closed-loop operation environment is simulated based on the power grid continuous operation mode data; based on the continuous closed-loop operation environment, a pre-set power grid security index is calculated to obtain a test scenario for power grid security analysis software. The technical solution provided by the present invention integrates the construction of a continuous and closed-loop operation environment for the power grid, the setting of a scenario search space, and the calculation of power grid security indicators, so as to automatically and quickly generate a scenario that conforms to the real situation of the power grid and encompasses the application function specifications.
[0054] The technical solution provided by the present invention targets the scenario to be generated, performs continuous, closed-loop simulation of the power grid in a correspondingly set search space, and reflects the changing trend of the power grid security status through power grid security indicators.
[0055] The technical solution provided by the present invention takes into account multiple time scales, multiple operating scenarios, and multiple influencing factors of the scheduling control system, and is suitable for the construction of simple or complex test case sets. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flow chart of a method for generating test scenarios for power grid security analysis software of the present invention;
[0057] Figure 2 A schematic diagram of power grid security indicators in an embodiment of the present invention;
[0058] Figure 3 A schematic diagram of the structure of a method for generating a test scenario for power grid security analysis software according to an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of the structure of a power grid security analysis software test scenario generation system of the present invention. DETAILED DESCRIPTION
[0060] In order to better understand the present invention, the present invention is further described in detail below with reference to the accompanying drawings and examples.
[0061] This patent integrates the construction of a continuous, closed-loop operation environment for the power grid, the setting of a scenario search space, and the calculation of power grid safety indicators to automatically and quickly generate scenarios that conform to the actual situation of the power grid and encompass application function specifications.
[0062] Embodiment 1:
[0063] The method for generating a test scenario for power grid security analysis software provided by the embodiment of the present invention is specifically implemented as follows: Figure 1 As shown, including:
[0064] S101: Setting a test scenario search space according to preset security test requirements;
[0065] S102: Obtaining power grid continuous operation mode data based on power grid historical operation change data;
[0066] S103: simulating a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data within the test scenario search space;
[0067] S104: Based on the continuous closed-loop operation environment, pre-set power grid security indicators are calculated to obtain a power grid security analysis software test scenario.
[0068] Specifically, step S101, according to the preset security test requirements, sets the test scenario search space, including:
[0069] Step S101-1, based on one or more types of faulty devices involved in each test scenario, respectively set a corresponding faulty device search space for each test scenario;
[0070] Step S101-2, based on one or more types of equipment failure types involved in each test scenario, respectively set a corresponding failure type search space for each test scenario;
[0071] Step S101-3, based on the external meteorological characteristics involved in each test scenario, a corresponding external meteorological data search space is set for each test scenario;
[0072] Step S101-4, based on the power grid operation mode characteristics involved in each test scenario, respectively set a corresponding power grid operation mode search space for each test scenario;
[0073] Step S101 - 5 , based on the output and distribution characteristics of the new energy and flexible loads involved in each test scenario, a corresponding new energy / flexible load search space is set for each test scenario.
[0074] Specifically, step S102, based on the historical operation change data of the power grid, obtains the continuous operation mode data of the power grid, including:
[0075] Step S102-1, obtaining SCADA applications, state estimation applications, and periodically sampled bus load, power generation and other operating section data stored in the smart grid control system;
[0076] Step S102-2, interpolation processing is performed on the cross-sectional data, and the load and power generation values at the set time are obtained from the discrete data points as the continuous operation mode data of the power grid.
[0077] Specifically, step S103, simulating a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data within the test scenario search space, includes:
[0078] Step S103-1, based on the continuous operation mode data of the power grid, continuously calling the power flow calculation module to perform continuous calculations, thereby constructing a continuous operation effect of the power grid;
[0079] Step S103-2, based on conventional power flow calculation, introduce automatic voltage control and automatic power generation control adjustment process to simulate the actual operation characteristics of the power grid.
[0080] Specifically, step S104, based on the continuous closed-loop operation environment, calculates the preset power grid security index to obtain the power grid security analysis software test scenario, including:
[0081] S01: Performing grid simulation calculation in the continuous closed-loop operation environment to obtain grid state variables;
[0082] S02: Based on the preset power grid security index, one or more sub-index result values to be tested are calculated according to the power grid state variable;
[0083] S03: Compare the sub-indicator result value with the corresponding pre-set sub-indicator threshold value. When the sub-indicator result value reaches the threshold, save the current power grid model, power grid mode, fault condition, and control mode as a test scenario, and stop the power grid simulation calculation. Otherwise, repeat steps S01 to S03.
[0084] In order to evaluate whether the analysis software deployed in the smart grid control system meets the functional specification requirements, first, according to the above steps, a real and reasonable power grid operation scenario that also includes various power grid safety issues is constructed; after loading these power grid operation scenarios, each analysis software can obtain the corresponding analysis feedback results using its own algorithms and logic; based on the comparison and verification of the feedback results with the reference results, the functional testing and evaluation of each analysis software is finally achieved.
[0085] Embodiment 2:
[0086] The power grid security analysis software test scenario generation method according to the embodiment of the present invention is divided into three main steps, and its main structural diagram is as follows: Figure 3 shown.
[0087] 1. Construction of data on continuous operation mode of power grid
[0088] The smart grid control system will collect the operation change data of the power grid in real time, and will save the operation section of the power grid at a fixed period during the operation process. For example, SCADA applications and state estimation applications will save the current section data at every hour, and the SCADA system will periodically sample the bus load and power generation data and save them in the historical database. Since the existing change curve is a data point with intervals of minutes or hours, if more precise data points are needed, the load or power generation curve composed of discrete points can be interpolated. The loose power grid mode data can be formed into a more compact power grid mode data that can be used for continuous and closed-loop simulation of the power grid through interpolation. Interpolation processing can support three methods: linear interpolation, quadratic interpolation, and spline interpolation, to obtain the current load and power generation power values from discrete data points. The power generation load curve is composed of discrete points, the horizontal axis of the curve is time, and the vertical axis is power value.
[0089] 2. Construction of a continuous and closed-loop operation environment for the power grid
[0090] After obtaining the data of the continuous operation mode of the power grid, the continuous operation effect of the power grid can be simulated by power flow calculation. Because when formulating the power generation load curve, the interpolation method is used to obtain the new power generation load value. On the one hand, the rationality of the section formed by it needs to be verified; on the other hand, after the corresponding operation is triggered during the implementation of the case, the voltage and frequency may deviate from the limit value, and the corresponding automatic voltage control and automatic power generation control in the real system will be controlled in real time. This embodiment needs to take this process into account in the process of constructing cases other than automatic voltage control and automatic power generation control. Therefore, it is necessary to introduce the automatic voltage control and automatic power generation control adjustment process on the basis of conventional power flow calculation to simulate the actual operation characteristics of the power grid and provide a basic guarantee for the formation of a more realistic power grid case set. According to the given strategy, automatic adjustment of load and power generation, automatic switching of capacitors / reactors, and automatic adjustment of transformer gears are realized. In addition, it has the functions of automatic simulation of equipment failures such as lines, transformers, generators, and DC, and automatic adjustment of external meteorological data.
[0091] 3. Search space settings
[0092] Since the analysis software of the smart grid control system focuses on grid security from different perspectives, the test purposes, test objects and test methods involved in its test case set are not the same. In the process of generating the test case set, a limited case search space is set in combination with the application function specifications, on-site dispatch experience and historical fault data. Through the limited typical scenario search space setting, while ensuring the generation of scenarios that meet the actual situation of the grid and cover the application function specifications, the search and generation time of the scenario is reduced as much as possible, and the automatic adjustment of equipment and automatic triggering of faults are achieved within the set search space, which provides support for the automatic and rapid generation of test scenarios. The search space mainly includes but is not limited to the following parts:
[0093] (1) Faulty equipment search space, including lines, transformers, generators, capacitors / reactors, DC lines, energy storage devices, etc. This search space is used to specify the faulty equipment involved in the case to be generated, which can be a specific device or one or more types of equipment. When generating a case, the corresponding faulty equipment can be manually set or selected from the typical fault scenarios imported from the historical database.
[0094] (2) Fault type search space, including single-phase line fault, phase-to-phase line fault, same-pole line fault, DC commutation failure fault, DC interlock fault, main transformer trip fault, bus trip fault and interlocking equipment fault. This search space is used to specify the equipment fault type involved in the case to be generated, which can be a single type or a collection of multiple types. When generating a case, the corresponding fault type can be set manually or selected from the typical fault scenarios imported from the historical database.
[0095] (3) External meteorological data search space, including temperature, humidity, wind speed, rainfall, air pressure, lightning, typhoon, ice cover, etc. This search space is used to specify the external meteorological features involved in the cases to be generated. When generating cases, the corresponding external meteorological set can be selected from the typical external meteorological scenes (such as sunny, rainy, thunderstorm, typhoon, ice cover, high temperature, strong wind, haze, etc.) imported from the external meteorological database.
[0096] (4) The grid operation mode search space includes load peak, load valley, equipment maintenance, DC large-scale power supply, maximum / minimum startup mode, etc. This search space is used to specify the grid operation mode characteristics involved in the case to be generated. When generating a case, it can be selected from the typical operation modes in the historical database.
[0097] (5) New energy and flexible load search space, including the output and distribution characteristics of new energy such as wind power, hydropower, photovoltaics, and flexible loads such as electric vehicles, temperature control loads, municipal lighting, and commercial loads. When generating cases, you can select from the typical distribution and output methods in the historical database.
[0098] The smart grid control system will collect the operation change data of the power grid in real time, and will save the operation section of the power grid at a fixed period during the operation process. For example, SCADA applications and state estimation applications will save the current section data at every hour. At the same time, the SCADA system will periodically sample the bus load and power generation data and save them in the historical database. Since the existing change curve is a data point with intervals of minutes or hours, if more precise data points are required, the load or power generation curve composed of discrete points can be interpolated. The interpolation process can support three methods: linear interpolation, quadratic interpolation, and spline interpolation, to obtain the current load and power generation values from discrete data points. The power generation load curve is composed of discrete points, the horizontal axis of the curve is time, and the vertical axis is power value.
[0099] 4. Calculation of power grid security indicators
[0100] The grid security index is positioned to evaluate different aspects of the grid operation status. In simple terms, the grid is divided into: power balance index, network security index, frequency security index, voltage security index, power angle stability index, voltage stability index, and frequency stability index according to various aspects of grid operation. Figure 2 .
[0101] The security analysis software of the smart grid control system essentially analyzes and controls various security indicators of the power grid. In order to test its analysis accuracy and control effect, it is necessary to build a corresponding test scenario, that is, a power grid operation scenario in which one or more power grid security indicators are abnormal. From this, it can be seen that the goals of building a test scenario for power grid security analysis software and searching for corresponding abnormal power grid security indicators are similar.
[0102] This embodiment sets the power grid security index value as the test scenario search termination mark. Within the set search space, the power grid state variable is updated through continuous, automatic, closed-loop simulation of the power grid, and the sub-item index values established by the power grid security index system are rolled over. When the index value reaches the threshold value required by the scenario to be generated, the scenario search is completed and saved to the scenario database.
[0103] Embodiment 3:
[0104] Based on the same inventive concept, the present invention also provides a power grid security analysis software test scenario generation system, such as Figure 4 As shown, the system comprises:
[0105] A search space module is used to set the test scenario search space according to the preset security test requirements;
[0106] A data processing module, used to obtain the continuous operation mode data of the power grid based on the historical operation change data of the power grid;
[0107] An environment generation module, used to simulate a continuous closed-loop operation environment of a power grid based on the continuous operation mode data of the power grid within the test scenario search space;
[0108] The scenario generation module is used to calculate the pre-set power grid security indicators based on the continuous closed-loop operation environment to obtain the power grid security analysis software test scenario.
[0109] Among them, the search space module includes: fault equipment unit, fault type unit, external meteorological data unit, power grid operation mode unit and new energy / flexible load unit;
[0110] A fault device unit is used to set one or more types of fault devices involved in the test scenario;
[0111] The fault type unit is used to set one or more types of equipment fault types involved in the test scenario;
[0112] External meteorological data unit, used to set the external meteorological characteristics involved in the test scenario;
[0113] A power grid operation mode unit, used to set the power grid operation mode characteristics involved in the test scenario;
[0114] The new energy / flexible load unit is used to set the output and distribution characteristics of the new energy and flexible loads involved in the test scenario.
[0115] Wherein, the data processing module includes: an input unit and an output unit;
[0116] An input unit is used to collect historical operation change data of the power grid;
[0117] The output unit is used to interpolate the collected historical operation change data of the power grid to obtain the load and power generation values at the set time as the continuous operation mode data of the power grid.
[0118] Among them, the scenario generation module includes: an indicator threshold setting unit, an indicator calculation unit and a scenario unit;
[0119] An indicator threshold setting unit, used to set the threshold of the sub-item indicator to be tested as a test scenario search termination mark based on the pre-set power grid security indicator and in accordance with the test requirements;
[0120] An index calculation unit is used to perform power grid simulation calculations during the simulation operation to obtain rolling updated power grid state variables, and calculate one or more sub-item index result values to be tested based on the rolling updated power grid state variables;
[0121] The scenario unit is used to compare the result values of one or more sub-indicators to be tested calculated by the indicator calculation unit with the corresponding sub-indicator thresholds. When the result values of one or more sub-indicators to be tested reach the threshold, the power grid simulation calculation is stopped, and the current power grid model, power grid mode, fault condition, and control mode are saved as test scenarios.
[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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 generate 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 flowchart and / or block diagram. 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.
[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate 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 A function specified in one or more boxes.
[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions 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.
[0126] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.
Claims
1. A method for generating a test scenario for power grid security analysis software, characterized in that: include: Set the test scenario search space according to the preset security test requirements; Based on the historical operation change data of the power grid, the continuous operation mode data of the power grid is obtained; In the test scenario search space, simulating a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data; Based on the continuous closed-loop operation environment, pre-set power grid security indicators are calculated to obtain a power grid security analysis software test scenario; The establishment of the test scenario search space includes: Based on one or more types of faulty devices involved in each test scenario, a corresponding faulty device search space is set for each test scenario; Based on one or more types of equipment failure types involved in each test scenario, a corresponding failure type search space is set for each test scenario; Based on the external meteorological characteristics involved in each test scenario, a corresponding external meteorological data search space is set for each test scenario; Based on the characteristics of the power grid operation mode involved in each test scenario, a corresponding power grid operation mode search space is set for each test scenario; Based on the output and distribution characteristics of the new energy and flexible loads involved in each test scenario, a corresponding new energy / flexible load search space is set for each test scenario; Based on the historical operation change data of the power grid, the continuous operation mode data of the power grid is obtained, including: The historical operation change data of the power grid are interpolated to obtain the load and power generation values at the set time as the continuous operation mode data of the power grid.
2. The method for generating a test scenario for power grid security analysis software according to claim 1, characterized in that: The simulating a continuous closed-loop operation environment of a power grid based on the continuous operation mode data of the power grid includes: Based on the continuous operation mode data of the power grid, a power flow calculation including power grid automatic control simulation is adopted to simulate the continuous closed-loop operation environment of the power grid.
3. The method for generating a test scenario for power grid security analysis software according to claim 1, characterized in that: The calculation of the preset power grid security index based on the continuous closed-loop operation environment to obtain the power grid security analysis software test scenario includes: S01: Performing grid simulation calculation in the continuous closed-loop operation environment to obtain grid state variables; S02: Based on the preset power grid security index, one or more sub-index result values to be tested are calculated according to the power grid state variable; S03: Compare the sub-indicator result value with the corresponding pre-set sub-indicator threshold value. When the sub-indicator result value reaches the threshold, save the current power grid model, power grid mode, fault condition, and control mode as a test scenario, and stop the power grid simulation calculation. Otherwise, repeat steps S01 to S03.
4. The method for generating a test scenario for power grid security analysis software according to claim 3, characterized in that: The grid state variables include: grid voltage, power and frequency.
5. The method for generating a test scenario for power grid security analysis software according to claim 1, characterized in that: The faulty equipment includes: lines, transformers, generators, capacitors / reactors, DC lines, and energy storage devices; The equipment failure types include: single-phase line failure, phase-to-phase line failure, same-pole line failure, DC commutation failure, DC interlocking failure, main transformer tripping failure, busbar tripping failure and interlocking equipment failure; The external meteorological characteristics include: temperature, humidity, wind speed, rainfall, air pressure, lightning, typhoon, and ice cover; The grid operation mode characteristics include: load peak, load valley, equipment maintenance, large-scale DC power supply, and maximum / minimum startup mode; The new energy sources include: wind power, hydropower, and photovoltaics; the flexible loads include: electric vehicles, temperature control loads, municipal lighting, and commercial loads.
6. The method for generating a test scenario for power grid security analysis software according to claim 1, characterized in that: The set power grid safety indicators include: power balance indicator, network security indicator, frequency safety indicator, voltage safety indicator, power angle stability indicator, voltage stability indicator and frequency stability indicator.
7. The method for generating a test scenario for power grid security analysis software according to claim 4, characterized in that: The power grid automatic control simulation includes: automatic power generation control simulation and automatic voltage control simulation.
8. A power grid security analysis software test scenario generation system, characterized in that: include: A search space module is used to set the test scenario search space according to the preset security test requirements; A data processing module, used to obtain the continuous operation mode data of the power grid based on the historical operation change data of the power grid; An environment generation module, used to simulate a power grid continuous closed-loop operation environment based on the power grid continuous operation mode data within the test scenario search space; A scenario generation module, used to calculate the preset power grid security indicators based on the continuous closed-loop operation environment to obtain a test scenario for the power grid security analysis software; The search space module includes: a fault equipment unit, a fault type unit, an external meteorological data unit, a power grid operation mode unit and a new energy / flexible load unit; A fault device unit is used to set one or more types of fault devices involved in the test scenario and set a corresponding fault type search space for each test scenario; A fault type unit is used to set one or more types of equipment fault types involved in the test scenario, and to set a corresponding fault type search space for each test scenario; The external meteorological data unit is used to set the external meteorological characteristics involved in the test scenario and set the corresponding external meteorological data search space for each test scenario; A power grid operation mode unit, used to set the power grid operation mode characteristics involved in the test scenario and set the corresponding power grid operation mode search space for each test scenario; The new energy / flexible load unit is used to set the output and distribution characteristics of the new energy and flexible load involved in the test scenario, and to set the corresponding new energy / flexible load search space for each test scenario; The data processing module includes: an input unit and an output unit; An input unit is used to collect historical operation change data of the power grid; The output unit is used to interpolate the collected historical operation change data of the power grid to obtain the load and power generation values at the set time as the continuous operation mode data of the power grid.
9. The power grid security analysis software test scenario generation system according to claim 8, characterized in that: The scenario generation module includes: an indicator threshold setting unit, an indicator calculation unit and a scenario unit; An indicator threshold setting unit, used to set the threshold of the sub-item indicator to be tested as a test scenario search termination mark based on the pre-set power grid security indicator and in accordance with the test requirements; An indicator calculation unit, used to perform power grid simulation calculation during the simulation operation to obtain rolling updated power grid state variables, and calculate the one or more sub-item indicator result values to be tested according to the rolling updated power grid state variables; The scenario unit is used to compare the result values of one or more sub-indicators to be tested calculated by the indicator calculation unit with the corresponding sub-indicator thresholds. When the result values of one or more sub-indicators to be tested reach the threshold, the power grid simulation calculation is stopped, and the current power grid model, power grid mode, fault condition, and control mode are saved as test scenarios.
Citation Information
Patent Citations
Electric power system operation and safety monitoring system
CN105388783A
Power grid continuous operation simulation section generation method and system
CN109586272A