Micro-grid cluster multi-agent voltage control method and device
By collecting meteorological data in microgrid clusters, establishing a mapping relationship between photovoltaic and wind power output and load demand, generating a set of source-load uncertainty scenarios, and combining the short-circuit ratio at the grid connection point and equipment support capabilities, a multi-agent collaborative control strategy is constructed. This solves the problem of insufficient accuracy in predicting voltage fluctuations in microgrid clusters and improves the accuracy and reliability of voltage regulation.
Patent Information
- Application Number
- CN202611158710.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, voltage control methods for microgrid clusters are difficult to simultaneously reflect the combined effects of multiple meteorological factors, spatial differences, and electrical coupling on voltage fluctuations. This results in insufficient accuracy in voltage fluctuation prediction, increases the risk of voltage exceeding limits under multiple meteorological disturbances and weak grid conditions, and relies solely on node voltage deviations to allocate reactive power resources, which can easily lead to the failure of control commands, reducing the effectiveness of cluster voltage control and operational reliability.
By collecting meteorological data from various microgrid areas, a mapping relationship between photovoltaic and wind power output, load demand and meteorological variables is established. A set of source-load uncertainty scenarios that meet the spatiotemporal differences is generated. Combining the short-circuit ratio at the grid connection point and the available support capacity of the equipment, the state space and action space of the target intelligent agent are constructed. The initial control action is output using a multi-agent collaborative control strategy, and feasible solutions are calculated through a safety correction model to regulate the node voltage of the microgrid cluster.
It effectively improves the voltage regulation effect and operational reliability of microgrid clusters, reduces the risk of voltage exceeding limits under multiple meteorological disturbances and weak grid conditions, and ensures the accuracy and reliability of cluster voltage regulation.
Smart Images

Figure CN123162906A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of microgrid cluster voltage control technology, and in particular to a method and device for multi-agent voltage control of microgrid clusters. Background Technology
[0002] Meteorological factors such as solar irradiance, cloud movement, ambient temperature, wind speed, and wind direction affect photovoltaic power output, wind power output, and user load, respectively. Due to the different geographical locations of different microgrid areas, the same meteorological process has differences in arrival time, disturbance amplitude, and duration in different regions, resulting in voltage offsets of varying degrees at the grid connection point and internal nodes after the source-load fluctuations are propagated through the distribution network.
[0003] Voltage control methods in related technologies typically employ single predicted values or independent disturbance scenarios, making it difficult to simultaneously reflect the combined effects of multiple meteorological factors, spatial differences, and electrical coupling on voltage fluctuations. Furthermore, distributed voltage control methods in related technologies often only allocate reactive power resources based on node voltage deviations, potentially leading to issues such as unexecutable equipment commands, unreasonable allocation of support resources, or mutual cancellation of local actions.
[0004] Therefore, the use of only a single predicted value or independent disturbance scenario modeling in related technologies leads to insufficient accuracy in voltage fluctuation prediction, increases the risk of voltage exceeding limits under multiple meteorological disturbances and weak power grid conditions, and relies solely on node voltage deviation to allocate reactive power resources, which can easily lead to the failure of control commands, reduce the effectiveness of cluster voltage control and operational reliability, and urgently needs to be addressed. Summary of the Invention
[0005] This application is based on the inventor's understanding and insights into the following issues: As the proportion of distributed photovoltaic, decentralized wind power, energy storage, and adjustable loads connected to the distribution side continues to increase, multiple microgrids are interconnected through distribution lines to form microgrid clusters. Microgrid clusters can improve the absorption capacity of new energy sources and the reliability of power supply through regional power sharing. However, the power flow within them changes from unidirectional transmission to bidirectional or multi-point interaction, and the node voltage is simultaneously affected by the active power injection of distributed sources, the reactive power support of inverters, line impedance, load changes, and the support strength of the upper-level power grid.
[0006] Meteorological factors such as solar irradiance, cloud movement, ambient temperature, wind speed, and wind direction affect photovoltaic (PV) power output, wind power output, and user loads, respectively. Different microgrid regions have different geographical locations, and the same meteorological process exhibits variations in arrival time, disturbance amplitude, and duration across different regions. This results in varying degrees of voltage offset at the grid connection point and internal nodes after load fluctuations propagate through the distribution network. Existing voltage control methods typically employ single predicted values or independent disturbance scenarios, making it difficult to simultaneously reflect the combined effects of multiple meteorological factors, spatial differences, and electrical coupling on voltage fluctuations.
[0007] Secondly, the short-circuit ratio at the grid connection point reflects the voltage support strength of the upper-level power grid for the microgrid cluster. A low short-circuit ratio results in a larger equivalent impedance at the grid connection point, meaning the same active or reactive power disturbance may cause more significant voltage fluctuations at the grid connection point, further amplifying the coupling between nodes within the cluster. Current distributed voltage control methods often only allocate reactive power resources based on node voltage deviations, failing to incorporate the grid connection point short-circuit ratio, remaining capacity of supporting equipment, response speed, and energy storage state of charge into the control decision. This can lead to problems such as unexecutable equipment commands, unreasonable allocation of supporting resources, or mutual cancellation of local actions, requiring urgent improvement.
[0008] This application provides a multi-agent voltage control method and device for microgrid clusters to solve the problems in related technologies that only use a single predicted value or independent disturbance scenario modeling, resulting in insufficient accuracy of voltage fluctuation prediction, increased risk of voltage exceeding limits under multiple meteorological disturbances and weak grid conditions, and the problem that relying solely on node voltage deviation to allocate reactive power resources is prone to control command failure, reducing the effectiveness of cluster voltage control and operational reliability.
[0009] The first aspect of this application provides a multi-agent voltage control method for a microgrid cluster, comprising the following steps: establishing a mapping relationship between photovoltaic power output, wind power output, load demand, and meteorological variables based on meteorological data corresponding to each microgrid area in the microgrid cluster, and generating a set of source-load uncertainty scenarios that satisfy preset spatiotemporal difference conditions; using the source-load uncertainty scenario set to determine the grid connection point voltage and node voltages within the microgrid cluster, and constructing the state space and action space of the target agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster; outputting the initial control action of the target agent in conjunction with a target multi-agent collaborative control strategy; inputting the initial control action into a pre-constructed safety correction model that satisfies preset boundary conditions, calculating a feasible solution, using the feasible solution as the target control action, and regulating the node voltages of each microgrid area in the microgrid cluster based on the target control action.
[0010] Optionally, in one embodiment of this application, generating a set of source-load uncertainty scenarios that satisfy preset spatiotemporal difference conditions includes: determining the photovoltaic output corresponding to each microgrid region based on the mapping relationship, according to solar irradiance and photovoltaic module temperature; determining the wind power output corresponding to each microgrid region based on the mapping relationship, combined with the relationship between wind speed and wind turbine cut-in wind speed, rated wind speed, and cut-out wind speed; determining the load demand corresponding to each microgrid region based on the mapping relationship, using ambient temperature and benchmark load curves; determining the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error corresponding to each microgrid region, respectively, based on the photovoltaic output, wind power output, and load demand; constructing a source-load disturbance vector using the photovoltaic output prediction error, the wind power output prediction error, and the load demand prediction error, and generating the set of source-load uncertainty scenarios by combining historical sample resampling, temporal disturbance superposition, or scenario generation algorithms.
[0011] Optionally, in one embodiment of this application, the step of constructing the state space and action space of the target intelligent agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster includes: determining the grid connection point short-circuit ratio based on the equivalent short-circuit capacity and distributed power generation capacity of the microgrid cluster; determining the available support capacity of the equipment within the cluster based on the operating boundaries of the supporting equipment within the cluster, and setting at least one of each microgrid region, energy storage unit, or supporting equipment in the microgrid cluster as the target intelligent agent; and constructing the state space and action space corresponding to the target intelligent agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio, and the available support capacity of the equipment within the cluster.
[0012] Optionally, in one embodiment of this application, before inputting the initial control action into a pre-constructed safety correction model that satisfies preset boundary conditions, the method further includes: obtaining the voltage sensitivity relationship between the control action of the support equipment inside the cluster and the node voltage; and constructing a safety correction model that satisfies the node voltage safety boundary, the energy storage state of charge boundary, and the equipment operation boundary conditions based on the voltage sensitivity relationship.
[0013] Optionally, in one embodiment of this application, after regulating the node voltage of each microgrid region in the microgrid cluster, the method further includes: sending the target control action to the corresponding energy storage unit, inverter, reactive power compensation device, or adjustable load to update the node voltage, equipment operating status, and energy storage state of charge of each microgrid region, obtaining new voltage, new equipment operating status, and new energy storage state of charge; based on the new voltage, new equipment operating status, and new energy storage state of charge, reconstructing the state space of the target intelligent agent, and iteratively updating the control action in conjunction with the target multi-agent collaborative control strategy, so as to continuously regulate the node voltage of each microgrid region until the node voltage of each microgrid region meets the preset safe voltage threshold.
[0014] A second aspect of this application provides a multi-agent voltage control device for a microgrid cluster, comprising: a setup module, configured to establish a mapping relationship between photovoltaic power output, wind power output, load demand, and meteorological variables based on meteorological data corresponding to each microgrid area in the microgrid cluster, and generate a set of source-load uncertainty scenarios that satisfy preset spatiotemporal difference conditions; a determination module, configured to determine the grid connection point voltage and node voltages within the microgrid cluster using the set of source-load uncertainty scenarios, and construct the state space and action space of a target agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of equipment within the cluster, and output the initial control action of the target agent in conjunction with a target multi-agent collaborative control strategy; and a control module, configured to input the initial control action into a pre-constructed safety correction model that satisfies preset boundary conditions, calculate a feasible solution, use the feasible solution as the target control action, and regulate the node voltages of each microgrid area in the microgrid cluster based on the target control action.
[0015] Optionally, in one embodiment of this application, the establishment module includes: a first determining unit, configured to determine the photovoltaic output corresponding to each microgrid area based on the mapping relationship and according to solar irradiance and photovoltaic module temperature; a second determining unit, configured to determine the wind power output corresponding to each microgrid area based on the mapping relationship and in combination with the relationship between wind speed and wind turbine cut-in wind speed, rated wind speed and cut-out wind speed; a third determining unit, configured to determine the load demand corresponding to each microgrid area based on the mapping relationship and using ambient temperature and benchmark load curve; a fourth determining unit, configured to determine the photovoltaic output prediction error, wind power output prediction error and load demand prediction error corresponding to each microgrid area respectively based on the photovoltaic output, wind power output and load demand; and a generation unit, configured to construct a source-load disturbance vector using the photovoltaic output prediction error, the wind power output prediction error and the load demand prediction error, and generate the source-load uncertainty scenario set by combining historical sample resampling, time-series disturbance superposition or scenario generation algorithm.
[0016] Optionally, in one embodiment of this application, the determining module includes: a fifth determining unit, configured to determine the grid connection point short-circuit ratio based on the equivalent short-circuit capacity and distributed power generation capacity of the microgrid cluster; a sixth determining unit, configured to determine the available support capacity of the internal equipment of the cluster based on the operating boundary of the internal support equipment, and set at least one of each microgrid area, energy storage unit, or support equipment in the microgrid cluster as a target intelligent agent; and a constructing unit, configured to construct the state space and action space corresponding to the target intelligent agent based on the grid connection point voltage, the node voltage of the cluster, the grid connection point short-circuit ratio, and the available support capacity of the internal equipment of the cluster.
[0017] Optionally, in one embodiment of this application, the apparatus further includes: an acquisition module, configured to acquire the voltage sensitivity relationship between the control actions of the support equipment within the cluster and the node voltage before inputting the initial control actions into a pre-constructed safety correction model that satisfies preset boundary conditions; and a construction module, configured to construct a safety correction model that satisfies node voltage safety boundaries, energy storage state of charge boundaries, and equipment operation boundary conditions based on the voltage sensitivity relationship before inputting the initial control actions into the pre-constructed safety correction model that satisfies preset boundary conditions.
[0018] Optionally, in one embodiment of this application, the apparatus further includes: an update module, configured to, after regulating the node voltage of each microgrid region in the microgrid cluster, send the target control action to the corresponding energy storage unit, inverter, reactive power compensation device, or adjustable load, update the node voltage, equipment operating status, and energy storage state of charge of each microgrid region, and obtain new voltage, new equipment operating status, and new energy storage state of charge; and a regulation module, configured to, after regulating the node voltage of each microgrid region in the microgrid cluster, reconstruct the state space of the target intelligent agent based on the new voltage, new equipment operating status, and new energy storage state of charge, and iteratively update the control action in conjunction with the target multi-agent collaborative control strategy, so as to continuously regulate the node voltage of each microgrid region until the node voltage of each microgrid region meets the preset safe voltage threshold.
[0019] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the microgrid cluster multi-agent voltage control method as described in the above embodiments.
[0020] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described microgrid cluster multi-agent voltage control method.
[0021] A fifth aspect of this application provides a computer program product, including a computer program that, when executed, is used to implement the above-described microgrid cluster multi-agent voltage control method.
[0022] This application's embodiments can collect meteorological data from various microgrid areas, establish a mapping relationship between photovoltaic and wind power output and load demand and meteorological variables, and generate a set of source-load uncertainty scenarios with spatiotemporal differences. Based on this set of source-load uncertainty scenarios, the voltage at the grid connection point and the voltage of internal nodes are solved. Combining the short-circuit ratio at the grid connection point and the available support capacity of equipment, the state and action space of each agent is constructed. Initial control actions are output through a multi-agent collaborative strategy. The initial actions are input into a safety correction model with multiple types of operational boundary constraints to determine the target control actions. Based on the target control actions, the voltage of nodes in each microgrid area is regulated, effectively improving the voltage regulation effect and operational reliability of the microgrid cluster, and reducing the risk of voltage exceedance under multiple meteorological disturbances and weak grid conditions. This solves the problems in related technologies where modeling only a single predicted value or an independent disturbance scenario leads to increased voltage exceedance risk under multiple meteorological disturbances and weak grid conditions. Furthermore, relying solely on node voltage deviations to allocate reactive power resources easily results in the failure of regulation commands, reducing the effectiveness of cluster voltage regulation and operational reliability.
[0023] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0024] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a multi-agent voltage control method for a microgrid cluster according to an embodiment of this application; Figure 2 This is a schematic diagram of the overall technical framework for multi-agent voltage control of a microgrid cluster according to a specific embodiment of this application. Figure 3 A schematic diagram illustrating the generation of a multi-source uncertainty scenario and voltage propagation analysis in a specific embodiment of this application; Figure 4 This is a diagram of a multi-agent centralized training-distributed execution architecture according to a specific embodiment of this application; Figure 5 This is a flowchart illustrating the intelligent agent action safety correction and infeasibility scenario degradation process according to a specific embodiment of this application. Figure 6 This is a schematic diagram of a multi-scenario simulation verification system and evaluation process according to a specific embodiment of this application; Figure 7 This is a schematic diagram of the structure of a multi-agent voltage control device for a microgrid cluster according to an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0025] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0026] The following describes a microgrid cluster multi-agent voltage control method and apparatus according to embodiments of this application, with reference to the accompanying drawings. To address the issues mentioned in the background section regarding the use of single predicted values or independent disturbance scenario modeling, which increases the risk of voltage exceeding limits under multiple meteorological disturbances and weak grid conditions, and the tendency to rely solely on node voltage deviations to allocate reactive power resources, leading to control command failures and reduced cluster voltage control effectiveness and operational reliability, this application provides a multi-agent voltage control method for microgrid clusters. This method collects meteorological data from each microgrid area, establishes a mapping relationship between photovoltaic and wind power output and load demand and meteorological variables, and generates a set of source-load uncertainty scenarios with spatiotemporal differences. Based on this set, the voltage at the cluster grid connection point and the voltage of internal nodes are solved. The state and action spaces of each agent are constructed by combining the grid connection point short-circuit ratio and equipment availability support capabilities. Initial control actions are output through a multi-agent collaborative strategy. These initial actions are input into a safety correction model with multiple operational boundary constraints to determine the target control actions. Based on these target control actions, node voltage regulation is achieved in each microgrid area, effectively improving the voltage control effectiveness and operational reliability of the microgrid cluster and reducing the risk of voltage exceeding limits under multiple meteorological disturbances and weak grid conditions. This solves the problems in related technologies, such as the increased risk of voltage exceeding limits under multiple meteorological disturbances and weak power grid conditions caused by using only a single predicted value or independent disturbance scenario modeling, and the easy occurrence of control command failures and reduced cluster voltage control effect and operational reliability when relying solely on node voltage deviation to allocate reactive power resources.
[0027] Specifically, Figure 1 This is a flowchart illustrating a multi-agent voltage control method for a microgrid cluster provided in an embodiment of this application.
[0028] like Figure 1 As shown, the multi-agent voltage control method for this microgrid cluster includes the following steps: In step S101, a mapping relationship between photovoltaic power output, wind power output and load demand and meteorological variables is established based on the meteorological data corresponding to each microgrid area in the microgrid cluster, and a set of source-load uncertainty scenarios that meet the preset spatiotemporal difference conditions is generated.
[0029] It is understood that the embodiments of this application can acquire meteorological data, distributed power generation data, load data, network parameters, grid connection point parameters, and supporting equipment operation data corresponding to each microgrid area in the microgrid cluster. The meteorological data includes at least one of solar irradiance, ambient temperature, wind speed, wind direction, and humidity. The distributed power generation data includes photovoltaic rated capacity, photovoltaic module temperature, wind turbine rated capacity, cut-in wind speed, rated wind speed, and cut-out wind speed. The load data includes a baseline load curve, adjustable load capacity, and temperature sensitivity coefficient. Then, this application can establish parameters for solar irradiance, module temperature, etc., based on the meteorological data. The quantitative mapping relationship between temperature and photovoltaic output, wind speed and wind power output, and ambient temperature and regional load demand is established to achieve a precise correspondence between meteorological variables and distributed power output and load demand. Furthermore, by combining the spatiotemporal differences in the arrival time, amplitude, and duration of meteorological disturbances in different microgrid areas, a set of source-load uncertainty scenarios that can realistically reflect the random fluctuation characteristics of multiple regions and multiple operating conditions is constructed through source-load disturbance modeling and scenario generation algorithms. This allows for the accurate reproduction of the voltage deviation conditions of the entire network under meteorological coupling, providing a realistic and reliable simulation input foundation for subsequent multi-agent collaborative voltage regulation.
[0030] In one embodiment of this application, generating a source-load uncertainty scenario set that satisfies preset spatiotemporal difference conditions includes: determining the photovoltaic output corresponding to each microgrid area based on the mapping relationship, according to solar irradiance and photovoltaic module temperature; determining the wind power output corresponding to each microgrid area based on the mapping relationship, combined with the relationship between wind speed and wind turbine cut-in wind speed, rated wind speed, and cut-out wind speed; determining the load demand corresponding to each microgrid area based on the mapping relationship, using ambient temperature and benchmark load curve; determining the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error corresponding to each microgrid area based on photovoltaic output, wind power output, and load demand; constructing a source-load disturbance vector using the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error, and generating a source-load uncertainty scenario set by combining historical sample resampling, temporal disturbance superposition, or scenario generation algorithm.
[0031] In the embodiments of this application, such as Figure 2 As shown, for the first m Each microgrid region at time t The photovoltaic output can be modeled as follows: (1) in, Contribute to photovoltaic power Rated power of photovoltaic, Solar irradiance, For reference irradiance, For temperature coefficient, For the temperature of photovoltaic modules, For reference temperature, This means that the calculation result is restricted to a given interval.
[0032] For the m Each microgrid region at time t The wind power output can be represented by the following segmented model: (2) in, To provide power for wind power, The rated power of the wind turbine unit. For real-time wind speed, , and These are the cut-in wind speed, rated wind speed, and cut-out wind speed, respectively.
[0033] Temperature-sensitive loads can be modeled as follows: (3) in, To meet load demand, As the baseline load, For temperature sensitivity coefficient, For ambient temperature, As the reference temperature, This is due to random load disturbances.
[0034] Furthermore, in this embodiment of the application, the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error corresponding to each microgrid area can be determined based on the differences between the actual photovoltaic output, actual wind power output, and actual load demand in the current time period and the photovoltaic output, wind power output, and load demand calculated above. Then, the photovoltaic prediction error, wind power prediction error, and load prediction error are combined into a source-load disturbance vector. To reflect spatial differences between regions, a regional disturbance correlation matrix can be constructed based on inter-regional meteorological correlation coefficients, geographical distances, or propagation delays of the same cloud cluster and wind field.
[0035] In some implementations, embodiments of this application can perform correlation-preserving joint resampling from historical standardized error samples; in other implementations, typical meteorological curves can be randomly combined with disturbance amplitude, start time, and duration to form scenarios of clear-sky high photovoltaic, cloud cover, sudden wind speed changes, high temperature load peaks, and multiple factors superimposed, i.e.: (4) in, The source load disturbance vector.
[0036] When there are many scenarios, clustering can be performed based on Euclidean distance, probabilistic distance, or voltage response distance between scenarios. The representative scenario corresponding to each cluster center is retained, and the probabilities of merged scenarios are accumulated into the representative scenario. This yields a set of source-load uncertainty scenarios for policy training and online rolling evaluation in the following steps. This embodiment of the application, by fully considering the spatiotemporal differences in meteorological disturbances in different regions, accurately constructs multi-source-load disturbance samples, which can completely reproduce the differentiated voltage fluctuation conditions within the cluster, improving the adaptability and accuracy of voltage regulation decisions.
[0037] In step S102, the grid connection point voltage and node voltage within the microgrid cluster are determined using the source-load uncertainty scenario set. Based on the grid connection point voltage, node voltage within the cluster, grid connection point short-circuit ratio of the microgrid cluster, and available support capacity of equipment within the cluster, the state space and action space of the target intelligent agent are constructed. The initial control action of the target intelligent agent is output in combination with the target multi-agent collaborative control strategy.
[0038] In the embodiments of this application, at least one of the microgrid regions, energy storage units or supporting equipment can be set as intelligent agents to construct the state space and action space of the intelligent agents.
[0039] It is understood that, in this application embodiment, the source-load uncertainty scenario can be input into the microgrid cluster power flow model to calculate the grid connection point voltage and the node voltages within the cluster. Then, the grid connection point short-circuit ratio is determined based on the grid connection point equivalent short-circuit capacity and the distributed power supply capacity. In this application embodiment, the grid connection point short-circuit ratio is the ratio of the grid connection point equivalent short-circuit capacity to the rated capacity of the distributed power supply connected to the grid connection point. Based on the grid connection point short-circuit ratio, the operating scenarios of the microgrid cluster are divided into strong grid scenarios, medium grid scenarios, and weak grid scenarios. In addition, based on the short-circuit ratio level corresponding to the operating scenario, at least one of the voltage deviation weight, equipment support call weight, and voltage safety margin in the multi-agent cooperative control strategy can be adjusted.
[0040] Furthermore, this application can determine the available support capacity of the equipment based on the operating boundary of the supporting equipment; secondly, it can construct the state space and action space of the target intelligent agent based on the grid connection point voltage, the node voltage within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster, and rely on the target multi-agent cooperative control strategy, i.e. the trained multi-agent cooperative control strategy, to make autonomous decisions, interactive games, and cooperative optimizations, and output the initial voltage regulation control actions corresponding to each intelligent agent, thereby improving the rationality and adaptability of multi-regional cooperative voltage regulation decisions.
[0041] Specifically, such as Figure 2As shown, the microgrid cluster power flow model in this embodiment can be established based on the geographical location of the nodes, electrical topology, and line impedance of the microgrid cluster; the node voltage change is calculated based on the changes in active power and reactive power in different microgrid areas to obtain the active power-voltage sensitivity matrix and the reactive power-voltage sensitivity matrix; based on the active power-voltage sensitivity matrix, the reactive power-voltage sensitivity matrix, electrical distance, and power flow propagation path, the degree of influence of source load disturbance on the grid connection point voltage and the node voltage within the cluster is determined, and nodes with an influence degree greater than a preset threshold are identified as key control nodes.
[0042] The available support capacity of the equipment is determined according to at least one of the following constraints: first, inverter apparent power constraint, energy storage charging and discharging power constraint, energy storage state of charge constraint, reactive power compensation equipment adjustment range constraint, adjustable load adjustment range constraint, equipment ramping constraint, and equipment response time constraint. Secondly, based on the above constraints, determine the feasible active power adjustment range and feasible reactive power adjustment range of each supporting equipment in the current control period, and the feasible active power adjustment range and feasible reactive power adjustment range constitute the equipment support capacity envelope. The equipment support capability envelope includes equipment availability and response reliability. Equipment availability is determined based on equipment fault status, communication status, and maintenance status. Response reliability is determined based on the deviation between the target control actions of the supporting equipment and the historical actual responses. Furthermore, this application can multiply the rated support capacity of the support equipment by the equipment availability and response reliability to obtain the effective available support capacity for the multi-agent cooperative control strategy and the safety correction model in the following steps.
[0043] Furthermore, the multi-agent cooperative control strategy in this application can employ multi-agent deep deterministic policy gradient, near-end policy optimization, value decomposition networks, or other algorithms capable of joint training, using a centralized training-distributed execution approach. First, during the training phase, the strategy parameters are updated using the global power flow state of the microgrid cluster and the joint actions of each agent. Second, during the execution phase, each agent outputs its corresponding initial control action based on local observation information and interaction information with neighboring regions. Therefore, in actual operation, it is not necessary to continuously obtain the complete global state, reducing the impact of communication interruptions on control execution. Additionally, the training samples can cover strong, medium, and weak power grid scenarios, as well as scenarios with sufficient, partially limited, and severely limited equipment support capabilities. In each training round, meteorological scenarios, load levels, equivalent impedance of the upstream power grid, and available equipment capacity are randomly selected, allowing the strategy to learn the cooperative support patterns under different disturbances and constraints.
[0044] The reward function of the multi-agent cooperative control strategy includes at least one of the following: node voltage deviation, voltage limit violation penalty, control action change penalty, energy storage state of charge deviation penalty, equipment constraint violation penalty, and support equipment call cost.
[0045] The execution phase operates according to a rolling control cycle. Within each control cycle, the source load uncertainty scenario is updated based on the latest weather forecast and source load measurement data, the grid connection point short-circuit ratio is updated based on the latest grid connection point equivalent impedance, and the available support capacity of the equipment is updated based on the actual response of the support equipment. The updated state is then input into the multi-agent collaborative control strategy. When communication between adjacent areas is interrupted, the state of the previous effective adjacent area, the estimated local state, or the preset safety state is used to replace the missing adjacent area interaction information.
[0046] In one embodiment of this application, the state space and action space of the target intelligent agent are constructed based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster. This includes: determining the grid connection point short-circuit ratio based on the equivalent short-circuit capacity and distributed power generation capacity of the microgrid cluster; determining the available support capacity of the equipment within the cluster based on the operating boundaries of the supporting equipment within the cluster, and setting at least one of the microgrid regions, energy storage units, or supporting equipment in the microgrid cluster as the target intelligent agent; and constructing the state space and action space corresponding to the target intelligent agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio, and the available support capacity of the equipment within the cluster.
[0047] As one possible way to achieve this, such as Figure 2 As shown, embodiments of this application can establish a power flow model based on the node, line, transformer, grid connection point, and equipment connection relationships of a microgrid cluster. For radial or weakly looped distribution networks, the DistFlow model, linearized power flow model, or AC power flow model can be used. (Based on branch lines...) i - j For example, its voltage relationship can be expressed as: (5) in, and They are nodes i and nodes j The square of the voltage amplitude, and These are the active and reactive power of the branch circuit, respectively. and These are the branch resistance and reactance, respectively. It is the square of the branch current amplitude.
[0048] Near the current operating point, the power flow equations are linearized to obtain the sensitivity relationship between active and reactive power regulation to node voltage: (6) in, This is the active power-voltage sensitivity matrix. This is the reactive power-voltage sensitivity matrix. and They are time points t The active power change vector and reactive power change vector; the embodiments of this application can calculate the impact of source load disturbances or control actions in different regions on the voltage of grid connection points and key nodes through the sensitivity matrix, and can also identify the main propagation path of voltage fluctuations by combining the electrical distance formed by line impedance and power flow direction.
[0049] The short-circuit ratio (SCR) at the grid connection point is used to describe the support strength of the upstream power grid and can be expressed as: (7) in, For the equivalent short-circuit capacity of the grid connection point, The rated capacity of the distributed power source connected to the grid. The voltage at the grid connection point. This is the Thevenin equivalent impedance of the upstream power grid.
[0050] The embodiments of this application can classify the SCR-corresponding scenarios into strong power grid, medium power grid, and weak power grid scenarios based on certain thresholds; wherein, the thresholds can be determined based on system scale, equipment grid connection standards, or offline stability analysis results.
[0051] Supporting equipment includes at least one of the following: energy storage converter, photovoltaic inverter, wind power converter, static var generator, capacitor bank, micro gas turbine, and adjustable load. For the first... i The available support capacity of each device during the current control period is determined by the following constraints: (8) in, and These are the lower and upper limits of active power. Reactive power Rated apparent power, For climbing limits, and These represent the upper and lower limits of the energy storage's state of charge. Based on these constraints, the active-reactive feasible domain of the equipment in the current time period is formed, and the available up-adjustment capacity, available down-adjustment capacity, available reactive capacity, and response time are extracted as the equipment's available support capacity.
[0052] Furthermore, each microgrid area can be set as a regional intelligent agent, or energy storage, inverters, and key reactive power support equipment can be set as device intelligent agents respectively. Regional intelligent agents are suitable for scenarios with limited communication resources and requiring distributed control by region; device intelligent agents are suitable for scenarios with a small number of supporting devices and high granularity of action requirements; a hierarchical structure combining regional intelligent agents and device intelligent agents can also be adopted.
[0053] No. i An intelligent agent at time t The state can be represented as: (9) in, and For the active and reactive power of the local power source, For local load, For local node voltage sets, The voltage at the grid connection point. In the state of energy storage charge, To provide available support capacity for the equipment, It facilitates information exchange between adjacent areas.
[0054] No. i The actions of an agent can be represented as: (10) in, and These are active and reactive energy storage commands, respectively. This is the inverter's reactive power command. This is the reduction in active power output for distributed generation. This is the adjustable load adjustment amount.
[0055] In addition, the reward function, which simultaneously reflects voltage safety, smooth operation, energy storage status, and equipment call-up cost, can be expressed as: (11) in, This represents the number of nodes that exceed voltage limits. To support equipment call-up costs, For equipment constraint violation quantities. , , , , and For corresponding weights. In weak grid scenarios, the weight can be increased. , and This is to increase penalties for grid connection point voltage deviation, voltage exceeding limits, and inaction.
[0056] In step S103, the initial control action is input into the pre-constructed safety correction model that meets the preset boundary conditions, the feasible solution is calculated, the feasible solution is used as the target control action, and the node voltage of each microgrid area in the microgrid cluster is adjusted based on the target control action.
[0057] In this embodiment, the safety correction model that satisfies the preset boundary conditions can be a secondary optimized safety correction model that satisfies the node voltage safety boundary, the energy storage state of charge boundary, and the equipment operation boundary conditions.
[0058] It is understood that the embodiments of this application can input the initial control action output by the multi-agent cooperative strategy into a pre-constructed secondary optimization safety correction model that integrates multiple physical operating boundary constraints, and solve for a feasible solution that satisfies the voltage safety of the entire network, equipment capacity, energy storage status and ramping limit; when a feasible solution exists in the secondary optimization model, the feasible solution is used as the final target control action, and the voltage regulation equipment in each area of the microgrid cluster is coordinated and regulated according to the final target control action to achieve precise closed-loop optimization control of the voltage of each node.
[0059] Specifically, such as Figure 2 As shown, the multi-agent cooperative strategy outputs the initial control action a. To avoid voltage overshooting or equipment over-constraint caused by initial control actions, a safety correction model can be established to minimize modifications to the initial control actions. This safety correction model can be expressed as: (12) satisfy: (13) in, For the action to be controlled, This is the action deviation weight matrix. The motion smoothing coefficient, To control the action-voltage sensitivity matrix, Actions for the current running point, For voltage safety margin, For the device feasible domain, This is the ramp-up limit for the operation. The voltage safety range can be set from 0.95 pu to 1.05 pu, or it can be adjusted according to the power grid operation regulations or user settings.
[0060] When the SCR decreases or the predicted disturbance increases, the voltage safety margin can be increased. This allows for a larger margin in the target control action before the upper and lower voltage limits. When the remaining capacity of a particular device is small or the response time is long, this margin can be increased. The weights corresponding to the device are adjusted to reduce the extent to which the safety correction model modifies the device's actions.
[0061] For energy storage devices, the state of charge in the next time period can be expressed as: (14) in, and These are charging power and discharging power, respectively. and These are charging efficiency and discharging efficiency, respectively. For the rated energy of energy storage, To control the duration of the event, the safety correction model simultaneously limits the mutual exclusion of energy storage charging and discharging, the upper and lower limits of SOC, and the charging and discharging power.
[0062] Furthermore, when the safety correction model has no feasible solution due to extreme disturbances or equipment failures, an emergency action correction process is initiated. For example, priority is given to calling energy storage and inverter reactive power support with fast response speed and low marginal cost, followed by energy storage active power regulation and adjustable loads, and finally distributed power active power reduction is implemented. Another example is calculating the ratio between the voltage control sensitivity of each support device to voltage-limit-over-limit nodes and the equipment call-up cost, and determining the support device call-up order according to the ratio from largest to smallest. Yet another example is recalculating the voltage after each additional support resource is added; correction stops when all key control nodes are within the safe range and equipment constraints are met, or an emergency alarm is output when available support resources are insufficient.
[0063] Optionally, in one embodiment of this application, before inputting the initial control action to the pre-constructed safety correction model that meets preset boundary conditions, the method further includes: obtaining the voltage sensitivity relationship between the control action of the support equipment inside the cluster and the node voltage; and constructing a safety correction model that meets the node voltage safety boundary, the energy storage state of charge boundary, and the equipment operation boundary conditions based on the voltage sensitivity relationship.
[0064] In this embodiment, the application acquires the operating parameters of various supporting devices within the microgrid cluster and the voltage data of each node in real time. It quantifies and solves the voltage sensitivity relationship between changes in control commands of supporting devices and voltage fluctuations of cluster nodes, accurately characterizing the impact of device regulation actions on the overall grid voltage. Then, with the goal of minimizing the weighted distance between the desired control action and the initial control action, as well as the change in control action during adjacent control periods, and with the node voltage safety boundary, energy storage state of charge boundary, device capacity boundary, and device ramp boundary as constraints, a safety correction model is constructed that satisfies the node voltage safety boundary, energy storage state of charge boundary, and device operating boundary. The safety correction model can be a quadratic optimization model. Thus, this application can accurately match the device regulation characteristics and voltage response law through sensitivity relationships, comprehensively incorporate various safety constraints to construct a correction model, effectively avoiding the problem of initial control actions exceeding the system and device operating limits, and ensuring the feasibility and safety of subsequent voltage regulation control commands.
[0065] Optionally, in one embodiment of this application, after regulating the node voltage of each microgrid region in the microgrid cluster, the method further includes: sending the target control action to the corresponding energy storage unit, inverter, reactive power compensation equipment or adjustable load, updating the node voltage, equipment operating status and energy storage charge state of each microgrid region, and obtaining new voltage, new equipment operating status and new energy storage charge state; based on the new voltage, new equipment operating status and new energy storage charge state, reconstructing the state space of the target intelligent agent, and combining the target multi-intelligent agent collaborative control strategy to iteratively update the control action, so as to continuously regulate the node voltage of each microgrid region until the node voltage of each microgrid region meets the preset safe voltage threshold.
[0066] As one possible way to achieve this, such as Figure 2 As shown, the embodiments of this application can convert the target action into control commands for the corresponding equipment and send them to the corresponding energy storage unit, inverter, reactive power compensation equipment or adjustable load. Then, the node voltage, grid connection point voltage, active and reactive power output of the equipment and energy storage SOC (State of Charge) are collected after execution. If the deviation between the actual response of the equipment and the target action exceeds the threshold, the available support capacity of the equipment is updated, and the available capacity of the equipment is reduced or its action deviation weight is increased in the next control period, thereby forming a closed-loop control that is adaptive to changes in equipment state.
[0067] In one simulation implementation, a microgrid cluster is constructed based on an improved IEEE 123-node distribution system. Three or more microgrid areas are divided according to geographical location and electrical connections. Photovoltaic, wind power, energy storage, adjustable loads, and reactive power compensation equipment are connected to different areas, and a PCC (Point of Common Coupling) is set. The control step size can be set to 15 minutes, with 96 control periods throughout the day.
[0068] Meteorological scenarios include sunny days with high photovoltaic output, cloud cover causing sudden drops in photovoltaic output, rapid wind speed changes, peak summer loads due to high temperatures, and scenarios with multiple overlapping meteorological factors. Strong, medium, and weak grid scenarios are constructed by altering the equivalent impedance and short-circuit capacity of the upstream grid; scenarios with sufficient, partially limited, and severely limited equipment support capabilities are constructed by limiting inverter capacity, energy storage SOC range, or adjustable load capacity.
[0069] Comparison methods may include no-control methods, traditional droop or rule-based control methods, single-agent control methods, multi-agent control methods without safety correction, and the method of this application. Evaluation indicators include voltage limit exceedance frequency, maximum voltage deviation, minimum node voltage, grid connection point voltage fluctuation amplitude, critical node voltage variance, energy storage SOC maintenance capability, equipment action variation, wind and solar curtailment, support equipment call-up cost, single-step decision time, and safety correction solution time.
[0070] During verification, multi-agent policy training was first completed in offline scenarios, followed by testing under weather scenarios, grid connection point short-circuit ratios, and equipment failure combinations that were not included in the training. The effectiveness of the safety correction layer was evaluated by comparing the action feasibility rate, voltage over-limit count, and equipment constraint violation count before and after safety correction; the adaptability of the strategy to changes in the support strength of the upper-level grid was evaluated by comparing the control results under different grid connection point short-circuit ratios; and the synergistic substitution capability among multiple support resources was evaluated by limiting energy storage capacity and inverter reactive power capacity.
[0071] For example, Figure 3 The generation of multi-source uncertainty scenarios and the voltage propagation analysis process are further illustrated. To adapt to the characteristics of weather forecasts and load forecasts updating over time, this embodiment employs a rolling scenario window. Let the current control time be... t Scene window covers the future H Each time period; upon entering a new control period, delete the scenario data of the previously executed period, and receive the latest weather forecasts, distributed power source forecasts, and load forecasts to supplement the end-of-window scenarios.
[0072] For the region m and forecast period First, the standardized prediction error is calculated. The errors for photovoltaic, wind power, and load are divided by their corresponding historical standard deviations to eliminate the influence of different capacities and units on the scene distance calculation. The standardized joint disturbance vector can be expressed as: (15) in, For the region m Historical standard deviation of photovoltaic power output prediction error For the region m Historical standard deviation of wind power output forecast error For the region m Historical standard deviation of load forecasting error is used to eliminate differences in the dimensions and fluctuation scales of different types of forecasting errors.
[0073] Based on regional geographical distance Historical meteorological correlation coefficient Distance from Trend Electric Construct comprehensive correlation weights to maintain the propagation relationship of the same cloud cluster, wind field, or temperature process across different regions: (16) in, , and As weight, and These are spatially relevant scales and electrically relevant scales, respectively. The correlation coefficient is the historical meteorological data. For regional geographical distance, For the distance of the current electrical system.
[0074] During the joint sampling process, the correlation matrix of the generated samples is made close to... R And set the arrival delay of regional disturbances according to the propagation speed of meteorological processes.
[0075] To avoid overlooking high-risk voltage scenarios by reducing scenarios solely based on source-load error distance, fast power flow calculations are performed for each scenario to generate a voltage response vector consisting of the PCC voltage, the voltage at key control nodes, and the maximum line load rate. Scene s With scene q The combined distance between them is: (17) in, and Scenes s With scene q The probability of the scenario.
[0076] This application's embodiments can use comprehensive distance for clustering, which can retain scenarios with similar source-load characteristics but significantly different voltage responses during control training and online evaluation. For scenarios that cause voltage exceedances, a minimum number of scenarios can be set or their scenario weights can be increased.
[0077] The risk screening results include a set of high-risk scenarios, a set of key control nodes, and the voltage contribution of each disturbance source. The risk screening results serve as scenario sampling weights for training multi-agent strategies and are also used to adjust the voltage safety margin in online safety correction.
[0078] Figure 4 This illustrates a multi-agent architecture with centralized training and distributed execution. In one hierarchical implementation, the upper layer consists of regional agents responsible for determining the region's active and reactive power support requirements based on the region's source load power, PCC voltage, critical node voltage, and grid connection point short-circuit ratio; the lower layer consists of device agents responsible for allocating the region's support requirements among energy storage, inverters, reactive power compensation equipment, and adjustable loads.
[0079] Regional intelligent agents i Output area support instructions The device intelligent agent decomposes the region support commands into device actions based on the device feasible domain and response reliability, satisfying: (18) During the training phase, a centralized evaluator receives all region states, device states, and joint actions, evaluating the combined impact of each agent's actions on global voltage security and device costs. To prevent a single agent from gaining local benefits by excessively utilizing local resources at the expense of other regions, the reward function also includes a region fairness term and a cross-region power interaction penalty term. (19) in, For the region m Support call cost, This refers to the power of the regional tie-in line. The fairness factor reduces the likelihood of long-term support tasks being concentrated on a small number of energy storage or inverter units, which helps maintain equipment lifespan and future support margins.
[0080] During the execution phase, each regional agent uses local measurements and allowed neighboring region information. If neighboring region information is not updated within a preset communication time limit, the information is marked as invalid and replaced sequentially with the state prediction value, the previous valid value, and the preset safety value. In the event of continuous communication interruption, the regional agent switches to a safety strategy that relies solely on local voltage and local device status.
[0081] After communication is restored, the latest neighboring cell state, which has changed abruptly, is not directly adopted. Instead, the neighboring cell information weights are gradually restored through first-order filtering or confidence-weighted averaging to avoid drastic changes in control actions caused by the instant communication is restored. Neighboring cell information fusion can be represented as: (20) Figure 5 The flowchart illustrates the agent's action safety correction and infeasibility scenario degradation process. Safety correction first uses the sensitivity matrix of the current operating point to solve a quadratic programming problem to obtain candidate actions; then, the candidate actions are input into the AC power flow model for verification; if the maximum deviation between the AC power flow voltage and the linearly predicted voltage exceeds a threshold, the sensitivity matrix is updated with the AC power flow result as the new operating point, and the safety correction model is solved again.
[0082] When the maximum deviation between the AC power flow voltage and the linearly predicted voltage exceeds a threshold, the sensitivity matrix is updated using the AC power flow result as the new operating point, and the safety correction model is solved again. k The maximum voltage deviation in the next iteration can be expressed as: (twenty one) in, For the first k The maximum deviation between the calculated voltage of the AC power flow and the predicted voltage of the linear model in the next iteration. For the first k The nodes obtained in the next iteration are calculated using the AC power flow model. n Voltage amplitude, For the first k The nodes predicted by the linearized sensitivity model in the next iteration n Voltage amplitude.
[0083] when The iteration terminates when the voltage of all nodes and the device status meet the constraints, and the maximum number of iterations is reached but the conditions are still not met. The current candidate action is handed over to the emergency degradation module for processing.
[0084] The emergency degradation module first identifies voltage over-limit nodes and their directions. For overvoltage nodes, priority is given to equipment capable of absorbing reactive power, increasing energy storage charging, or reducing active power from renewable energy sources; for undervoltage nodes, priority is given to equipment capable of generating reactive power, increasing energy storage discharge, or reducing adjustable load. Equipment priority indicators can be expressed as: (twenty two) in, For equipment j For nodes that exceed the limit r Voltage sensitivity, For effective available capacity, For equipment availability, Cost of invocation. According to... The equipment actions are increased step by step from large to small, and a power flow check is performed after each increase.
[0085] When equipment malfunctions, fails to operate, or provides insufficient response, the response reliability is updated based on the deviation between the target action and the actual response. (twenty three) in, and respectively equipment i At any moment t and t +1 to the credibility of the response For equipment i At any moment t The actual response quantity, For the corresponding target control action, A small positive number is set to prevent the denominator from being zero. This is an update coefficient for response credibility, used to adjust the weight between historical credibility and current response deviation evaluation.
[0086] If the response reliability decreases, the effective available capacity of the device in subsequent control cycles will decrease accordingly, and other devices will automatically take on more support tasks. If all available resources are insufficient to restore voltage safety, an emergency alarm will be output, and the over-limit node, resource shortage, and suggested handling measures will be sent to the energy management system.
[0087] Figure 6 A multi-scenario verification system is demonstrated. The verification process combines meteorological scenarios, grid connection point short-circuit ratio scenarios, equipment capacity scenarios, communication status, and equipment fault status, and executes control continuously throughout 96 time periods throughout the day. In addition to voltage safety and economic indicators, the proportion of policy actions that are corrected for safety, the average correction magnitude, the failure rate of safety correction, and the number of fault degradation triggers are also statistically analyzed to evaluate the policy output quality and the burden on the safety layer.
[0088] (twenty four) in, For motion correction ratio, The average correction magnitude represents the action correction ratio. A lower action correction ratio and a smaller average correction magnitude indicate that the multi-agent policy has learned the physical constraints well; the ability to maintain a low infeasibility rate even in extreme scenarios indicates that the safety correction and fault degradation mechanisms have good robustness.
[0089] Finally, in engineering deployment, the microgrid cluster control system can adopt a distributed structure combining a central controller and regional edge controllers. The central controller is responsible for scenario generation, global power flow assessment, policy training, and model management; the regional edge controllers are responsible for policy inference, local state estimation, security correction, and device communication. The trained policy parameters are distributed from the central controller to the regional edge controllers, which can output the initial actions of their respective regions within the control cycle without waiting for the central controller to complete global optimization.
[0090] The data transmitted between the central controller and the edge controller includes policy version, scenario risk weight, grid connection point short-circuit ratio level, regional support requirements, effective available capacity of equipment, and operational alarms. The data transmitted between the edge controller and the device controller includes target active power, target reactive power, action hold time, and action priority. To avoid duplicate executions caused by network communication jitter, each control command is assigned a control cycle identifier, timestamp, and command sequence number. The device controller only executes commands with updated sequence numbers that are within their valid time window.
[0091] Multi-timescale operation includes scenario and policy update scales, rolling scheduling scales, and rapid safety correction scales. Scenario and policy updates can be performed daily or every few hours to regenerate scenarios and update policies offline based on the latest historical data; rolling scheduling is performed every 5 to 15 minutes to update source load prediction, grid connection point short-circuit ratio, and support capacity; rapid safety correction is performed at the second level or even shorter intervals to correct agent actions based on real-time voltage measurements.
[0092] To coordinate actions across different time scales, rapid safety corrections only alter actions within the feasible domain and regional support budget provided by rolling scheduling. For energy storage devices, rolling scheduling determines the allowable energy budget within the control window. The cumulative charge-discharge energy for rapid correction satisfies: (25) By setting an energy budget, it is possible to avoid insufficient State of Charge (SOC) in subsequent periods due to rapid voltage control continuously drawing upon the active power of energy storage. For inverters and reactive power compensation equipment, reactive power budgets and operation frequency budgets can be set based on heat capacity, number of operations, or switch life.
[0093] When there is a lack of sufficient actual device response data in the early stages of system operation, the reliability of the response is affected. κ Preset initial values are used. As the number of device action samples increases, the mean and variance of the response deviation are updated using an exponential weighting method, and the effective available capacity is adjusted according to the confidence interval. When the variance of the response deviation increases, even if the average response is still close to the target value, the priority of this device in safety calibration is reduced to mitigate the risk of unstable responses.
[0094] (26) in, For the effective available capacity of the equipment, The rated adjustable capacity of the equipment, For equipment availability, In response to credibility, The standard deviation of the response error, This represents the risk factor. It can be increased in scenarios with weak power grids or high-risk weather conditions. This allows for a more conservative capacity estimate for devices with unstable responses.
[0095] The grid connection point short-circuit ratio can also be updated based on online identification results. During periods of permissible small disturbances, the equivalent impedance of the upstream grid is estimated based on changes in grid connection point voltage and power. During periods unsuitable for active disturbances, recursive least squares identification is performed using measurement samples formed by natural source-load fluctuations. When the confidence level of the identification results is insufficient, the most recent reliable short-circuit ratio or a preset conservative short-circuit ratio is used.
[0096] The reward function weights and safety margins can be adaptively adjusted based on operational risk. A comprehensive risk index is defined. It is obtained by weighting the predicted voltage over-limit probability, grid connection point short-circuit ratio level, equipment support margin insufficiency rate, and communication anomaly rate: (27) in, For a moment t The comprehensive operational risk index, and These are the lower and upper safety limits for node voltage, respectively. To predict the probability of node voltages exceeding safe limits, , , , These are the weighting coefficients for voltage over-limit risk, grid connection point short-circuit ratio risk, insufficient equipment support capacity risk, and communication anomaly risk, respectively. , and They are time points t The risk indicators include the short-circuit ratio at the grid connection point, the insufficient equipment support margin, and the communication anomaly risk indicators.
[0097] When the comprehensive risk index When the voltage exceeds the limit, increase the penalty weight for voltage over-limit, the penalty weight for constraint violation, and the safety margin, while reducing the action exploration range; when When the level remains low and the equipment response is stable, the safety margin can be appropriately reduced and the economic weight increased to reduce unnecessary equipment calls.
[0098] To meet the real-time requirements of the project, the power flow Jacobian matrix and equipment constraint matrix are pre-calculated at the beginning of each control cycle. Safety correction only updates the target vector and boundary vectors related to the latest state. For continuous control cycles where the topology and equipment states have not changed, the matrix decomposition results of the previous cycle are reused as a solver hot start. Multi-agent policy reasoning and safety correction can compute local candidate actions and global constraint parameters in parallel.
[0099] When strategy inference, safety correction, or communication processes exceed the preset calculation time limit, the system executes according to the safety rollback sequence. The first rollback stage uses the target action of the previous cycle and limits the amplitude based on the latest equipment boundary; the second rollback stage uses local Volt-VAR, Volt-Watt, or energy storage SOC rules; the third rollback stage maintains the equipment's safe state and sends a manual handling alarm to the energy management system. Through the above rollback mechanism, basic voltage support capability can be maintained when computing resources are insufficient, model service is abnormal, or communication is severely interrupted.
[0100] In summary, the embodiments of this application have the following beneficial effects: First, by establishing a mapping relationship between light intensity, temperature, wind speed and photovoltaic, wind power and load demand, and retaining the temporal and spatial differences of different microgrid areas, it is possible to more accurately describe the impact of multi-source uncertainties on the grid connection point and internal node voltage after propagation through network power flow.
[0101] Second, by simultaneously assessing the short-circuit ratio at the grid connection point and the available support capacity of the equipment, the control strategy can identify strong, medium, and weak grid conditions and allocate control tasks based on the actual available capacity of energy storage, inverters, reactive power compensation equipment, and adjustable loads.
[0102] Third, the multi-agent centralized training-decentralized execution mechanism enables collaborative decision-making across multiple microgrid regions and various support devices. During the execution phase, it can quickly output control actions based on local observations, reducing reliance on global real-time communication.
[0103] The microgrid cluster multi-agent voltage control method proposed in this application can collect meteorological data from each microgrid area, establish a mapping relationship between photovoltaic and wind power output and load demand and meteorological variables, and generate a set of source-load uncertainty scenarios with spatiotemporal differences. Based on the source-load uncertainty scenario set, the voltage at the cluster grid connection point and the voltage of internal nodes are solved. Combining the short-circuit ratio at the grid connection point and the available support capacity of equipment, the state and action space of each agent is constructed. Initial control actions are output through a multi-agent collaborative strategy. The initial actions are input into a safety correction model with multiple types of operational boundary constraints to determine the target control actions. Based on the target control actions, the voltage of nodes in each microgrid area is regulated, effectively improving the voltage regulation effect and operational reliability of the microgrid cluster, and reducing the risk of voltage exceedance under multiple meteorological disturbances and weak grid conditions. This solves the problems in related technologies where only a single predicted value or independent disturbance scenario modeling is used, leading to increased risk of voltage exceedance under multiple meteorological disturbances and weak grid conditions. Furthermore, relying solely on node voltage deviations to allocate reactive power resources can easily result in the failure of regulation commands, reducing the cluster voltage regulation effect and operational reliability.
[0104] Next, referring to the accompanying drawings, a microgrid cluster multi-agent voltage control device according to an embodiment of this application is described.
[0105] Figure 7 This is a block diagram of a microgrid cluster multi-agent voltage control device according to an embodiment of this application.
[0106] like Figure 7 As shown, the microgrid cluster multi-agent voltage control device 10 includes: a setup module 100, a determination module 200, and a control module 300.
[0107] Specifically, module 100 is established to establish the mapping relationship between photovoltaic power output, wind power output and load demand and meteorological variables based on the meteorological data corresponding to each microgrid area in the microgrid cluster, and to generate a set of source-load uncertainty scenarios that meet the preset spatiotemporal difference conditions.
[0108] The determination module 200 is used to determine the grid connection point voltage and the node voltage within the microgrid cluster using the source-load uncertainty scenario set. Based on the grid connection point voltage, the node voltage within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster, it constructs the state space and action space of the target intelligent agent and outputs the initial control action of the target intelligent agent in combination with the target multi-agent cooperative control strategy.
[0109] The control module 300 is used to input the initial control action into a pre-built safety correction model that meets the preset boundary conditions, calculate the feasible solution, use the feasible solution as the target control action, and regulate the node voltage of each microgrid area in the microgrid cluster based on the target control action.
[0110] Optionally, in one embodiment of this application, the establishment module 100 includes: a first determining unit, a second determining unit, a third determining unit, a fourth determining unit, and a generation unit.
[0111] The first determining unit is used to determine the photovoltaic output of each microgrid area based on the mapping relationship, according to the solar irradiance and the temperature of the photovoltaic module.
[0112] The second determining unit is used to determine the wind power output corresponding to each microgrid area based on the mapping relationship and the relationship between wind speed and the wind turbine's cut-in wind speed, rated wind speed and cut-out wind speed.
[0113] The third determining unit is used to determine the load demand corresponding to each microgrid area based on the mapping relationship, using ambient temperature and reference load curves.
[0114] The fourth determining unit is used to determine the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error for each microgrid area based on photovoltaic output, wind power output, and load demand.
[0115] The generation unit is used to construct source-load disturbance vectors by utilizing photovoltaic power output prediction errors, wind power output prediction errors, and load demand prediction errors, and to generate a set of source-load uncertainty scenarios by combining historical sample resampling, time-series disturbance superposition, or scenario generation algorithms.
[0116] Optionally, in one embodiment of this application, the determining module 200 includes: a fifth determining unit, a sixth determining unit, and a constructing unit.
[0117] The fifth determining unit is used to determine the short-circuit ratio at the grid connection point based on the equivalent short-circuit capacity at the grid connection point of the microgrid cluster and the capacity of distributed power sources.
[0118] The sixth determining unit is used to determine the available support capacity of the equipment inside the cluster based on the operating boundary of the support equipment inside the cluster, and to set at least one of the microgrid areas, energy storage units or support equipment in the microgrid cluster as the target intelligent agent.
[0119] The building unit is used to construct the state space and action space corresponding to the target intelligent agent based on the grid connection point voltage, the node voltage inside the cluster, the short-circuit ratio of the grid connection point, and the available support capacity of the equipment inside the cluster.
[0120] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: an acquisition module and a construction module.
[0121] The acquisition module is used to acquire the voltage sensitivity relationship between the control actions of the support equipment inside the cluster and the node voltage before inputting the initial control actions into the pre-built safety correction model that meets the preset boundary conditions.
[0122] The construction module is used to build a safety correction model that meets the node voltage safety boundary, energy storage state of charge boundary, and equipment operation boundary conditions based on the voltage sensitivity relationship before inputting the initial control action into the pre-built safety correction model that meets the preset boundary conditions.
[0123] Optionally, in one embodiment of this application, the apparatus 10 of this application embodiment further includes: an update module and a control module.
[0124] The update module is used to send the target control action to the corresponding energy storage unit, inverter, reactive power compensation equipment or adjustable load after regulating the node voltage of each microgrid area in the microgrid cluster, and update the node voltage, equipment operating status and energy storage charge status of each microgrid area to obtain the new voltage, new equipment operating status and new energy storage charge status.
[0125] The control module is used to reconstruct the state space of the target intelligent agent based on the new voltage, new equipment operating status and new energy storage charge state after controlling the node voltage of each microgrid area in the microgrid cluster. Combined with the target multi-intelligent agent collaborative control strategy, the control actions are iteratively updated to continuously control the node voltage of each microgrid area until the node voltage of each microgrid area meets the preset safe voltage threshold.
[0126] It should be noted that the foregoing explanation of the embodiment of the microgrid cluster multi-agent voltage control method also applies to the microgrid cluster multi-agent voltage control device of this embodiment, and will not be repeated here.
[0127] The microgrid cluster multi-agent voltage control device proposed in this application can collect meteorological data from each microgrid area, establish a mapping relationship between photovoltaic and wind power output and load demand and meteorological variables, and generate a set of source-load uncertainty scenarios with spatiotemporal differences. Based on this set, it solves for the cluster grid connection point voltage and internal node voltages, and constructs the state and action space of each agent by combining the grid connection point short-circuit ratio and available equipment support capabilities. Initial control actions are output through a multi-agent collaborative strategy. The initial actions are input into a safety correction model with multiple operational boundary constraints to determine the target control actions. Based on these target control actions, the voltage of each node in each microgrid area is regulated, effectively improving the voltage regulation effect and operational reliability of the microgrid cluster, and reducing the risk of voltage exceedance under multiple meteorological disturbances and weak grid conditions. This solves the problems in related technologies where modeling only a single predicted value or independent disturbance scenario leads to increased voltage exceedance risk under multiple meteorological disturbances and weak grid conditions. Furthermore, relying solely on node voltage deviations to allocate reactive power resources easily results in control command failures, reducing the cluster voltage regulation effect and operational reliability.
[0128] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 801, the processor 802, and the computer program stored on the memory 801 and capable of running on the processor 802.
[0129] When the processor 802 executes the program, it implements the microgrid cluster multi-agent voltage control method provided in the above embodiments.
[0130] Furthermore, electronic devices also include: Communication interface 803 is used for communication between memory 801 and processor 802.
[0131] The memory 801 is used to store computer programs that can run on the processor 802.
[0132] The memory 801 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0133] If the memory 801, processor 802, and communication interface 803 are implemented independently, then the communication interface 803, memory 801, and processor 802 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized into address buses, data buses, control buses, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0134] Optionally, in a specific implementation, if the memory 801, processor 802, and communication interface 803 are integrated on a single chip, then the memory 801, processor 802, and communication interface 803 can communicate with each other through an internal interface.
[0135] The processor 802 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0136] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described microgrid cluster multi-agent voltage control method.
[0137] This embodiment also provides a computer program product, including a computer program, which, when executed, is used to implement the above-described microgrid cluster multi-agent voltage control method.
[0138] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0139] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0140] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0141] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0142] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0143] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0144] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0145] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A microgrid cluster multi-agent voltage control method, characterized in that, Includes the following steps: Based on the meteorological data corresponding to each microgrid area in the microgrid cluster, establish the mapping relationship between photovoltaic power output, wind power output and load demand and meteorological variables, and generate a set of source-load uncertainty scenarios that meet the preset spatiotemporal difference conditions; The grid connection point voltage and the node voltage within the microgrid cluster are determined using the source-load uncertainty scenario set. Based on the grid connection point voltage, the node voltage within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster, the state space and action space of the target intelligent agent are constructed. The initial control action of the target intelligent agent is output in combination with the target multi-agent cooperative control strategy. The initial control action is input into a pre-constructed safety correction model that meets preset boundary conditions, a feasible solution is calculated, the feasible solution is used as the target control action, and the node voltage of each microgrid region in the microgrid cluster is adjusted based on the target control action.
2. The method of claim 1, wherein, The generation of a set of source-load uncertainty scenarios that satisfy preset spatiotemporal difference conditions includes: Based on the mapping relationship, the photovoltaic output corresponding to each microgrid region is determined according to the solar irradiance and the photovoltaic module temperature. Based on the mapping relationship, the wind power output corresponding to each microgrid area is determined by combining the relationship between wind speed and wind turbine cut-in wind speed, rated wind speed and cut-out wind speed. Based on the mapping relationship, the load demand corresponding to each microgrid area is determined using ambient temperature and baseline load curves. Based on the photovoltaic output, wind power output, and load demand, the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error for each microgrid region are determined respectively. The source-load disturbance vector is constructed using the photovoltaic power output prediction error, the wind power output prediction error, and the load demand prediction error. The source-load uncertainty scenario set is then generated by combining historical sample resampling, time-series disturbance superposition, or scenario generation algorithms.
3. The method of claim 1, wherein, The process of constructing the state space and action space of the target intelligent agent based on the grid connection point voltage, the node voltages within the cluster, the grid connection point short-circuit ratio of the microgrid cluster, and the available support capacity of the equipment within the cluster includes: The short-circuit ratio at the grid connection point is determined based on the equivalent short-circuit capacity at the grid connection point of the microgrid cluster and the capacity of the distributed power source. The available support capacity of the internal equipment of the cluster is determined based on the operating boundary of the internal support equipment of the cluster, and at least one of the microgrid areas, energy storage units or support equipment in the microgrid cluster is set as the target intelligent agent. Based on the grid connection point voltage, the node voltages within the cluster, the short-circuit ratio at the grid connection point, and the available support capacity of the equipment within the cluster, the state space and action space corresponding to the target intelligent agent are constructed.
4. The method of claim 1, wherein, Before inputting the initial control action into the pre-built safety correction model that meets preset boundary conditions, the following steps are also included: Obtain the voltage sensitivity relationship between the control actions of the internal support equipment of the cluster and the node voltage; Based on the voltage sensitivity relationship, a safety correction model is constructed that satisfies the node voltage safety boundary, energy storage state of charge boundary, and equipment operation boundary conditions.
5. The method of claim 1, wherein, After regulating the node voltages of each microgrid region in the microgrid cluster, the process also includes: The target control action is sent to the corresponding energy storage unit, inverter, reactive power compensation equipment or adjustable load to update the node voltage, equipment operating status and energy storage charge status of each microgrid area, and obtain new voltage, new equipment operating status and new energy storage charge status. Based on the new voltage, new equipment operating status, and new energy storage charge state, the state space of the target intelligent agent is reconstructed. Combined with the target multi-agent collaborative control strategy, the control actions are iteratively updated to continuously regulate the node voltage of each microgrid region until the node voltage of each microgrid region meets the preset safe voltage threshold.
6. A microgrid cluster multi-agent voltage control apparatus, characterized by, include: A module is established to establish the mapping relationship between photovoltaic power output, wind power output and load demand and meteorological variables based on the meteorological data corresponding to each microgrid area in the microgrid cluster, and to generate a set of source-load uncertainty scenarios that meet the preset spatiotemporal difference conditions; The determination module is used to determine the grid connection point voltage and the node voltage within the microgrid cluster using the source-load uncertainty scenario set, and to construct the state space and action space of the target intelligent agent based on the grid connection point voltage, the node voltage within the cluster, the grid connection point short-circuit ratio of the microgrid cluster and the available support capacity of the equipment within the cluster, and to output the initial control action of the target intelligent agent in combination with the target multi-agent cooperative control strategy. The control module is used to input the initial control action into a pre-constructed safety correction model that meets preset boundary conditions, calculate a feasible solution, use the feasible solution as the target control action, and regulate the node voltage of each microgrid area in the microgrid cluster based on the target control action.
7. The apparatus of claim 6, wherein, The establishment module includes: The first determining unit is used to determine the photovoltaic output corresponding to each microgrid area based on the mapping relationship, according to the solar irradiance and the photovoltaic module temperature. The second determining unit is used to determine the wind power output corresponding to each microgrid area based on the mapping relationship and the relationship between wind speed and wind turbine cut-in wind speed, rated wind speed and cut-out wind speed. The third determining unit is used to determine the load demand corresponding to each microgrid area based on the mapping relationship and using ambient temperature and reference load curve. The fourth determining unit is used to determine the photovoltaic output prediction error, wind power output prediction error, and load demand prediction error for each microgrid area based on the photovoltaic output, wind power output, and load demand, respectively. The generation unit is used to construct a source-load disturbance vector using the photovoltaic power output prediction error, the wind power output prediction error, and the load demand prediction error, and to generate the source-load uncertainty scenario set by combining historical sample resampling, time-series disturbance superposition, or scenario generation algorithm.
8. An electronic device, comprising: include: The system includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the microgrid cluster multi-agent voltage control method as described in any one of claims 1-5.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the microgrid cluster multi-agent voltage control method as described in any one of claims 1-5.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by a processor to implement the microgrid cluster multi-agent voltage control method as described in any one of claims 1-5.
