Generalized modeling method and system for power grid safety and stability control strategy
By compiling standardized configuration files and automatically generating stable control strategy models, and establishing general stable control strategy search logic, the problem of low modeling efficiency of grid safety and stability control strategy is solved, and high-precision grid simulation and analysis are achieved.
Patent Information
- Application Number
- CN202411491731.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-25
AI Technical Summary
The prior art is difficult to achieve rapid and general modeling of the power grid safety and stability control strategy, resulting in low digital simulation and analysis efficiency of the stabilization device/system.
By compiling standardized configuration files and automatically generating stable control strategy models, a general stable control strategy search logic suitable for different stable control strategies is established, including control object retrieval, control quantity calculation and control instruction conversion.
It realizes rapid general modeling of stable control strategies, improves the high-precision simulation and analysis capabilities of safe and stable control of the power grid, and supports the reliable operation of the power grid and stable control system.
Smart Images

Figure CN119514144A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a power grid security and stability control technology, and in particular to a universal modeling method and system for a power grid security and stability control strategy (referred to as stability control strategy). Background Art
[0002] With the rapid development of UHV power grid and the transformation of power grid to a new power system dominated by new energy, the power grid safety and stability control system (referred to as stability control system) has become an important means for the safe and stable operation of UHV DC transmission and receiving end power grids. The stability control system is composed of multiple power grid safety and stability control devices (referred to as stability control devices) through information interaction, covering many sites and complex stability control strategy functions. With the increasing number of cross-connections and coupled configurations of control objects between stability control devices, the scope of influence of control strategies is also increasing. Therefore, it is necessary to establish a digital model of the stability control system to achieve high-precision simulation and analysis of the stability control system and support the reliable operation of the power grid and the stability control system.
[0003] The stabilization control strategy is the main control logic of the stabilization control device and the stabilization control system. Digital modeling of it is the basis for modeling the stabilization control device and the stabilization control system. However, how to quickly and universally model the differentiated stabilization control strategy to support the simulation of the stabilization control device / system is a technical difficulty. Summary of the invention
[0004] Purpose of the invention: The present invention aims to provide a universal modeling method and system for power grid security and stability control strategies, to achieve rapid universal modeling of differentiated stability control strategies, and to support digital simulation and analysis of stability control devices / systems.
[0005] Technical solution: A generalized modeling method for power grid security and stability control strategy, including the following steps:
[0006] The configuration files of the stabilization control strategy are compiled in a standardized format, including a strategy table file, a set value file and an input signal configuration file. The strategy table file uses a standardized format to describe the control strategy of the stabilization control device, the set value file uses a standardized format to describe the set values of the strategy involved in the stabilization control device, and the input signal configuration file uses a standardized format to describe the electrical quantities and switch signals required by the stabilization control strategy;
[0007] According to the contents described in the standardized strategy table file, by defining the corresponding objects in the programming language, a program is written to automatically read the configuration file of the stabilization strategy, automatically generate the stabilization strategy model, and according to the relationship between different objects, the interoperability functions of different objects are written to realize the retrieval and data calculation between objects, establish the relationship between different objects in the strategy model, and provide a basis for the stabilization strategy search logic;
[0008] Based on the stabilization control strategy model and input signal, a general stabilization control strategy search logic suitable for different stabilization control strategies is established, which specifically includes three parts of logic: control object retrieval, control quantity calculation and control instruction conversion.
[0009] Further, the strategy model includes a stabilization control strategy, a stabilization control sub-strategy, an association between an execution strategy and a stabilization control sub-strategy, an execution strategy, a control measure combination, an association between an execution strategy and a control measure combination, a control measure, a fault definition, an operation mode definition, a section definition, a formula, a component measurement definition, a control object group definition, and a control object definition;
[0010] Among them, the fault definition, operation mode, power flow constraint, constraint conditions and power loss in the stabilization control strategy, the control quantity and constraint conditions in the stabilization control sub-strategy, the priority, constraint conditions and reserved constraints in the execution strategy, the priority in the control measure combination, the control quantity and constraint conditions in the control measures, the priority, constraint conditions and reserved constraints in the execution strategy are all described by formula definitions.
[0011] Furthermore, according to the contents described in the standardized strategy table file, by defining corresponding objects in the programming language, a program is written to automatically read the configuration file of the stabilization strategy and automatically generate a stabilization strategy model, including:
[0012] According to the contents described in the standardized strategy table file, by defining the corresponding stabilization control strategy class, stabilization control sub-strategy class, stabilization control sub-strategy and execution strategy association class, execution strategy class, control measure combination class, execution strategy and control measure combination association class, control measure class, fault definition class, operation mode definition class, section definition class, formula class, component measurement definition class, control object group definition class and control object definition class in the C++ program, the standardized strategy table file is automatically read through the C++ program to realize the automatic generation of the stabilization control strategy model.
[0013] Furthermore, based on the association relationship between different objects, the interoperability functions of different objects are written to realize the retrieval and data calculation between objects, and the association relationship between different objects in the strategy model is established to provide a basis for the stabilization strategy search logic, including:
[0014] Define corresponding retrieval functions in each class to retrieve objects that meet all constraints based on mode constraints, fault constraints, and power flow constraints, establish associations between various types of objects, and write interoperability functions of different classes based on the associations between class objects to realize retrieval and data calculation between class objects, providing a basis for the search logic of stabilization control strategies.
[0015] Furthermore, the control object retrieval logic has the main function of retrieving the control object that needs to be controlled by calling the corresponding retrieval function defined in each class and the interoperability functions of different classes according to the mode constraints, fault constraints, flow constraints and other constraints of the current power system.
[0016] Furthermore, the control quantity calculation described above mainly functions to calculate the specific control quantity required by the current stabilization control strategy.
[0017] Furthermore, the control instruction conversion mainly functions to output specific control instructions for each control object based on the required control object and control quantity and in accordance with the control rules determined by the control word of the stabilization model.
[0018] A universal modeling system for power grid security and stability control strategy, including:
[0019] A standardized configuration file preparation module is used to prepare configuration files of stabilization control strategies in a standardized format, specifically including a strategy table file, a fixed value file, and an input signal configuration file, wherein the strategy table file adopts a standardized format to describe the control strategy of the stabilization control device, the fixed value file adopts a standardized format to describe the fixed values of the strategy involved in the stabilization control device, and the input signal configuration file adopts a standardized format to describe the electrical quantities and switch signals required by the stabilization control strategy;
[0020] The stabilization control strategy model generation module is used to define the corresponding objects in the programming language according to the contents described in the standardized strategy table file, write a program to automatically read the configuration file of the stabilization control strategy, automatically generate the stabilization control strategy model, and according to the relationship between different objects, write the interoperability functions of different objects to realize the retrieval and data calculation between objects, establish the relationship between different objects in the strategy model, and provide a basis for the stabilization control strategy search logic;
[0021] The stabilization control strategy search logic implementation module is used to establish a general stabilization control strategy search logic suitable for different stabilization control strategies based on the stabilization control strategy model and input signals. It specifically includes three parts of logic: control object retrieval, control quantity calculation and control instruction conversion.
[0022] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the generalized modeling method of the power grid security and stability control strategy as described above are implemented.
[0023] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the generalized modeling method for the power grid security and stability control strategy as described above are implemented.
[0024] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:
[0025] (1) By compiling standardized configuration files and automatically generating models, and realizing the search logic of stability control strategies, the universal modeling method simplifies the modeling process and improves work efficiency. The universality and adaptability of the power grid security and stability control strategy are improved, and the stability control needs under different power grid environments can be quickly responded to.
[0026] (2) It realizes the digital simulation and analysis of the stabilization control strategy, which helps to optimize the grid operation and control strategy. It makes the grid control system more flexible and can quickly adapt to changes in grid structure and load. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 An overall flow chart for modeling the stabilization control strategy in an embodiment of the present invention;
[0028] Figure 2 This is a schematic diagram of a standardized stabilization strategy table file of the present invention;
[0029] Figure 3 It is a specific flow chart of the universal modeling method of the stabilization control strategy of the present invention;
[0030] Figure 4 It is a schematic diagram of the packaging model of the stabilization control strategy of a stabilization control device in an embodiment of the present invention in Simulink. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings.
[0032] The generalized modeling method of a power grid security and stability control strategy described in the present invention takes a certain stabilization control device as an example. The modeling process is as follows: Figure 1 As shown, including:
[0033] Step S1, compile a configuration file of a stabilization control strategy in a standardized format, specifically including a strategy table file, a constant value file and an input signal configuration file.
[0034] According to the implementation mode of the present invention, the standardized format adopts the power system data markup language - E language specification. The E language specification is an efficient power system data identification language. It is based on the IEC 61970-301 power system common data model CIM and is formulated to address the efficiency defects of CIM when describing in XML. The strategy table file uses this standardized format to describe the control strategy of the stabilization control device to ensure the readability and consistency of different strategies. Figure 2 As shown in the figure, the description of the strategy table file mainly includes stabilization strategy, stabilization sub-strategy, the relationship between stabilization sub-strategy and execution strategy, execution strategy, the relationship between execution strategy and control measure combination, control measure combination, control measure combination and control measure relationship, control measure, control object combination and control object. Among them, the fault definition, operation mode, power flow constraint, constraint condition and power loss amount in the stabilization strategy, the control amount and constraint condition in the stabilization sub-strategy, the priority, constraint condition and reserved constraint in the execution strategy, the priority in the control measure combination, the control amount and constraint condition in the control measure, the priority, constraint condition and reserved constraint in the execution strategy are all described by formula definition. Similarly, the fixed value file uses a standardized format to describe all the strategy fixed values involved in this device, which is convenient for adjusting and optimizing control parameters. The strategy table file and the fixed value file can be directly obtained from the actual device. Based on the strategy table file, the input signal required by the control strategy of the stabilization device is analyzed, and then the electrical quantity and switch signal required by the stabilization strategy are described in a standardized format, and the input signal configuration file is compiled to provide input data for the strategy model.
[0035] Step S2, according to the content described in the standardized strategy table file, by defining the corresponding objects in the programming language, by writing a program to automatically read the configuration file of the stabilization strategy, automatically generate the model of the stabilization strategy, and improve the modeling efficiency. On this basis, according to the association relationship between different objects, by writing the interoperation functions of different objects to realize the retrieval and data calculation between objects, establish the association relationship between different objects in the strategy model, and provide a basis for the stabilization strategy search logic.
[0036] In the power grid security and stability control system, there is a close relationship between the stability control strategy, control measures and execution strategy. The stability control strategy is the overall framework, which describes a series of stability control measures taken by the stability control system according to the power grid operation mode and fault form when the power grid enters an emergency state due to a large disturbance, such as cutting units, cutting loads and power control. Control measures are the specific implementation means of the stability control strategy, which aims to reduce or eliminate the impact of risks on the system. The execution strategy is the step of refining the stability control strategy to the specific operation level to ensure that the stability control measures can be effectively implemented in actual operation.
[0037] Stability control strategy: describes the stability control measures under conditions such as power grid operation mode and fault form.
[0038] Stabilization and control sub-strategy: a subdivision strategy of the stabilization and control strategy.
[0039] Execution strategy: steps to break down the stabilization strategy into specific operational levels.
[0040] Control Measure Package: A group of control measures.
[0041] Control measures: Specific implementation measures aimed at reducing or eliminating the impact of risks on the system.
[0042] Control object definition: define the name of the control object, component name and other information.
[0043] According to an implementation mode of the present invention, based on the content described in the standardized strategy table file, by defining corresponding stabilization control strategies, stabilization control sub-strategies, the relationship between stabilization control sub-strategies and execution strategies, execution strategies, control measure combinations, the relationship between execution strategies and control measure combinations, control measures, fault definitions, operating mode definitions, section definitions, formulas, component measurement definitions, control object group definitions and control object definitions and other objects in a C++ program, and defining retrieval functions for each object, these retrieval functions achieve accurate retrieval and calculation based on the relationship between the objects.
[0044] Reference Figure 3 , the stabilization control strategy and the stabilization control sub-strategy are associated through the "stabilization control strategy name", the fault definition, operation mode, flow constraint, constraint condition and power loss in the stabilization control strategy, the control quantity and constraint condition in the stabilization control sub-strategy are described through formula definition; the association relationship between the stabilization control sub-strategy and the execution strategy is defined through the "stabilization control sub-strategy name" and "execution strategy name", and the priority, constraint condition and reserved constraint in the execution strategy are described through formula definition; the association relationship between the execution strategy and the control measure combination is defined through the "execution strategy name" and "control measure combination name", the control measure combination and the control measure association relationship are defined through the "control measure combination name", and the control measure and the control object are associated through the "object name", that is, the associated control object defined in the control measure is associated with the name of the defined control object; the priority in the control measure combination, the control quantity and constraint condition in the control measure, the priority, constraint condition and reserved constraint in the execution strategy are all described by formula definition. The specific formula is not the focus of the present invention, and the calculation can be realized according to the electrical operation principle and the actual control logic, which will not be repeated here.
[0045] As an example, according to Figure 2The standardized strategy table file shown in the figure defines the stabilization strategy class and stabilization sub-strategy class in the C++ program. The attributes of the stabilization strategy class mainly include the stabilization strategy ID, the name of the device to which it belongs, the name of the stabilization strategy, the strategy type, the mode constraint, the fault constraint, the flow constraint, the power loss formula, the constraint condition and the strategy round, etc. For example, the stabilization strategies 1 and 2 are as follows:
[0046] #1 Jinxi Power Plant Safety Control Device 1 Full Wiring Mode. Xijin Single Circuit Fault Xijin Three Circuit Section (Jinxi Delivery) Strategy 1st Level Feedforward Full Wiring Mode Xijin Single Circuit Fault fml (Full Wiring Mode. Xijin Single Circuit Fault Xijin Three Circuit Section (Jinxi Delivery) Strategy 1st Level Flow Constraint Formula) fml (Full Wiring Mode. Xijin Single Circuit Fault 1st Level Unbalanced Amount) null 0
[0047] #2 Jinxi Power Plant Safety Control Device 1 Full Wiring Mode. Xijin Single Circuit Fault Xijin Three Circuit Section (Jinxi Delivery) Strategy 2nd Level Feedforward Full Wiring Mode Xijin Single Circuit Fault fml (Full Wiring Mode. Xijin Single Circuit Fault Xijin Three Circuit Section (Jinxi Delivery) Strategy 2nd Level Flow Constraint Formula) fml (Full Wiring Mode. Xijin Single Circuit Fault 2nd Level Unbalanced Amount) null 0
[0048] The attributes of the stabilization control sub-strategy class mainly include stabilization control sub-strategy ID, stabilization control sub-strategy name, name of the device to which it belongs, stabilization control strategy to which it belongs, control mode, control type, control quantity formula, control quantity allocation method, priority rule, adjustment quantity type, constraint condition, bundled execution, etc. For example, stabilization control sub-strategies No. 1 and No. 2 are as follows:
[0049] #1 Full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) number of cut-off units strategy 1st gear Jinxi power plant safety control device 1 Full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) strategy 1st gear 2 0
[0050] fml (full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) cutting machine number strategy first gear control quantity formula) 2 2 3null 1
[0051] #2 Full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) cut-off number of units strategy 2nd level Jinxi power plant safety control device 1 Full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) strategy 2nd level 2 0
[0052] fml (full wiring mode. Xijin single circuit fault Xijin three circuit section (Jinxi delivery) cutting machine number strategy second gear control quantity formula) 2 2 3null 1
[0053] The standardized strategy table file is automatically read through the C++ program, and the stabilization strategy (with<WARMAP_SCSDECI> start,< / WARMAP_SCSDECI> End of field) and stabilization sub-strategy (with<WARMAP_SCSSUBDECI> start,< / WARMAP_SCSSUBDECI> The same method is used to establish corresponding classes in C++ for objects such as stabilization control sub-strategies, associations between execution strategies and stabilization control sub-strategies, execution strategies, control measure combinations, associations between execution strategies and control measure combinations, control measures, fault definitions, operation mode definitions, section definitions, formulas, component measurement definitions, control object group definitions, and control object definitions. The standardized strategy table file is automatically read through the C++ program to realize the automatic generation of the stabilization control strategy model.
[0054] On this basis, a stabilization control strategy retrieval function is defined in the stabilization control strategy class to retrieve stabilization control strategies that meet all constraints based on mode constraints, fault constraints, and power flow constraints. Figure 3 The relationship between the stabilization strategy class and the stabilization sub-strategy class, method definition class, fault definition class and formula class is shown in . Figure 3 The relationship between class objects is shown, and interoperability functions of different classes are written to realize retrieval and data calculation between class objects, providing a basis for the search logic of stabilization control strategies.
[0055] Step S3, based on the stabilization control strategy model and the input signal, write a generalized strategy search logic to establish a general stabilization control strategy search logic that can be applied to different stabilization control strategies.
[0056] According to the implementation mode of the present invention, the general stability control strategy search logic specifically includes three parts of logic: control object retrieval, control quantity calculation and control instruction conversion. Among them, the main function of the control object retrieval logic is to call various types of retrieval functions established in step S2 according to the current power system mode constraints, fault constraints, flow constraints and other constraints (such as control mode) and other constraints to retrieve the control objects that need to be controlled. The main function of the control quantity calculation is to calculate the specific control quantity required by the current stability control strategy. The main function of the control instruction conversion is to output specific control instructions for each control object based on the required control object and control quantity according to the control rules determined by the stability control model control word. The stability control strategy search process is universalized through the three parts of control object retrieval, control quantity calculation and control instruction conversion, so that the stability control strategy search process is independent of the specific fault type, operation mode and section flow, and the applicability of the stability control strategy search logic to different stability control strategies is improved.
[0057] In step S4, the established stabilization control strategy model can be encapsulated based on the S-Function of Simulink. S-Function is a special function in Simulink that allows users to define the dynamic system behavior in the model by writing C, C++ or MATLAB code. It can also be encapsulated in other forms to form a stabilization control strategy model that can be simulated.
[0058] The present invention also provides a universal modeling system for power grid security and stability control strategy, including:
[0059] A standardized configuration file preparation module is used to prepare standardized configuration files, including preparing strategy table files, fixed value files and input signal configuration files, wherein the strategy table file adopts a standardized format to describe the control strategy of the stabilization control device, the fixed value file adopts a standardized format to describe the fixed values of the strategy involved in the stabilization control device, and the input signal configuration file adopts a standardized format to describe the electrical quantities and switch signals required by the stabilization control strategy;
[0060] A stabilization control strategy model generation module is used to automatically generate a stabilization control strategy model by automatically reading a configuration file of the stabilization control strategy, wherein the stabilization control strategy model includes a stabilization control strategy, a stabilization control sub-strategy, an association between an execution strategy and a stabilization control sub-strategy, an execution strategy, a control measure combination, an association between a control measure combination, a control measure, a fault definition, an operation mode definition, a section definition, a formula, a component measurement definition, a control object group definition, and a control object definition;
[0061] The stabilization control strategy search logic implementation module is used to establish a general stabilization control strategy search logic suitable for different stabilization control strategies based on the stabilization control strategy model and input signals, and the implementation of the general stabilization control strategy search logic includes control object retrieval, control quantity calculation and control instruction conversion.
[0062] Furthermore, the system may also include: a packaging module, which is used to package the established stabilization control strategy model based on the s-function of Simulink, or to package it in other forms to form a stabilization control strategy model that can be simulated.
[0063] In order to verify the method and system performance of the present invention, the control strategy of a certain stabilization device is taken as an example. Figure 1 and Figure 3 The modeling process shown is based on the data obtained from the stabilization device. Figure 2 The strategy table file, setting file and input signal configuration file shown in the figure are established as follows Figure 4The power grid safety and stability control strategy model shown in the figure is simulated and verified based on the model. The function of this stabilization control device strategy model is to output the local machine cutting signal and DC control signal that need to be executed in the current state through the stabilization control strategy model simulation according to the input mode data, fault data and section data. The simulation scenario is that under a certain power grid state, a certain line N-2 fails. The simulation result of the strategy model is to cut off the local 2 units and reduce the DC to 1000MW. The action result is consistent with the action logic of the device, which verifies the effectiveness of the modeling method and system described in the present invention.
[0064] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the generalized modeling method of the power grid security and stability control strategy as described above are implemented.
[0065] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the generalized modeling method for the power grid security and stability control strategy as described above are implemented.
[0066] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices (systems), computer equipment or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0067] The present invention is described with reference to a flowchart of a method according to an embodiment of the present invention. It should be understood that each process in the flowchart and a combination of processes in the flowchart 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 process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.
[0068] 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 function specified in a process or multiple processes.
[0069] 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 The steps of a specified function in a process or multiple processes.
Claims
1. A generalized modeling method for power grid security and stability control strategy, characterized in that: The following steps are involved: The configuration files of the stabilization control strategy are compiled in a standardized format, including a strategy table file, a set value file and an input signal configuration file. The strategy table file uses a standardized format to describe the control strategy of the stabilization control device, the set value file uses a standardized format to describe the set values of the strategy involved in the stabilization control device, and the input signal configuration file uses a standardized format to describe the electrical quantities and switch signals required by the stabilization control strategy; According to the contents described in the standardized strategy table file, by defining the corresponding objects in the programming language, a program is written to automatically read the configuration file of the stabilization strategy, automatically generate the stabilization strategy model, and according to the relationship between different objects, the interoperability functions of different objects are written to realize the retrieval and data calculation between objects, establish the relationship between different objects in the strategy model, and provide a basis for the stabilization strategy search logic; Based on the stabilization control strategy model and input signal, a general stabilization control strategy search logic suitable for different stabilization control strategies is established, which specifically includes three parts of logic: control object retrieval, control quantity calculation and control instruction conversion.
2. The method according to claim 1, characterized in that The strategy model includes a stabilization control strategy, a stabilization control sub-strategy, an association between an execution strategy and a stabilization control sub-strategy, an execution strategy, a control measure combination, an association between an execution strategy and a control measure combination, a control measure, a fault definition, an operation mode definition, a section definition, a formula, a component measurement definition, a control object group definition, and a control object definition; Among them, the fault definition, operation mode, power flow constraint, constraint conditions and power loss in the stabilization control strategy, the control quantity and constraint conditions in the stabilization control sub-strategy, the priority, constraint conditions and reserved constraints in the execution strategy, the priority in the control measure combination, the control quantity and constraint conditions in the control measures, the priority, constraint conditions and reserved constraints in the execution strategy are all described by formula definitions.
3. The method according to claim 1, characterized in that According to the contents described in the standardized strategy table file, by defining the corresponding objects in the programming language, a program is written to automatically read the configuration file of the stabilization strategy and automatically generate the stabilization strategy model, including: According to the contents described in the standardized strategy table file, by defining the corresponding stabilization control strategy class, stabilization control sub-strategy class, stabilization control sub-strategy and execution strategy association class, execution strategy class, control measure combination class, execution strategy and control measure combination association class, control measure class, fault definition class, operation mode definition class, section definition class, formula class, component measurement definition class, control object group definition class and control object definition class in the C++ program, the standardized strategy table file is automatically read through the C++ program to realize the automatic generation of the stabilization control strategy model.
4. The method according to claim 1, characterized in that According to the relationship between different objects, the interoperability functions of different objects are written to realize the retrieval and data calculation between objects, and the relationship between different objects in the strategy model is established to provide a basis for the search logic of the stabilization strategy, including: Define corresponding retrieval functions in each class to retrieve objects that meet all constraints based on mode constraints, fault constraints, and power flow constraints, establish associations between various types of objects, and write interoperability functions of different classes based on the associations between class objects to realize retrieval and data calculation between class objects, providing a basis for the search logic of stabilization control strategies.
5. The method according to claim 4, characterized in that The control object retrieval logic mainly retrieves the control object that needs to be controlled by calling the corresponding retrieval function defined in each class and the interoperability functions of different classes according to the mode constraints, fault constraints, flow constraints and other constraints of the current power system.
6. The method according to claim 5, characterized in that The control quantity calculation described above mainly calculates the specific control quantity required by the current stabilization control strategy.
7. The method according to claim 6, characterized in that The control instruction conversion described above mainly outputs specific control instructions for each control object based on the required control object and control quantity and the control rules determined by the control word of the stabilization control model.
8. A universal modeling system for power grid security and stability control strategy, characterized in that: include: A standardized configuration file preparation module is used to prepare configuration files of stabilization control strategies in a standardized format, specifically including a strategy table file, a fixed value file, and an input signal configuration file, wherein the strategy table file adopts a standardized format to describe the control strategy of the stabilization control device, the fixed value file adopts a standardized format to describe the fixed values of the strategy involved in the stabilization control device, and the input signal configuration file adopts a standardized format to describe the electrical quantities and switch signals required by the stabilization control strategy; The stabilization control strategy model generation module is used to define the corresponding objects in the programming language according to the contents described in the standardized strategy table file, write a program to automatically read the configuration file of the stabilization control strategy, automatically generate the stabilization control strategy model, and according to the relationship between different objects, write the interoperability functions of different objects to realize the retrieval and data calculation between objects, establish the relationship between different objects in the strategy model, and provide a basis for the stabilization control strategy search logic; The stabilization control strategy search logic implementation module is used to establish a general stabilization control strategy search logic suitable for different stabilization control strategies based on the stabilization control strategy model and input signals. It specifically includes three parts of logic: control object retrieval, control quantity calculation and control instruction conversion.
9. A computer device, characterized in that: include: one or more processors; Memory; And one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the generalized modeling method of the power grid security and stability control strategy as described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the generalized modeling method of the power grid security and stability control strategy as described in any one of claims 1-7 are implemented.