A hybrid-driven power grid frequency emergency control optimization method and system
By combining an improved particle swarm optimization algorithm and a hybrid neural network with time-domain simulation, the problem of rapid formulation of emergency control strategies in multi-DC feed-in receiving-end systems was solved, achieving efficient and safe optimization of emergency control decisions and ensuring the frequency security of the power grid.
Patent Information
- Application Number
- CN202310587939.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-05-22
AI Technical Summary
In multi-DC-feed receiving-end systems, frequency regulation capability decreases, and it becomes difficult to quickly and effectively formulate emergency control strategies after a DC blockage accident. Traditional methods involve large computational loads and are prone to getting trapped in local optima, affecting the efficiency and safety of emergency control decision optimization.
A hybrid-driven emergency control method for power grid frequency is adopted, which combines particle swarm optimization algorithm, hybrid neural network and time domain simulation. The PSO algorithm is improved by adversarial learning mechanism, engineering knowledge and chaotic Tent mapping to quickly evaluate the safety of emergency control strategy. A multi-task dynamic safety assessment model is constructed by hybrid neural network to ensure the dynamic safety feasibility of the strategy.
It improves the efficiency and global convergence of emergency control decision optimization, can quickly obtain emergency control strategies that meet dynamic security constraints, supports online rolling updates, and ensures the safe and stable operation of the receiving-end power system.
Smart Images

Figure CN116613742B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of power grid frequency emergency control technology, and particularly relates to a hybrid-driven power grid frequency emergency control optimization method and system. Background Technology
[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.
[0003] With the large-scale centralized grid connection of new energy power generation, the capacity of inter-regional DC transmission is constantly increasing, resulting in multiple regional receiving-end systems with multiple DC feeds. In these systems, the proportion of DC transmission capacity is relatively large, while the proportion of thermal power units is further decreasing, leading to a reduction in system inertia and frequency regulation capability. Blocking of large-capacity DC transmission channels can cause significant power deficits in the receiving-end system, leading to dynamic safety issues such as frequency, power angle, and voltage, and even power outages. Therefore, for multi-DC-feed receiving-end systems, emergency control measures must be taken after a DC blockage to ensure system frequency safety and maintain stable system operation.
[0004] Frequency emergency control decision optimization is a strongly nonlinear problem. Traditional analytical methods for finding the optimal frequency emergency control strategy involve large computational costs and are prone to getting trapped in local optima. Heuristic algorithms have good global optimization capabilities for strongly nonlinear optimization problems and have been widely used in emergency control decision optimization. However, heuristic algorithms require multiple updates and iterations, and evaluation of whether the emergency control strategy after each update satisfies dynamic safety constraints. Dynamic safety assessment methods based on time-domain simulation obtain the dynamic safety status of the system after emergency control by solving a system of differential-algebraic equations. The assessment process is time-consuming and seriously affects the efficiency of emergency control decision optimization. Summary of the Invention
[0005] To address the technical problems mentioned above, this invention provides a hybrid-driven method and system for optimizing emergency power grid frequency control. It constructs a multi-task dynamic safety assessment model based on a data-driven hybrid neural network to quickly determine whether the emergency control strategy meets various dynamic safety constraints, thus improving the efficiency of emergency control decision optimization. Furthermore, it verifies the final emergency control strategy using a model-driven time-domain simulation method, ensuring the dynamic safety feasibility of the emergency control decision optimization method.
[0006] To achieve the above objectives, the present invention adopts the following technical solution:
[0007] The first aspect of the present invention provides a hybrid-driven method for optimizing emergency control of power grid frequency, comprising:
[0008] Obtain the operating mode of the power grid;
[0009] Based on the aforementioned operating mode and in conjunction with specific DC blocking faults, the frequency emergency control strategy is optimized using a particle swarm optimization algorithm.
[0010] The frequency emergency control strategy obtained based on the particle swarm optimization algorithm was verified by time-domain simulation, and a frequency emergency control strategy that meets the safety constraints was obtained.
[0011] In the particle swarm optimization algorithm, when updating the particle swarm, the emergency control strategy and operation mode of each particle are input into the hybrid neural network to obtain the comprehensive evaluation result of each particle, and the particle swarm is updated based on the comprehensive evaluation result.
[0012] Furthermore, the particle swarm optimization algorithm uses the minimum total control economic cost as the fitness function.
[0013] Furthermore, after the particle swarm optimization algorithm generates an initial particle swarm that satisfies the safety constraints in a completely random manner, it generates an opposite particle for each initial particle in the initial particle swarm according to the opposite learning mechanism. If the comprehensive evaluation result of the opposite particle is that there is no safety risk, the fitness of the initial particle and its opposite particle are compared, and one of the initial particle and its opposite particle is selected as the initial particle after initialization and update based on the fitness.
[0014] Furthermore, in each iteration, after updating the particle, a twin particle of the updated particle is generated. If the comprehensive evaluation results of both the updated particle and the twin particle show security risks, the particle is not updated. If either the updated particle or the twin particle does not have a security risk, the particle without security risk is selected as the particle updated in this iteration. If neither the updated particle nor the twin particle has a security risk, the twin particle is selected as the particle updated in this iteration.
[0015] Furthermore, each dimension of the twin particle position vector is a multiple of the corresponding updated particle.
[0016] Furthermore, the chaotic sequence generated by the chaotic tent mapping is used as a random factor to update the particle velocity.
[0017] Furthermore, the safety constraints include: control variable constraints, transient frequency safety constraints, transient power angle safety constraints, transient voltage safety constraints, and cross-sectional transmission power safety constraints.
[0018] A second aspect of the present invention provides a hybrid-driven power grid frequency emergency control optimization system, comprising:
[0019] The data acquisition module is configured to acquire the operating mode of the power grid;
[0020] The optimization module is configured to optimize the frequency emergency control strategy using a particle swarm optimization algorithm based on the aforementioned operating mode and in conjunction with a specific DC blocking fault.
[0021] The safety verification module is configured to perform safety verification on the frequency emergency control strategy obtained based on the particle swarm optimization algorithm using time-domain simulation, and obtain a frequency emergency control strategy that meets the safety constraints.
[0022] In the particle swarm optimization algorithm, when updating the particle swarm, the emergency control strategy and operation mode of each particle are input into the hybrid neural network to obtain the comprehensive evaluation result of each particle, and the particle swarm is updated based on the comprehensive evaluation result.
[0023] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the hybrid-driven power grid frequency emergency control optimization method described above.
[0024] A fourth aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the hybrid-driven power grid frequency emergency control optimization method described above.
[0025] Compared with the prior art, the beneficial effects of the present invention are:
[0026] This invention provides a hybrid-driven method for optimizing emergency control of power grid frequency. It constructs a multi-task dynamic safety assessment model based on a data-driven hybrid neural network, which quickly determines whether the emergency control strategy meets various dynamic safety constraints, thereby improving the efficiency of emergency control decision optimization.
[0027] This invention provides a hybrid-driven optimization method for emergency control of power grid frequency, which achieves rapid solution of the optimal emergency control strategy based on the PSO algorithm. The method incorporates an opposition learning mechanism, engineering prior knowledge and chaotic Tent mapping into the PSO algorithm, thereby improving the global convergence of PSO.
[0028] This invention provides a hybrid-driven power grid frequency emergency control optimization method, which verifies the final emergency control strategy based on a model-driven time-domain simulation method, ensuring the dynamic safety and feasibility of the emergency control decision optimization method.
[0029] This invention provides a hybrid-driven method for optimizing emergency control of power grid frequency, which can efficiently acquire emergency control strategies with low control costs and that meet dynamic safety constraints, support online rolling updates of emergency control decisions, and ensure the safe and stable operation of the receiving-end power system. Attached Figure Description
[0030] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0031] Figure 1 This is a flowchart of the frequency emergency control optimization based on the PSO algorithm in Embodiment 1 of the present invention;
[0032] Figure 2 This is a flowchart of particle swarm initialization based on the opposition learning mechanism in Embodiment 1 of the present invention;
[0033] Figure 3 This is a structural diagram of a multi-task DSA model based on a hybrid neural network according to Embodiment 1 of the present invention;
[0034] Figure 4 This is a graph showing the frequency change of the receiving-end power grid without emergency control after DC #2 is blocked in Embodiment 1 of the present invention.
[0035] Figure 5 This is a comparison chart of the optimization and solution efficiency of different PSO algorithms in Embodiment 1 of the present invention;
[0036] Figure 6 This is a graph showing the frequency change of the receiving-end power grid under the DC #2 blocking emergency control strategy according to Embodiment 1 of the present invention.
[0037] Figure 7 This is a comparison diagram of the PSO solution process using time-domain simulation and hybrid neural network respectively in Embodiment 1 of the present invention. Detailed Implementation
[0038] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0039] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0040] Example 1
[0041] This embodiment provides a hybrid-driven method for optimizing emergency control of power grid frequency.
[0042] With the development of artificial intelligence technology, machine learning methods can directly extract the mapping relationship between input features and output from massive amounts of data, and are widely used in the field of dynamic security assessment of power systems. According to the type of input features, dynamic security assessment based on machine learning technology can be divided into two categories. The first category uses the dynamic response of the system after a fault as input features, completing the dynamic security assessment after the fault. Emergency control decision optimization based on this method completes the control decision formulation after the fault, requiring extremely high speed in data sampling, transmission, and computation. The second category uses steady-state electrical quantity information before the fault as input features, completing the dynamic security assessment before the fault. Applying this to frequency emergency control decision optimization enables rapid formulation of emergency control decisions before the fault. Although there is currently a lot of research on the second type of dynamic security assessment method, there is relatively little research on its further application in emergency control decision optimization.
[0043] The efficiency of current emergency frequency control decision optimization methods for receiving-end power grids facing DC blocking accidents is insufficient to meet online decision-making requirements. To address this issue, this invention combines heuristic algorithms, deep learning techniques, time-domain simulation methods, and engineering prior knowledge to propose a hybrid-driven emergency frequency control decision optimization method for receiving-end power grids. This method ensures that the emergency frequency control strategy meets the dynamic safety and feasibility requirements of the power grid while resolving technical problems such as poor global convergence and low efficiency in the strategy optimization process. It supports online rolling updates of emergency control decisions, ensuring the safe and stable operation of the receiving-end power system.
[0044] This embodiment provides a hybrid-driven power grid frequency emergency control optimization method. Based on the power grid's operating mode, it uses a particle swarm optimization algorithm to optimize the frequency emergency control strategy. Time-domain simulation is used to perform safety verification on the frequency emergency control strategy obtained from the particle swarm optimization algorithm, resulting in a frequency emergency control strategy that meets safety constraints. Specifically, when updating the particle swarm, the particle swarm optimization algorithm inputs the emergency control strategy and operating mode of each particle into a hybrid neural network to obtain a comprehensive evaluation result for each particle. Based on this comprehensive evaluation result, the particle swarm is then updated.
[0045] This embodiment provides a hybrid-driven power grid frequency emergency control optimization method, which specifically includes:
[0046] (1) Construction of an optimization model for emergency frequency control decision of the receiving-end power grid after a DC blocking accident (specific DC blocking fault).
[0047] Emergency load shedding is a crucial emergency control measure for maintaining frequency security after a DC blocking fault occurs in a multi-DC-feed receiving-end power grid. As a flexible control resource, pumped storage power stations in pumped operation can be considered a special type of grid load. After a DC blocking fault occurs, disconnecting pumped storage power stations in pumped operation can achieve a similar safety and stability regulation effect as load shedding. Therefore, this invention considers pumped storage power stations within the load shedding range and uses minimizing the total economic cost of control as the objective function (fitness function) for emergency control decision optimization, specifically expressed as:
[0048] min F=ω p ΔP p +ω L ΔP L (1)
[0049] Where F is the control cost, ω p , △P p ω L , △P L They are represented as follows:
[0050]
[0051]
[0052]
[0053]
[0054] Where, ω p This represents a vector consisting of the unit active power control cost of each pumping and storage unit; n p Indicates the number of pumping and storage pumps switched off; △P p ω represents the vector consisting of the active power cut off by each pumping and storage unit; L This represents a vector consisting of the unit active power control costs of each load unit; n L Indicates the amount of load that can be cut off; △P L This represents a vector consisting of the active power removed by each load shedding unit.
[0055] The emergency control constraints for the receiving-end power grid frequency can be divided into upper and lower limits of control variables and system dynamic safety constraints. The control variable constraints are as follows:
[0056]
[0057] in, This represents the maximum switchable power of the i-th pumping unit. This represents the maximum power that the i-th load shedding unit can cut.
[0058] In actual power grid operation, ΔPp,i and △P L,i It exhibits discrete characteristics. However, multi-DC-feed receiving-end power grids are mostly load centers with a large number of terminal load units. The continuous changes in load shedding in emergency control strategies can be matched through combinations of different terminal load units. Therefore, this invention uses the control variable ΔP of the load unit... L Treated as a continuous variable. Unlike terminal load units, the number of pumped storage power stations in a regional receiving-end power grid is usually small, making it impossible to control the variable ΔP. p The continuous change of ΔP. Therefore, the present invention will... p Treated as a discrete variable, its value is 0 or 1, where 0 indicates that the pumping unit is switched to 0MW; and 1 indicates that the pumping unit is not switched.
[0059] This invention, based on transient frequency safety constraints, further considers transient power angle, transient voltage, and cross-sectional transmission power safety constraints. The dynamic safety risk constraints are as follows:
[0060]
[0061] Δδ max ≤180° (8)
[0062] u i ≥0.8pu, i=1,…,n LB (9)
[0063] P i ≤P i,max i = 1, ..., n l (10)
[0064] Among them, f min This indicates the lowest frequency of the receiving-end system after a DC blockage fault. The system frequency is calculated according to the definition of the center frequency of inertia, based on the set minimum frequency threshold. △δ max u represents the maximum power angle difference between the generators. i This represents the voltage at node i of the load bus 10 seconds after a DC blocking fault, n. LB Indicates the number of load busbar nodes. P i Let P be the transmission power of the i-th line on the critical transmission section. i,max Let n be the upper limit of the transmission power of the i-th line. l This refers to the number of lines on the power transmission section.
[0065] (2) Control mode.
[0066] This invention employs an "offline setting, real-time matching, and online updating" model for emergency control decision-making. For a specific DC blocking accident, considering various operating modes of the receiving-end power grid, an emergency control strategy table is obtained through offline setting. After a DC blocking accident, the optimal control strategy is obtained by matching from the strategy table. Because the future operating modes of power grids containing renewable energy sources are diverse and uncertain, to improve the comprehensiveness of the emergency control strategy table's coverage of operating modes, the emergency control strategy is updated online on a rolling basis for the short-term operating modes of the receiving-end power grid, achieving precise matching between future operating modes and the optimal emergency control strategy.
[0067] (3) Solving the frequency emergency control decision optimization model based on particle swarm optimization (PSO) algorithm (heuristic algorithm).
[0068] The PSO algorithm searches for the particle position that best matches the optimization objective (objective function) by analyzing the particle's movement within the feasible region. Assume the emergency control model has a d-dimensional solution space and contains s particles. Each particle moves within the d-dimensional solution space, and its movement is related to its historical best position and the population's historical best position. Assume the position vector of the i-th particle is x. i =[x 1 i ,…,x d i ], 1≤i≤s, velocity vector v i For v i =[v 1 i ,…,v d i If ], then the expression for updating the velocity and position of the i-th particle is:
[0069] v i (t+1)=ωv i (t)+c1r1(p i,b -x i (t))+c2r2(g b -x i (t)) (11)
[0070] x i (t+1)=x i (t)+v i (t+1) (12)
[0071] Among them, v i (t+1) represents the velocity vector of the i-th particle in the (t+1)-th iteration; v i(t) represents the iteration velocity of the previous generation of the particle; ω represents the inertia coefficient; c1 and c2 represent learning factors, usually c1 = c2 and the value range is [0,4]; r1 and r2 are random numbers between [0,1], used to increase the randomness of particle movement; x i (t) represents the position of the particle after t iterations; p i,b This represents the particle's historical optimal position; g b This represents the global historical best position of the particle swarm.
[0072] The optimization solution process for frequency emergency control decision based on PSO is as follows: Figure 1 As shown, the particle position vector represents the load sheared at each node. The PSO process terminates when the particle reaches its maximum iteration count. To ensure that the final optimization result meets the dynamic safety constraints, this invention ensures that the particle always moves within the dynamic safety feasible region. Specifically, during the optimization process, if the load sheared represented by a particle exceeds the limit, the exceeded load sheared amount is set as the limit value; if the updated position of the particle does not meet the dynamic safety constraints (comprehensive evaluation result), the historical best position of the particle is not updated in this iteration, and the particle is returned to the previous generation position, strictly ensuring the dynamic safety feasibility of the control decision. It should be noted that a particle represents the load sheared at all nodes, and all nodes refer to all nodes that can be used for load shearing control, such as the position vector x of particle i. i =[x 1 i ,…,x d i Then the first dimension feature x of the position vector 1 i This indicates the amount of load that can be cut by the first shearable load node.
[0073] Since particles are always confined to a dynamically safe feasible region, the global convergence of PSO is affected. The global convergence of the PSO algorithm is closely related to the particle initialization and position update methods. Therefore, this invention improves the PSO algorithm from two aspects—particle initialization and update methods—based on the opposition learning mechanism, knowledge-driven approach, and chaotic Tent mapping method, thereby enhancing the global convergence of PSO.
[0074] (4) Particle swarm initialization based on opposition learning mechanism (an improvement on the PSO algorithm).
[0075] The convergence speed of PSO is closely related to the initial particle swarm distribution. An initial particle swarm with diverse distributions and containing better initial solutions can accelerate the convergence speed of the algorithm. Therefore, this invention introduces an opposition learning mechanism in the particle swarm initialization. By simultaneously considering the fitness of the current particle and its opposition particle, it improves the diversity of particle distribution and the search range, improves the quality of candidate particles, and enhances the global convergence of particle swarm optimization.
[0076] The specific opposite learning mechanism is as follows: Let x be a real number within a certain range [l, u], then its opposite number x' is u + lx. Assume that the position vector of the i-th particle in a particle swarm in d-dimensional space is x. i =[x 1 i ,…,x d i ], and x j i ∈[l j ,u j If the position vector of the opposite particle is x', then the position vector of the opposite particle is x'. i =[x 1 i ',…,x d i '], compare the fitness f(x) of the two particles i ) and f(x i '), and select particles with better adaptability.
[0077] The particle initialization process based on the opposition learning mechanism is as follows: Figure 2 As shown, s represents the number of particles. First, an initial particle swarm satisfying dynamic safety constraints is generated in a completely random manner. Then, opposing particles are generated according to the aforementioned opposition learning mechanism. If an opposing particle satisfies the dynamic safety constraints (i.e., the comprehensive evaluation result indicates no safety risk), the control costs (i.e., objective functions) of the initial particle and its opposing particle are compared, and the particle with the lower cost is selected as the updated initial particle; if the opposing particle does not satisfy the constraints, the initial particle remains unchanged. Finally, the initial particle swarm after opposition learning is output. After the initialization phase, the particle swarm iterative update phase begins.
[0078] (5) Particle swarm optimization incorporating engineering knowledge and experience (knowledge-driven, PSO algorithm improvement).
[0079] Integrating engineering knowledge and experience into the iterative update process of particle swarm optimization improves the global convergence of particle swarm optimization. Specifically, this involves updating particle x in each iteration. i Subsequently, each generates its twin particle x' i Since the smaller the eigenvalues of each dimension of the particle, the less shear load it represents, and the lower the cost of emergency control, in order to fully explore the optimal particle position, twin particles x' i The eigenvalues of each dimension are all x i 0.9 times. Assume the particle after the t-th update and its twin particle are denoted as x. i (t), x' i (t), then the particle update method is as follows:
[0080] 1)xi (t) satisfies the safety constraints (i.e., the comprehensive assessment result is that there is no safety risk) and x' i If (t) is not satisfied, then x i (t) remains unchanged;
[0081] 2)x i (t) does not meet the safety constraints but x' i If (t) satisfies (i.e., the comprehensive assessment result is that there is no safety risk), then x i (t) is updated to x' i (t);
[0082] 3)x i (t), x' i (t) all satisfy the safety constraints (i.e., the comprehensive assessment result is that there is no safety risk), then x i (t) is updated to x' i (t);
[0083] 4)x i (t), x' i (t) If none of them meet the safety constraints (i.e., the comprehensive assessment result indicates that there is a safety risk), then x i (t) Revert to the previous generation x i (t-1).
[0084] (6) Particle swarm update incorporating chaotic Tent mapping (PSO algorithm improvement).
[0085] The diversity of particle updates is related to random factors r1 and r2, but completely random search carries the risk of insufficient global exploration and getting trapped in local optima. This invention introduces a chaotic tent map to improve the particle velocity update method. Since chaotic sequences are traversable and non-repeating, incorporating the chaotic tent map into the PSO particle velocity update process enables a broader search process than ordinary random search, enhancing the global search capability of particles and improving PSO optimization convergence. The chaotic sequence generated based on the chaotic tent map is specifically represented as follows:
[0086]
[0087] Where, parameter u∈[0,1], in this invention u=0.7, r(t-1) is the output value of the (t-1)th generation of the chaotic sequence, and is used as the input to generate the chaotic value of the tth generation, and r(t) is the output value of the tth generation of the chaotic sequence. Replacing the random factors r1 and r2 in the velocity update formula with the chaotic sequence, the particle velocity expression becomes:
[0088] v i (t+1)=ωv i(t)+c1r(t)(p b -x i (t))
[0089] +c2(1-r(t))(g b -x i (t))(14)
[0090] (7) Rapid evaluation of emergency control strategies based on hybrid neural networks (data-driven).
[0091] Compared to traditional PSO, the improved PSO algorithm based on opposition learning mechanisms, knowledge-driven approaches, and chaotic Tent mappings requires evaluating more particles. It relies on time-domain simulation to determine whether each updated particle satisfies various dynamic safety constraints, resulting in high computational cost and significant time consumption, leading to low efficiency in emergency control decision optimization. This invention, building upon PSO-based frequency-based emergency control decision optimization, employs deep learning technology to rapidly evaluate whether each particle satisfies various dynamic safety constraints, shortening evaluation time and improving decision optimization efficiency.
[0092] For specific DC blocking accidents, dynamic safety assessments of the receiving-end power grid under different operating modes and emergency control strategies are conducted based on machine learning technology to determine whether the receiving-end power grid is at risk of frequency exceeding limits, transient power angle instability, transient voltage instability, and cross-sectional power exceeding limits.
[0093] A dynamic security assessment model under the security domain is constructed based on steady-state characteristics. The input characteristics include the following two categories: 1) Operating mode characteristics, specifically including the active and reactive power of each generator, the active and reactive power of each load node, the active and reactive power of each branch, and the voltage amplitude and phase angle of each node. 2) Emergency control strategy characteristics (including the load shedding amount obtained from PSO), that is, the reduction of active and reactive power of each load shedding node and pumped storage station.
[0094] For a specific DC blocking accident, the system's pre-accident operating mode and post-accident emergency control strategy determine the system's dynamic response after the accident. The transient frequency safety, transient power angle stability, transient voltage safety, and whether the cross-sectional transmission power exceeds limits of the receiving-end grid can all be judged based on the system's dynamic response. Therefore, the above two types of input characteristics can be used to assess four types of dynamic safety risks: frequency, power angle, voltage, and cross-sectional power. Each type of safety risk assessment is a binary classification problem. Because the system's transient power angle and voltage stability are highly coupled, various safety risks are complexly intertwined during the post-accident dynamic response. Constructing a single-task assessment model for each type of safety risk cannot fully utilize the relationships between them, and some model structures are repeatedly constructed, resulting in a waste of storage and computational resources. This invention constructs a multi-task assessment model for the above four types of safety risks, using the loss functions of each task to jointly adjust the model's common parameters, fully exploring the relationships between various safety risks, and improving the model's assessment accuracy and computational resource utilization efficiency.
[0095] This invention constructs a multi-task DSA (Domain-Specific Architecture) model based on a hybrid neural network with higher training efficiency. The specific model structure is as follows: Figure 3 As shown, the multi-task DSA model structure can be divided into a feature extraction module and a logic judgment module. In the feature extraction module, various input features are processed by different sub-learners. Among them, generator output, load, branch power, and node voltage, which represent the operating mode, are all high-dimensional features and are extracted into abstract features by different CNNs. The emergency control strategy features have a dimension equal to the sum of the shearable load and the number of pumped storage units, and are low-dimensional features. After being processed by a single-layer neural network, they are used as input to the logic judgment module along with the above four types of abstract features. In the logic judgment module, the extracted abstract features are output through fully connected layers of different channels to obtain the safety risk assessment results. For the input features, each CNN sub-learner and single-layer neural network is trained synchronously and does not affect each other; for the model output, each logic judgment layer outputs the dynamic safety risk assessment results simultaneously, which significantly improves the training efficiency of the multi-task DSA model based on hybrid neural networks.
[0096] If none of the four types of dynamic safety risks occur, the emergency control strategy is considered to meet the dynamic safety constraints specified in this invention, and the corresponding PSO particle is located within the dynamic safety feasible region, ensuring the safe and stable operation of the system after an accident. If one or more safety risks occur, the strategy is considered not to meet the safety constraints, and the corresponding PSO particle is located outside the feasible region. This particle will degenerate to the previous generation during the optimization process. Therefore, the comprehensive evaluation result obtained from the four types of outputs is the basis for determining whether the PSO particle is within the feasible region. For each type of safety risk assessment, if 0 represents the absence of that type of risk and 1 represents the presence of that type of risk, then the comprehensive evaluation result y is the OR operation result of each type of output, i.e.:
[0097] y = y f || y a || y v || y p (15)
[0098] Among them, y f y a y v y p These represent the assessment results for frequency, power angle, voltage, and cross-sectional power, respectively. y = 0 indicates no safety risk, and y = 1 indicates the presence of some safety risk. The accuracy I is defined based on the comprehensive assessment result y. AC (Accuracy), False Alarm Rate FA (False Alarm), False Alarm Rate I MA (Missed Alarm) is an evaluation metric for multi-task DSA models.
[0099]
[0100]
[0101]
[0102] Where, N ss N su N represents the number of samples that were correctly evaluated and incorrectly evaluated, respectively, among the samples without security risks; uu N us These represent the number of samples correctly evaluated and incorrectly evaluated among the samples with safety risks. It should be noted that the purpose of constructing the DSA model in this invention is to quickly determine whether a particle in a PSO is located within the dynamically safe and feasible region. The basis for this determination is the comprehensive evaluation result y. Therefore, during the DSA model parameter tuning and optimization process, only the three types of evaluation indicators defined based on the comprehensive evaluation result y need to be considered.
[0103] (8) Dynamic safety verification of frequency emergency control strategy based on model-driven (model-driven).
[0104] Since the accuracy of DSA based on machine learning cannot be guaranteed to reach 100%, the frequency emergency control decisions obtained by this method may fail to meet various dynamic safety constraints. To ensure the feasibility of the control decisions, time-domain simulation is used to dynamically verify the control decisions obtained based on PSO and hybrid neural networks. If the dynamic safety constraints are met, the control decision is adopted; if not, the decision is discarded, and the global historical suboptimal strategy is verified again. This process is repeated until a frequency emergency control strategy that meets the dynamic safety constraints is found.
[0105] Taking a provincial-level multi-DC-feeding receiving-end power grid as an example, the effectiveness of the method of this invention is verified. This example has 132 bus nodes, including 29 generators and 65 load nodes, a total of 201 500kV and above lines, 3 DC feed-in lines, and a total DC feed-in power of 20GW. To simulate the changes in grid security characteristics brought about by the access of new energy sources, 9 wind turbine units were configured, of which 6 wind turbine units have a rated output power of 1000MW each, 2 wind turbine units have a rated output power of 1500MW, and 1 wind turbine unit has a rated output power of 1300MW.
[0106] Four 300MW pumped-storage units are installed at bus node 54, with a total installed capacity of 1200MW, all of which are in pumped operation. A total of 20 load shedding nodes are set, with a total load of 20.77GW. The load shedding limit at each node is 50%, resulting in a total shedding load of 10.385GW. Considering only emergency load shedding and pumped-storage pump-off control measures, the unit power control cost for each load is selected within the range of 0.3 to 0.7, and the unit power control cost for each pumped-storage unit is set to 0.1.
[0107] Using an 8GW DC #2 power grid blockade as a severe power disturbance, the simulation step size was set to 0.005s, and the simulation duration to 15s. The DC blockade occurred at step 0.5. Since the total capacity of the simulation grid exceeds 3GW, the safety threshold for the lowest system frequency after the disturbance was set to 49.8Hz. If no emergency control measures are taken after the DC blockade, the system frequency change curve is as follows: Figure 4 As shown, the system's lowest frequency dropped to 49.3Hz, requiring emergency control measures to ensure system frequency safety.
[0108] Following the frequency emergency control optimization method based on the improved PSO, the frequency emergency control decision optimization model under the DC #2 blockage accident in this provincial case was solved, and compared with the conventional PSO algorithm. The iterative solution process of the two algorithms is as follows: Figure 5 As shown, both algorithms use the same random factor to generate the initial particle swarm, the number of particles is set to 10, the maximum number of iterations is 30, and the inertia coefficient ω, learning factors c1 and c2 are all set to 1.
[0109] Depend on Figure 5 It can be seen that, compared with the conventional PSO algorithm, the proposed improved PSO algorithm can obtain initial particles with lower control costs during the initialization phase, and the control cost decreases more significantly during the optimization process. Therefore, the improved PSO algorithm based on the opposition learning mechanism, knowledge-driven approach, and chaotic Tent mapping has better global convergence, and frequency emergency control decision optimization based on the improved PSO algorithm can obtain a more economical control strategy.
[0110] The frequency emergency control strategy based on the improved PSO algorithm is shown in Table 1, with a total load shedding and pumping station tripping capacity of 5529MW. This emergency control strategy is initiated 0.2s after DC #2 is blocked. The load shedding and pumping station tripping controls are independent and start simultaneously. Simulation results show that the receiving-end grid frequency can be maintained above the threshold of 49.8Hz after adopting the emergency control strategy, while simultaneously satisfying transient power angle stability, voltage safety, and section power safety constraints. The receiving-end grid frequency change curve after DC blocking and the implementation of the emergency control strategy is shown in Table 1. Figure 6 As shown. Therefore, frequency emergency control decision optimization based on the improved PSO algorithm can obtain an emergency control strategy that is both economical and feasible.
[0111] Table 1. Load shedding amount at each load node and pumped storage capacity
[0112]
[0113]
[0114] The power output of each load node fluctuates randomly between 80% and 120%, and the generator output is adjusted according to the load level and unit capacity, generating a total of 5000 operating modes. Under each operating mode, 10 emergency control strategies are randomly generated for DC #2 blocking accidents, resulting in 50,000 samples. Among them, 19,869 samples have no dynamic safety risks, and 30,131 samples have safety risks. All samples are selected as the dataset, and 70% of the samples in the dataset are randomly selected as the training set, with the remaining 30% as the test set. A multi-task DSA model is built based on a hybrid neural network, and the evaluation accuracy is close to 99%.
[0115] Comparing the PSO solution processes using hybrid neural networks and time-domain simulation respectively, the results are as follows: Figure 7 As shown, the emergency control strategies obtained by the two methods have similar costs. Dynamic safety constraint verification of the emergency control strategy based on the hybrid neural network was performed using time-domain simulation, and the results show that the control strategy meets all constraints. Compared with Table 1, in this emergency control strategy, the load shedding amount of load node 13 becomes 0MW, 15 becomes 524MW, 16 becomes 0MW, and the remaining load shedding amounts remain the same. Further comparison of the time consumption of the two methods is shown in Table 2. The PSO using the hybrid neural network takes 0.021s per round, with an optimization efficiency 541 times that of the time-domain simulation. Therefore, the proposed frequency emergency control decision optimization method based on the improved PSO algorithm and hybrid neural network can quickly find feasible control strategies and ensure the frequency security of the receiving-end power grid after large-capacity DC blocking.
[0116] Table 2. PSO time consumption using time-domain simulation and hybrid neural network respectively.
[0117]
[0118] To address the frequency security issue of the receiving-end power grid after a DC blocking accident, a hybrid-driven emergency frequency control optimization method is proposed. Based on the Probabilistic Optimal (PSO) algorithm, the optimal emergency control strategy is rapidly solved. An adversarial learning mechanism, engineering prior knowledge, and chaotic Tent mapping are incorporated into the PSO algorithm to improve its global convergence. A data-driven hybrid neural network is used to construct a multi-task dynamic security assessment model, which quickly determines whether the emergency control strategy meets various dynamic security constraints, improving the efficiency of emergency control decision optimization. A model-driven time-domain simulation method is used to verify the final emergency control strategy, ensuring the dynamic security feasibility of the emergency control decision optimization method. The invented frequency emergency control decision optimization method can efficiently obtain emergency control strategies with low control costs and that meet dynamic security constraints, supporting online rolling updates of emergency control decisions and ensuring the safe and stable operation of the receiving-end power system.
[0119] Example 2
[0120] This embodiment provides a hybrid-driven power grid frequency emergency control optimization system, which specifically includes:
[0121] The data acquisition module is configured to acquire the operating mode of the power grid;
[0122] The optimization module is configured to optimize the frequency emergency control strategy using a particle swarm optimization algorithm based on the aforementioned operating mode and in conjunction with a specific DC blocking fault.
[0123] The safety verification module is configured to perform safety verification on the frequency emergency control strategy obtained based on the particle swarm optimization algorithm using time-domain simulation, and obtain a frequency emergency control strategy that meets the safety constraints.
[0124] In the particle swarm optimization algorithm, when updating the particle swarm, the emergency control strategy and operation mode of each particle are input into the hybrid neural network to obtain the comprehensive evaluation result of each particle, and the particle swarm is updated based on the comprehensive evaluation result.
[0125] It should be noted that each module in this embodiment corresponds one-to-one with each step in Embodiment 1, and their specific implementation processes are the same, so they will not be repeated here.
[0126] Example 3
[0127] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the hybrid-driven power grid frequency emergency control optimization method described in Embodiment 1 above.
[0128] Example 4
[0129] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps in the hybrid-driven power grid frequency emergency control optimization method described in Embodiment 1 above.
[0130] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0131] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0132] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0134] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0135] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A hybrid-driven method for optimizing emergency control of power grid frequency, characterized in that, include: Obtain the operating mode of the power grid; Based on the aforementioned operating mode and in conjunction with specific DC blocking faults, the frequency emergency control strategy is optimized using a particle swarm optimization algorithm. The frequency emergency control strategy obtained based on the particle swarm optimization algorithm was verified by time-domain simulation, and a frequency emergency control strategy that meets the safety constraints was obtained. In the particle swarm optimization algorithm, when updating the particle swarm, the emergency control strategy and operation mode of each particle are input into the hybrid neural network to obtain the comprehensive evaluation result of each particle, and the particle swarm is updated based on the comprehensive evaluation result.
2. The hybrid-driven power grid frequency emergency control optimization method as described in claim 1, characterized in that, The particle swarm optimization algorithm uses the minimum total control economic cost as the fitness function.
3. The hybrid-driven power grid frequency emergency control optimization method as described in claim 1, characterized in that, The particle swarm optimization algorithm generates an initial particle swarm that satisfies safety constraints in a completely random manner. Then, according to the opposition learning mechanism, it generates an opposition particle for each initial particle in the initial particle swarm. If the comprehensive evaluation result of the opposition particle is that there is no safety risk, the fitness of the initial particle and its opposition particle are compared. Based on the fitness, one of the initial particle and its opposition particle is selected as the initial particle after initialization and update.
4. The hybrid-driven power grid frequency emergency control optimization method as described in claim 1, characterized in that, In each iteration, after updating the particle, a twin particle is generated. If the combined evaluation results of both the updated particle and the twin particle indicate a security risk, the particle is not updated. If either the updated particle or the twin particle does not pose a security risk, the particle without security risk is selected as the updated particle for that iteration. If neither the updated particle nor the twin particle poses a security risk, the twin particle is selected as the updated particle for that iteration.
5. The hybrid-driven power grid frequency emergency control optimization method as described in claim 4, characterized in that, Each dimension of the twin particle position vector is a multiple of the corresponding updated particle.
6. The hybrid-driven power grid frequency emergency control optimization method as described in claim 1, characterized in that, The chaotic sequence generated by the chaotic tent mapping is used as a random factor to update the particle velocity.
7. The hybrid-driven power grid frequency emergency control optimization method as described in claim 1, characterized in that, The safety constraints include: control variable constraints, transient frequency safety constraints, transient power angle safety constraints, transient voltage safety constraints, and cross-sectional transmission power safety constraints.
8. A hybrid-driven power grid frequency emergency control optimization system, characterized in that, include: The data acquisition module is configured to acquire the operating mode of the power grid; The optimization module is configured to optimize the frequency emergency control strategy using a particle swarm optimization algorithm based on the aforementioned operating mode and in conjunction with a specific DC blocking fault. The safety verification module is configured to perform safety verification on the frequency emergency control strategy obtained based on the particle swarm optimization algorithm using time-domain simulation, and obtain a frequency emergency control strategy that meets the safety constraints. In the particle swarm optimization algorithm, when updating the particle swarm, the emergency control strategy and operation mode of each particle are input into the hybrid neural network to obtain the comprehensive evaluation result of each particle, and the particle swarm is updated based on the comprehensive evaluation result.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps in the hybrid-driven power grid frequency emergency control optimization method as described in any one of claims 1-7.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the hybrid-driven power grid frequency emergency control optimization method as described in any one of claims 1-7.
