Emergency load shedding decision method, decision model training method and training device thereof

By integrating grid topology information and bus voltage characteristics into the branch-competitive Q-network agent and employing multi-layer graph convolution operations, the efficiency and performance issues of emergency load shedding control measures are resolved, achieving more efficient emergency load shedding decisions.

CN116663401BActive Publication Date: 2026-11-27HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310530513.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2026-11-27
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

Existing emergency load shedding control measures rely on expert experience and are time-consuming and labor-intensive. Furthermore, the branch-competitive Q-network algorithm has insufficient training efficiency and decision-making performance in high-dimensional decision spaces, making it difficult to quickly and effectively formulate emergency load shedding control measures.

Method used

By introducing power grid topology information into the branch competition Q-network agent, multi-layer graph convolution operation is used to fuse the power grid matrix and bus voltage features, and the reward is determined by combining the bus voltage, thereby improving training efficiency and decision performance.

Benefits of technology

It significantly improves the training efficiency and decision-making performance of branch-competitive Q-network agents, enabling them to formulate emergency load shedding control measures more quickly and accurately, and reducing reliance on expert experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116663401B_ABST
    Figure CN116663401B_ABST
Patent Text Reader

Abstract

The application discloses an emergency load shedding decision model training method and device and an emergency load shedding decision method, and belongs to the technical field of power system stability control. k and a bus voltage set V k Perform multi-layer graph convolution operation to obtain voltage graph features T k The element of the i-th row and the j-th column in the power grid matrix G k represents whether the bus i and the bus j are connected, and the voltage graph features T k and a generator power angle state set δ k are taken as input states to input the agent, so that the training of the agent and the network parameter updating are realized. In the application, the state of the input agent fuses power grid topology information, and compared with the power grid topology information not fused in the prior art, the training efficiency and the decision performance of the agent with the branch competition Q network are obviously improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power system stability control technology, and more specifically, relates to an emergency load shedding decision model training method and training equipment, as well as an emergency load shedding decision method. Background Technology

[0002] Emergency load shedding control is a crucial control measure for restoring power system stability after transient voltage instability caused by a fault. Currently, emergency load shedding control measures are generally formulated offline by power grid experts. These experts envision numerous transient voltage instability scenarios, use transient stability simulations to iterate emergency load shedding control measures, and establish a one-to-one correspondence between these scenarios and the corresponding emergency load shedding control measures. During online operation, if a fault occurs that could lead to transient voltage instability, the appropriate emergency load shedding control measures are directly implemented based on the transient voltage instability scenario.

[0003] With the integration of new energy sources and the expansion of the power grid, the transient processes of the power grid have become more complex. Traditional methods for formulating measures rely too heavily on expert experience and are time-consuming and labor-intensive. Some studies have adopted optimization control methods to determine automatic emergency load shedding control measures, but these methods become time-consuming as the optimization space increases, and there are also cases where solutions cannot be found.

[0004] In recent years, the rapid development of artificial intelligence has provided new opportunities for the formulation of emergency load shedding control measures. The branching dueling Q-network (BDQ) algorithm can directly handle high-dimensional decision spaces, potentially reducing reliance on experts and improving the efficiency of emergency load shedding control measure formulation. However, current BDQ networks only consider temporal features as input characteristics, and the training efficiency and decision-making performance of the agent need further improvement. How to quickly and effectively formulate emergency load shedding control measures is a pressing technical problem that needs to be solved. Summary of the Invention

[0005] In view of the above-mentioned defects or improvement needs of the existing technology, the present invention provides an emergency load shedding decision model training method and training equipment, as well as an emergency load shedding decision method, with the aim of improving the training efficiency and decision performance of branch competition Q network agents in deciding emergency load shedding control measures.

[0006] To achieve the above objectives, according to one aspect of the present invention, an emergency load shedding decision model training method is provided, wherein the emergency load shedding decision model is an agent with a branch-competitive Q-network, and the model training method includes:

[0007] Step S11: Execute the emergency load shedding action a determined in step k under the current transient voltage instability fault of the power grid. k Obtain the corresponding voltage map feature Tk and generator power angle state set δ k ;

[0008] Step S12: Transform the voltage map feature T k and generator power angle state set δ k The agent is input into the input and makes a decision, resulting in the emergency load shedding action a at step k+1. k+1 ;

[0009] Step S13: Execute emergency load shedding action under the current power grid transient voltage instability fault. k+1 Obtain the corresponding voltage map feature T k+1 and generator power angle state δ k+1 And calculate the response to execute the emergency load shedding action a k To execute emergency load shedding action a k+1 The reward r for whether the grid voltage tends to stabilize k ;Based on voltage diagram characteristics T k Generator power angle state set δ k Emergency load shedding action a k+1 Voltage diagram characteristics T k+1 Generator power angle state δ k+1 and reward r k As a set of interactive samples;

[0010] Step S14: Let k = k + 1, jump to step S12, and obtain multiple sets of interactive samples under the current power grid transient voltage instability fault;

[0011] Step S15: Update the grid transient voltage instability fault, then jump to step S11 until the required number of interaction samples are obtained;

[0012] Step S16: Extract interaction samples to train the agent to update the agent's network parameters;

[0013] Among them, voltage diagram feature T k To make the power grid matrix G k and bus voltage set V k The power grid matrix G is obtained by performing multi-layer graph convolution operations. k The element in the i-th row and j-th column This indicates whether busbars i and j are connected, where i, j = 1, 2, 3, ..., N, and N is the number of busbars.

[0014] In one embodiment, transient simulation is performed using a power system analysis and synthesis program to obtain the emergency load shedding action 'a' under the current power grid transient voltage instability fault. k The bus voltage set V k and generator power angle state set δ k.

[0015] In one embodiment, voltage map features in, This represents the result of the l-th layer in the multi-layer graph convolution operation, where m represents the number of layers in the multi-layer graph convolution operation. The propagation relationship between the (l+1)-th layer and the l-th layer in the multi-layer graph convolution operation is as follows:

[0016]

[0017] In the formula, This indicates the execution of an emergency load shedding action. k Improved voltage map matrix I is the identity matrix;

[0018] express The degree matrix, wherein the degree matrix is ​​a diagonal matrix, the degree matrix The value of the p-th diagonal element in for in, Represents the improved matrix of the voltage diagram The value in the p-th row and q-th column of the array;

[0019] Indicates the characteristic T of the calculated voltage diagram k The weight parameters of the l-th layer of the multi-layer graph convolution operation;

[0020] σ(·) represents a nonlinear activation function.

[0021] In one embodiment, the power grid matrix G k If bus i and bus j are not connected, then If bus i and bus j are connected, then

[0022] In one embodiment, the reward r k Based on the bus voltage set V k+1 The reward given is if the bus voltage set V k+1 If the bus voltage has not yet stabilized, the reward will be relatively low. If the bus voltage set V k+1 If the voltage of all busbars in the system returns to stability, the reward will be relatively high.

[0023] In one embodiment, 0.8 pu is used as the dividing line for evaluating whether the bus voltage has returned to stability. If the bus voltage set V k+1 For bus voltages less than 0.8 pu, the bonus is 0. If the bus voltage set V... k+1If all bus voltages are greater than or equal to 0.8 pu, the reward will be greater than 0.

[0024] In one embodiment, the agent's network parameters are updated using a dual-Q network, which includes a target network and a policy network, with the target network periodically synchronizing parameters from the policy network.

[0025] In one embodiment, after step S16, the method further includes:

[0026] Randomly select a transient voltage instability fault in the power grid and jump to step S11 for iteration. Repeat the iteration multiple times to achieve multiple updates of the agent parameters.

[0027] According to another aspect of the present invention, an emergency load shedding decision model training device is provided for performing the above-described emergency load shedding decision model training method.

[0028] According to another aspect of the present invention, an emergency load shedding decision method is provided, comprising:

[0029] Step S21: Execute the emergency load shedding action a determined in step k under the current transient voltage instability fault of the power grid. k Obtain the corresponding voltage map feature T k and generator power angle state set δ k ;

[0030] Step S22: Transform the voltage map feature T k and generator power angle state set δ k The agent with a branch-competitive Q-network in the emergency load shedding decision model is input to make a decision, and the emergency load shedding action 'a' is obtained in the (k+1)th step. k+1 The emergency load shedding decision model is trained according to the above-mentioned emergency load shedding decision model training method.

[0031] Step S23: Execute emergency load shedding action under the current power grid transient voltage instability fault. k+1 Determine whether the current bus voltage has stabilized or whether the iteration has reached its upper limit. If so, initiate an emergency load shedding action (a). k+1 As the final decision action under the current power grid transient voltage instability fault, if not, let K = K+1 and jump to step S21;

[0032] Among them, voltage diagram feature T k To make the power grid matrix G k and bus voltage set V k The power grid matrix G is obtained by performing multi-layer graph convolution operations. k The element in the i-th row and j-th column This indicates whether busbars i and j are connected, where i, j = 1, 2, 3, ..., N, and N is the number of busbars.

[0033] In summary, compared with the prior art, the above-described technical solutions conceived by this invention can achieve the following beneficial effects:

[0034] The emergency load shedding decision model of this invention is an agent with a branch-competitive Q-network, capable of simultaneously deciding the load shedding amounts for multiple loads. During agent training, the state characteristics of the input agent are improved. In conventional techniques, the input agent's state is voltage and power angle. In this invention, the input agent's state is voltage graph characteristics and power angle characteristics. The voltage graph characteristics are a fusion of the grid matrix and bus voltage characteristics, with the grid matrix reflecting the connection relationships of each bus in the current grid topology. Therefore, in this invention, the input agent's state incorporates grid topology information. Compared to conventional techniques that do not incorporate grid topology information, the training efficiency and decision-making performance of the agent with the branch-competitive Q-network are significantly improved.

[0035] Furthermore, by employing multi-layer graph convolution operations with specific propagation relationships to fuse the power grid matrix and bus voltage, the key features of both can be better extracted and fused.

[0036] Furthermore, by using bus voltage to determine whether the power grid has returned to stability, and by setting rewards based on bus voltage, the effectiveness of the current decision can be reflected more intuitively through rewards. Attached Figure Description

[0037] Figure 1 This is a schematic diagram of the network structure of a BDQ agent according to an embodiment;

[0038] Figure 2 A flowchart illustrating the steps of an emergency load shedding decision model training method according to one embodiment;

[0039] Figure 3 This is a schematic diagram of the intelligent agent input feature acquisition process in one embodiment;

[0040] Figure 4 This is a schematic diagram illustrating the interaction process between a BDQ agent and its environment in one embodiment.

[0041] Figure 5 A flowchart illustrating the steps of an emergency load shedding decision method according to one embodiment;

[0042] Figure 6(a) is a comparison of the total number of iterations of the BDQ agent with integrated power grid topology features and non-integrated power grid topology features in one embodiment;

[0043] Figure 6(b) is a comparison of the total reward of a BDQ agent with integrated and non-integrated grid topology features in one embodiment;

[0044] Figure 6(c) is a comparison of the total number of successes of a BDQ agent with integrated and non-integrated grid topology features in one embodiment. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0046] Branching dueling Q-network (BDQ) agents are a common type of deep reinforcement learning neural network. For example... Figure 1 The diagram shows the structure of a BDQ agent, which can be mainly divided into a feature preprocessing module, a mapping module, and a decision module. State s is input into the feature preprocessing module to obtain shared feature f. Shared feature f is then input into the mapping module to obtain the advantages of N dominant branches. The mapping module includes N convolutional layers, each corresponding to a load and forming a dominant branch. There are a total of N loads, resulting in N dominant branches. After the shared feature f passes through the convolutional layers of the mapping module, the advantages of the load sub-actions of the N dominant branches are obtained. The advantage of the load sub-action of dominant branch d is A. d (s,a d ), d∈1,2,……,N. The shared feature f is input to the state extraction module, which also includes convolutional layers. The shared feature f is extracted by the convolutional layers in the state extraction module to obtain the state value V(s). The decision module obtains the advantage A of the load sub-action of the dominant branch d. d (s,a d The Q value Q of the dominant branch d is calculated by combining it with the state value V(s). d (s,a) Finally, the load shedding action for each load is obtained through the Q-value decision of each branch. The load shedding action data specifically represents the proportion of load shedding, such as shedding 10%, 30%, 50%, and 70% of the load. The computation process in each module of the BDQ agent can be implemented using conventional methods, such as the detailed description of the computation process in the paper "Action Branching Architectures for Deep Reinforcement Learning", which will not be repeated here.

[0047] This invention is an emergency load shedding decision model built based on the above-mentioned BDQ agent.

[0048] The emergency load shedding decision model training method proposed in this invention mainly involves obtaining interaction samples through agent iteration and training and updating the network parameters of the agent after obtaining a certain amount of interaction samples.

[0049] In one embodiment, such as Figure 2 As shown, the training method for the emergency load shedding decision model includes the following steps:

[0050] Step S11: Execute the emergency load shedding action a determined in step k under the current transient voltage instability fault of the power grid. k Obtain the corresponding voltage map feature T k and generator power angle state set δ k .

[0051] Among them, voltage diagram feature T k To make the power grid matrix G k and bus voltage set V k The power grid matrix G is obtained by performing multi-layer graph convolution operations. k The element in the i-th row and j-th column This indicates whether busbars i and j are connected, where i, j = 1, 2, 3, ..., N, and N is the number of busbars.

[0052] Specifically, the voltage map feature T can be obtained through the following sub-steps. k and generator power angle state set δ k .

[0053] Step S101: Construct an emergency load shedding action under the current power grid transient voltage instability fault. k The subsequent power grid matrix G k a k The action output by the agent at step k is the power grid matrix G. k The element in the i-th row and j-th column This indicates whether busbars i and j are connected, where i, j = 1, 2, 3, ..., N, and N is the number of busbars.

[0054] The power grid matrix reflects the current power grid topology. This grid contains numerous buses, and the connection relationships between each pair of buses can be understood through the power grid matrix. Specifically, the power grid matrix G... k The dimension is Specifically, the connection relationship between buses can be represented by the values ​​0 and 1. If bus i and bus j are not connected, then... If bus i and bus j are connected, then

[0055] Step S102: Simulate and obtain the execution of emergency load shedding action a k The bus voltage set Vk and generator power angle state set δ k .

[0056] Specifically, the power system environment, based on the current operating conditions and in conjunction with the current emergency load shedding control strategy, k The Power System Analysis Software Package (PSASP) is invoked to simulate and obtain the current bus voltage V. k and generator power angle state δ k .

[0057] Understandably, there is no strict execution order between steps S101 and S102.

[0058] Step S103: Assign the power grid matrix G k and bus voltage set V k Perform multi-layer graph convolution operations to obtain voltage graph features T. k .

[0059] The power grid matrix G can be implemented using conventional multi-layer graph convolution operations. k and bus voltage set V k The calculation.

[0060] In one embodiment, voltage map features in, This represents the result of the l-th layer in a multi-layer graph convolution operation, where m represents the number of layers in the multi-layer graph convolution operation. That is, the voltage graph feature T. k This is the output of the last layer in a multi-layer graph convolutional neural network.

[0061] In the multi-layer graph convolution operation, the propagation relationship between the (l+1)th layer and the lth layer is as follows:

[0062]

[0063] in, This indicates the execution of an emergency load shedding action. k Improved voltage map matrix I is the identity matrix;

[0064] express The degree matrix, the degree matrix is ​​a diagonal matrix, the degree matrix The value of the p-th diagonal element in for in, Represents the improved matrix of the voltage diagram The value in the p-th row and q-th column of the array;

[0065] Indicates the characteristic T of the calculated voltage diagram k The weight parameters of the l-th layer of the multi-layer graph convolution operation are trained and updated when the network parameters of the agent are updated in subsequent operations.

[0066] σ(·) represents a nonlinear activation function. Specifically, σ(z) = max(0, z), where max(·) represents taking the maximum value and z represents the function value to be activated.

[0067] The current bus voltage feature V is extracted using a multi-layer graph convolutional neural network. k Then, the current voltage map characteristic T is obtained. k .

[0068] The number of network layers m in the multi-layer graph convolution operation can be flexibly adjusted according to the actual situation. The optional value of m is: 2≤m≤5.

[0069] Step S12: Transform the voltage map feature T k and generator power angle state set δ k The input agent makes a decision, and the emergency load shedding action 'a' is obtained in the (k+1)th step. k+1 .

[0070] like Figure 3 As shown, the state of the input agent includes voltage graph features T. k and generator power angle state set δ k After decision-making by the intelligent agent, an emergency load shedding action a is obtained. k+1 The emergency load shedding action a k+1 This includes the load shedding amount for each load; for example, load 1 is shedding 50% and load 2 is shedding 30%. Since there are numerous generators in the power grid topology, the simulated generator power angles are the power angles of different generators over time. After being converted into a power angle matrix, the elements in the matrix represent the power angle of the corresponding generator at the corresponding sampling point. Power angle features are extracted through convolutional layers and fully connected layers to obtain the generator power angle state set δ. k .

[0071] Step S13: Execute emergency load shedding action under the current power grid transient voltage instability fault. k+1 Obtain the corresponding voltage map feature T k+1 and generator power angle state δ k+1 And calculate the response to execute the emergency load shedding action a k To execute emergency load shedding action a k+1 The reward r for whether the grid voltage tends to stabilize k ;Based on voltage diagram characteristics T k Generator power angle state set δ k Emergency load shedding action a k+1Voltage diagram characteristics T k+1 Generator power angle state δ k+1 and reward r k As a set of interactive samples.

[0072] Among them, the voltage map feature T is obtained. k+1 and generator power angle state δ k+1 The process of obtaining voltage map features T k and generator power angle state δ k The process is the same.

[0073] Due to the execution of emergency load shedding action a k+1 Subsequently, the power grid matrix may change, requiring the power grid matrix G to be regenerated and updated. k+1 Meanwhile, the power system environment, based on current operating conditions and in conjunction with updated emergency load shedding control strategies, [is adjusted accordingly]. k+1 The PSASP transient stability simulation program was called to obtain the updated bus voltage V. k+1 and generator power angle state δ k+1 Based on the updated power grid matrix G k+1 With the updated bus voltage V k+1 Perform graph convolution to obtain updated voltage graph features T. k+1 .

[0074] Reward r k This reflects whether the grid state has improved from the execution of the k-th decision to the execution of the (k+1)-th decision. If it has improved, the reward value is relatively large; if it has not improved, the reward value is relatively small. In one embodiment, based on the updated bus voltage V... k+1 A reward will be given if the bus voltage set V k+1 If the bus voltage has not yet stabilized, the reward will be relatively low. If the bus voltage set V k+1 If all bus voltages stabilize, the reward is relatively high. Specifically, 0.8 pu is used as the dividing line for evaluating whether the bus voltage set V has stabilized. k+1 For bus voltages less than 0.8 pu, the bonus is 0. If the bus voltage set V... k+1 If all bus voltages are greater than or equal to 0.8 pu, the reward will be greater than 0, for example, set to 10. That is:

[0075]

[0076] in, This indicates the execution of an emergency load shedding action. k+1Then, the voltage of the i-th bus is the value at time R. R represents the total simulation time, for example, 10 seconds. Understandably, the specific reward value can also be set to other values, and is not limited to this.

[0077] Step S14: Let k = k + 1, jump to step S12, until multiple sets of interactive samples under the current power grid transient voltage instability fault are obtained.

[0078] Each iteration of steps S12-S13 completes one iteration, yielding a set of interactive samples under the current power grid transient voltage instability fault. k is incremented by 1. Using the voltage diagram features and generator power angle state obtained from the previous iteration, steps S12-S13 are executed again, completing another iteration and yielding another set of interactive samples under the current power grid transient voltage instability fault. For example, in the first iteration (initial moment), k = 1. After steps S11-S13, the first set of interactive samples is obtained, including T1, δ1, a2, T2, δ2, and r1. The emergency load shedding action a1 at the initial moment can be defaulted to 0. In the second iteration, k = 2. T2 and δ2 obtained in the first iteration are fed into step S12, and steps S12-S13 are executed, yielding the second set of interactive samples, including T2, δ2, a3, T3, δ3, and r2. This process continues, allowing for multiple sets of interactive samples under the same power grid transient voltage instability fault.

[0079] Step S15: Update the grid transient voltage instability fault, jump to step S11, until the required number of interaction samples are obtained.

[0080] There are hundreds of types of transient voltage instability faults in power grids. By updating the transient voltage instability fault and re-executing steps S11-S14, multiple sets of interactive samples under another transient voltage instability fault can be obtained, thus generating a large number of interactive samples. Specifically, after the current transient voltage instability fault training reaches a certain number of rounds, the transient voltage instability fault is updated and training continues. When the transient voltage instability fault is updated, the emergency load shedding action is re-initialized and iterated again.

[0081] Step S16: Extract interaction samples to train the agent and update the agent's network parameters.

[0082] Furthermore, if an update fails to make the agent's network parameters meet expectations, the process can jump back to step S11 and execute steps S11 to S16 again, that is, continue to generate interaction samples and update the network parameters again until the agent can make a decision on an effective emergency load shedding action.

[0083] Since the acquisition of interaction samples and the updating of the agent's network parameters are performed alternately, during the acquisition of interaction samples, interaction samples are periodically extracted to update the network parameters of the agent being used. Then, the updated agent is used to acquire interaction samples again, i.e., jump to step S11, execute steps S11 to S15, continue to acquire interaction samples, and update multiple times to continuously optimize the agent. Specifically, training node values ​​can be set, for example, a training node is set every 200 iterations, with 200, 400, 600... as training node values. If the training node value is not reached, the iteration continues. Once the training node is reached, multiple interaction samples are randomly selected from the capacity pool to train the branch competition Q network agent, update the parameters of the branch competition Q network agent, and then continue to acquire interaction samples again based on the updated agent.

[0084] After obtaining interaction samples, the agent can be trained using conventional methods. In this embodiment, the agent's network parameters are updated using a Double Deep Q Network (DDQN) approach. Figure 4 As shown, the dual-Q network includes a target network and a policy network. The target network periodically synchronizes parameters from the policy network, and the specific process is as follows:

[0085] First, calculate the actual Q value Q for each dominant branch. d (s,a):

[0086]

[0087] Where s represents the voltage graph characteristics and generator power angle state of the current input agent, a represents the currently executed emergency load shedding action, d represents a dominant branch, and a d This indicates the current emergency load shedding action of branch d, a′ d This indicates the emergency load shedding action for updating branch d, and the action a for branch d. d , Represents the action space. Representing the action space The dimension of A, V(s) represents the state values ​​extracted by the convolutional layer from the shared features, and A d (s,a d The dominant branch d executes the current emergency load shedding action a. d Advantages, A d (s,a′ d The dominant branch d executes the updated emergency load shedding action a′. d The advantages.

[0088] Secondly, calculate the Q-target value Y for each dominant branch. d:

[0089]

[0090] Where r represents the agent updating to obtain the emergency load shedding action a′ d The reward obtained later, γ is the set discount coefficient, and θ is the BDQ strategy network parameter. - Here are the target network parameters for BDQ, and s′ represents the updated voltage map features and generator power angle state.

[0091] For example, the current emergency load shedding action is a k The corresponding current voltage map features of the input agent and the generator power angle state are T, respectively. k and δ k The updated emergency load shedding action is a. k+1 The updated voltage map features and generator power angle states are T, respectively. k+1 and δ k+1 The corresponding reward is r k .

[0092] Finally, the timing difference error is defined as:

[0093]

[0094] Among them, e TD For time-series differential error, N is the total number of branches of the BDQ agent, which is also the total number of loads in the power grid.

[0095] The method for updating the policy network parameters of a BDQ agent is as follows:

[0096]

[0097] Where, θ w Here, α represents the policy network parameters of the BDQ agent after the w-th parameter update, and α is the learning rate. This indicates taking the derivative with respect to the parameter θ.

[0098] During the policy network parameter update, the target network periodically synchronizes its parameters from the policy network, and the final parameters of the policy network become the network parameters of the agent.

[0099] Typically, if a single update fails to meet the expected network parameters for the agent, the process can jump back to step S11 and repeat steps S11 to S16, continuing to generate interaction samples and update the network parameters again. This process is repeated multiple times to further optimize the agent's decision-making performance. In other words, the agent iteratively acquires interaction samples, and after obtaining a certain number of samples, the network parameters are trained and updated. This process is repeated multiple times to optimize the agent's network parameters.

[0100] Accordingly, the present invention also relates to an emergency load shedding decision model training device for executing the above-described emergency load shedding decision model training method.

[0101] Accordingly, the present invention also relates to an emergency load shedding decision method based on an emergency load shedding decision model, such as... Figure 5 As shown, it mainly includes:

[0102] Step S21: Execute the emergency load shedding action a determined in step k under the current transient voltage instability fault of the power grid. k Obtain the corresponding voltage map feature T k and generator power angle state set δ k ;

[0103] Step S22: Transform the voltage map feature T k and generator power angle state set δ k The agent with a branch-competitive Q-network in the emergency load shedding decision model is input to make a decision, and the emergency load shedding action 'a' is obtained in the (k+1)th step. k+1 Among them, the emergency load shedding decision model is trained according to the emergency load shedding decision model training method described above;

[0104] Step S23: Execute emergency load shedding action under the current power grid transient voltage instability fault. k+1 Determine whether the current bus voltage has stabilized or whether the iteration has reached its upper limit. If so, initiate an emergency load shedding action (a). k+1 As the final decision action under the current power grid transient voltage instability fault, if not, let K = K+1 and jump to step S21;

[0105] Among them, voltage diagram feature T k To make the power grid matrix G k and bus voltage set V k The power grid matrix G is obtained by performing multi-layer graph convolution operations. k The element in the i-th row and j-th column This indicates whether busbars i and j are connected, where i, j = 1, 2, 3, ..., N, and N is the number of busbars.

[0106] Specifically, the process of obtaining voltage diagram features, bus voltage sets, and generator power angle state sets is described above and will not be repeated here.

[0107] When using the trained agent to make decisions in practice, the decision is based on the actual transient voltage instability fault of the power grid. When the agent outputs an emergency load shedding action, i.e., the specific load shedding amount for each load, the simulation determines whether the current action can restore voltage stability. If it cannot restore stability and the number of iterations has not reached the upper limit, the agent continues to make decisions, repeating the state-action-state-action cycle until the current action can restore voltage stability or the number of iterations reaches the upper limit. The current action is then taken as the emergency load shedding action under the current transient voltage instability fault of the power grid.

[0108] The following is a specific example to illustrate this.

[0109] By setting different fault types, fault lines, fault durations, fault locations, and power flow levels, a large number of transient voltage instability operating conditions were generated to train and test the BDQ agent. A total of 186 transient voltage instability operating conditions were generated. 146 were randomly selected for model training of the agent, and the remaining 40 were used for performance testing of the agent.

[0110] The agent's training parameters are set as follows: The total number of iterations for acquiring interaction samples is 30,000; the experience pool capacity is 10,000; the batch size for drawing samples from the experience pool is 128 (meaning 128 interaction samples are drawn each time the agent's network parameters are updated); the discount factor is 0.1; the learning rate is 0.0001; the number of branches is 105 (meaning the agent can decide on 105 loads at a time); the minimum allowed action is 0.2; the maximum allowed action is 0.5; the initial exploration probability is 0.9 (meaning the minimum load shedding is 20%, the maximum load shedding is 50%, the minimum exploration probability is 0.1); and the total simulation time is 10 seconds. The agent's neural network is written using the PyTorch framework, and the agent executes load shedding decisions by calling the PSASP simulation software via Python.

[0111] To verify the impact of grid topology feature fusion on agent decision-making performance, the performance of BDQ agents with and without grid topology feature fusion was evaluated across all test sets. Since the agent's network parameters are updated after training using the emergency load shedding decision model, decision-making involves multiple iterations of state-action-state-action cycles to ultimately output a valid decision action. Therefore, performance was evaluated every 200 iterations during agent decision-making. The total number of iterations, total reward, and total number of successes were used to evaluate agent performance. Fewer iterations indicate faster decision-making speed. A larger total reward, assuming a valid decision, indicates higher decision quality. A higher number of successes indicates stronger decision-making ability.

[0112] The experiment was repeated three times, and the average of the results was compared. The comparison was between a BDQ agent based on grid topology feature fusion and a BDQ agent without grid topology feature fusion. Grid topology feature fusion refers to the input agent's state being the voltage map feature T. k and generator power angle state set δ k The value of topology feature fusion without a power grid is that the state of the input agent in the conventional scheme is the set of bus voltages V. k and generator power angle state set δ k The power grid topology was not taken into account.

[0113] The results are as follows Figures 6(a) to 6(c) As shown in Figure 6(a), after the same number of training rounds, the BDQ agent with grid topology feature fusion requires fewer total iterations in actual decision-making, indicating that grid topology feature fusion can improve the decision-making speed of the agent in practical applications. As shown in Figure 6(b), after the same number of training rounds, the BDQ agent with grid topology feature fusion receives more total rewards in actual decision-making, indicating that grid topology feature fusion can improve the agent's decision-making ability. As shown in Figure 6(c), after the same number of training rounds, the BDQ agent with grid topology feature fusion achieves more total successes in actual decision-making, indicating that knowledge fusion can improve the agent's decision-making ability. On the other hand, Figures 6(a) to 6(c) In the study, the performance indicators of the BDQ agent fused with grid topology features improved faster, indicating that grid topology feature fusion can improve the training efficiency of the BDQ agent.

[0114] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements 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 training method for an emergency load shedding decision model, characterized in that, The emergency load shedding decision model is an agent with a branch-competitive Q-network, and the model training method includes: Step S11: Execute the following steps under the current power grid transient voltage instability fault: k Emergency load shedding action determined by the step-by-step decision Obtain the corresponding voltage map features and generator power angle state set ; Step S12: Characterize the voltage map and generator power angle state set The agent makes a decision based on the input, and obtains the first... k Emergency load shedding action determined by +1 step decision ; Step S13: Execute emergency load shedding under the current power grid transient voltage instability fault. Obtain the corresponding voltage map features and generator power angle state And calculate the response to execute emergency load shedding actions. To execute emergency load shedding action Rewards for whether the grid voltage tends to stabilize Based on voltage diagram characteristics Generator power angle state set Emergency load shedding action Voltage diagram characteristics Generator power angle state and rewards As a set of interactive samples; Step S14: Let k = k + 1, jump to step S12, until multiple sets of interactive samples under the current power grid transient voltage instability fault are obtained; Step S15: Update the grid transient voltage instability fault, then jump to step S11 until the required number of interaction samples are obtained; Step S16: Extract interaction samples to train the agent to update the agent's network parameters; Among them, voltage map features To make the power grid matrix and bus voltage set The power grid matrix obtained by performing multi-layer graph convolution operations The element in the i-th row and j-th column Indicates busbar i and j Is it connected? i, j =1,2,3,……,N, where N is the number of buses; Voltage diagram characteristics ,in, The first layer in the multi-layer graph convolution operation represents the first layer. The results of the layer network operation This represents the network layer number in the multi-layer graph convolution operation, where the first layer in the multi-layer graph convolution operation is... Layer and First The propagation relationship between layers is as follows: In the formula, Indicates the execution of an emergency load shedding action. Improved voltage map matrix , I It is the identity matrix; express The degree matrix, wherein the degree matrix is ​​a diagonal matrix, the degree matrix The first in p diagonal element values for ,in, Represents the improved matrix of the voltage diagram The first in p line, number q The value of the column; Represents the characteristics of the calculated voltage diagram The first multi-layer graph convolution operation Weight parameters of the layer network; This represents a non-linear activation function.

2. The emergency load shedding decision model training method as described in claim 1, characterized in that, Transient simulations were performed using a power system analysis and synthesis program to determine the emergency load shedding actions under transient voltage instability faults in the current power grid. Bus voltage set after and generator power angle state set .

3. The emergency load shedding decision model training method as described in claim 1, characterized in that, Power grid matrix In the middle, if the busbar i and busbar j If not connected, then =0, if the busbar i and busbar j Connect, then =1.

4. The emergency load shedding decision model training method as described in claim 1, characterized in that, The reward For the bus voltage set The reward given is based on the bus voltage set. If the bus voltage has not yet stabilized, the reward will be relatively low. If the voltage of all busbars in the system returns to stability, the reward will be relatively high.

5. The emergency load shedding decision model training method as described in claim 4, characterized in that, With 0.8 pu As a dividing line for assessing whether the bus voltage has returned to stability, if the bus voltage set Medium less than 0.8 pu If the bus voltage is zero, then the reward is 0. If the bus voltage set is zero... All bus voltages are greater than or equal to 0.

8. pu If the reward is greater than 0, then the reward given will be greater than 0.

6. The emergency load shedding decision model training method as described in claim 1, characterized in that, The agent's network parameters are updated using a dual-Q network, which includes a target network and a policy network, with the target network periodically synchronizing parameters from the policy network.

7. The emergency load shedding decision model training method as described in claim 1, characterized in that, Following step S16, the following is also included: Randomly select a transient voltage instability fault in the power grid and jump to step S11 for iteration. Repeat the iteration multiple times to update the agent parameters multiple times.

8. An emergency load shedding decision model training device, characterized in that, Used to perform the emergency load shedding decision model training method according to any one of claims 1 to 7.

9. An emergency load shedding decision method, characterized in that, include: Step S21: Execute the following steps under the current power grid transient voltage instability fault: k Emergency load shedding action determined by the step-by-step decision Obtain the corresponding voltage map features and generator power angle state set ; Step S22: Characterize the voltage map and generator power angle state set The agent with a branch-competitive Q-network is input into the emergency load shedding decision model to make a decision, and the result is obtained. k Emergency load shedding action determined by +1 step decision The emergency load shedding decision model is trained using the emergency load shedding decision model training method according to any one of claims 1 to 7. Step S23: Execute emergency load shedding under the current power grid transient voltage instability fault. Determine whether the current bus voltage has stabilized or whether the iteration has reached its upper limit. If so, initiate an emergency load shedding action. As the final decision action under the current power grid transient voltage instability fault, if not, let K=K+1 and jump to step S21; Among them, voltage map features To make the power grid matrix and bus voltage set The power grid matrix obtained by performing multi-layer graph convolution operations The element in the i-th row and j-th column Indicates busbar i and j Is it connected? i, j =1,2,3,……,N, where N is the number of buses; Voltage diagram characteristics ,in, The first layer in the multi-layer graph convolution operation represents the first layer. The results of the layer network operation This represents the network layer number in the multi-layer graph convolution operation, where the first layer in the multi-layer graph convolution operation is... Layer and First The propagation relationship between layers is as follows: In the formula, Indicates the execution of an emergency load shedding action. Improved voltage map matrix , I It is the identity matrix; express The degree matrix, wherein the degree matrix is ​​a diagonal matrix, the degree matrix The first in p diagonal element values for ,in, Represents the improved matrix of the voltage diagram The first in p line, number q The value of the column; Represents the characteristics of the calculated voltage diagram The first multi-layer graph convolution operation Weight parameters of the layer network; This represents a non-linear activation function.