Power grid vulnerability assessment method and device based on cascading failure model

Through the power grid vulnerability assessment method based on the cascading failure model, the vulnerability sequence in the power grid is identified and evaluated, which solves the problem of difficulty in formulating effective defense strategies for the power grid in the face of malicious attacks, and improves the security and protection effect of the power grid.

CN118713056APending Publication Date: 2024-09-27GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410722879.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively identify and evaluate vulnerable sequences in the power grid that may lead to cascading failures, making it difficult for the power grid to formulate effective defense strategies in the face of malicious attacks, increasing the risk of power outages.

Method used

Using a power grid vulnerability assessment method based on the cascading failure model, through random disturbance event simulation and intelligent agent decision-making, the changes in the power grid after being attacked by external attacks are simulated, key sequences are identified and targeted protection is carried out, which improves the accuracy and defense of vulnerability analysis. effectiveness of the strategy.

Benefits of technology

It improves the safety and protection effectiveness of key sequences of the power grid, reduces losses caused by cascading failures, and ensures the safe and stable operation of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713056A
    Figure CN118713056A
Patent Text Reader

Abstract

The invention discloses a cascading failure model-based power grid vulnerability assessment method and device, and the method comprises the steps: initializing a power grid parameter according to a response signal, carrying out the random disturbance event simulation of a power grid until the power grid evolves to a stable state based on a cascading failure model, triggering an intelligent agent to read the state data of the power grid, and carrying out the random disturbance event simulation. Then the intelligent agent is controlled to decide an attack line number according to the state data, so that the system executes a corresponding attack event and evolves to a stable state, and subsequent state data and load loss are output and fed back to the intelligent agent, so that the intelligent agent performs attack line decision and training sample data storage; and iteratively updating to the output test agent for the system to execute vulnerability test evaluation. Through random disturbance event simulation and evolution based on a cascading failure model, the accuracy and practicability of sequence vulnerability evaluation are improved, the output key sequence also realizes targeted hierarchical protection of the key sequence of the power grid, and the loss of the power grid caused by cascading failure is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid cascading failure vulnerability analysis, and in particular to a power grid vulnerability assessment method and device based on a cascading failure model. Background Art

[0002] It is understood that since the 21st century, major power outages have occurred frequently around the world, causing serious impacts on social security, economic production and people's lives, and also highlighting the vital importance of ensuring the safe operation of the power grid. Through the analysis of major power outages, it can be found that these major power outages have shown typical characteristics, that is, after an initial security incident occurs, a series of tripping events in the power system will be triggered, eventually leading to large-scale power outages. In the power grid, the chain effect of large-scale power outages caused by the failure of a few lines or power stations when they are not handled in time or improperly is called the cascading failure of the power grid. With the rapid advancement of smart grid construction, the degree of automation of the power system has been continuously improved. Through smart devices, the information domain and physical domain of the power system are deeply integrated, providing attackers with more attack channels. In addition, with the development of information technology, attackers have stronger system analysis capabilities and can generate more complex attack strategies, increasing the risk of triggering cascading failures and causing more serious power outages.

[0003] At present, most of the existing vulnerability analysis studies on power grid cascading failures are based on the assumption that the failure is caused by concurrent accidents such as voltage collapse, generator shutdown and transmission line tripping. However, the deep integration of the network domain and the physical domain in the power grid now enables malicious attackers to steal measurement data through the network domain and conduct sequence attacks to cause large-scale cascading failures. Therefore, it is crucial to identify the vulnerable sequences that may cause cascading failures in the power grid, which is of great significance for formulating effective defense strategies, reducing the losses caused by cascading failures to the power grid, and ensuring the safe and stable operation of the power system. Summary of the invention

[0004] The present invention provides a power grid vulnerability assessment method and device based on a cascading failure model, so as to achieve a technical effect of performing vulnerability analysis on cascading failure problems in a power grid based on a sequence attack mode, thereby improving the security of key power grid sequences and the effectiveness of protection.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a power grid vulnerability assessment method based on a cascading failure model, comprising the following steps:

[0006] In response to the system evaluation signal, the parameters of the power grid to be evaluated are initialized, and a random disturbance event simulation is performed on the power grid to be evaluated, until the power grid to be evaluated evolves to a stable state based on a cascading failure model, and then the intelligent agent is triggered to read the first state data of the power grid to be evaluated;

[0007] Control the intelligent agent to decide a first attack line number according to the first state data, so that the power grid to be evaluated executes a corresponding attack event until the power grid to be evaluated evolves to a stable state, calculate the second state data and the first load loss of the power grid to be evaluated, and feed the second state data back to the intelligent agent, so that the intelligent agent decides to obtain a second attack line number according to the second state data;

[0008] At the same time, the first training sample data is stored in the agent training sample library and the agent parameters are updated, and the agent output is iteratively updated to reach the first termination condition, and is used as a test agent to perform vulnerability test evaluation based on the cascading failure model, and the corresponding evaluation results are output.

[0009] After the grid parameters are initialized according to the system evaluation signal, the grid vulnerability assessment method provided by the present invention simulates random disturbance events on the grid to be assessed, thereby simulating events caused by changes in the external state of the system, such as the disconnection of the transmission line caused by the grid being attacked by external random attacks, thereby improving the authenticity and practicality of the simulation. After the simulation begins, the grid will evolve based on the cascading failure model, thereby simulating a series of changes that may occur inside and outside the grid after the grid is attacked by a sudden attack, thereby realizing the simulation analysis of the cascading failure problem of the grid, and improving the accuracy and practicality of the sequence vulnerability assessment.

[0010] After the power grid evolves to stability and feeds back status data to the intelligent agent, the intelligent agent can decide the first attack line number based on the status data. The power grid executes the corresponding attack event and evolves to stability again, and then feeds back the second status data to the intelligent agent, thereby realizing the training of the intelligent agent on the problem of cascading failures. At the same time, the training intensity of the intelligent agent and the accuracy of the output results are improved through sequential attacks.

[0011] While feeding back the status data, the system also stores the training sample data generated during the agent training in the sample library for subsequent parameter updates of the system, and iterates the agent training process until the first termination condition is reached, then outputs the corresponding agent as the test agent for subsequent vulnerability testing and evaluation based on the cascading failure model. By testing the attack sequence output by the agent based on the cascading failure model, the key sequence that may cause a cascading failure reaction in the power grid can be located, and the vulnerability of the key sequence can be determined, so as to achieve targeted hierarchical protection of the key sequence of the power grid, improve the effectiveness of the formulated defense strategy, reduce the loss of the power grid caused by cascading failures, and ensure the safe and stable operation of the power system.

[0012] As a preferred example, the step of simulating random disturbance events on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on a cascading failure model specifically includes:

[0013] Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island;

[0014] If it is determined that the power grid to be evaluated forms the power island, then based on the formed power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and the process returns to determine whether the power grid to be evaluated forms the power island;

[0015] If it is determined that the power grid to be evaluated does not form the power island, it is determined whether a simulation stop condition is met, and when it is determined that the simulation stop condition is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

[0016] In order to further improve the authenticity of the output data of the cascading failure model, the cascading failure model proposed in the vulnerability assessment method provided by the present invention is a hybrid system model based on event triggering. When the model is triggered by a random disturbance event, the continuous dynamic execution process of the power grid is combined with the discrete events triggered by the power grid during the execution process, so that the attack event formed by mapping the fault from the system state to the attack behavior forms a function initialization, and the serial cascading failure propagation process is described by a number of discrete events and discrete states, thereby improving the simulation authenticity of the cascading failure model, and then improving the authenticity of the state data output by the model and the authenticity of the subsequent system performing a power grid vulnerability sequence assessment based on the model.

[0017] As a preferred example, storing the first training sample data in the agent training sample library and updating the agent parameters, and iterating and updating the agent output until the first termination condition is reached, specifically includes:

[0018] Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent;

[0019] At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent;

[0020] If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent;

[0021] If it is determined that the number of agent updates does not meet the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

[0022] After the power grid to be evaluated completes the execution of the corresponding attack event according to the first attack line number and obtains the corresponding feedback data, the intelligent agent can receive the first training sample data that integrates the first state data, the first attack line number, the second state data, and the first load loss, and store it in the sample library for subsequent system training and parameter update. After the parameter update, the intelligent agent will make the next attack line decision based on the system state data received from the power grid chain failure model, realizing the dynamic decision of the system. The training sample data stored in the sample library realizes the reuse of sample experience through the playback buffer mechanism, reducing the number of interactions between the chain failure model and the intelligent agent and the environment, and effectively improving the convergence speed of the intelligent agent convergence process.

[0023] When the agent is updated in each iteration and the power grid executes an attack event based on the cascading failure model according to the attack line number decided by the agent, the agent extracts a certain amount of sample data from the buffer to update the parameters, so that the test agent output after training can decide the line attack sequence that is most likely to cause serious cascading failures in the power grid.

[0024] As a preferred example, the test agent performs vulnerability test evaluation based on the cascading failure model and outputs corresponding evaluation results, specifically including:

[0025] Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data;

[0026] Executing the corresponding attack event according to the current attack line number until the power grid to be evaluated evolves to a stable state, obtaining the evolved state data, and determining whether the evolved state data satisfies the first test termination condition;

[0027] If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation ends;

[0028] If it is determined that the evolved state data does not satisfy the first test termination condition, it is determined whether the second test termination condition is satisfied, and whether to continue the test is determined based on the determination result.

[0029] The system vulnerability analysis and evaluation of the power grid to be evaluated based on the cascading failure model is carried out through the test agent output after training. It not only solves the problem of high steady-state time complexity of vulnerability analysis, but also formulates the fragile sequence identification problem as a Markov decision process according to the Markov characteristics of the propagation of sequential cascading failures. The MDP control problem is solved through the framework of test agent reinforcement learning. This method allows the agent to make dynamic decisions according to the system state, overcomes the limitations of traditional measurement and search-based methods, and improves the accuracy and reliability of the test results.

[0030] At the same time, the power grid constructed based on the cascading failure model also solves the problem of physical response coupling modeling at multiple time scales. By determining the key sequence through the method provided by the present invention and specifying targeted and effective defense strategies for it, the losses caused by cascading failures are reduced, thereby improving the safety and operational stability of the power grid.

[0031] As a preferred example, determining whether to continue the test according to the judgment result is specifically:

[0032] If the judgment result is that each attack line number output by the test agent according to the evolved state data has been executed by the corresponding attack event, then return to performing the initial disconnection simulation on the power grid to be evaluated;

[0033] If the judgment result is that the attack line number output by the test agent according to the evolved state data decision contains a number of the corresponding attack event that has not been executed, then it is judged whether the length of the generated attack sequence meets the requirement;

[0034] If it is determined that the requirement is met, the current load loss of the power grid to be evaluated is calculated, and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform initial disconnection simulation on the power grid to be evaluated;

[0035] If it is determined that the requirement is not met, the process returns to feeding back the evolved state data to the test agent.

[0036] Through multiple judgments, decisions and the setting of multiple test termination conditions, the accuracy and reliability of the output vulnerable sequence are further improved. At the same time, through multiple judgments, the specific judgment of the vulnerability of the output attack sequence can be realized, so that when formulating the protection strategy for the key sequence, a protection strategy that better meets the needs of the sequence can be formulated, thereby improving the targetedness of the formulated protection strategy.

[0037] Accordingly, an embodiment of the present invention further provides a power grid vulnerability assessment device based on a cascading failure model, the power grid vulnerability assessment device comprising a fault model evolution module, an intelligent agent training module and an intelligent agent testing module;

[0038] The fault model evolution module is used to respond to the system evaluation signal, initialize the parameters of the power grid to be evaluated, and implement random disturbance event simulation on the power grid to be evaluated, until the power grid to be evaluated evolves to a stable state based on the cascading failure model, and then trigger the intelligent agent to read the first state data of the power grid to be evaluated;

[0039] The agent training module is used to control the agent to decide the first attack line number according to the first state data, so that the power grid to be evaluated executes the corresponding attack event until the power grid to be evaluated evolves to a stable state, calculates the second state data and the first load loss of the power grid to be evaluated, and feeds the second state data back to the agent, so that the agent decides to obtain the second attack line number according to the second state data;

[0040] The agent testing module is used to store the first training sample data into the agent training sample library and update the agent parameters, and iteratively update the agent output until the first termination condition is reached, and use it as a test agent to perform vulnerability test evaluation based on the cascading failure model, and output corresponding evaluation results.

[0041] As a preferred example, the fault model evolution module implements random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on the cascading failure model, specifically including:

[0042] Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island;

[0043] If it is determined that the power grid to be evaluated forms the power island, then based on the formed power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and the process returns to determine whether the power grid to be evaluated forms the power island;

[0044] If it is determined that the power grid to be evaluated does not form the power island, it is determined whether a simulation stop condition is met, and when it is determined that the simulation stop condition is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

[0045] As a preferred example, the agent testing module stores the first training sample data in the agent training sample library and updates the agent parameters, and iterates and updates the agent output until the first termination condition is reached, specifically including:

[0046] Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent;

[0047] At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent;

[0048] If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent;

[0049] If it is determined that the number of agent updates does not meet the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

[0050] As a preferred example, the agent testing module, as a test agent, performs vulnerability testing and evaluation based on the cascading failure model and outputs corresponding evaluation results, specifically including:

[0051] Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data;

[0052] Executing the corresponding attack event according to the current attack line number until the power grid to be evaluated evolves to a stable state, obtaining the evolved state data, and determining whether the evolved state data satisfies the first test termination condition;

[0053] If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation ends;

[0054] If it is determined that the evolved state data does not satisfy the first test termination condition, it is determined whether the second test termination condition is satisfied, and whether to continue the test is determined based on the determination result.

[0055] As a preferred example, the agent testing module determines whether to continue the test according to the judgment result, specifically:

[0056] If the judgment result is that each attack line number output by the test agent according to the evolved state data has been executed by the corresponding attack event, then return to performing the initial disconnection simulation on the power grid to be evaluated;

[0057] If the judgment result is that the attack line number output by the test agent according to the evolved state data decision contains a number of the corresponding attack event that has not been executed, then it is judged whether the length of the generated attack sequence meets the requirement;

[0058] If it is determined that the requirement is met, the current load loss of the power grid to be evaluated is calculated, and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform initial disconnection simulation on the power grid to be evaluated;

[0059] If it is determined that the requirement is not met, the process returns to feeding back the evolved state data to the test agent. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 : A flow chart of an embodiment of a power grid vulnerability assessment method based on a cascading failure model provided by the present invention;

[0061] Figure 2 : A structural schematic diagram of an embodiment of a power grid vulnerability assessment device based on a cascading failure model provided by the present invention;

[0062] Figure 3 : A simulation calculation flow chart of the event-driven cascading failure model provided by the present invention;

[0063] Figure 4 : A Markov decision flow chart for vulnerability analysis of a power grid to be evaluated under a sequence attack provided by the present invention. DETAILED DESCRIPTION

[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] Embodiment 1

[0066] Please refer to Figure 1 , is a flow chart of an embodiment of a power grid vulnerability assessment method based on a cascading failure model provided by the present invention, including steps 101 to 103, each of which is specifically as follows:

[0067] Step 101: In response to a system evaluation signal, initialize the parameters of the power grid to be evaluated, and perform random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on a cascading failure model, thereby triggering an intelligent agent to read first state data of the power grid to be evaluated.

[0068] After the grid parameters are initialized according to the system evaluation signal, the grid vulnerability assessment method provided by the embodiment of the present invention simulates random disturbance events on the grid to be assessed, thereby simulating events caused by changes in the external state of the system, such as the disconnection of the transmission line caused by the grid being attacked by external random attacks, thereby improving the authenticity and practicality of the simulation. After the simulation starts, the grid will evolve based on the cascading failure model, thereby simulating a series of changes that may occur inside and outside the grid after the grid is attacked by a sudden attack, realizing the simulation analysis of the cascading failure problem of the grid, and improving the accuracy and practicality of the sequence vulnerability assessment.

[0069] In this embodiment, the specific initialization of the grid parameters is: initialization based on the nodes and line parameters in the initial data set such as the IEEE 30-node system data set, including initialization of the discrete event generation condition threshold and delay according to the set value. The random disturbance event simulation of the grid to be evaluated simulates the grid being subjected to an external estimated event, causing the grid transmission line to be disconnected. The random disturbance event simulation described in this embodiment preferably randomly selects a transmission line to be disconnected or disconnects a specific line according to the instructions of the subsequent steps. The evolution to a stable state described in this embodiment is specifically: when there is no flow crossing in the grid, and the frequency overshoot reaches the triggering conditions of the relay protection and frequency adjustment, that is, the system state reaches a relative steady state, at this time, the load loss of the calculated system is the load shedding amount of the grid, that is, the difference between the initial grid system load and the current load in the grid.

[0070] Since the random disturbance event described in this embodiment is an external disturbance event, it refers to disturbances caused by changes in external conditions of the system and attack events initiated by attackers. Since such events are random, they are called random disturbance events, that is, the system cannot determine the time of their occurrence and they are sudden events.

[0071] Specifically, the random disturbance event simulation is performed on the power grid to be evaluated in this embodiment until the power grid to be evaluated evolves to a stable state based on the cascading failure model, which specifically includes:

[0072] Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island;

[0073] If it is determined that the power grid to be evaluated forms the power island, then based on the formed power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and the process returns to determine whether the power grid to be evaluated forms the power island;

[0074] If it is determined that the power grid to be evaluated does not form the power island, it is determined whether a simulation stop condition is met, and when it is determined that the simulation stop condition is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

[0075] In order to further improve the authenticity of the output data of the cascading failure model, the cascading failure model proposed in the vulnerability assessment method provided by the present invention is a hybrid system model based on event triggering. When the model is triggered by a random disturbance event, the continuous dynamic execution process of the power grid is combined with the discrete events triggered by the power grid during the execution process, so that the attack event formed by mapping the fault from the system state to the attack behavior forms a function initialization, and the serial cascading failure propagation process is described by a number of discrete events and discrete states, thereby improving the simulation authenticity of the cascading failure model, and then improving the authenticity of the state data output by the model and the authenticity of the subsequent system performing a power grid vulnerability sequence assessment based on the model.

[0076] Specific reference Figure 3 , Figure 3 The present invention provides a simulation calculation flow chart based on the event-driven cascading failure model. Figure 3As shown in the figure, after the system is initialized, the system starts to execute external disturbance events, namely random disturbance events, and after the execution is completed, it determines whether a new power island is generated in the power grid. If it is determined that no new power island is generated, the simulation ends and the condition judgment is entered; if it is determined that a new power island is generated, the integration algorithm process will be recursively executed in the new power island, that is, the power grid vulnerability assessment method based on the cascading failure model will be executed in the new power island.

[0077] The discrete state of the power grid is further updated according to the discrete time information triggered in the power grid, and the power flow calculation and frequency response calculation are performed under the current discrete state. Among them, the discrete state refers to the state of the transmission line, the state of the load and the state of the generator. Discrete events refer to events in the system including external disturbances and internal natural transfers, including relay protection, low-frequency load reduction and high-frequency machine cutting. Among them, external disturbance events refer to discrete events determined by external disturbances, and internal events are composed of key physical responses related to the propagation of serial chain faults. Relay protection, low-frequency load reduction and high-frequency machine cutting all belong to this category. The occurrence of discrete events within the system can be determined by the following conditions:

[0078] {g(s c (t k-1 ))>(<)Q}∧{g(s c (t k ))>(<)Q}∧{t k -t k-1 >Δt d}

[0079] Among them, t k-1 ,t k is the sampling time; g(s c ) is a continuous state variable function; ∧ is a conjunction symbol; Q is a discrete event generation threshold; Δt d is the discrete event delay. When g(s c (t k-1 )) and g(s c (t k )) meets the set threshold and its continuous time exceeds the delay Δt d , discrete event occurs, t k is the time at which a discrete event occurs.

[0080] Specific examples are as follows: Relay protection includes distance protection, longitudinal protection and overheat protection, among which the distance protection consists of Zone I, Zone II and Zone III covering transmission lines of different lengths. Its event threshold is determined by the distance protection setting impedance and the offset coefficient, and its event delay is set to 0.1s, 0.5s and 5s respectively. The action threshold of the longitudinal protection event is determined by the line measurement impedance and the distance protection zone II setting impedance, and its event delay is set to 0s. The overheat protection event threshold and delay are set to 70℃ and 0s respectively. In addition to relay protection, the low-frequency load shedding and high-frequency machine cutting event thresholds and delays are set to 0.98pu, 1.02pu and 0.5s, 0.5s respectively.

[0081] Therefore, updating the discrete state according to the discrete time information specifically means that the execution of discrete events will change the discrete state of the system, such as relay protection will change the line operation state, the execution of low-frequency load reduction will cut off part of the system load, and the execution of control instructions will cause the system to redistribute the load, etc.

[0082] The frequency response calculation described in this embodiment is to calculate the continuous state value through the frequency regulation equation. The continuous state value includes variables such as generator frequency, power flow, voltage and current, which can be obtained by solving the differential algebraic equation under the discrete state using the explicit integral block solution method, mainly for power flow calculation and frequency response calculation. After the power flow calculation results and continuous state values ​​are obtained, the system will make a convergence judgment on the power flow calculation results, and if it is judged that it does not converge, it will cut off part of the load until the power flow calculation results converge, and judge whether the generation conditions of discrete events are met according to the continuous state values.

[0083] In this embodiment, the power flow calculation equation is as follows:

[0084]

[0085] Among them, Pi is the active power injected into node i; Qi is the reactive power injected into node i; Ui is the voltage of node i; Gij is the admittance of transmission line lij; Bij is the reactance of transmission line lij; θij is the phase angle difference between nodes i and j. The frequency response equation is as follows:

[0086]

[0087] Among them, P vi is the unit change of the generator valve position compared with the nominal value; P LFi is the load power reference value; T CHi is the steam capacity time constant; T Gi is the main servo time constant; K G is the equivalent generator frequency adjustment coefficient; B is the frequency deviation factor; K i is the integral control constant.

[0088] If it is judged that its generation conditions are met, the corresponding discrete event is executed and the discrete state of the power grid is updated, and then the process returns to the step of judging the generation of the power island; if it is judged that its generation conditions are not met, the simulation end condition judgment is entered. After the system executes the discrete event, the new discrete state will be passed to the continuous dynamic simulation again and trigger a new discrete event, and the system will continue to evolve according to the newly triggered discrete event. If it is judged that the simulation end condition is met, the load loss of the system at this time, that is, the load shedding amount, is calculated and the simulation is ended. If it is judged that the simulation end condition is not met, the process returns to the step of implementing the random disturbance event, that is, when the system no longer has new power islands generated and the simulation stop condition is not met, an attack event will occur again, that is, a transmission line will be selected again to disconnect the line until the simulation ends. In this embodiment, the preferred simulation stop condition is whether the number of external attack events suffered by the power grid reaches a set value. The set value in this embodiment is the set attack sequence length.

[0089] Step 102: Control the intelligent agent to decide the first attack line number according to the first state data, so that the power grid to be evaluated executes the corresponding attack event until the power grid to be evaluated evolves to a stable state, calculate the second state data and the first load loss of the power grid to be evaluated, and feed back the second state data to the intelligent agent, so that the intelligent agent decides to obtain the second attack line number according to the second state data.

[0090] After the power grid evolves to stability and feeds back status data to the intelligent agent, the intelligent agent can decide the first attack line number based on the status data. The power grid executes the corresponding attack event and evolves to stability again, and then feeds back the second status data to the intelligent agent, thereby realizing the training of the intelligent agent on the problem of cascading failures. At the same time, the training intensity of the intelligent agent and the accuracy of the output results are improved through sequential attacks.

[0091] In this embodiment, the agent determines the first attack line number based on the system state data received from the cascading failure model, so that the power grid executes the corresponding attack event according to the determined first attack line number until the power grid evolves to a stable state based on the cascading failure model. In this embodiment, executing the attack event according to the first attack line number is specifically: disconnecting a transmission line according to the attack event, and the attack event means simulating an attacker to attack a designated transmission line in the power grid, that is, disconnecting the line.

[0092] Step 103: Store the first training sample data into the agent training sample library and update the agent parameters, and iterate and update the agent output until the first termination condition is reached, and use it as a test agent to perform vulnerability test evaluation based on the cascading failure model, and output corresponding evaluation results.

[0093] While feeding back the status data, the system also stores the training sample data generated during the agent training in the sample library for subsequent parameter updates of the system, and iterates the agent training process until the first termination condition is reached, then outputs the corresponding agent as the test agent for subsequent vulnerability testing and evaluation based on the cascading failure model. By testing the attack sequence output by the agent based on the cascading failure model, the key sequence that may cause a cascading failure reaction in the power grid can be located, and the vulnerability of the key sequence can be determined, so as to achieve targeted hierarchical protection of the key sequence of the power grid, improve the effectiveness of the formulated defense strategy, reduce the loss of the power grid caused by cascading failures, and ensure the safe and stable operation of the power system.

[0094] Specifically, the embodiment of storing the first training sample data into the agent training sample library and updating the agent parameters, and iterating and updating the agent output until the first termination condition is reached, specifically includes:

[0095] Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent;

[0096] At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent;

[0097] If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent;

[0098] If it is determined that the number of agent updates does not meet the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

[0099] After the power grid to be evaluated completes the execution of the corresponding attack event according to the first attack line number and obtains the corresponding feedback data, the intelligent agent can receive the first training sample data that integrates the first state data, the first attack line number, the second state data, and the first load loss, and store it in the sample library for subsequent system training and parameter update. After the parameter update, the intelligent agent will make the next attack line decision based on the system state data received from the power grid chain failure model, realizing the dynamic decision of the system. The training sample data stored in the sample library realizes the reuse of sample experience through the playback buffer mechanism, reducing the number of interactions between the chain failure model and the intelligent agent and the environment, and effectively improving the convergence speed of the intelligent agent convergence process.

[0100] When the agent is updated in each iteration and the power grid executes an attack event based on the cascading failure model according to the attack line number decided by the agent, the agent extracts a certain amount of sample data from the buffer to update the parameters, so that the test agent output after training can decide the line attack sequence that is most likely to cause serious cascading failures in the power grid.

[0101] In this embodiment, the agent includes two fully connected neural networks: a policy network and a target network, see Figure 4 , Figure 4 The present invention provides a Markov decision flow chart for vulnerability analysis of the power grid to be evaluated under the sequence attack. Figure 4 As shown in the figure, when the system takes a random disturbance event, that is, randomly selects a line to disconnect, so that the power grid enters the cascading failure model until the model evolves to a stable state, the intelligent agent interacts with the model to obtain the current state data of the model by collecting the combination of the model's physical feature vector and topological feature vector as the state representation of the model, that is, Figure 4 The load status and line status are shown. Figure 4 The reward shown is the load shedding amount after fault propagation in each cycle, where one cycle refers to the entire process from the start to the end of fault propagation.

[0102] Among them, the physical characteristic vector represents the load level of each transmission line in the power grid, that is, Figure 4 The load condition shown is designed as:

[0103]

[0104] In the above expression, pf i is the power flow of the ith line, c i is the transmission capacity of the ith line, and nl is the total number of lines in the system. As for the topological feature vector, the matrix embedding method is used to obtain a low-dimensional feature vector to represent the system topology information, and it is designed as:

[0105] U=λ max ·u max

[0106] In the above formula, λ max is the maximum eigenvalue of the system adjacency matrix, u max is the eigenvector corresponding to the maximum eigenvalue of the adjacency matrix. In order to reduce the difficulty of network training, this embodiment preferably uses low-dimensional eigenvectors. Among them, the physical eigenvector contains a large amount of physical information used for power flow calculation, such as line parameters, node loads, etc., while the topological eigenvector adopts an embedding method based on matrix decomposition, using the product of the maximum eigenvalue of the system adjacency matrix and its corresponding eigenvector as the embedded topological eigenvector to comprehensively characterize the topological characteristics of the system.

[0107] After obtaining the current state data of the system, since the agent includes a policy network and a target network, during the training phase of the agent based on the acquired data, the agent's policy network takes the system's state as input and uses the ε-greedy strategy to determine the attack route. As the number of training times increases, the agent is more and more inclined to choose the attack route with the largest Q value output by the network as the decision result. When training the agent's policy network, the system also stores the training sample data in the sample library for subsequent calls by the system, such as Figure 4 As shown in FIG. 1 , a playback buffer mechanism, namely a sample pool, is designed to store sample data. The sample data stored in the sample pool is tuple data (s t ,a t ,r t ,s t+1 ), where s t is the grid operation status at the current time t, a t The agent is based on the current state s t The action of decision making is the attack line, r t Indicates state s t Execute a t The reward obtained is the grid load loss.

[0108] The core content of the entire training of the agent is to update the parameters of the policy network by minimizing the loss. The specific expression is as follows:

[0109]

[0110] Among them, Q and Respectively represent the value functions corresponding to the policy network and the target network, s t is the system state at time t, a t is the action executed at time t. When training and updating the policy network parameters, the system first uses the policy network to decide the next state s t+1 Action Ω(st+1 ), and then use the target network to adopt Ω(s t+1 ) Q function input s t 、a t The value obtained is the same as the input s t+1 ,Ω(s t+1 ) between the values ​​obtained, we hope that they differ by r t Assuming that the above problem is a regression problem, the update is to achieve Q Ω (s t ,a t )and The return between.

[0111] Therefore, when the network is trained, the target network is fixed and only the parameters of the policy network are updated. The Q network is updated multiple times. When the loss is reduced, that is, the loss of the regression problem is reduced, the target network, that is, the policy network, is replaced with the updated Q network. That is, the parameters of the Q network, that is, the policy network, are copied to the target network to achieve the change of the target value. Continuing training improves the stability of the agent training process.

[0112] Since the structure of the policy network is exactly the same as that of the target network, when the policy network is updated a certain number of times, the entire set of parameters of the policy network will be assigned to the target network, and then the parameters of the policy network will continue to be trained and updated, so as to effectively prevent the overestimation of the output value of the action in the next state during the training process of the intelligent agent. When the policy network decides on the attack line, it will calculate the Q value corresponding to each line, and at the same time, it will correct the calculated Q value according to the current line state of the system. If the line has been out of operation, its corresponding Q value will be set to infinitesimal, so as to avoid the attack line that has been decided to be out of operation. According to the ε-greedy strategy, the probability of the line corresponding to the maximum Q value being selected is 1-ε, and the probability of the line corresponding to the non-maximum Q value being selected is ε, and the attack line in the current state is decided. As the number of training times increases, the value of ε will continue to decrease, which means that the intelligent agent is more and more inclined to choose the attack line with the largest Q value output by the network as the decision result, so as to effectively avoid the training process from falling into the local optimum and ensure the accuracy of the identified vulnerable sequence.

[0113] Furthermore, the first termination condition for stopping the training of the intelligent agent described in this embodiment is the number of updates of the intelligent agent, or whether the cumulative number of times the intelligent agent reads the current state data of the power grid reaches a preset threshold number. If so, it is determined that the training of the intelligent agent is completed and can be output as a test intelligent agent; if not, the next step of judgment is required, that is, judging whether a random disturbance event needs to be executed based on the generated attack sequence, that is, judging whether the generated attack sequence reaches the second termination condition for training termination.

[0114] If it is judged that the generated attack sequence does not reach the preset length scale, the intelligent agent will obtain the current state data of the power grid and add the current training sample data to the sample pool of the intelligent agent, and update the network parameters of the intelligent agent according to the obtained training sample data, and return to the step of the intelligent agent deciding the attack route numbering according to the obtained state data after the update; if it is judged that the generated attack sequence reaches the preset length scale, it returns to the step of executing the random disturbance event.

[0115] Furthermore, the vulnerability test evaluation based on the cascading failure model is performed as a test agent in this embodiment, and the corresponding evaluation results are output, which specifically includes:

[0116] Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data;

[0117] Executing the corresponding attack event according to the current attack line number until the power grid to be evaluated evolves to a stable state, obtaining the evolved state data, and determining whether the evolved state data satisfies the first test termination condition;

[0118] If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation ends;

[0119] If it is determined that the evolved state data does not satisfy the first test termination condition, it is determined whether the second test termination condition is satisfied, and whether to continue the test is determined based on the determination result.

[0120] The system vulnerability analysis and evaluation of the power grid to be evaluated based on the cascading failure model is carried out through the test agent output after training. It not only solves the problem of high steady-state time complexity of vulnerability analysis, but also formulates the fragile sequence identification problem as a Markov decision process according to the Markov characteristics of the propagation of sequential cascading failures. The MDP control problem is solved through the framework of test agent reinforcement learning. This method allows the agent to make dynamic decisions according to the system state, overcomes the limitations of traditional measurement and search-based methods, and improves the accuracy and reliability of the test results.

[0121] At the same time, the power grid constructed based on the cascading failure model also solves the problem of physical response coupling modeling at multiple time scales. By determining the key sequence through the method provided by the present invention and specifying targeted and effective defense strategies for it, the losses caused by cascading failures are reduced, thereby improving the safety and operational stability of the power grid.

[0122] In this embodiment, the system performs the initial disconnection simulation test including the following steps:

[0123] The first step is to select the disconnection point, that is, to determine the specific location and method for the initial disconnection test. Usually, the test is performed on a node or line in the power system.

[0124] The second step is to simulate the fault, that is, to artificially introduce a fault, cut off the connection of the power system at the test point, and simulate the situation where a fault occurs in the system.

[0125] The first test termination condition is whether the total number of attack sequences generated reaches L×(β×L) n-1 group (n is the sequence length), and in the test phase, the system sets a threshold β. When the test agent decides the corresponding attack line according to the current state of the power grid, the attack line is selected in sequence from a group of lines (including β×L lines, L is the total number of transmission lines in the system) given by the test agent according to the system state.

[0126] Furthermore, in this embodiment, determining whether to continue the test according to the judgment result is specifically as follows:

[0127] If the judgment result is that each attack line number output by the test agent according to the evolved state data has been executed by the corresponding attack event, then return to performing the initial disconnection simulation on the power grid to be evaluated;

[0128] If the judgment result is that the attack line number output by the test agent according to the evolved state data decision contains a number of the corresponding attack event that has not been executed, then it is judged whether the length of the generated attack sequence meets the requirement;

[0129] If it is determined that the requirement is met, the current load loss of the power grid to be evaluated is calculated, and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform initial disconnection simulation on the power grid to be evaluated;

[0130] If it is determined that the requirement is not met, the process returns to feeding back the evolved state data to the test agent.

[0131] Through multiple judgments, decisions and the setting of multiple test termination conditions, the accuracy and reliability of the output vulnerable sequence are further improved. At the same time, through multiple judgments, the specific judgment of the vulnerability of the output attack sequence can be realized, so that when formulating the protection strategy for the key sequence, a protection strategy that better meets the needs of the sequence can be formulated, thereby improving the targetedness of the formulated protection strategy.

[0132] The power grid vulnerability assessment method provided in this embodiment is based on the reinforcement learning DQN algorithm, and adopts the ε-greedy strategy to determine the attack line. The proposed event-driven hybrid model simulates the continuous state evolution of the system after the attack line is disconnected and the discrete event execution causes more lines to exit operation and then cause cascading failures, thereby assessing the vulnerability of the power grid line and determining the vulnerable sequence in the power grid to be assessed. The vulnerable sequence is a set of line sequences. For example, if the sequence length is 3, the vulnerable sequence contains three lines, and its data form is (l1, l2, l3), where l1, l2, and l3 are the line numbers of the first attack, the second attack, and the third attack, respectively.

[0133] The "vulnerability" in the vulnerable sequence defined in this embodiment depends on a set of line sequences that will cause the scale of chain failure losses in the power grid after they are removed from the network in sequence, that is, if the removal of a set of line sequences in the system can cause a larger load shedding in the system, the "vulnerability" of this set of lines will be stronger. This embodiment uses the perspective of sequence attack to analyze and evaluate the vulnerability of power grid chain failures, which means that the vulnerable line sequences in the power grid are attacked at different times to disconnect and eventually destroy the safe and stable operation of the power grid.

[0134] Therefore, in the process of determining the vulnerable sequence, the intelligent agent determines the attack line according to the grid state, and finally obtains multiple groups of attack sequences and the load loss of the grid caused by each attack sequence. According to the existing standard definition, the line sequence that causes the grid loss load to exceed 30% of the total network load is a vulnerable sequence. Therefore, the attack sequence that causes the grid loss load to exceed 30% of the total network load is a vulnerable sequence.

[0135] In order to better illustrate the effectiveness of the attack sequence output by the power grid vulnerability assessment method provided in this embodiment, the embodiment of the present invention also provides a specific embodiment, and its specific implementation steps are as follows:

[0136] (1) Set the parameters of the agent network structure, which contains a total of 3 layers of networks. The number of neurons in the input layer is consistent with the one-dimensional vector dimension of the input system state, which is 41+30=71. The number of neurons in the output layer is consistent with the number of transmission lines, which is 41. The number of neurons in the other hidden layer is 1024. Set the greed coefficient ε, whose initial value is 0.9. After each iteration, the greed coefficient decreases by 0.0001. Finally, the greed coefficient stabilizes at 0.05. Set the learning rate to 0.001, the discount factor to 1, the number of training samples to 512, the target network update frequency to 9, and the upper limit of the number of iterations to 90,000.

[0137] (2) Initializing power system parameters, including power system nodes, line parameters, discrete event generation condition thresholds and event delays;

[0138] (3) Implementing a random disturbance event on the system, i.e. randomly selecting a line to disconnect;

[0139] (4) When the system evolves to a stable state, the agent is triggered to obtain system status data and decide on the corresponding attack line number;

[0140] (5) The system executes the corresponding attack event and continues the propagation and evolution of cascading failures until the system reaches a relative steady state. It then calculates the current system load loss and triggers the agent to obtain the system state again, store sample data, and decide on the corresponding attack route.

[0141] (6) The system executes the attack event again. Since the length of the attack sequence has reached 3 at this time, when the system state evolves to a steady state, after completing the calculation of the system load loss and storing the sample data, the attack sequence will be output;

[0142] (7) Extract a certain amount of samples to train the agent and update the agent parameters;

[0143] (8) Determine whether the number of updates of the policy network in the agent reaches a multiple of 9. If so, copy the parameters of the policy network to the target network;

[0144] (9) Determine whether the number of iterations for updating the parameters of the training model has reached 90,000. If not, return to step (2). If so, output the trained agent model.

[0145] (10) Enter the test phase, and number the system's initial disconnection line as 1, and perform an initial disconnection simulation on the system;

[0146] (11) When the system evolves to a stable state, the trained agent model is used to make decisions, that is, the test agent makes decisions, and the greedy strategy is directly used, that is, the attack line with the largest Q value is always selected as the attack target;

[0147] (12) During the test phase, the test agent will decide a set of routes based on the system status, and the system will select one route from this set of routes in turn as the second attack route of the sequence attack;

[0148] (13) After the system executes the attack event, it evolves to a stable state again. Then, the intelligent agent decides on a set of routes and selects one of them as the third attack route of the attack sequence.

[0149] (14) When the sequence length reaches 3, the attack sequence is terminated and the system load loss is calculated. The corresponding attack sequence and loss load are output, and a line is selected from the line group obtained in step (13) for attack again. The attack is continued until all the lines in this group are selected, and then the process returns to step (12).

[0150] (15) When all the lines in the line group obtained by decision in step (12) have been traversed, return to step (10), and the initial disconnected line number is increased by one;

[0151] (16) When the initial line number is traversed from 1 to 41 in step (10), that is, all lines in the system are disconnected as initial lines, the test ends.

[0152] The intelligent agent obtained through the interactive training of the reinforcement learning algorithm and the event-driven cascading failure model through the above method can effectively decide the current vulnerable sequence that is vulnerable to attack according to the system state, and then analyze the vulnerability of the system, thereby realizing the assessment of the vulnerability of the power grid.

[0153] In order to better illustrate the working principle and step flow of a power grid vulnerability assessment method and device based on a cascading failure model of the present invention, reference may be made to, but is not limited to, the relevant records above.

[0154] Accordingly, see Figure 2 , Figure 2 The schematic diagram of the structure of an embodiment of the power grid vulnerability assessment device based on the cascading failure model provided by the present invention. Figure 2 As shown, the power grid vulnerability assessment device includes a fault model evolution module 201, an intelligent agent training module 202 and an intelligent agent testing module 203.

[0155] Among them, the fault model evolution module 201 is used to respond to the system evaluation signal, initialize the parameters of the power grid to be evaluated, and implement random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on the cascading failure model, thereby triggering the intelligent agent to read the first state data of the power grid to be evaluated.

[0156] Furthermore, the fault model evolution module 201 performs random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on the cascading failure model, specifically including:

[0157] Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island;

[0158] If it is determined that the power grid to be evaluated forms the power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated based on the formed power island, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and return to determine whether the power grid to be evaluated forms the power island; if it is determined that the power grid to be evaluated does not form the power island, it is determined whether the condition for stopping the simulation is met, and when it is determined that the condition for stopping the simulation is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

[0159] The agent training module 202 is used to control the agent to decide the first attack line number according to the first state data, so that the power grid to be evaluated executes the corresponding attack event until the power grid to be evaluated evolves to a stable state, calculates the second state data and the first load loss of the power grid to be evaluated, and feeds the second state data back to the agent, so that the agent decides to obtain the second attack line number according to the second state data.

[0160] The agent testing module 203 is used to store the first training sample data into the agent training sample library and update the agent parameters, and iteratively update the agent output until the first termination condition is reached, and use it as a test agent to perform vulnerability test evaluation based on the cascading failure model, and output corresponding evaluation results.

[0161] Furthermore, the agent testing module 203 stores the first training sample data in the agent training sample library and updates the agent parameters, and iterates and updates the agent output until the first termination condition is reached, specifically including:

[0162] Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent;

[0163] At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent;

[0164] If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent; if it is determined that the number of updates of the agent does not reach the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

[0165] Furthermore, the agent testing module 203 performs vulnerability testing and evaluation based on the cascading failure model as a testing agent, and outputs corresponding evaluation results, specifically including:

[0166] Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data; executing the corresponding attack event according to the current attack line number, until the power grid to be evaluated evolves to a stable state, obtaining evolved state data, and judging whether the evolved state data meets the first test termination condition;

[0167] If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation is terminated; if it is determined that the evolved state data does not satisfy the first test termination condition, whether the second test termination condition is satisfied is determined, and whether to continue the test is determined based on the judgment result.

[0168] Furthermore, the agent testing module 203 determines whether to continue the test according to the judgment result, specifically:

[0169] If the judgment result is that each attack line number output by the test agent according to the decision of the evolved state data has been executed by the corresponding attack event, then return to the initial disconnection simulation of the power grid to be evaluated; if the judgment result is that there is a number that has not been executed by the corresponding attack event among the attack line numbers output by the test agent according to the decision of the evolved state data, then judge whether the length of the generated attack sequence meets the requirement;

[0170] If it is determined that the requirements are met, the current load loss of the power grid to be evaluated is calculated and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform the initial line break simulation on the power grid to be evaluated; if it is determined that the requirements are not met, the process returns to feed back the evolved state data to the test agent.

[0171] In summary, the embodiment of the present invention provides a method and device for evaluating the vulnerability of a power grid based on a cascading failure model, which initializes the power grid parameters according to the response signal, and simulates random disturbance events on the power grid until the power grid evolves to a stable state based on the cascading failure model, triggers the intelligent agent to read the state data of the power grid, and then controls the intelligent agent to decide the attack line number according to the state data, so that the system executes the corresponding attack event and evolves to a stable state, outputs subsequent state data and load loss and feeds back to the intelligent agent, so that the intelligent agent can make attack line decisions and store training sample data, and iteratively updates to output the test intelligent agent for the system to perform vulnerability test evaluation. By simulating random disturbance events and evolving based on the cascading failure model, the accuracy and practicality of sequence vulnerability evaluation are improved, and the output key sequence also realizes targeted hierarchical protection of the key sequence of the power grid, reducing the loss of the power grid caused by cascading failures.

[0172] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A power grid vulnerability assessment method based on cascading failure model, It is characterized in that The following steps are involved: In response to the system evaluation signal, the parameters of the power grid to be evaluated are initialized, and a random disturbance event simulation is performed on the power grid to be evaluated, until the power grid to be evaluated evolves to a stable state based on a cascading failure model, and then the intelligent agent is triggered to read the first state data of the power grid to be evaluated; Control the intelligent agent to decide a first attack line number according to the first state data, so that the power grid to be evaluated executes a corresponding attack event until the power grid to be evaluated evolves to a stable state, calculate the second state data and the first load loss of the power grid to be evaluated, and feed the second state data back to the intelligent agent, so that the intelligent agent decides to obtain a second attack line number according to the second state data; At the same time, the first training sample data is stored in the agent training sample library and the agent parameters are updated, and the agent output is iteratively updated to reach the first termination condition, and is used as a test agent to perform vulnerability test evaluation based on the cascading failure model, and the corresponding evaluation results are output.

2. A power grid vulnerability assessment method based on a cascading failure model as claimed in claim 1, It is characterized in that The performing of random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on a cascading failure model specifically includes: Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island; If it is determined that the power grid to be evaluated forms the power island, then based on the formed power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and the process returns to determine whether the power grid to be evaluated forms the power island; If it is determined that the power grid to be evaluated does not form the power island, it is determined whether a simulation stop condition is met, and when it is determined that the simulation stop condition is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

3. A power grid vulnerability assessment method based on a cascading failure model as claimed in claim 1, It is characterized in that The storing of the first training sample data into the agent training sample library and updating the agent parameters, and iteratively updating the agent output until the first termination condition is reached, specifically includes: Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent; At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent; If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent; If it is determined that the number of agent updates does not meet the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

4. A power grid vulnerability assessment method based on a cascading failure model as claimed in claim 1, It is characterized in that The performing vulnerability test evaluation based on the cascading failure model as a test agent and outputting corresponding evaluation results specifically includes: Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data; Executing the corresponding attack event according to the current attack line number until the power grid to be evaluated evolves to a stable state, obtaining the evolved state data, and determining whether the evolved state data satisfies the first test termination condition; If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation ends; If it is determined that the evolved state data does not satisfy the first test termination condition, it is determined whether the second test termination condition is satisfied, and whether to continue the test is determined based on the determination result.

5. A power grid vulnerability assessment method based on a cascading failure model as claimed in claim 4, It is characterized in that The determination of whether to continue the test according to the judgment result is specifically as follows: If the judgment result is that each attack line number output by the test agent according to the evolved state data has been executed by the corresponding attack event, then return to performing the initial disconnection simulation on the power grid to be evaluated; If the judgment result is that the attack line number output by the test agent according to the evolved state data decision contains a number of the corresponding attack event that has not been executed, then it is judged whether the length of the generated attack sequence meets the requirement; If it is determined that the requirement is met, the current load loss of the power grid to be evaluated is calculated, and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform initial disconnection simulation on the power grid to be evaluated; If it is determined that the requirement is not met, the process returns to feeding back the evolved state data to the test agent.

6. A power grid vulnerability assessment device based on a cascading failure model, It is characterized in that The power grid vulnerability assessment device includes a fault model evolution module, an intelligent agent training module and an intelligent agent testing module; The fault model evolution module is used to respond to the system evaluation signal, initialize the parameters of the power grid to be evaluated, and implement random disturbance event simulation on the power grid to be evaluated, until the power grid to be evaluated evolves to a stable state based on the cascading failure model, and then trigger the intelligent agent to read the first state data of the power grid to be evaluated; The agent training module is used to control the agent to decide the first attack line number according to the first state data, so that the power grid to be evaluated executes the corresponding attack event until the power grid to be evaluated evolves to a stable state, calculates the second state data and the first load loss of the power grid to be evaluated, and feeds the second state data back to the agent, so that the agent decides to obtain the second attack line number according to the second state data; The agent testing module is used to store the first training sample data into the agent training sample library and update the agent parameters, and iteratively update the agent output until the first termination condition is reached, and use it as a test agent to perform vulnerability test evaluation based on the cascading failure model, and output corresponding evaluation results.

7. A power grid vulnerability assessment device based on a cascading failure model as claimed in claim 6, It is characterized in that The fault model evolution module implements random disturbance event simulation on the power grid to be evaluated until the power grid to be evaluated evolves to a stable state based on the cascading failure model, specifically including: Randomly selecting a line in the power grid to be evaluated to perform a line attack, and after the attack, detecting and determining whether the power grid to be evaluated forms a power island; If it is determined that the power grid to be evaluated forms the power island, then based on the formed power island, the discrete state is updated according to the discrete event information occurring in the power grid to be evaluated, and the power flow calculation and the continuous state value calculation are performed, and then the load is cut off until the power flow calculation result converges. At the same time, when it is determined according to the continuous state value that the generation condition of the discrete event is met, the power grid to be evaluated is controlled to execute the discrete event and update the discrete state of the power grid, and the process returns to determine whether the power grid to be evaluated forms the power island; If it is determined that the power grid to be evaluated does not form the power island, it is determined whether a simulation stop condition is met, and when it is determined that the simulation stop condition is met, the load loss of the power grid to be evaluated is calculated and the simulation is stopped.

8. A power grid vulnerability assessment device based on a cascading failure model as claimed in claim 6, It is characterized in that The agent testing module stores the first training sample data in the agent training sample library and updates the agent parameters, and iterates and updates the agent output until the first termination condition is reached, specifically including: Integrate the first state data, the first attack line number, the second state data and the first load loss as the first training sample data and store them in the agent training sample library, and obtain historical training sample data from the agent training sample library to update the parameters of the agent; At the same time, the power grid to be evaluated is controlled to execute the corresponding attack event according to the second attack line number, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, calculates and obtains third state data and second load loss, feeds back the third state data to the intelligent agent, and determines whether to output the intelligent agent according to the number of updates of the intelligent agent; If it is determined that the number of updates of the agent reaches the condition for outputting the agent, the agent is output as a test agent; If it is determined that the number of agent updates does not meet the condition for outputting the agent, it is determined whether the random disturbance event needs to be executed based on the generated attack sequence.

9. A power grid vulnerability assessment device based on a cascading failure model as claimed in claim 6, It is characterized in that The agent test module performs vulnerability test evaluation based on the cascading failure model as a test agent and outputs corresponding evaluation results, which specifically include: Performing an initial disconnection simulation on the power grid to be evaluated, so that the power grid to be evaluated evolves to a stable state based on the cascading failure model, and feeding back current state data to the test agent, so that the test agent decides to output a current attack line number according to the current state data; Executing the corresponding attack event according to the current attack line number until the power grid to be evaluated evolves to a stable state, obtaining the evolved state data, and determining whether the evolved state data satisfies the first test termination condition; If it is determined that the evolved state data satisfies the first test termination condition, the generated attack sequence is output and the simulation ends; If it is determined that the evolved state data does not satisfy the first test termination condition, it is determined whether the second test termination condition is satisfied, and whether to continue the test is determined based on the determination result.

10. A power grid vulnerability assessment device based on a cascading failure model as claimed in claim 9, It is characterized in that The agent testing module determines whether to continue the test according to the judgment result, specifically: If the judgment result is that each attack line number output by the test agent according to the evolved state data has been executed by the corresponding attack event, then return to performing the initial disconnection simulation on the power grid to be evaluated; If the judgment result is that the attack line number output by the test agent according to the evolved state data decision contains a number of the corresponding attack event that has not been executed, then it is judged whether the length of the generated attack sequence meets the requirement; If it is determined that the requirement is met, the current load loss of the power grid to be evaluated is calculated, and the vulnerability of the power grid to be evaluated is evaluated according to the output corresponding attack sequence, and at the same time, the process returns to perform initial disconnection simulation on the power grid to be evaluated; If it is determined that the requirement is not met, the process returns to feeding back the evolved state data to the test agent.

Citation Information

Cited By

  • Information physical attack vector generation method of power monitoring system and related device

    CN119697041A

  • Safety analysis simulation platform and method for electric power information physical system

    CN120257671A

  • A power cyber-physical system security analysis simulation platform and method

    CN120257671B