Power distribution network reactive voltage coordination control method and system combined with multiple agents
By classifying reactive power control devices into K-type heterogeneous intelligent agents according to their response characteristics, and optimizing control signals by combining electrical correlation matrices and temperature information, the problems of inaccurate agent attention and capacitor overheating in power distribution networks are solved, thereby improving the robustness of the control strategy and the safety of equipment.
Patent Information
- Application Number
- CN202611646379.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
In existing reactive power and voltage coordination control methods for power distribution networks, the degree of attention paid by the intelligent agent to neighboring nodes does not match the actual electrical coupling relationship, resulting in inaccurate control strategies, affecting voltage stability and equipment safety. Furthermore, parallel capacitor banks are prone to overheating during reactive power regulation, shortening their service life.
By classifying reactive power control devices into K types of heterogeneous intelligent agents according to their response characteristics, electrical correlation matrix and temperature information are obtained, sensitivity reliability and thermal safety reliability factors are calculated, spatial attention weights are determined, temporal attention coding and multi-path interaction are performed, control distribution is generated, and control signals are optimized.
It improves the robustness of reactive power and voltage coordination control in the distribution network and the safety of equipment operation, avoids excessive concentration of reactive power tasks on equipment in an unsafe thermal state, and enhances the accuracy of control strategies and the service life of equipment.
Smart Images

Figure CN123144129A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of reactive power and voltage control technology in power distribution networks, and specifically to a method and system for coordinated reactive power and voltage control in power distribution networks that combines multiple agents. Background Technology
[0002] Currently, reactive power and voltage control in distribution networks mainly employs rule-based control methods based on nine-zone diagrams, centralized optimization methods based on mixed-integer linear programming or intelligent optimization algorithms, and cooperative control methods based on multi-agent reinforcement learning. Among these, multi-agent reinforcement learning models reactive power regulation equipment such as capacitor banks, static var compensators, and photovoltaic grid-connected converters as agents, uses neural networks to encode local observations at nodes, and achieves coordinated control of multiple devices through centralized training of a distributed execution framework.
[0003] However, in actual operation of distribution networks, photovoltaic output and load levels fluctuate continuously, and operating conditions change frequently. The inter-node coupling relationships calculated based on fixed physical relationships or static models are prone to discrepancies with the actual operating conditions. This leads to a mismatch between the agent's attention to neighboring nodes and the actual electrical coupling relationships, potentially causing control strategy inaccuracies and consequently affecting distribution network voltage stability and equipment safety. Furthermore, parallel capacitor banks gradually increase in temperature when continuously undertaking reactive power regulation tasks. If reactive power distribution is unreasonable, some capacitor banks may operate at high temperatures for extended periods, accelerating equipment aging, shortening service life, and threatening equipment operational safety. Summary of the Invention
[0004] This invention provides a method and system for coordinated reactive power and voltage control of distribution networks that combines multiple agents, aiming to solve the technical problem of insufficient security in the existing technology of coordinated reactive power and voltage control of distribution networks.
[0005] In view of the above problems, the present invention provides a method and system for coordinated control of reactive power and voltage in power distribution networks that combines multiple intelligent agents.
[0006] In a first aspect, the present invention provides a method for coordinated reactive power and voltage control of a distribution network combining multiple agents, comprising: Acquire the access nodes, response attribute parameters, and local operation data of each reactive power control device in the power distribution network, and classify each reactive power control device into K types of heterogeneous intelligent agents according to their response characteristics; Obtain the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, and obtain the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information. Based on the electrical correlation matrix, sensitivity confidence factor and thermal safety confidence factor, spatial attention weights are obtained through comprehensive calculation. Based on the spatial attention weights, the representations of the associated intelligent agents constructed from local operating data are aggregated to obtain the spatial attention features of each intelligent agent. Temporal attention encoding is performed based on spatial attention features, and multi-path attention interaction is carried out among K types of heterogeneous agents to obtain the control distribution of each agent. Based on the control distribution, the control signals of each reactive power control device are determined and sent to each reactive power control device in the distribution network.
[0007] Secondly, the present invention provides a multi-agent reactive power and voltage coordination control system for power distribution networks, comprising: The data acquisition and classification module is used to acquire the access nodes, response attribute parameters and local operation data of each reactive power control device in the distribution network, and classify each reactive power control device into K types of heterogeneous intelligent agents according to their response characteristics. The sensitivity thermal safety module is used to obtain the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, and obtain the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information. The spatial attention feature module is used to perform comprehensive calculations based on the electrical correlation matrix, sensitivity confidence factor and thermal safety confidence factor to obtain spatial attention weights, and to aggregate the representations of the associated intelligent agents constructed from local operating data based on the spatial attention weights to obtain the spatial attention features of each intelligent agent. The temporal multipath attention module is used to encode temporal attention based on spatial attention features and to perform multipath attention interaction among K types of heterogeneous agents to obtain the control distribution of each agent. The control signal transmission module is used to determine the control signals of each reactive power control device based on the control distribution and send them to each reactive power control device in the distribution network.
[0008] One or more technical solutions provided in this invention have at least the following technical effects or advantages: This invention provides a method and system for coordinated reactive power and voltage control in a distribution network that combines multiple agents. By determining a sensitivity reliability factor, the calculation of spatial attention weights can adapt to the numerical stability of the current electrical correlation matrix, improving the accuracy of attention allocation. By determining a thermal safety reliability factor, the calculation of spatial attention weights can reflect the current thermal state of capacitor banks, avoiding excessive concentration of reactive power tasks on equipment with unsafe thermal states. Based on this, spatial attention weights are comprehensively calculated, and after time-series attention coding and multi-path attention interaction, a control distribution is generated. The control signals of each reactive power control device are then determined accordingly, realizing coordinated control of reactive power and voltage in the distribution network, improving the robustness of the control strategy and the safety of equipment operation. Attached Figure Description
[0009] Figure 1 This is an overall logic diagram of the multi-agent combined reactive power and voltage coordinated control method for power distribution networks provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating the process of determining the sensitivity reliability factor in the multi-agent coordinated control method for reactive power and voltage in a distribution network provided in an embodiment of the present invention. Figure 3 This is a schematic diagram of the structure of a multi-agent power distribution network reactive power and voltage coordination control system provided in an embodiment of the present invention. The components represented by each number in the attached diagram are explained below: Data acquisition and classification module 11, sensitivity and thermal safety module 12, spatial interest feature module 13, temporal multiplex interest module 14, control signal transmission module 15. Detailed Implementation
[0010] This invention provides a method and system for coordinated reactive power and voltage control of distribution networks that combines multiple agents, in order to address the technical problem of insufficient security in the coordinated reactive power and voltage control of distribution networks in the prior art.
[0011] Example 1, as Figure 1 As shown, this invention provides a method for coordinated reactive power and voltage control of a distribution network combining multiple agents, including: S100: Obtain the access nodes, response attribute parameters, and local operation data of each reactive power control device in the distribution network, and classify each reactive power control device into K-type heterogeneous intelligent agents according to their response characteristics.
[0012] In this embodiment of the invention, the reactive power control devices in the distribution network include various types such as on-load tap changers, parallel capacitor banks, static var compensators (SVCs), and photovoltaic grid-connected converters. These different types of reactive power control devices exhibit significant differences in response speed and control variable types. If all reactive power control devices are treated with a uniform control cycle and control variable type, devices with slow response speeds will be subject to frequent control commands, shortening their lifespan, while devices with fast response speeds will be unable to fully utilize their rapid adjustment capabilities. Furthermore, the access nodes of each reactive power control device in the distribution network differ, and the impact of reactive power injection changes on the voltage of different nodes also varies. If the access locations of each reactive power control device in the distribution network and the relationships between different agents cannot be accurately obtained, the subsequent calculation of spatial attention weights will lack the necessary foundational data. Therefore, it is necessary to obtain the access nodes, response attribute parameters, and local operating data of each reactive power control device, and classify each reactive power control device into K types of heterogeneous agents based on their response characteristics, providing a data foundation for the subsequent calculation of spatial attention weights.
[0013] Step S100 in the method provided in this embodiment of the invention includes: This includes acquiring the access nodes, response attribute parameters, and local operating data of each reactive power control device in the distribution network, including: Obtain the access node information of each reactive power control device from the distribution network topology information database or distribution management system. The access node information includes the node number where the device is located and the connection relationship of the node in the distribution network. Obtain the response attribute parameters of each reactive power control device from the equipment file or equipment parameter information database. The response attribute parameters include response time and control variable type. Local operating data of each agent is acquired by measuring devices deployed at each node. The local operating data includes node voltage value, node active power, node reactive power, distributed power output power, device status variables and time identifier. Based on the access node information, determine the corresponding node of each intelligent agent in the distribution network, and determine the association relationship between each intelligent agent based on the access node information and / or electrical association matrix.
[0014] First, the access node information of each reactive power control device is obtained from the distribution network topology database or distribution management system. This access node information includes the node number where the device is located and the node's connection relationship within the distribution network. Specifically, the access node information represents the nodes connected to each reactive power control device in the distribution network, including the node number and the connection relationship. The distribution network topology database is a database that stores topology data such as node numbers, branch connection relationships, and line parameters in the distribution network. The distribution management system is an automated management platform used to monitor and control the operating status of the distribution network.
[0015] Specifically, the access node information of each reactive power control device is obtained from the distribution network topology database or distribution management system. The access node information includes the node number where the device is located and the node's connection relationship within the distribution network. The distribution network topology database or distribution management system stores all node numbers and branch connection relationships of the distribution network. By querying the installation location recorded in the equipment file of each reactive power control device, the node number corresponding to each reactive power control device can be determined.
[0016] For example, a 10kV distribution network area contains 33 nodes, numbered N0 to N32. The connection node information for each reactive power control device is obtained from the distribution network topology database as follows: on-load tap changer connected to node N0, first parallel capacitor bank connected to node N7, second parallel capacitor bank connected to node N14, static var compensator connected to node N24, first photovoltaic grid-connected converter connected to node N17, second photovoltaic grid-connected converter connected to node N21, and third photovoltaic grid-connected converter connected to node N30. Node N0 is connected to node N1, node N1 is connected to node N2, and so on up to node N32, forming a radial connection relationship.
[0017] Secondly, the response attribute parameters of each reactive power control device are obtained from the equipment archives or equipment parameter information database. These response attribute parameters include response time and control variable type. Specifically, the response attribute parameters characterize the response characteristics and control variable type of each reactive power control device, including response time and control variable type. Response time refers to the time required for the reactive power control device to complete the control action after receiving the control signal. Control variable type refers to whether the control variable of the reactive power control device is a discrete or continuous variable.
[0018] For example, the response attribute parameters of each reactive power control device obtained from the equipment file are as follows: the response time of the on-load tap changer is 15s, the control variable type is discrete variable, and the control quantity is the tap position; the response time of the first parallel capacitor bank is 3s, the control variable type is discrete variable, and the control quantity is on / off state; the response time of the second parallel capacitor bank is 3s, the control variable type is discrete variable, and the control quantity is on / off state; the response time of the static var compensator is 0.5s, the control variable type is continuous variable, and the control quantity is continuous reactive power output value; the response time of the first photovoltaic grid-connected converter is 0.5s, the control variable type is continuous variable, and the control quantity is continuous reactive power output value; the response time of the second photovoltaic grid-connected converter is 0.5s, the control variable type is continuous variable, and the control quantity is continuous reactive power output value; the response time of the third photovoltaic grid-connected converter is 0.5s, the control variable type is continuous variable, and the control quantity is continuous reactive power output value.
[0019] Secondly, local operational data for each agent is acquired through measurement devices deployed at each node. This local operational data includes node voltage values, node active power, node reactive power, distributed power supply output power, device status variables, and time stamps. Specifically, local operational data refers to the real-time operational status data of the node where each agent resides. Node voltage values refer to the per-unit or nominal values of the node voltage amplitude. Node active power refers to the active power injected into the node. Node reactive power refers to the reactive power injected into the node. Distributed power supply output power refers to the active power output by the distributed power supply connected to the node. Device status variables refer to the current operational status of the reactive power control device. Time stamps refer to the timestamp corresponding to the data acquisition moment.
[0020] Specifically, local operational data of each intelligent agent is acquired through measurement devices deployed at each node. These measurement devices include voltage transformers, current transformers, and power measurement units. Voltage transformers measure node voltage values, current transformers measure node current values, and the power measurement units calculate the node's active and reactive power based on the node voltage and current values. Distributed power generation output power is obtained through the power measurement unit at the distributed power generation grid connection point. Equipment status parameters are obtained through auxiliary contacts of the reactive power control device or status monitoring units. Time signatures are obtained through a Global Positioning System (GPS) clock or a distribution network synchronization clock.
[0021] For example, taking the first parallel capacitor bank connected to node N7 as an example, the local operating data obtained through the measuring device deployed at node N7 is as follows: node voltage value is 0.97 pu, node active power is 200 kW, node reactive power is 50 kvar, distributed power output power is 0 kW, equipment status is in operation, and the time is October 8, 2026, 10:00:00. Taking the first photovoltaic grid-connected converter connected to node N17 as an example, the local operating data obtained through the measuring device deployed at node N17 is as follows: node voltage value is 1.02 pu, node active power is 300 kW, node reactive power is 20 kvar, distributed power output power is 300 kW, equipment status is in operation, and the time is October 8, 2026, 10:00:00.
[0022] Furthermore, based on the access node information, the corresponding node of each agent in the distribution network is determined, and the association relationship between each agent is determined based on the access node information and / or the electrical association matrix. Here, the association relationship refers to the interest relationship between agents determined based on the distribution network topology connection relationship and / or electrical association degree. If there is a directly connected branch between the nodes corresponding to two agents, or if the electrical association degree between the nodes corresponding to two agents is greater than a preset association threshold, then there is an association relationship between the two agents. Specifically, the corresponding node of each agent in the distribution network is determined based on the access node information; the direct connection relationship is determined based on the node connection relationship in the access node information; and / or after obtaining the electrical association matrix, the electrical association degree is determined based on the sensitivity between the corresponding node in the electrical association matrix and the node where the current agent is located, and agents with an electrical association degree greater than a preset association threshold are identified as associated agents.
[0023] For example, based on the access node information, the on-load tap changer corresponds to node N0, the first parallel capacitor bank corresponds to node N7, the second parallel capacitor bank corresponds to node N14, the static var compensator corresponds to node N24, the first photovoltaic grid-connected converter corresponds to node N17, the second photovoltaic grid-connected converter corresponds to node N21, and the third photovoltaic grid-connected converter corresponds to node N30. Based on the node connections in the distribution network, node N7 has direct connection branches with nodes N6 and N8, and node N17 has direct connection branches with nodes N16 and N18.
[0024] The aforementioned direct connections can serve as the basis for determining preliminary associations or topological distances. In subsequent spatial attention calculations, associated agents are further determined based on nodes with electrical association degrees greater than a preset association threshold in the electrical association matrix. For example, for the agent corresponding to node N14 of the second parallel capacitor bank access node, according to the electrical association matrix, the electrical association degrees between nodes N7, N17, and N21 and node N14 are greater than the preset association threshold. Therefore, the agents corresponding to node N7 of the first parallel capacitor bank access node, node N17 of the first photovoltaic grid-connected converter access node, and node N21 of the second photovoltaic grid-connected converter access node are determined as associated agents.
[0025] Among them, the reactive power control devices are classified into K types of heterogeneous intelligent agents according to their response characteristics, including: The reactive power control devices are classified into K-type heterogeneous intelligent agents according to their response time and the type of control variable. K-type heterogeneous intelligent agents include: Class A intelligent agents are discrete and slow-speed, corresponding to on-load tap changers, with the control quantity being the tap position, and have a first response time. Type B intelligent agents are discrete and fast, corresponding to parallel capacitor banks. The control quantity is an on / off state, and they have a second response time, which is shorter than the first response time. Class C intelligent agents are continuous and fast, corresponding to static var compensators. The control quantity is the continuous reactive power output value. They have a third response time, which is shorter than the second response time. Type D intelligent agents are continuous, fast, and source-load coupled, corresponding to reactive power regulation of photovoltaic grid-connected converters. The regulation quantity is the continuous reactive power output value, and it has a fourth response time, which is less than or equal to the third response time.
[0026] In this embodiment of the invention, the reactive power control devices in the distribution network include various types such as on-load tap changers, parallel capacitor banks, static var compensators (SVCs), and photovoltaic grid-connected converters. These different types of reactive power control devices differ significantly in response time and the type of control variable. On-load tap changers achieve voltage regulation by mechanically switching tap positions. Their operation involves mechanical processes such as motor drive, spring energy storage, and contact switching, resulting in a relatively long first response time. Parallel capacitor banks change the capacitance connected to the system through switch switching. Their operation is constrained by switch performance and capacitor discharge time, resulting in a second response time, which is shorter than the first response time. Static var compensators employ power electronic converter technology, resulting in a third response time, which is shorter than the second response time. Their typical full response time is no greater than 1 second, for example, 0.5 seconds, while their instantaneous response time can reach the order of 100 μs. The typical range for the third response time is less than 1 second. Photovoltaic grid-connected converters have reactive power regulation capabilities while outputting active power, and have a fourth response time, which is less than or equal to the third response time; their reactive power control response time is usually no more than 1 second.
[0027] Regarding the types of control variables, the control quantity of on-load tap changers is the tap position, which is a discrete variable; the control quantity of parallel capacitor banks is the on / off state, which is also a discrete variable; and the control quantity of static var compensators (SVCs) and photovoltaic grid-connected converters is the continuous reactive power output value, which is a continuous variable. If all reactive power control devices are treated with a uniform control cycle and control variable type, it will lead to slow-response reactive power control devices receiving frequent control commands, shortening their lifespan, while fast-response reactive power control devices will not be able to fully utilize their rapid adjustment capabilities. Therefore, it is necessary to classify all reactive power control devices into K-type heterogeneous intelligent agents based on their response time and control variable type.
[0028] Here, K-class heterogeneous intelligent agents refer to the K categories obtained by classifying various reactive power control devices according to their response time and control variable type. Each category corresponds to a combination of response time and control variable type. The first response time refers to the response time of class A intelligent agents. The second response time refers to the response time of class B intelligent agents. The third response time refers to the response time of class C intelligent agents. The fourth response time refers to the response time of class D intelligent agents.
[0029] Among them, Type A intelligent agents are discrete and slow-speed, corresponding to on-load tap changers. The control quantity is the tap position, and it has a first response time. The first response time is the response time of the on-load tap changer. The response time of the on-load tap changer includes mechanical switching time and control delay. Mechanical switching time is the time required for the tap mechanism to complete one position change, typically ranging from 2s to 5s. Control delay is the delay time set by the automatic voltage control relay to avoid voltage transient fluctuations, with a value ranging from 8s to 25s. Combining the mechanical switching time of 2s to 5s and the control delay of 8s to 25s, the typical value range of the first response time is 10s to 30s.
[0030] Among them, the Class B intelligent agent is a discrete fast type, corresponding to a parallel capacitor bank. The control quantity is an on / off state, and it has a second response time, which is shorter than the first response time. The second response time is the response time of the parallel capacitor bank. The parallel capacitor bank achieves reactive power compensation through switching, and its response time depends on the switch type. When using thyristor switching, the response time can reach the millisecond level, with a typical full response time of no more than 20ms. When using contactor switching, the response time is longer, and a switching delay needs to be set to avoid the time of sudden voltage pulse changes in the power supply and to ensure that the secondary switching interval of the capacitor meets the discharge requirements. Considering both the capacitor discharge time and the switching delay, the typical range of the second response time is 1s to 5s.
[0031] Among them, Class C intelligent agents are continuous and fast-acting, corresponding to static var compensators (SVCs). The controlled quantity is the continuous reactive power output value, and it has a third response time, which is shorter than the second response time. The third response time is the response time of the SVC. SVCs employ power electronic converter technology, and their typical full response time is no greater than 1 second, for example, 0.5 seconds; the instantaneous response time can reach the order of 100 μs. This response time is much smaller than the response time of a parallel capacitor bank; therefore, the third response time is shorter than the second response time. The typical range for the third response time is less than 1 second.
[0032] Among them, Class D intelligent agents are continuous, fast, and source-load coupled, corresponding to reactive power regulation of photovoltaic grid-connected converters. The controlled quantity is the continuous reactive power output value, and it has a fourth response time, which is less than or equal to the third response time. The fourth response time is the response time of reactive power regulation of the photovoltaic grid-connected converter. The photovoltaic grid-connected converter achieves reactive power regulation by controlling the reactive component of the grid-connected current while outputting active power. According to relevant standards for grid-connected performance of photovoltaic power plants, the reactive power control response time of the inverter should not exceed 1 second. This response time is on the same order of magnitude as the response time of a static var compensator (SVC), therefore the fourth response time is less than or equal to the third response time. The typical range of the fourth response time is less than or equal to 1 second.
[0033] For example, the 10kV distribution network area contains 33 nodes, numbered N0 to N32. The on-load tap changer is connected to node N0 with a response time of 15s; the first parallel capacitor bank is connected to node N7, and the second parallel capacitor bank is connected to node N14, both with a response time of 3s; the static var compensator is connected to node N24 with a response time of 0.5s; the first photovoltaic grid-connected converter is connected to node N17, the second photovoltaic grid-connected converter is connected to node N21, and the third photovoltaic grid-connected converter is connected to node N30, all with a response time of 0.5s. Based on the response attribute parameters, the on-load tap changer is classified as a Class A intelligent entity with a first response time of 15s; the first and second parallel capacitor banks are classified as Class B intelligent entities with a second response time of 3s, which is less than 15s, satisfying the condition that the second response time is less than the first response time; the static var compensator is classified as a Class C intelligent entity with a third response time of 0.5s, which is less than 3s, satisfying the condition that the third response time is less than the second response time; and the first, second, and third photovoltaic grid-connected converters are classified as Class D intelligent entities with a fourth response time of 0.5s, which is equal to the third response time of 0.5s, satisfying the condition that the fourth response time is less than or equal to the third response time.
[0034] In this embodiment of the invention, by acquiring the access node information, response attribute parameters, and local operating data of each reactive power control device, a complete data foundation is provided for the subsequent determination of the electrical correlation matrix, sensitivity reliability factor, thermal safety reliability factor, and spatial attention weight. Based on response time and control variable type, each reactive power control device is classified into K types of heterogeneous agents, enabling subsequent multi-path attention interactions to employ different control strategies for different types of agents. This avoids frequent control commands being issued to reactive power control devices with slow response times, while allowing reactive power control devices with fast response times to fully utilize their rapid adjustment capabilities. By determining the correlation relationships between agents, the scope of neighboring agents is provided for the subsequent calculation of spatial attention weight, ensuring that the spatial attention weight accurately reflects the electrical coupling relationships between agents.
[0035] S200: Obtain the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, obtain the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information.
[0036] In this embodiment of the invention, the electrical correlation matrix of the distribution network is used to characterize the impact of reactive power injection changes between nodes on voltage amplitude, serving as the basis for subsequent spatial attention weight calculation. However, in actual operation of the distribution network, photovoltaic output and load levels fluctuate continuously, and operating conditions change frequently, leading to a decrease in the numerical stability of the electrical correlation matrix. When the numerical stability of the electrical correlation matrix is poor, the spatial attention weights calculated based on this matrix are prone to significant deviations, resulting in a mismatch between the agent's attention to neighboring nodes and the actual electrical coupling relationship. Therefore, it is necessary to determine a matrix condition metric based on the electrical correlation matrix, and then determine a sensitivity reliability factor, so that the subsequent calculation of spatial attention weights can adapt to the current numerical stability of the electrical correlation matrix.
[0037] Furthermore, the temperature of parallel capacitor banks gradually increases when continuously undertaking reactive power regulation tasks. If reactive power distribution is unreasonable, some parallel capacitor banks may operate at high temperatures for extended periods, accelerating equipment aging, shortening service life, and threatening equipment operational safety. Therefore, it is necessary to obtain the temperature information of each parallel capacitor bank and determine the thermal safety reliability factor based on this information. This ensures that the subsequent calculation of spatial attention weights reflects the current thermal state of the parallel capacitor banks, preventing excessive concentration of reactive power tasks on parallel capacitor banks with unsafe thermal states.
[0038] Step S200 in the method provided in this embodiment of the invention includes: Among them, such as Figure 2 As shown, the matrix condition metric is determined based on the electrical correlation matrix, and the sensitivity confidence factor is determined based on the matrix condition metric, including: The electrical correlation matrix is decomposed to obtain the matrix condition metric, which characterizes the numerical stability of the electrical correlation matrix. The stability margin coefficient is determined based on the matrix conditional measure and the reference conditional measure, and the conditional index adjustment factor is determined based on the stability margin coefficient. The rate of change adjustment factor is determined based on the time rate of change measured by matrix conditions. By combining the condition index adjustment factor with the rate of change adjustment factor, the sensitivity confidence factor is obtained.
[0039] First, obtain the electrical correlation matrix of the distribution network. The electrical correlation matrix is used to characterize the impact of reactive power injection changes between nodes on voltage amplitude. The elements in the electrical correlation matrix represent the degree of influence of reactive power injection changes at node j on the voltage amplitude at node i. The electrical correlation matrix can be calculated offline using the perturbation method and updated periodically during operation based on topology changes. When using the perturbation method, a small reactive power perturbation is applied to each reactive power control node, the power flow is recalculated, and the elements in the electrical correlation matrix are determined based on the ratio of the change in node voltage amplitude to the reactive power perturbation.
[0040] For example, this 10kV distribution network area contains 33 nodes. An electrical correlation matrix, with a size of 33×33, is calculated using the perturbation method. The elements in the electrical correlation matrix represent the degree of influence of reactive power injection changes at node j on the voltage amplitude at node i. For instance, the reactive power injection change of the first parallel capacitor bank at node N7 has an influence of 0.002 pu / kvar on the voltage amplitude of node N7 and 0.0015 pu / kvar on the voltage amplitude of node N8.
[0041] Secondly, matrix decomposition is performed on the electrical incidence matrix to obtain the matrix condition metric, which characterizes the numerical stability of the electrical incidence matrix. Matrix decomposition refers to the mathematical operation of decomposing the electrical incidence matrix into a product of multiple matrices, including singular value decomposition and eigenvalue decomposition. The matrix condition metric is the ratio of the largest singular value to the smallest singular value of the electrical incidence matrix, used to characterize its numerical stability. The closer the matrix condition metric is to 1, the better the numerical stability of the electrical incidence matrix; the larger the matrix condition metric, the worse the numerical stability of the electrical incidence matrix.
[0042] Specifically, singular value decomposition (SVD) is performed on the electrical incidence matrix to obtain the maximum and minimum singular values. The ratio of the maximum to the minimum singular value is used as the matrix condition metric. For example, performing SVD on a 33×33 electrical incidence matrix yields a maximum singular value of 0.015 and a minimum singular value of 0.00003, resulting in a matrix condition metric of 0.015 / 0.00003 = 500. This matrix condition metric characterizes the numerical stability of the current electrical incidence matrix.
[0043] Next, the stability margin coefficient is determined based on the matrix condition metric and the reference condition metric, and the condition index adjustment factor is determined based on the stability margin coefficient. The reference condition metric refers to the matrix condition metric of the electrical correlation matrix under typical normal operating conditions of the distribution network, used as a benchmark to assess whether the current matrix condition metric is normal. The stability margin coefficient is the ratio of the reference condition metric to the current matrix condition metric, used to characterize the relative health of the numerical stability of the current electrical correlation matrix. The condition index adjustment factor is an adjustment factor determined based on the stability margin coefficient, used to characterize the contribution of the matrix condition metric to the sensitivity reliability factor.
[0044] Specifically, the stability margin coefficient = reference condition metric / matrix condition metric. Subtracting the preset neutral point from the stability margin coefficient, multiplying by the first scaling factor, and then inputting this into the Sigmoid function yields the condition index adjustment factor. The preset neutral point distinguishes between the stability margin coefficient being within the normal or abnormal range, while the first scaling factor controls the width of the transition interval between the condition index adjustment factor and the stability margin coefficient. Both the first scaling factor and the preset neutral point are learnable parameters, updated through backpropagation during training. Condition index adjustment factor = Sigmoid(first scaling factor × (stability margin coefficient - preset neutral point)). The Sigmoid function is a nonlinear function that maps any real number to the interval between 0 and 1, expressed as Sigmoid(x) = 1 / (1 + e^(-1 / 2)). (-x) For example, set the reference condition metric to 500, the preset neutral point to 0.5, and the first scaling factor to 6. The current matrix condition metric is 500, and the stability margin coefficient = 500 / 500 = 1. The condition metric adjustment factor = Sigmoid(6×(1-0.5)) = Sigmoid(3) = 1 / (1+e) (-3) )≈0.953.
[0045] Furthermore, a rate of change adjustment factor is determined based on the time rate of change of the matrix conditional measure. The time rate of change of the matrix conditional measure is the difference between the matrix conditional measure at the current time and the matrix conditional measure at the previous time, divided by the time interval. The rate of change adjustment factor is an adjustment factor determined based on the time rate of change of the matrix conditional measure, used to characterize the contribution of the rate of change of the matrix conditional measure to the sensitivity confidence factor.
[0046] Specifically, the temporal rate of change of the matrix conditional metric is calculated as (current temporal rate of change - previous temporal rate of change) / time interval. The absolute value of the temporal rate of change of the matrix conditional metric is subtracted from a preset rate of change threshold, multiplied by a second scaling factor, and then the negative value is input into the Sigmoid function to obtain the rate of change adjustment factor. The preset rate of change threshold is used to distinguish whether the rate of change of the matrix conditional metric is within the normal or abnormal range. The second scaling factor controls the width of the transition interval between the rate of change adjustment factor and the temporal rate of change of the matrix conditional metric. Both the second scaling factor and the preset rate of change threshold are learnable parameters, updated through backpropagation during training. The rate of change adjustment factor is calculated as: Sigmoid(-second scaling factor × (absolute value of the temporal rate of change of the matrix conditional metric - preset rate of change threshold)). When the absolute value of the temporal rate of change of the matrix conditional metric is less than the preset rate of change threshold, the rate of change adjustment factor approaches 1; when the absolute value of the temporal rate of change of the matrix conditional metric exceeds the preset rate of change threshold, the rate of change adjustment factor decreases rapidly. The preset rate of change threshold is determined based on distribution network operation experience, with a typical range of 0.001 times / min to 0.01 times / min as measured by reference conditions. The typical range of the second scaling factor is 3 to 8.
[0047] For example, the time interval is set to 5 minutes, the reference condition metric is 500, the preset rate of change threshold is 0.5 / min, and the second scaling factor is 5. The matrix condition metric at the previous time step was 500, the matrix condition metric at the current time step is 500, and the absolute value of the time rate of change of the matrix condition metric is |500 - 500| / 5 = 0 / min. The rate of change adjustment factor is Sigmoid(-5 × (0 - 0.5)) = Sigmoid(2.5) = 1 / (1 + e) (-2.5) )≈0.924.
[0048] Finally, the condition index adjustment factor and the rate of change adjustment factor are combined to obtain the sensitivity reliability factor. The sensitivity reliability factor is a factor determined based on the matrix condition metric and its time rate of change, used to characterize the reliability of the calculation of spatial attention weights by the electrical correlation matrix under the current operating state. The sensitivity reliability factor ranges from 0 to 1. Sensitivity reliability factor = condition index adjustment factor × rate of change adjustment factor. For example, if the condition index adjustment factor is 0.953 and the rate of change adjustment factor is 0.924, the sensitivity reliability factor = 0.953 × 0.924 ≈ 0.881.
[0049] This includes acquiring temperature information for each parallel capacitor bank and determining a thermal safety reliability factor based on the temperature information, including: Obtain the casing temperature, internal temperature, and ambient temperature of each parallel capacitor bank; The equivalent internal temperature is determined based on the internal temperature and the shell temperature. The thermal safety margin is determined based on the equivalent internal temperature, and the absolute value of the temperature change rate is determined based on the time change of the equivalent internal temperature. The thermal safety reliability factor is determined based on the absolute values of the thermal safety margin and the rate of temperature change.
[0050] First, the casing temperature, internal temperature, and ambient temperature of each parallel capacitor bank are acquired. The casing temperature refers to the surface temperature of the parallel capacitor bank's casing. The internal temperature refers to the temperature of the dielectric layer inside the parallel capacitor bank. The ambient temperature refers to the temperature inside the capacitor cabinet containing the parallel capacitor banks. Specifically, the casing temperature is acquired using a first temperature sensor deployed on the surface of the parallel capacitor bank's casing. The internal temperature is acquired using a second temperature sensor deployed on the dielectric layer inside the parallel capacitor bank. The ambient temperature is acquired using a third temperature sensor deployed inside the capacitor cabinet.
[0051] For example, taking the first parallel capacitor bank access node N7 in S100 as an example, the shell temperature is 40°C obtained by a first temperature sensor deployed on the surface of the first parallel capacitor bank shell, the internal temperature is 50°C obtained by a second temperature sensor deployed in the dielectric layer inside the first parallel capacitor bank, and the ambient temperature is 35°C obtained by a third temperature sensor deployed inside the capacitor cabinet. The shell temperature of the second parallel capacitor bank access node N14 is 38°C, the internal temperature is 48°C, and the ambient temperature is 35°C.
[0052] Secondly, the equivalent internal temperature is determined based on the internal temperature and the casing temperature. The equivalent internal temperature is the temperature obtained by weighted summation of the internal and casing temperatures, used to comprehensively characterize the internal thermal state of the parallel capacitor bank. Equivalent internal temperature = Internal temperature × First weight + Casing temperature × Second weight. The first weight is greater than the second weight. The values of the first and second weights are determined based on the heat dissipation characteristics and dielectric loss characteristics of the parallel capacitor bank. For example, let's set the first weight to 0.7 and the second weight to 0.3. If the internal temperature of the first parallel capacitor bank is 50℃ and the casing temperature is 40℃, the equivalent internal temperature = 50 × 0.7 + 40 × 0.3 = 35 + 12 = 47℃. If the internal temperature of the second parallel capacitor bank is 48℃ and the casing temperature is 38℃, the equivalent internal temperature = 48 × 0.7 + 38 × 0.3 = 45℃.
[0053] Secondly, the thermal safety margin is determined based on the equivalent internal temperature, and the absolute value of the temperature change rate is determined based on the time change of the equivalent internal temperature. The thermal safety margin is the difference between the temperature emergency threshold and the equivalent internal temperature, divided by the difference between the temperature emergency threshold and the reference temperature. It characterizes the safety margin between the current temperature of the parallel capacitor bank and the temperature emergency threshold. The reference temperature refers to the dielectric temperature under rated operating conditions specified by the parallel capacitor bank manufacturer. The temperature emergency threshold is the highest permissible operating temperature of the parallel capacitor bank. The absolute value of the temperature change rate is the absolute value of the difference between the current equivalent internal temperature and the previous equivalent internal temperature, divided by the time interval.
[0054] Specifically, the thermal safety margin = (temperature emergency threshold - equivalent internal temperature) / (temperature emergency threshold - reference temperature). The absolute value of the rate of temperature change = |current equivalent internal temperature - previous equivalent internal temperature| / time interval. For example, the reference temperature is set to 45℃, and the temperature emergency threshold is 75℃. The equivalent internal temperature of the first parallel capacitor bank is 47℃, and the thermal safety margin = (75-47) / (75-45)≈0.933. The equivalent internal temperature at the previous moment was 46℃, and the equivalent internal temperature at the current moment is 47℃. The time interval is 10s, and the absolute value of the rate of temperature change = |47-46| / 10 = 0.1℃ / s.
[0055] Finally, the thermal safety reliability factor is determined based on the absolute values of the thermal safety margin and the rate of temperature change. The thermal safety reliability factor is a factor determined based on the absolute values of the thermal safety margin and the rate of temperature change, used to characterize the safety level of the parallel capacitor bank in undertaking reactive power regulation tasks under the current thermal conditions. The value range of the thermal safety reliability factor is 0 to 1.
[0056] Specifically, the temperature adjustment factor is obtained by subtracting the preset temperature neutral point from the thermal safety margin, multiplying it by the third scaling factor, and then inputting it into the Sigmoid function. The rate adjustment factor is obtained by subtracting the preset temperature change rate threshold from the absolute value of the temperature change rate, multiplying it by the fourth scaling factor, taking the negative value, and then inputting it into the Sigmoid function. The thermal safety reliability factor is obtained by multiplying the temperature adjustment factor and the rate adjustment factor. Temperature adjustment factor = Sigmoid(third scaling factor × (thermal safety margin - preset temperature neutral point)). Rate adjustment factor = Sigmoid(-fourth scaling factor × (absolute value of temperature change rate - preset temperature change rate threshold)). Thermal safety reliability factor = temperature adjustment factor × rate adjustment factor. Here, the preset temperature neutral point is the benchmark value used to distinguish whether the thermal safety margin is within the safe range or the warning range. The preset temperature change rate threshold is the benchmark value used to distinguish whether the temperature change rate is within the normal range or the abnormal range. The third and fourth scaling factors are learnable parameters used to control the width of the transition interval of the mapping curve.
[0057] The preset temperature neutral point is determined based on the rated operating temperature of the parallel capacitor bank, with a typical value range of 0.3 to 0.7. The preset temperature change rate threshold is determined based on the heat dissipation characteristics and operating experience of the parallel capacitor bank, with a typical value range of 0.1℃ / s to 1.0℃ / s. The typical value range of the third scaling factor is 4 to 8. The typical value range of the fourth scaling factor is 3 to 6. The third scaling factor, the fourth scaling factor, the preset temperature neutral point, and the preset temperature change rate threshold are all learnable parameters, updated through backpropagation during training.
[0058] For example, the preset temperature neutral point is set to 0.5, and the third scaling factor is 6. The thermal safety margin of the first parallel capacitor bank is 0.933, and the temperature adjustment factor = Sigmoid(6×(0.933-0.5)) = Sigmoid(2.598) = 1 / (1+e (-2.598) )≈0.930. Set the preset temperature change rate threshold to 0.5℃ / s, and the fourth scaling factor to 5. The absolute value of the temperature change rate of the first parallel capacitor bank is 0.1℃ / s, and the rate adjustment factor = Sigmoid(-5×(0.1-0.5)) = Sigmoid(2) = 1 / (1+e (-2) )≈0.881. Thermal safety reliability factor = 0.930 × 0.881 ≈ 0.819.
[0059] In this embodiment of the invention, matrix condition metrics and sensitivity reliability factors are determined based on the electrical correlation matrix, enabling the subsequent calculation of spatial attention weights to adapt to the numerical stability of the current electrical correlation matrix. When the numerical stability of the electrical correlation matrix decreases, the sensitivity reliability factor decreases, reducing the reliance of the subsequent spatial attention weight calculation on the electrical correlation matrix and preventing significant deviations in spatial attention weights due to decreased numerical stability of the electrical correlation matrix. By acquiring the temperature information of each parallel capacitor bank and determining the thermal safety reliability factor, the subsequent calculation of spatial attention weights can reflect the current thermal state of the parallel capacitor banks. When the temperature of a parallel capacitor bank rises or the rate of temperature rise is too fast, the thermal safety reliability factor decreases, reducing the degree of attention paid to that parallel capacitor bank in the subsequent spatial attention weight calculation. This avoids excessive concentration of reactive power tasks on parallel capacitor banks with unsafe thermal states, extends the service life of the parallel capacitor banks, and improves equipment operational safety.
[0060] S300: Based on the electrical correlation matrix, sensitivity confidence factor and thermal safety confidence factor, spatial attention weight is obtained through comprehensive calculation. Based on the spatial attention weight, the representations of the associated intelligent agents constructed from local operating data are aggregated to obtain the spatial attention features of each intelligent agent.
[0061] In this embodiment of the invention, the electrical correlation matrix is used to characterize the impact of reactive power injection changes between nodes on voltage amplitude and is the basis for calculating spatial concern weights. However, in actual operation of the distribution network, the numerical stability of the electrical correlation matrix decreases with changes in operating conditions, and the spatial concern weights calculated based on the electrical correlation matrix are prone to deviation. Therefore, it is necessary to correct the electrical correlation matrix according to the sensitivity reliability factor determined in S200 so that the corrected correlation terms can adapt to the current numerical stability of the electrical correlation matrix. In addition, the temperature of parallel capacitor banks gradually increases when they continuously undertake reactive power regulation tasks. If the spatial concern weights allocate more attention to parallel capacitor banks with unsafe thermal states, it will lead to excessive concentration of reactive power tasks and accelerate equipment aging. Therefore, it is necessary to use the thermal safety reliability factor determined in S200 in the calculation of spatial concern scores so that the spatial concern weights can reflect the current thermal state of the parallel capacitor banks.
[0062] Step S300 in the method provided in this embodiment of the invention includes: The electrical correlation matrix is corrected based on the sensitivity confidence factor to obtain the corrected correlation terms; The spatial concern score is obtained by comprehensively calculating the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the modified correlation term and the correlation agent; The spatial attention score is normalized to obtain the spatial attention weight; The weighted representations of associated agents are weighted and combined according to spatial attention weights to obtain weighted representations. The weighted representation is fused with the current agent's own representation to obtain the fused representation; A nonlinear transformation is applied to the fusion representation to obtain spatially relevant features; If there is no parallel capacitor bank at the node corresponding to the associated agent, the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent is taken as a preset constant; when the sensitivity reliability factor is lower than the preset threshold, the spatial attention score is dominated by the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent.
[0063] First, the electrical correlation matrix is corrected based on the sensitivity confidence factor to obtain corrected correlation terms. These corrected correlation terms, obtained after correcting the electrical correlation matrix according to the sensitivity confidence factor, are used in the subsequent calculation of spatial attention scores. A preset minimum positive value is a very small positive number to prevent the corrected correlation terms from disappearing completely when the sensitivity confidence factor approaches 0.
[0064] Specifically, the corrected correlation term = sensitivity confidence factor × electrical correlation matrix + (1 - sensitivity confidence factor) × preset minimum positive value. When the sensitivity confidence factor approaches 1, the corrected correlation term is mainly determined by the electrical correlation matrix; when the sensitivity confidence factor approaches 0, the corrected correlation term approaches the preset minimum positive value, at which point the contribution of the electrical correlation matrix to the spatial attention score approaches zero. A typical value for the preset minimum positive value is 10. -6 For example, the sensitivity confidence factor is 0.881, and the element between node N7 and node N8 in the electrical correlation matrix is 0.0015 pu / kvar. The preset minimum positive value is 10. -6 Corrected correlation term = 0.881 × 0.0015 + (1 - 0.881) × 10 -6 ≈0.00132.
[0065] Secondly, a spatial attention score is calculated by comprehensively calculating the spatial attention score based on the modified correlation term and the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent. The spatial attention score is the score calculated comprehensively based on the modified correlation term and the thermal safety reliability factor. Specifically, the representation of the associated agent is concatenated with the representation of the current agent to obtain a concatenated representation; the concatenated representation is then multiplied by the learnable attention vector to obtain the basic attention score; the basic attention score is multiplied by the modified correlation term, and then multiplied by the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent to obtain the spatial attention score. The learnable attention vector is a learnable parameter that is updated through backpropagation during training. Spatial attention score = basic attention score × modified correlation term × thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent. The basic attention score is the score obtained by combining the representation of the associated agent with the representation of the current agent and then multiplying it by the learnable attention vector. For example, the modified correlation term is 0.00132, and the thermal safety reliability factor of the first parallel capacitor bank connected to node N7 is 0.819. The associated agent is the agent corresponding to the first parallel capacitor bank access node N7. Its representation is concatenated with the current agent's own representation and then subjected to an inner product operation with the learnable attention vector to obtain a basic attention score of 2.5. Spatial attention score = 2.5 × 0.00132 × 0.819 ≈ 0.00270.
[0066] The representation of the associated intelligent agent refers to a feature vector constructed based on local operational data to characterize the operational state of the associated intelligent agent. Specifically, the node voltage values, node active power, node reactive power, distributed power source output power, device status variables, and time stamps from the local operational data of the associated intelligent agent are concatenated into an input vector in a preset order. The device status variables can be converted into numerical values according to preset encoding rules, and the time stamps can be converted into relative timestamps or normalized time features. The input vector is multiplied by a learnable projection matrix to obtain the representation of the associated intelligent agent. The dimension of the learnable projection matrix = input vector dimension × representation dimension.
[0067] For example, the agent corresponding to node N14 of the second parallel capacitor bank is taken as the current agent. Based on the electrical correlation matrix, the electrical correlation between nodes N7, N17, and N21 and node N14 is greater than a preset correlation threshold. Therefore, the agents corresponding to node N7 of the first parallel capacitor bank, node N17 of the first photovoltaic grid-connected converter, and node N21 of the second photovoltaic grid-connected converter are taken as three associated agents. The input vector of node N7 is [0.97, 200, 50, 0, 1, 0.00]; the input vector of node N17 is [1.02, 300, 20, 300, 1, 0.00]; and the input vector of node N21 is [1.01, 280, 15, 280, 1, 0.00]. The representation dimension is set to 2, and the learnable projection matrix is a 6×2 matrix. Multiplying the input vector by the learnable projection matrix yields the representations of the three associated agents as [0.5, 0.3], [0.4, 0.2], and [0.3, 0.1].
[0068] Next, the spatial attention scores are normalized to obtain spatial attention weights. Normalization refers to the operation of mapping multiple spatial attention scores to weights between 0 and 1, with a sum of 1. Spatial attention weights are the weights obtained after normalizing the spatial attention scores of each associated agent, used to represent the degree of attention the current agent pays to each associated agent. Softmax normalization is used for normalization.
[0069] For example, the current agent has three associated agents with spatial attention scores of 0.00270, 0.00120, and 0.00045, respectively. The normalized calculations are as follows: exp(0.00270) ≈ 1.00270, exp(0.00120) ≈ 1.00120, exp(0.00045) ≈ 1.00045. 1.00270 + 1.00120 + 1.00045 = 3.00435. The spatial attention weights are approximately: 1.00270 / 3.00435 ≈ 0.3338, 1.00120 / 3.00435 ≈ 0.3333, and 1.00045 / 3.00435 ≈ 0.3330.
[0070] Furthermore, the representations of the associated agents are weighted and combined according to spatial attention weights to obtain a weighted representation. A weighted representation is the representation obtained by weighting and combining the representations of the associated agents according to spatial attention weights. Weighted representation = Spatial attention weight of each associated agent × Sum of the representations of each associated agent. For example, the representations of three associated agents are [0.5, 0.3], [0.4, 0.2], and [0.3, 0.1]. The spatial attention weights of the three associated agents are 0.3338, 0.3333, and 0.3330, respectively. Weighted representation = 0.3338 × [0.5, 0.3] + 0.3333 × [0.4, 0.2] + 0.3330 × [0.3, 0.1] ≈ [0.4001, 0.2001].
[0071] Subsequently, the weighted representation is fused with the current agent's own representation to obtain the fused representation. The fused representation refers to the representation obtained by combining the weighted representation with the current agent's own representation, used to comprehensively represent the operational state of the current agent and its associated agents. The fusion method involves concatenating the weighted representation with the current agent's own representation and then performing a linear transformation to obtain the fused representation. The weight matrix of the linear transformation is a learnable parameter, updated through backpropagation during training.
[0072] For example, the weighted representation is [0.4001, 0.2001]. The current agent's own representation is [0.6, 0.4]. After concatenation, we get [0.4001, 0.2001, 0.6, 0.4]. Through the linear transformation matrix [[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]], the fused representation is approximately [0.4200, 1.0601].
[0073] Finally, a nonlinear transformation is performed on the fused representation to obtain spatial attention features. The nonlinear transformation refers to the operation of applying a nonlinear activation function to the fused representation, which enhances the expressive power of the spatial attention features. Spatial attention features are features obtained after comprehensively processing the local operational data of each agent and the representations of associated agents, and are used for subsequent temporal attention encoding and multipath attention interaction. The nonlinear transformation uses the ReLU activation function. Spatial attention feature = ReLU(fused representation). For example, spatial attention feature = ReLU([0.4200, 1.0601]) = [0.4200, 1.0601].
[0074] In this embodiment of the invention, if there is no parallel capacitor bank at the node corresponding to the associated intelligent agent, the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated intelligent agent is taken as a preset constant. A typical value for the preset constant is 1. In this case, the spatial attention score = basic attention score × modified association term × 1, meaning the thermal safety reliability factor does not affect the spatial attention score. For example, the intelligent agent corresponding to node N17 of the first photovoltaic grid-connected converter is an associated intelligent agent, but there is no parallel capacitor bank at node N17; therefore, the thermal safety reliability factor of the parallel capacitor bank at node N17 is taken as 1.
[0075] In this embodiment of the invention, when the sensitivity confidence factor is lower than a preset threshold, the spatial attention score is dominated by the thermal safety confidence factor of the parallel capacitor bank at the node corresponding to the associated agent. A typical value for the preset threshold is 0.1. At this point, the modified association term approaches a preset minimum positive value, and the product of the basic attention score and the modified association term approaches zero. Therefore, the spatial attention score is primarily determined by the thermal safety confidence factor of the parallel capacitor bank at the node corresponding to the associated agent.
[0076] For example, the sensitivity confidence factor is 0.0075, which is lower than the preset threshold of 0.1. Corrected correlation term = 0.0075 × 0.0015 + (1 - 0.0075) × 10 -6 ≈0.0000122. The base attention score is 2.5, so the product of the base attention score and the modified correlation term = 2.5 × 0.0000122 ≈ 0.0000306. This product approaches zero, indicating that the spatial attention score is primarily determined by the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent.
[0077] In this embodiment of the invention, the electrical correlation matrix is modified based on the sensitivity reliability factor, so that the modified correlation terms can adapt to the numerical stability of the current electrical correlation matrix. When the numerical stability of the electrical correlation matrix decreases, the modified correlation terms approach a preset minimum positive value, and the spatial attention score no longer depends on the electrical correlation matrix, avoiding a large deviation in the spatial attention weight due to the decrease in the numerical stability of the electrical correlation matrix. The spatial attention score is calculated based on the modified correlation terms and the thermal safety reliability factor, so that the spatial attention weight can reflect the current thermal state of the parallel capacitor bank. When the thermal state of the parallel capacitor bank is unsafe, the thermal safety reliability factor decreases, the spatial attention score decreases, and the spatial attention weight decreases accordingly, avoiding excessive concentration of reactive power tasks on the parallel capacitor bank with an unsafe thermal state. The spatial attention features are obtained by weighted combination, fusion, and nonlinear transformation of the representation of the associated intelligent agent through the spatial attention weight, providing a feature input that integrates local operating data and the operating state of the associated intelligent agent for subsequent time-series attention coding and multi-path attention interaction.
[0078] S400: Based on spatial attention features, temporal attention encoding is performed, and multi-path attention interaction is carried out among K types of heterogeneous agents to obtain the control distribution of each agent.
[0079] In this embodiment of the invention, the spatial attention features obtained in S300 integrate the local operating data of the current agent and the operating status of associated agents, but only reflect the operating status at the current moment. Distribution network voltage problems include second-level flicker and minute-level persistent deviations; voltage anomalies at different time scales have different impacts on the current decision. If decisions are made solely based on the spatial attention features at the current moment, the temporal evolution pattern of voltage anomalies cannot be distinguished, potentially leading to a control strategy that cannot accommodate both rapid events and persistent deviations. Therefore, it is necessary to arrange the spatial attention features of each agent in chronological order and perform temporal attention encoding to capture the temporal dependencies of voltage evolution. Furthermore, the reactive power and voltage coordination control of the distribution network needs to simultaneously consider multiple optimization objectives such as voltage deviation, network losses, equipment operation frequency and margin, and source-load uncertainty risks. If multiple optimization objectives are mixed and processed in a single channel, the weights between different objectives are difficult to adjust adaptively. Therefore, multi-path attention interaction is needed among K types of heterogeneous agents, so that each attention channel corresponds to different optimization objectives, achieving multi-objective collaborative decision-making.
[0080] Step S400 in the method provided in this embodiment of the invention includes: Among them, temporal attention encoding based on spatial attention features includes: Arrange the spatial interest features of each agent in chronological order to obtain the historical state sequence. Temporal attention coding is performed based on the historical time-state sequence to obtain temporal attention coding features.
[0081] First, the spatial attention features of each agent are arranged in chronological order to obtain a historical state sequence. The historical state sequence refers to the sequence obtained by arranging the spatial attention features of each agent across multiple consecutive historical moments in chronological order. The chronological order refers to the arrangement from the historical moment furthest from the current moment to the historical moment closest to the current moment. The time window length is set to... Take from the current moment forward By arranging the spatial attention features of each historical moment in chronological order, a sequence of historical moment states is obtained.
[0082] For example, taking the agent corresponding to the first parallel capacitor bank access node N7 in S300 as an example, the time window length is set. The value is 5. The current time is 10:00:00. Taking five historical times backward, we get 9:59:40, 9:59:45, 9:59:50, 9:59:55 and 10:00:00. The spatial attention features of each historical time are [0.4000, 1.0000], [0.4050, 1.0150], [0.4100, 1.0300], [0.4150, 1.0450] and [0.4200, 1.0601]. Arranged in chronological order, the historical state sequence is: [[0.4000, 1.0000], [0.4050, 1.0150], [0.4100, 1.0300], [0.4150, 1.0450], [0.4200, 1.0601]].
[0083] Secondly, temporal attention encoding is performed based on the historical state sequence to obtain temporal attention encoding features. Temporal attention encoding refers to the operation of self-attention encoding on the historical state sequence to capture the temporal dependencies between different moments in the historical state sequence. Temporal attention encoding features are the features obtained after temporal attention encoding of the historical state sequence, used for subsequent multi-path attention interactions. Temporal attention encoding adopts a self-attention mechanism. The historical state sequence is linearly projected to obtain a query matrix, a key matrix, and a value matrix. The query matrix, key matrix, and value matrix are calculated as follows: query matrix = historical state sequence × query projection matrix, key matrix = historical state sequence × key projection matrix, value matrix = historical state sequence × value projection matrix. The query projection matrix, key projection matrix, and value projection matrix are all learnable parameters, updated through backpropagation during training. The temporal attention score is calculated as: query matrix × transpose of key matrix / square root of key vector dimension. The temporal attention score is Softmax normalized to obtain the temporal attention weights. The temporal attention weights are multiplied by the value matrix to obtain the temporal attention encoding features.
[0084] For example, the historical time-series state sequence is [[0.4000, 1.0000], [0.4050, 1.0150], [0.4100, 1.0300], [0.4150, 1.0450], [0.4200, 1.0601]]. The query projection matrix, key projection matrix, and value projection matrix are all 2×2 matrices, and the key vector dimension is 2. After linear projection and self-attention calculation, the temporal attention encoding feature is obtained as [0.4200, 1.0601].
[0085] Among them, multi-path attention interactions are performed among K types of heterogeneous agents to obtain the regulatory distribution of each agent, including: Set up a multi-channel attention interaction layer, which contains multiple attention channels, and each attention channel includes at least a first channel, a second channel, a third channel, and a fourth channel; Input the temporal attention-encoded features into the multi-path attention interaction layer; The first channel corresponds to the voltage deviation target, and the query volume of the first channel comes from the voltage deviation characteristics in the agent's local operating data; The second channel corresponds to the network loss target, and the query volume of the second channel comes from the branch power flow characteristics in the local operation data of the agent; The third channel corresponds to the number of device actions and the margin target. The query volume of the third channel comes from the device status characteristics in the local operation data of the agent. The fourth channel corresponds to the source-load uncertainty risk target. The query volume of the fourth channel comes from the photovoltaic output and load fluctuation characteristics in the local operation data of the intelligent agent. The key and value quantities of multiple attention channels are derived from the regulatory intent representations of other types of agents; The regulatory distribution of each agent is obtained based on the output of multiple attention channels.
[0086] First, a multi-path attention interaction layer is established, containing multiple attention channels, each including at least a first, second, third, and fourth channel. This multi-path attention interaction layer is a neural network layer used for information interaction between K types of heterogeneous agents. It comprises multiple parallel attention channels, a concatenation module, and an output module. Each attention channel is an independent computational channel within the multi-path attention interaction layer used to process an optimization objective. Each attention channel includes a query projection matrix, a key projection matrix, a value projection matrix, and a channel output projection matrix. The regulatory intent representation refers to the encoding of the desired action or intent of other types of agents based on their current policy distribution, used to characterize the agent's regulatory tendency at the current moment. The query quantity refers to the query vector used to calculate the attention score in each attention channel. The key quantity refers to the key vector used to calculate the attention score in each attention channel. The value quantity refers to the value vector used to calculate the attention score in each attention channel.
[0087] Specifically, a multi-channel attention interaction layer is set up, which includes multiple attention channels, a stitching module, and an output module. The multiple attention channels include at least a first channel, a second channel, a third channel, and a fourth channel, and these channels are set up in parallel. Each attention channel contains a query projection matrix, a key projection matrix, a value projection matrix, and a channel output projection matrix. These matrixes are all learnable parameters, updated through backpropagation during training. The stitching module stitches the outputs of the multiple attention channels together. The output module performs linear transformations and nonlinear activations on the stitched outputs to obtain the control distributions of each agent.
[0088] For example, a multi-channel attention interaction layer can be set up, which includes four attention channels, a splicing module, and an output module. The first channel includes querying the projection matrix W. Q1 Key projection matrix W K1 Value projection matrix W V1 and channel output projection matrix W O1 The second channel contains the query projection matrix W. Q2 Key projection matrix W K2 Value projection matrix W V2 and channel output projection matrix W O2 The third channel contains the query projection matrix W. Q3 Key projection matrix W K3 Value projection matrix W V3 and channel output projection matrix W O3 The fourth channel contains the query projection matrix W. Q4 Key projection matrix W K4 Value projection matrix W V4 and channel output projection matrix W O4 The splicing module concatenates the first, second, third, and fourth channel outputs into an 8-dimensional vector. The output module then uses linear transformations and nonlinear activations to obtain the controlled distribution from this 8-dimensional vector.
[0089] Secondly, the temporal attention coding features are input into the multi-channel attention interaction layer. These features, as input to the multi-channel attention interaction layer, are used to calculate the query volume, key volume, and value volume for each attention channel. For example, the temporal attention coding features [0.4200, 1.0601] are input into the multi-channel attention interaction layer.
[0090] The first channel corresponds to the voltage deviation target, and the query volume for the first channel comes from the voltage deviation feature in the agent's local operating data. The voltage deviation feature refers to the characteristic representing the deviation between the node voltage value and the reference voltage value. The reference voltage value refers to the expected value of the node voltage under normal operating conditions of the distribution network. The voltage deviation feature can be obtained by subtracting the reference voltage value from the node voltage value. Voltage deviation feature = Node voltage value - Reference voltage value. Taking the first parallel capacitor bank connected to node N7 in S100 as an example, the node voltage value is 0.97 pu, the reference voltage value is 1.00 pu, and the voltage deviation feature = 0.97 - 1.00 = -0.03 pu. The query volume for the first channel comes from the voltage deviation feature -0.03 pu.
[0091] The second channel corresponds to the network loss target, and the query volume for the second channel comes from the branch power flow characteristics in the agent's local operating data. Branch power flow characteristics refer to features that characterize the power flow in the branch where a node is located. Branch power flow characteristics can be composed of the node's active power and reactive power in the local operating data. Taking the first parallel capacitor bank connected to node N7 in S100 as an example, the node's active power is 200kW, the node's reactive power is 50kvar, and the branch power flow characteristics are [200, 50]. The query volume for the second channel comes from the branch power flow characteristics [200, 50].
[0092] The third channel corresponds to the number of device actions and the margin target. The query volume of the third channel comes from the device status characteristics in the agent's local operating data. Device status characteristics refer to the features that characterize the current operating state and action margin of the reactive power control device. Device status quantity refers to the current operating state of the reactive power control device. Action margin refers to the remaining control actions that the reactive power control device can still perform in the current state. Device status characteristics are composed of device status quantities. Taking the first parallel capacitor bank access node N7 in S100 as an example, the device status quantity is the engaged state, and the device status characteristics are [1, 0] (1 indicates engaged, 0 indicates disconnected). The query volume of the third channel comes from the device status characteristics [1, 0].
[0093] The fourth channel corresponds to the source-load uncertainty risk objective. The query volume for the fourth channel originates from the photovoltaic (PV) output and load fluctuation characteristics in the agent's local operational data. PV output and load fluctuation characteristics refer to features characterizing the output power and load fluctuation of distributed generation sources. Distributed generation output power refers to the active power output of the distributed generation source at the connected node. Load fluctuation characteristics can be obtained from the time-varying rates of change of node active power and node reactive power. The PV output and load fluctuation characteristics are composed of the distributed generation output power and the time-varying rate of change of node active power. Taking the first PV grid-connected converter connected node N17 in S100 as an example, the distributed generation output power is 300kW, the time-varying rate of change of node active power is 5kW / min, and the PV output and load fluctuation characteristics are [300, 5]. The query volume for the fourth channel originates from the PV output and load fluctuation characteristics [300, 5].
[0094] The key and value quantities of multiple interest channels originate from the regulatory intent representations of other types of agents. Other types of agents refer to agents of a different type than the current agent. Regulatory intent representation refers to the expected action or intent encoding of the current policy distribution of other types of agents. Taking the agent corresponding to the first parallel capacitor bank access node N7 in S100 (a type B agent) as an example, other types of agents include type A agents (on-load tap changers), type C agents (static var compensators), and type D agents (photovoltaic grid-connected converters). The regulatory intent representation of type A agents is the tap position adjustment tendency, that of type C agents is the continuous reactive power output tendency, and that of type D agents is also the continuous reactive power output tendency. The key and value quantities of multiple interest channels originate from the regulatory intent representations of these other types of agents.
[0095] Finally, the control distribution of each agent is obtained based on the outputs of multiple interest channels. The control distribution refers to the probability distribution or continuous distribution parameters of each agent for each control quantity. For discrete control quantities, the control distribution is the probability distribution of each control quantity; for continuous control quantities, the control distribution is the mean and variance of the continuous distribution. The outputs of multiple interest channels are concatenated, and after linear transformation and nonlinear activation, the control distribution of each agent is obtained. Taking the agent corresponding to node N7 of the first parallel capacitor bank in S100 as an example, the first channel output is the voltage deviation interest feature, the second channel output is the network loss interest feature, the third channel output is the equipment action frequency and margin interest feature, and the fourth channel output is the source-load uncertainty risk interest feature. After concatenating the four interest features and performing linear transformation and nonlinear activation, the control distribution shows a probability of 0.7 for the activated state and a probability of 0.3 for the deactivated state. This control distribution indicates that the first parallel capacitor bank tends to be activated at the current moment.
[0096] In this embodiment of the invention, the spatial attention features of each agent are arranged chronologically and encoded temporally to obtain temporally encoded attention features. This enables each agent to capture the temporal dependencies of voltage evolution and distinguish voltage anomaly patterns at different time scales, such as second-level flicker and minute-level persistent deviation. A multi-channel attention interaction layer is set up, with each attention channel corresponding to voltage deviation targets, network loss targets, equipment action frequency and margin targets, and source-load uncertainty risk targets, respectively. This allows agents to perform multi-objective collaborative decision-making among K types of heterogeneous agents, resulting in a control distribution that takes into account multiple optimization objectives. The temporally encoded attention features are input into the multi-channel attention interaction layer, enabling each attention channel to simultaneously utilize temporal dependencies and the control intent representations of multiple types of agents, thereby improving the accuracy and adaptability of the control distribution.
[0097] S500: Determines the control signals of each reactive power control device based on the control distribution and sends them to each reactive power control device in the distribution network.
[0098] In this embodiment of the invention, the control distribution obtained in S400 represents the probability distribution or continuous distribution parameters of each agent on each control quantity. However, the control distribution itself is not a control signal that can be directly issued. It is necessary to convert the control distribution into a specific control signal and send the control signal to the corresponding reactive power control device for execution. Furthermore, the local computing device on the distribution network substation side may have a communication link with the centralized training device. When communication fails, if the local computing device cannot independently execute control, reactive power voltage control will be interrupted. Therefore, a local autonomous mechanism for communication failures needs to be established between the local computing device and the centralized training device.
[0099] Step S500 in the method provided in this embodiment of the invention includes: Deploy the decision-making models of each agent to the local computing device on the distribution network area side; The local computing device determines the control signal based on the local operating data and spatial attention characteristics of each intelligent agent at a preset control cycle. Send the control signal to the corresponding reactive power control device for execution; When communication between the local computing device and the centralized trainer fails, control signals are executed independently based on local running data and cached global state overview, and the local execution log is synchronized to the centralized trainer after communication is restored.
[0100] First, the decision-making models of each agent are deployed to local computing devices on the distribution network substation side. The decision-making model refers to the neural network model used by each agent to determine control signals based on local operating data and spatial attention features, including a spatial attention weight calculation module, a temporal attention encoding module, and a multi-path attention interaction layer. The local computing device refers to a computing device deployed on the distribution network substation side with local computing capabilities, used to execute the decision-making model online and generate control signals. The centralized trainer refers to a training device deployed in the cloud or the distribution network dispatch center, used for centralized training of the decision-making models of each agent.
[0101] Specifically, the decision-making models of each agent are deployed to local computing devices on the distribution network substation side. After the decision-making models are trained in a centralized trainer, the trained model parameters are exported and loaded into the local computing device. Communication connections are established between the local computing device and each reactive power control device in the distribution network to send control signals to the corresponding reactive power control devices. For example, the decision-making models of Class A agents (on-load tap changers), Class B agents (first parallel capacitor banks, second parallel capacitor banks), Class C agents (static var compensators), and Class D agents (first photovoltaic grid-connected converters, second photovoltaic grid-connected converters, third photovoltaic grid-connected converters) are deployed to local computing devices on the substation side. Communication connections are established between the local computing device and the on-load tap changers, the first parallel capacitor banks, the second parallel capacitor banks, the static var compensators, the first photovoltaic grid-connected converter, the second photovoltaic grid-connected converter, and the third photovoltaic grid-connected converter.
[0102] Secondly, the local computing device determines the control signal based on the local operating data and spatial attention characteristics of each agent within a preset control cycle. The preset control cycle refers to the time interval at which the local computing device generates the control signal. The control signal is the instruction used to control each reactive power control device to perform control actions. For discrete control quantities, the control signal is the specific control state; for continuous control quantities, the control signal is the specific control value.
[0103] Specifically, the preset control period can be set according to the agent type, for example, 1 second for fast agents and 15 seconds or longer for slow agents; or a uniform 1 second, but the control signal for slow agents must be issued only after the minimum action interval constraint is met. For discrete control quantities, the control state with the highest probability is selected from the control distribution as the control signal; for continuous control quantities, the average value is taken from the control distribution as the control signal. For example, the control distribution of the agent corresponding to the first parallel capacitor bank access node N7 has a probability of 0.7 for the engaged state and a probability of 0.3 for the disengaged state. The preset control period is 1 second. At 10:00:00, the local computing device determines the control signal to be engaged based on the control distribution. At 10:00:01, the local computing device re-determines the control signal based on the updated local operating data and spatial attention features.
[0104] Next, the control signal is sent to the corresponding reactive power control device for execution. Based on the reactive power control device identifier carried in the control signal, the local computing device sends the control signal to the corresponding reactive power control device. Upon receiving the control signal, the reactive power control device executes the corresponding control action. For example, the local computing device sends a control signal indicating the activation state to the first parallel capacitor bank. Upon receiving the control signal, the first parallel capacitor bank activates. If the control signal indicates the deactivation state, the first parallel capacitor bank deactivates.
[0105] Furthermore, when communication between the local computing device and the centralized trainer fails, control signals are executed independently based on local operating data and a cached global state overview. After communication is restored, the local execution log is synchronized to the centralized trainer. A communication failure refers to an interruption or delay exceeding a preset threshold in the communication link between the local computing device and the centralized trainer. The global state overview is a summary of the global operating status periodically sent by the centralized trainer to the local computing device when communication is normal, including voltage values, power values, and equipment status variables for each node in the distribution network. The local execution log records the content, execution time, and execution results of the control signals executed independently by the local computing device during a communication failure.
[0106] Specifically, during a communication failure, the local computing device continues to generate control signals and send them to the corresponding reactive power control device at a preset control cycle. The local computing device records the content, execution time, and execution result of the control signals during the communication failure as a local execution log. When communication is restored, the local computing device synchronizes the local execution log to the centralized trainer, which updates the decision model parameters based on the local execution log. For example, if a communication failure occurs between the local computing device and the centralized trainer, the local computing device continues to generate control signals at a control cycle of 1 second based on local operating data and the latest cached global state overview (including voltage values, power values, and device status variables for each node). The communication failure lasts for 5 minutes, during which the local computing device records 300 local execution log entries. After communication is restored, the local computing device synchronizes these 300 local execution log entries to the centralized trainer.
[0107] In this embodiment of the invention, the decision-making models of each agent are deployed to local computing devices on the distribution network substation side. These local computing devices determine control signals based on local operating data and spatial attention features according to a preset control cycle, ensuring that the control signals reflect the real-time operating status of the distribution network. The control signals are then sent to the corresponding reactive power control devices for execution, realizing the transformation from distributed control to actual control actions and completing the closed loop of reactive power and voltage coordinated control. When communication between the local computing device and the centralized trainer fails, the control signals are executed independently based on local operating data and a cached global state overview, ensuring that reactive power and voltage control is not interrupted due to communication failure and improving control robustness. After communication is restored, the local execution log is synchronized to the centralized trainer, enabling the centralized trainer to update the decision-making model parameters based on the execution records during the communication failure period, thus improving the adaptability of the decision-making model to communication failure scenarios.
[0108] Through the specific implementation methods described above, the embodiments of the present invention achieve the following technical effects: This invention provides a multi-agent reactive power and voltage coordinated control method for distribution networks. By acquiring the access nodes, response attribute parameters, and local operating data of each reactive power control device, the method categorizes the devices into K types of heterogeneous agents based on their response characteristics. It determines matrix condition metrics based on the electrical correlation matrix, thereby determining the sensitivity reliability factor, ensuring that the calculation of spatial attention weights adapts to the numerical stability of the current electrical correlation matrix. Furthermore, it determines thermal safety reliability factors based on the temperature information of each parallel capacitor bank, ensuring that the calculation of spatial attention weights reflects the current thermal state of the parallel capacitor banks and avoids excessive concentration of reactive power tasks. Parallel capacitor banks that are not safe under thermal conditions are identified. Based on this, spatial attention weights are obtained by integrating the electrical correlation matrix, sensitivity confidence factor, and thermal safety confidence factor. Spatial attention features are obtained by aggregating the representations of associated intelligent agents. Through time-series attention coding and multi-path attention interaction, a control distribution that takes into account both time-series dependence and multiple optimization objectives is obtained. Finally, the local computing device determines the control signal and sends it to each reactive power control device for execution. In the event of a communication failure, the control signal is executed independently based on local operating data and a cached global state overview. This improves the accuracy of reactive power and voltage coordination control in the distribution network and the safety of equipment operation as a whole.
[0109] Example 2, as Figure 3 As shown, this invention provides a multi-agent reactive power and voltage coordination control system for power distribution networks, comprising: The data acquisition and classification module 11 is used to acquire the access nodes, response attribute parameters and local operation data of each reactive power control device in the distribution network, and classify each reactive power control device into K types of heterogeneous intelligent agents according to their response characteristics. The sensitivity thermal safety module 12 is used to obtain the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, and obtain the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information. The spatial attention feature module 13 is used to perform comprehensive calculations based on the electrical correlation matrix, sensitivity confidence factor and thermal safety confidence factor to obtain spatial attention weights, and to aggregate the representations of the associated intelligent agents constructed from local operating data based on the spatial attention weights to obtain the spatial attention features of each intelligent agent. The temporal multipath attention module 14 is used to perform temporal attention encoding based on spatial attention features and to perform multipath attention interaction among K types of heterogeneous agents to obtain the control distribution of each agent. The control signal sending module 15 is used to determine the control signals of each reactive power control device according to the control distribution and send them to each reactive power control device in the distribution network.
[0110] In one embodiment, the data acquisition and classification module 11 is further configured to: This includes acquiring the access nodes, response attribute parameters, and local operating data of each reactive power control device in the distribution network, including: Obtain the access node information of each reactive power control device from the distribution network topology information database or distribution management system. The access node information includes the node number where the device is located and the connection relationship of the node in the distribution network. Obtain the response attribute parameters of each reactive power control device from the equipment file or equipment parameter information database. The response attribute parameters include response time and control variable type. Local operating data of each agent is acquired by measuring devices deployed at each node. The local operating data includes node voltage value, node active power, node reactive power, distributed power output power, device status variables and time identifier. Based on the access node information, determine the corresponding node of each intelligent agent in the distribution network, and determine the association relationship between each intelligent agent based on the access node information and / or electrical association matrix.
[0111] Among them, the reactive power control devices are classified into K types of heterogeneous intelligent agents according to their response characteristics, including: The reactive power control devices are classified into K-type heterogeneous intelligent agents according to their response time and the type of control variable. K-type heterogeneous intelligent agents include: Class A intelligent agents are discrete and slow-speed, corresponding to on-load tap changers, with the control quantity being the tap position, and have a first response time. Type B intelligent agents are discrete and fast, corresponding to parallel capacitor banks. The control quantity is an on / off state, and they have a second response time, which is shorter than the first response time. Class C intelligent agents are continuous and fast, corresponding to static var compensators. The control quantity is the continuous reactive power output value. They have a third response time, which is shorter than the second response time. Type D intelligent agents are continuous, fast, and source-load coupled, corresponding to reactive power regulation of photovoltaic grid-connected converters. The regulation quantity is the continuous reactive power output value, and it has a fourth response time, which is less than or equal to the third response time.
[0112] In one embodiment, the sensitivity thermal safety module 12 is further configured to: Among them, the matrix condition metric is determined based on the electrical correlation matrix, and the sensitivity confidence factor is determined based on the matrix condition metric, including: The electrical correlation matrix is decomposed to obtain the matrix condition metric, which characterizes the numerical stability of the electrical correlation matrix. The stability margin coefficient is determined based on the matrix conditional measure and the reference conditional measure, and the conditional index adjustment factor is determined based on the stability margin coefficient. The rate of change adjustment factor is determined based on the time rate of change measured by matrix conditions. By combining the condition index adjustment factor with the rate of change adjustment factor, the sensitivity confidence factor is obtained.
[0113] This includes acquiring temperature information for each parallel capacitor bank and determining a thermal safety reliability factor based on the temperature information, including: Obtain the casing temperature, internal temperature, and ambient temperature of each parallel capacitor bank; The equivalent internal temperature is determined based on the internal temperature and the shell temperature. The thermal safety margin is determined based on the equivalent internal temperature, and the absolute value of the temperature change rate is determined based on the time change of the equivalent internal temperature. The thermal safety reliability factor is determined based on the absolute values of the thermal safety margin and the rate of temperature change.
[0114] In one embodiment, the spatial attention feature module 13 is further configured to: The electrical correlation matrix is corrected based on the sensitivity confidence factor to obtain the corrected correlation terms; The spatial concern score is obtained by comprehensively calculating the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the modified correlation term and the correlation agent; The spatial attention score is normalized to obtain the spatial attention weight; The weighted representations of associated agents are weighted and combined according to spatial attention weights to obtain weighted representations. The weighted representation is fused with the current agent's own representation to obtain the fused representation; A nonlinear transformation is applied to the fusion representation to obtain spatially relevant features; If there is no parallel capacitor bank at the node corresponding to the associated agent, the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent is taken as a preset constant; when the sensitivity reliability factor is lower than the preset threshold, the spatial attention score is dominated by the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated agent.
[0115] In one embodiment, the timing multiplexing module 14 is further configured to: Among them, temporal attention encoding based on spatial attention features includes: Arrange the spatial interest features of each agent in chronological order to obtain the historical state sequence. Temporal attention coding is performed based on the historical time-state sequence to obtain temporal attention coding features.
[0116] Among them, multi-path attention interactions are performed among K types of heterogeneous agents to obtain the regulatory distribution of each agent, including: Set up a multi-channel attention interaction layer, which contains multiple attention channels, and each attention channel includes at least a first channel, a second channel, a third channel, and a fourth channel; Input the temporal attention-encoded features into the multi-path attention interaction layer; The first channel corresponds to the voltage deviation target, and the query volume of the first channel comes from the voltage deviation characteristics in the agent's local operating data; The second channel corresponds to the network loss target, and the query volume of the second channel comes from the branch power flow characteristics in the local operation data of the agent; The third channel corresponds to the number of device actions and the margin target. The query volume of the third channel comes from the device status characteristics in the local operation data of the agent. The fourth channel corresponds to the source-load uncertainty risk target. The query volume of the fourth channel comes from the photovoltaic output and load fluctuation characteristics in the local operation data of the intelligent agent. The key and value quantities of multiple attention channels are derived from the regulatory intent representations of other types of agents; The regulatory distribution of each agent is obtained based on the output of multiple attention channels.
[0117] In one embodiment, the control signal sending module 15 is further configured to: Deploy the decision-making models of each agent to the local computing device on the distribution network area side; The local computing device determines the control signal based on the local operating data and spatial attention characteristics of each intelligent agent at a preset control cycle. Send the control signal to the corresponding reactive power control device for execution; When communication between the local computing device and the centralized trainer fails, control signals are executed independently based on local running data and cached global state overview, and the local execution log is synchronized to the centralized trainer after communication is restored.
[0118] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for coordinated reactive power and voltage control in distribution networks combining multiple agents, characterized in that: include: Acquire the access nodes, response attribute parameters, and local operation data of each reactive power control device in the power distribution network, and classify each reactive power control device into K types of heterogeneous intelligent agents according to their response characteristics; Obtain the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, and obtain the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information. Based on the electrical correlation matrix, the sensitivity confidence factor, and the thermal safety confidence factor, a spatial attention weight is obtained through comprehensive calculation. Then, based on the spatial attention weight, the representations of the associated intelligent agents constructed from the local operating data are aggregated to obtain the spatial attention features of each intelligent agent. Based on the spatial attention features, temporal attention encoding is performed, and multi-path attention interaction is carried out among the K types of heterogeneous agents to obtain the control distribution of each agent. Based on the aforementioned control distribution, the control signals of each reactive power control device are determined and sent to each reactive power control device in the distribution network.
2. The multi-agent combined reactive power and voltage coordinated control method for distribution networks as described in claim 1, characterized in that, Acquire the access nodes, response attribute parameters, and local operating data of each reactive power control device in the distribution network, including: Obtain the access node information of each reactive power control device from the distribution network topology information database or distribution management system. The access node information includes the node number where the device is located and the connection relationship of the node in the distribution network. Obtain the response attribute parameters of each reactive power control device from the equipment file or equipment parameter information database. The response attribute parameters include response time and control variable type. Local operating data of each intelligent agent is acquired by measuring devices deployed at each node. The local operating data includes node voltage value, node active power, node reactive power, distributed power output power, device status variables and time identifier. The node corresponding to each intelligent agent in the power distribution network is determined based on the access node information, and the association relationship between each intelligent agent is determined based on the access node information and / or the electrical association matrix.
3. The multi-agent combined reactive power and voltage coordinated control method for distribution networks as described in claim 2, characterized in that, The reactive power control devices are classified into K types of heterogeneous intelligent agents based on their response characteristics, including: The reactive power control devices are categorized into K types of heterogeneous intelligent agents based on their response time and the type of control variable. These K types of heterogeneous intelligent agents include: Class A intelligent agents are discrete and slow-speed, corresponding to on-load tap changers, with the control quantity being the tap position, and have a first response time. Type B intelligent agents are discrete and fast, corresponding to parallel capacitor banks. The control quantity is an on / off state, and they have a second response time, which is shorter than the first response time. Class C intelligent agents are continuous and fast-acting, corresponding to static var compensators. The control quantity is the continuous reactive power output value, and they have a third response time, which is shorter than the second response time. Type D intelligent agents are continuous, fast, and source-load coupled, corresponding to reactive power regulation of photovoltaic grid-connected converters. The regulation quantity is the continuous reactive power output value, and they have a fourth response time, which is less than or equal to the third response time.
4. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 1, characterized in that, Based on the electrical correlation matrix, a matrix condition metric is determined, and based on the matrix condition metric, a sensitivity confidence factor is determined, including: The electrical correlation matrix is decomposed to obtain the matrix condition metric, which characterizes the numerical stability of the electrical correlation matrix. The stability margin coefficient is determined based on the matrix condition metric and the reference condition metric, and the condition index adjustment factor is determined based on the stability margin coefficient. The rate of change adjustment factor is determined based on the time rate of change measured by the matrix conditions. The sensitivity confidence factor is obtained by combining the condition index adjustment factor with the rate of change adjustment factor.
5. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 1, characterized in that, Obtain temperature information for each parallel capacitor bank, and determine a thermal safety reliability factor based on the temperature information, including: Obtain the casing temperature, internal temperature, and ambient temperature of each parallel capacitor bank; The equivalent internal temperature is determined based on the internal temperature and the shell temperature; The thermal safety margin is determined based on the equivalent internal temperature, and the absolute value of the temperature change rate is determined based on the time change of the equivalent internal temperature. The thermal safety reliability factor is determined based on the absolute value of the thermal safety margin and the rate of temperature change.
6. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 1, characterized in that, Based on the electrical correlation matrix, the sensitivity confidence factor, and the thermal safety confidence factor, a spatial attention weight is obtained through comprehensive calculation. Then, based on this spatial attention weight, the associated agent representations constructed from the local operational data are aggregated to obtain the spatial attention features of each agent, including: The electrical correlation matrix is corrected based on the sensitivity confidence factor to obtain the corrected correlation terms; The spatial concern score is obtained by comprehensively calculating based on the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the modified correlation term and the correlation agent; The spatial attention score is normalized to obtain the spatial attention weight; The representations of the associated agents are weighted and combined according to the spatial attention weights to obtain a weighted representation; The weighted representation is fused with the current agent's own representation to obtain the fused representation; The fused representation is subjected to a nonlinear transformation to obtain the spatial interest feature; Wherein, if there is no parallel capacitor bank at the node corresponding to the associated intelligent agent, the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated intelligent agent is a preset constant; when the sensitivity reliability factor is lower than a preset threshold, the spatial attention score is dominated by the thermal safety reliability factor of the parallel capacitor bank at the node corresponding to the associated intelligent agent.
7. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 6, characterized in that, Temporal attention encoding based on the aforementioned spatial attention features includes: Arrange the spatial interest features of each agent in chronological order to obtain the historical state sequence. Temporal attention coding is performed based on the historical time state sequence to obtain temporal attention coding features.
8. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 7, characterized in that, Multipath attention interactions are performed among the K types of heterogeneous agents to obtain the regulatory distribution of each agent, including: A multi-channel attention interaction layer is set up, which includes multiple attention channels, and the multiple attention channels include at least a first channel, a second channel, a third channel, and a fourth channel; The temporal attention coding features are input into the multi-path attention interaction layer; The first channel corresponds to the voltage deviation target, and the query volume of the first channel comes from the voltage deviation characteristics in the local operating data of the agent; The second channel corresponds to the network loss target, and the query volume of the second channel comes from the branch power flow characteristics in the local operating data of the agent; The third channel corresponds to the number of device actions and the margin target. The query volume of the third channel comes from the device status characteristics in the local operation data of the agent. The fourth channel corresponds to the source-load uncertainty risk target, and the query volume of the fourth channel comes from the photovoltaic output and load fluctuation characteristics in the local operation data of the intelligent agent; The key and value quantities of the multiple attention channels are derived from the regulatory intent representations of other types of agents; The control distribution of each agent is obtained based on the output of the multiple attention channels.
9. The method for coordinated reactive power and voltage control of a distribution network combining multiple agents as described in claim 8, characterized in that, Based on the aforementioned control distribution, the control signals for each reactive power control device are determined and sent to each reactive power control device in the distribution network, including: Deploy the decision-making models of each agent to the local computing device on the distribution network area side; The local computing device determines the control signal based on the local operating data of each agent and the spatial attention features at a preset control cycle. The control signal is sent to the corresponding reactive power control device for execution. When communication between the local computing device and the centralized trainer fails, the control signal is executed independently based on the local running data and the cached global state overview, and the local execution log is synchronized to the centralized trainer after communication is restored.
10. A multi-agent power distribution network reactive power and voltage coordination control system, characterized in that, The method for coordinated reactive power and voltage control of a distribution network combining multiple agents, as described in any one of claims 1 to 9, comprises: The data acquisition and classification module is used to acquire the access nodes, response attribute parameters and local operation data of each reactive power control device in the distribution network, and classify each reactive power control device into K types of heterogeneous intelligent agents according to their response characteristics. The sensitivity thermal safety module is used to acquire the electrical correlation matrix of the distribution network, determine the matrix condition metric based on the electrical correlation matrix, determine the sensitivity confidence factor based on the matrix condition metric, acquire the temperature information of each parallel capacitor bank, and determine the thermal safety confidence factor based on the temperature information. The spatial attention feature module is used to perform comprehensive calculations based on the electrical correlation matrix, the sensitivity confidence factor, and the thermal safety confidence factor to obtain spatial attention weights, and to aggregate the representations of the associated intelligent agents constructed from the local operating data based on the spatial attention weights to obtain the spatial attention features of each intelligent agent. The temporal multi-path attention module is used to perform temporal attention encoding based on the spatial attention features and to perform multi-path attention interaction among the K types of heterogeneous agents to obtain the control distribution of each agent. The control signal sending module is used to determine the control signals of each reactive power control device based on the control distribution and send them to each reactive power control device in the distribution network.
