Active power control optimization method, device, medium and product under grid connection of micro-grid
By comparing the real-time interactive power and early warning values between the microgrid and the distribution network, and executing the corresponding control mode, the problem of achieving safe and economic synergy in the active power control of microgrids in existing technologies is solved, and the rapid response and economic dispatch optimization of microgrids under emergency conditions are realized.
Patent Information
- Application Number
- CN202511849017.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-09
- Publication Date
- 2026-03-10
AI Technical Summary
Existing microgrid active power control technologies are insufficient to achieve flexible and precise economic optimization while ensuring the safe operation of the distribution network, and lack real-time dynamic security constraints and economic dispatch coordination.
By comparing the real-time interactive power between the microgrid and the distribution network with the preset upper and lower limits of interactive active power warning values, the system executes the control mode for exceeding the upper or lower limit of interactive active power warning, or the economic dispatch control mode, to ensure that power exchange is within a safe range and to achieve economic goals through internal resource scheduling optimization.
It improves the safety, stability, and economy of microgrid operation, enables rapid response and precise control in emergency situations, and ensures safe and stable interaction of the distribution network.
Smart Images

Figure CN121643077A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microgrid technology, and in particular to a method, equipment, medium, and product for active power control optimization under microgrid grid connection. Background Technology
[0002] With the increasing penetration rate of distributed energy resources, microgrids, as an important carrier integrating distributed generation, energy storage, and load, have become a key technology in the field of smart distribution networks for control optimization under grid-connected operation. However, the randomness and volatility of renewable energy output and the variability of loads have made the contradiction between power balance and security constraints increasingly prominent, placing higher demands on the active power control strategies of microgrids.
[0003] Existing microgrid active power control technologies often focus on a single objective, either performing optimal dispatch with economic efficiency as the primary goal and lacking real-time coordination with grid security constraints, or only implementing corrective control after limits are exceeded, resulting in delayed response and poor economic efficiency. These methods struggle to achieve real-time dynamic optimization of economic efficiency within the safe operating boundary, and cannot flexibly and accurately track market signals and maximize the operational benefits of the microgrid while ensuring the safe operation of the distribution network. Summary of the Invention
[0004] This invention provides a method, device, medium, and product for active power control optimization under microgrid grid connection, which can achieve dynamic balance and automatic switching between safety constraints and economic optimization.
[0005] According to one aspect of the present invention, an active power control optimization method for microgrid grid connection is provided, the method comprising:
[0006] The real-time interaction power between the microgrid and the distribution network is compared with the preset upper and lower warning values of the interaction active power.
[0007] If the real-time interactive power is greater than the preset upper limit warning value of active power, then the super interactive active power upper limit warning working condition control mode is executed.
[0008] If the real-time interactive power is less than the preset lower limit warning value of active power, then the super interactive active power lower limit warning working condition control mode is executed.
[0009] If the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed.
[0010] According to another aspect of the present invention, an active power control optimization device for microgrid grid connection is provided, the device comprising:
[0011] The judgment module is used to compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0012] The over-limit control module is used to execute the over-interactive active power upper limit warning working condition control mode if the real-time interactive power is greater than the preset upper limit warning value of active power.
[0013] The lower limit control module is used to execute the lower limit warning mode of the active power if the real-time interactive power is less than the preset lower limit warning value of the active power.
[0014] The economic dispatch control module is used to execute the economic dispatch control mode if the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform an active power control optimization method for microgrid grid connection as described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the active power control optimization method for microgrid grid connection as described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer program product is also provided, including computer instructions that, when executed by a processor, implement the steps of the method as described in any embodiment of the present invention.
[0021] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. If the real-time interactive power is greater than the upper warning value, the control mode of exceeding the upper warning value for interactive active power is executed; if the real-time interactive power is less than the lower warning value, the control mode of exceeding the lower warning value for interactive active power is executed; and if the real-time interactive power is between the upper and lower warning values, the economic dispatch control mode is executed. This novel active power control optimization scheme under microgrid grid connection can effectively improve the safety, stability, and economy of microgrid operation, and achieve optimized dispatch and efficient utilization of resources within the microgrid while ensuring the safe operation of the distribution network.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of an active power control optimization method for microgrid grid connection provided in Embodiment 1 of the present invention;
[0025] Figure 2 This is a flowchart of another active power control optimization method under microgrid grid connection provided by Embodiment 2 of the present invention;
[0026] Figure 3 This is a flowchart of another active power control optimization method under microgrid grid connection provided by Embodiment 3 of the present invention;
[0027] Figure 4 This is a flowchart of another active power control optimization method under microgrid grid connection provided by Embodiment 4 of the present invention;
[0028] Figure 5 This is a flowchart of another active power control optimization method under microgrid grid connection provided by Embodiment 5 of the present invention;
[0029] Figure 6 This is an overall framework diagram of an active power optimization control method for a microgrid in a specific scenario applicable to the embodiments of the present invention.
[0030] Figure 7This is a control flowchart of an interactive power control module applicable to a specific scenario in which this invention is implemented;
[0031] Figure 8 This is a control flowchart of economic scheduling control mode 1 in a specific scenario applicable to the embodiments of the present invention;
[0032] Figure 9 This is a control flowchart of economic scheduling control mode 2 in a specific scenario applicable to the embodiments of the present invention;
[0033] Figure 10 This is a schematic diagram of the active power control optimization device under microgrid grid connection according to Embodiment Six of the present invention;
[0034] Figure 11 This is a schematic diagram of the structure of an electronic device that implements a microgrid grid-connected active power control optimization method according to an embodiment of the present invention. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0037] Example 1
[0038] Figure 1 This is a flowchart of an active power control optimization method under microgrid grid connection provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of safe and economical coordinated control when microgrid is running under grid connection. The method can be executed by an active power control optimization device under microgrid grid connection. The device can be implemented in hardware and / or software and can generally be configured in electronic equipment.
[0039] Correspondingly, such as Figure 1 As shown, the method includes:
[0040] S110. Compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0041] In this embodiment, real-time active power measurements at the connection point between the microgrid and the distribution network are first collected and compared with pre-configured upper and lower power warning values. By continuously monitoring power exchange, it is determined whether the current operating state deviates from the safe range, providing a basis for selecting the subsequent control mode. The upper warning value represents the maximum power allowed to be transmitted from the microgrid to the distribution network, and the lower warning value represents the maximum power allowed to be absorbed by the microgrid from the distribution network. The comparison result directly determines the direction of the subsequent control mode.
[0042] S120. If the real-time interactive power is greater than the preset upper limit warning value of active power, then execute the upper limit warning control mode of the super interactive active power.
[0043] In this embodiment, when the real-time power value exceeds the upper limit warning value, it indicates that the power fed back from the microgrid to the distribution network has exceeded the safety limit, which may violate grid specifications, impact the grid, and pose a risk of fines. At this time, the over-limit warning control mode is immediately triggered. This mode aims to quickly reduce excess power by adjusting internal microgrid resources, such as increasing energy storage charging, increasing load power consumption, or reducing generation output, to suppress power transmission, prevent further deterioration of the operating state, and ensure the safety and stability of the interconnection points.
[0044] S130. If the real-time interactive power is less than the preset lower limit warning value of active power, then execute the super interactive active power lower limit warning working condition control mode.
[0045] In this embodiment, when the real-time power value is lower than the lower limit warning value, it indicates that the microgrid is drawing too much power from the distribution network, leading to increased power demand and potentially causing line or transformer overload. At this point, the lower limit warning control mode is immediately triggered. This mode aims to quickly reduce power demand by adjusting internal resources, such as increasing energy storage discharge, increasing power generation output, or reducing interruptible load power consumption, to reduce dependence on the distribution network, avoid impacting the distribution network, and maintain power exchange within a reasonable range.
[0046] S140. If the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed.
[0047] In this embodiment, when the real-time power value is within the safe range between the upper and lower warning values, it indicates that the power exchange is in a stable state, and economic operation is prioritized. An economic dispatch control mode is executed. This mode optimizes the power allocation of distributed power sources, energy storage, and loads within the microgrid, aiming for the lowest cost or maximum benefit, while continuously monitoring the power value to ensure it does not exceed limits, thus achieving economic optimization under safe conditions.
[0048] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. If the real-time interactive power is greater than the upper warning value, the control mode of exceeding the upper warning value for interactive active power is executed; if the real-time interactive power is less than the lower warning value, the control mode of exceeding the lower warning value for interactive active power is executed; and if the real-time interactive power is between the upper and lower warning values, the economic dispatch control mode is executed. This novel active power control optimization scheme under microgrid grid connection can effectively improve the safety, stability, and economy of microgrid operation, and achieve optimized dispatch and efficient utilization of resources within the microgrid while ensuring the safe operation of the distribution network.
[0049] Example 2
[0050] Figure 2 This is a flowchart of another active power control optimization method under microgrid grid connection provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiments and optimized. Specifically, the step of "if the real-time interactive power is greater than the preset upper limit warning value of active power, then execute the upper limit warning operating condition control mode of super interactive active power" has been refined.
[0051] Correspondingly, such as Figure 2 As shown, the method includes:
[0052] S210. Compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0053] Furthermore, based on the above embodiments, before comparing the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power, the method may further include:
[0054] Multiply the upper limit value of interactive active power by the upper limit warning coefficient to obtain the upper limit warning value of interactive active power;
[0055] Multiply the lower limit value of interactive active power by the lower limit warning coefficient to obtain the lower limit warning value of interactive active power;
[0056] Among them, the upper limit warning value of interactive active power is non-negative, and the lower limit warning value of interactive active power is negative.
[0057] Generally, the upper limit of interactive active power can be understood as the maximum allowable power that a microgrid can transmit to the distribution network. It limits extreme cases of reverse power and prevents excessive backflow from impacting the grid, such as through anti-reverse current control. The upper limit of interactive active power is typically determined by local grid regulations. The upper limit warning value can be understood as a lower threshold obtained by multiplying the actual power upper limit by a warning coefficient. Its function is to establish a safety buffer zone; when the power approaches this warning value, a control mechanism is triggered to avoid directly impacting physical limits. The upper limit warning value of interactive active power is obtained by multiplying the upper limit of interactive active power by the upper limit warning coefficient. This upper limit warning value constrains the upper limit of power that the microgrid can transmit back to the distribution network; therefore, the upper limit warning value of interactive active power is non-negative.
[0058] Generally, the lower limit of interactive active power can be understood as the maximum allowable power that a microgrid can absorb from the distribution network. This value is determined by the limits of physical equipment such as line capacity and transformer load capacity, and is a hard constraint to ensure the safe operation of the power grid. The lower limit warning coefficient can be understood as a multiplier less than 1, used to calculate the warning threshold based on the lower power limit. By setting a conservative control boundary in advance, it provides a warning buffer and response time for power absorption exceeding the limit. The lower limit of interactive active power is obtained by multiplying the lower limit of interactive active power by the lower limit warning coefficient. This lower limit warning value is used to constrain the upper limit of power that the microgrid can draw from the distribution network, so the lower limit warning value of interactive active power is negative.
[0059] S220. The negative value obtained by subtracting the real-time interactive power from the upper limit warning value of the active power is used as the target adjustment increment DeltaP, which is the amount of output that needs to be reduced compared to the upper limit warning value with real-time interactive power.
[0060] In this embodiment, when the real-time interactive power exceeds the upper limit warning value, the excess power needs to be precisely calculated. By subtracting the real-time interactive power from the upper limit warning value, a negative result is obtained, and the absolute value of this result is the total power that needs to be reduced. This value is defined as the target adjustment increment, which quantifies the degree of deviation between the current power level and the safety boundary, providing a clear quantitative target for subsequent power adjustment.
[0061] S230. With the goal of reducing the output power of the microgrid to the distribution network, obtain the power regulation rate of each controllable device in the microgrid, and sort the controllable devices in descending order of power regulation rate to obtain the device control priority sequence.
[0062] Controllable devices can be understood as various power generation and consumption devices within a microgrid that have power regulation capabilities and can accept dispatch commands from a central controller. These mainly include distributed generation units, energy storage systems, and flexible loads. These devices can quickly adjust their output or consumption of active power within a certain range according to control requirements, thereby achieving precise control over the overall operating status of the microgrid.
[0063] In this embodiment, to achieve rapid and effective power regulation, the regulation capabilities of all controllable devices within the microgrid need to be evaluated. By collecting the maximum power change rate parameters of each device, they are sorted in descending order of response speed to form a priority dispatch sequence. This sorting method ensures that in emergency situations, the device with the fastest response speed can be dispatched first, thereby achieving rapid power adjustment and minimizing regulation time.
[0064] S240. In the device control priority sequence, one controllable device i is obtained sequentially, according to the formula: Calculate the adjustment increment allocated to controllable device i ;
[0065] Where i∈[1,N], and N is the total number of controllable devices included in the device control priority sequence. Let i be the minimum power of the controllable device. The current real-time power of controllable device i.
[0066] In this embodiment, controllable devices are processed one by one according to a predetermined priority order. For the currently selected device, the maximum adjustment capacity that the device can provide in the current operating state is first calculated, which is the difference between its minimum power and real-time power. Then, the adjustment capacity of this device is compared with the remaining total power increment that needs to be adjusted, and the smaller value is taken as the actual adjustment task allocated to the device.
[0067] S250, reduce the adjustment increment allocated to controllable device i using the original target adjustment increment DeltaP. The results are used to update the incremental DeltaP as the new target.
[0068] In this embodiment, once the adjustment task assigned to the current device is determined, the overall power adjustment requirement needs to be updated immediately. Specifically, the portion actually handled by the device is subtracted from the total power to be adjusted, thus obtaining the remaining power that still needs to be absorbed by subsequent devices. The key to this dynamic update mechanism is that each device only needs to complete the adjustment amount assigned to it. This adjustment amount may be less than the device's own adjustment capacity limit, therefore it is not necessarily necessary to adjust the device to its lower power limit. This method ensures the accurate execution of the adjustment task while avoiding unnecessary deep adjustments to the devices, thereby guaranteeing the efficiency and rationality of the control process.
[0069] S260. Determine whether the new target adjustment increment DeltaP is non-negative: if yes, then determine that the execution of the super-interactive active power upper limit warning operating condition control mode is completed; otherwise, return to execute S240 until the termination execution condition is met.
[0070] In this embodiment, the completion of the adjustment task is determined by continuously monitoring the changes in the remaining adjustment amount. When the remaining adjustment amount becomes non-negative, it indicates that the total adjustment demand has been met, and the adjustment process can be terminated. If the remaining adjustment amount is still negative, it means that subsequent devices need to be called in to participate in the adjustment until all available devices participate in the adjustment or the adjustment demand is met.
[0071] In an optional implementation of this embodiment, microgrid A includes: a 50kW wind power unit, a 50kW photovoltaic unit, a 50kW diesel generator, a 50kW fuel power generation system, a 120kW load, and a 100kW / 233kWh lithium battery energy storage system. Power transmitted from the microgrid to the distribution network is considered positive, power transmitted from the distribution network to the microgrid is considered negative, power generation is positive, power consumption is negative, energy storage discharge is positive, and charging is negative. The upper limit of the interaction power between microgrid A and the distribution network is also defined. With upper limit warning coefficient Interactive active power lower limit With lower limit warning coefficient Real-time interactive power The current real-time power of wind power, photovoltaic power, fuel cells, lithium battery energy storage, diesel generators, and loads. The capacities are 30kW, 35kW, 20kW, 20kW, 55kW, and -40kW respectively, with a real-time SOC of 95% for lithium-ion battery storage. The minimum power ratings for wind power, solar power, fuel cells, lithium-ion battery storage, diesel generators, and loads are also specified. The corresponding values are 0kW, 0kW, 0kW, 0kW, 0kW, and –120kW.
[0072] Set the upper limit of active power for interaction between the microgrid and the distribution network. With upper limit warning coefficient Interactive active power lower limit With lower limit warning coefficient Obtain real-time interactive active power According to real-time interaction power The size is determined by the control mode according to the following rules:
[0073] when When the real-time interactive active power of 120kW exceeds the upper limit warning value of 90kW, an over-limit warning is triggered, and the system enters the interactive power control mode.
[0074] The real-time interactive active power of 120kW exceeds the upper limit warning value of 90kW, which is an over-limit warning condition. The total target adjustment increment is calculated according to the formula. This means that the power output from the microgrid to the distribution network needs to be reduced by 30kW. According to the preset parameters, the obtained load increase regulation rate is 3kW / s, and the power reduction regulation rates for wind power, photovoltaic, fuel cell, and diesel generator are 7.5kW / s, 10kW / s, 5kW / s, and 12kW / s, respectively. The regulation rate for energy storage is 330kW / s. Therefore, under this operating condition, the control priority of the equipment is as follows: lithium battery energy storage, diesel generator, photovoltaic, wind power, fuel cell, and load.
[0075] First, control the energy storage to reduce discharge power and update the calculation of the remaining total regulation demand DeltaP; then control the diesel generator to reduce power generation. Update and calculate the remaining total adjustment demand again. ,conform to The judgment conditions are met, and the adjustment is complete.
[0076] S270. If the real-time interactive power is less than the preset lower limit warning value of active power, then execute the super interactive active power lower limit warning working condition control mode.
[0077] S280. If the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed.
[0078] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. When the real-time interactive power exceeds the upper warning value, the amount of power to be reduced is calculated and a priority sequence is generated according to the equipment adjustment rate. Adjustment increments are allocated to each device in sequence, and the remaining adjustment amount is updated until the power reduction target is achieved. When the real-time interactive power is less than the lower warning value, the corresponding warning control mode is executed. When the real-time interactive power is within the warning value range, the economic dispatch control mode is executed. This novel active power control optimization scheme under microgrid grid connection can achieve rapid response and precise control in the case of power exceeding the limit by calculating the power deviation and allocating the equipment adjustment amount based on the adjustment rate priority, ensuring that the microgrid can still maintain stable power exchange with the distribution network in emergency conditions.
[0079] Example 3
[0080] Figure 3This is a flowchart of another active power control optimization method under microgrid grid connection provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiments and optimized. Specifically, the step of "if the real-time interactive power is less than the preset lower limit warning value of active power, then execute the super interactive active power lower limit warning operating condition control mode" has been refined.
[0081] Correspondingly, such as Figure 3 As shown, the method includes:
[0082] S310. Compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0083] S320. If the real-time interactive power is greater than the preset upper limit warning value of active power, then execute the upper limit warning control mode of the super interactive active power.
[0084] S330. The positive value obtained by subtracting the real-time interactive power from the lower limit warning value of the active power is used as the target adjustment increment DeltaP that the real-time interactive power needs to increase in output compared to the lower limit warning value.
[0085] In this embodiment, when the real-time interaction power between the microgrid and the distribution network is lower than a preset lower warning value, it is necessary to calculate the difference between the current power and the warning value. This difference is positive and serves as the target adjustment amount for increasing the output power. This calculation process is achieved by subtracting the real-time interaction power from the lower warning value. The resulting positive value reflects the scale of increased power output required to restore the power to a safe range.
[0086] S340. With the goal of increasing the output power of the microgrid to the distribution network, obtain the power regulation rate of each controllable device in the microgrid, and sort the controllable devices in descending order of power regulation rate to obtain the device control priority sequence.
[0087] In this embodiment, the control scheme aims to increase the power transmitted from the microgrid to the distribution network, requiring the identification of the regulation capabilities of each controllable device within the microgrid. By collecting the power regulation rate parameters of each device and arranging them in descending order of response speed, a priority sequence for device invocation is formed. This sorting method ensures that when a rapid increase in output power is needed, the device with the fastest response speed is invoked first, thereby improving overall regulation efficiency.
[0088] S350, In the equipment control priority sequence, one controllable device i is obtained sequentially, according to the formula:
[0089] Calculate the adjustment increment allocated to controllable device i ;
[0090] Where i∈[1,N], and N is the total number of controllable devices included in the device control priority sequence. The maximum power of controllable device i. The current real-time power of controllable device i.
[0091] In this embodiment, after determining the device call order, each controllable device is processed sequentially according to priority. For the currently selected device, its maximum adjustable capacity is first evaluated, which is the difference between the device's maximum power and the current real-time power. Then, this device's adjustable capacity is compared with the remaining total power increment that needs to be adjusted, and the smaller value is taken as the actual adjustment task allocated to that device. This method ensures that no single device exceeds its operating limit while also ensuring the reasonable allocation of adjustment tasks.
[0092] S360, Subtract the adjustment increment allocated to controllable device i from the original target adjustment increment DeltaP. The results are used to update the incremental DeltaP as the new target.
[0093] In this embodiment, after determining the adjustment task for a single device, the overall adjustment demand needs to be updated in real time. The remaining power to be adjusted is obtained by subtracting the adjustment amount already allocated to the current device from the total adjustment amount. This update process ensures the continuity and accuracy of the power adjustment task, providing the latest reference data for the adjustment allocation of subsequent devices.
[0094] S370. Determine whether the new target adjustment increment DeltaP is non-positive: if yes, then determine that the execution of the super-interactive active power lower limit early warning operating condition control mode is completed; otherwise, return to execute S350 until the termination execution condition is met.
[0095] In this embodiment, the completion of the adjustment task is determined by continuously monitoring the changes in the remaining adjustment amount. When the remaining adjustment amount becomes non-positive, it indicates that the total adjustment demand has been exceeded, and the adjustment process can be terminated. If the remaining adjustment amount remains positive, it means that subsequent devices need to be called upon to participate in the adjustment until all available devices participate in the adjustment or the adjustment demand is met. This judgment mechanism ensures the integrity and reliability of the adjustment process.
[0096] In an optional implementation of this embodiment, based on microgrid A and other parameter configurations, if the real-time interactive active power (-150kW) is less than the lower limit warning value (-135kW), the system enters the interactive power control mode. When the real-time interactive active power (-150kW) is less than the lower limit warning value (-135kW), it is considered an over-lower limit warning condition, and the total target adjustment increment is calculated according to the formula. This requires an additional 15kW of microgrid output power. Based on the parameter settings, the obtained load reduction regulation rate is 5kW / s. The regulation rates for wind power, photovoltaic, fuel cell, and diesel generator are 7kW / s, 10kW / s, 4kW / s, and 6kW / s, respectively, while the regulation rate for energy storage is 330kW / s. Therefore, under this operating condition, the control priority of the equipment is as follows: lithium battery energy storage, photovoltaic, wind power, and diesel generator. Controlling the energy storage to reduce charging power or increase discharging power allocates an incremental regulation. Update the calculation of the remaining total adjustment requirements. ,conform to The judgment conditions are met, and the adjustment is complete.
[0097] S380. If the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed.
[0098] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for the interactive active power. When the real-time interactive power exceeds the upper warning value, an over-upper warning control mode is executed. When the real-time interactive power is less than the lower warning value, the target adjustment increment that needs to be increased is calculated and a priority sequence is generated according to the power adjustment rate of the equipment. The adjustment increment is then allocated to each equipment in turn, and the remaining adjustment amount is updated until the power improvement target is achieved. When the real-time interactive power is within the warning value range, an economic dispatch control mode is executed. This novel active power control optimization scheme under microgrid grid connection can achieve rapid response and precise control of power adjustment needs under different operating conditions by calculating power deviation in real time and allocating equipment tasks based on adjustment capability priority. This ensures that the microgrid can maintain safe and stable interaction with the distribution network under various operating conditions.
[0099] Example 4
[0100] Figure 4 This is a flowchart of another active power control optimization method under microgrid grid connection provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiments and optimized. Specifically, the step of "if the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed" has been refined.
[0101] Correspondingly, such as Figure 4 As shown, the method includes:
[0102] S410. Compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0103] S420. If the real-time interactive power is greater than the preset upper limit warning value of active power, then execute the upper limit warning control mode of the super interactive active power.
[0104] S430. If the real-time interactive power is less than the preset lower limit warning value of active power, then execute the super interactive active power lower limit warning working condition control mode.
[0105] S440. If the real-time interactive power is between 0 and the upper limit warning value of active power, then according to the relationship between the net profit unit price of each power source in the microgrid and the preset minimum expected price, each power source will be divided into an increase generation queue or a decrease generation queue.
[0106] In this embodiment, when the real-time interactive power between the microgrid and the distribution network is within the safe range of zero to the upper limit warning value, the control scheme will activate the economic dispatch mode. This mode first divides the power generation units into two working groups based on the power generation cost-effectiveness indicators of each power source within the microgrid: power sources with higher net profit per unit price are included in the increase generation queue to prepare for increased output, while those with lower unit prices are included in the decrease generation queue to prepare for reduced output. This grouping lays the foundation for the subsequent priority dispatch of high-efficiency power sources.
[0107] S450. Sort the power sources in the power generation queue according to the order of net profit per unit price of power generation from large to small, and sort the power sources in the power reduction queue according to the order of net profit per unit price of power generation from small to large.
[0108] In this embodiment, priority ranking is performed immediately after grouping is determined. Following the principle of maximizing economic benefits, the power sources in the power generation increase queue are ranked from highest to lowest based on their net profit per unit price, ensuring priority is given to increasing the output of the most profitable power sources. Simultaneously, the power sources in the power generation decrease queue are ranked from lowest to highest based on their unit price, ensuring priority is given to reducing the output of the least profitable power sources. This dual ranking mechanism establishes a complete economic dispatch priority system.
[0109] S460. According to the priority of the additional issuance, calculate the additional issuance adjustment increment of each power source in the additional issuance queue in turn, and sum them up to obtain the total adjustment increment of all power sources in the additional issuance queue.
[0110] In this embodiment, after prioritizing the power increase queue and the power decrease queue, the upper limit of the power output that each power source in the queue can increase is calculated in turn according to the predetermined power increase priority order. This upper limit is determined by the difference between the maximum allowable power of the power source and its current actual output power. Then, the power increase potential of all power sources in the queue is accumulated to obtain the maximum total power increase capacity that the entire power increase queue can provide. This step provides an accurate quantitative basis for subsequent economic power regulation.
[0111] S470. According to the preset power reduction priority, calculate the power reduction adjustment increment of each power source in the power reduction queue in turn, and sum them up to obtain the total adjustment increment of power reduction of all power sources in the power reduction queue.
[0112] In this embodiment, the same processing logic as that used for the power generation reduction queue is employed to calculate the adjustment capability of the power generation reduction queue. Based on the pre-arranged power reduction priority, the lower limit of the power that can be reduced by each power source is evaluated one by one. This lower limit value also depends on the operating range of the power source and its current output level. Then, the power reduction amounts of all power sources in the power reduction queue are accumulated to obtain the total power reduction capability that the entire queue can achieve, thereby fully understanding the power regulation range that can be achieved by adjusting power generation within the microgrid.
[0113] S480. Add the increased total regulation increment to the decreased total regulation increment to obtain the current total regulation increment of the microgrid.
[0114] In this embodiment, after obtaining the adjustment capabilities of each queue, it is necessary to calculate the overall adjustment effect. The scheme algebraically adds the total increase in power generation to the total decrease in power generation to obtain the net increase in the overall adjustability of the microgrid. This value reflects the scale of power regulation that can be achieved under the current economic dispatch strategy.
[0115] S490. If the current total microgrid regulation increment is less than the negative of the current real-time interactive power, then starting from the power source at the tail of the power reduction queue, the original power reduction regulation increment allocated to each power source will be reduced sequentially until the end of regulation conditions is met.
[0116] In this embodiment, after obtaining the total adjustment increment, it is compared with the real-time interactive power. If it is found that the total adjustment increment fails to meet the current required adjustment, a reverse adjustment mechanism is activated. Specifically, starting from the end of the power reduction queue, that is, starting from the power sources with higher net profit per unit price, the power reduction task originally allocated to them is reduced in sequence. This adjustment method starting from the end of the queue can prioritize ensuring that the power sources with better economic benefits are spared unnecessary power reduction, thereby maximizing the economic efficiency of microgrid operation while meeting the power regulation requirements.
[0117] S4100. If the total adjustment increment is greater than the remaining safety value of the real-time interactive power value from the upper limit warning value, then starting from the tail power supply of the power supply in the power supply queue, the power supply adjustment increment originally allocated to each power supply will be reduced sequentially until the end adjustment condition is met.
[0118] In this embodiment, the scheme verifies whether the adjustment amount exceeds the safety constraints. If the calculated total adjustment amount excessively reduces the microgrid output power, causing the power to go from the grid to the off-grid, then the reduction tasks of the more efficient power sources are reduced starting from the end of the reduction queue. If the total adjustment amount excessively increases the microgrid output power, causing the positive power to exceed the limit, then the increase tasks of the less efficient power sources are reduced starting from the end of the increase queue. This two-way verification ensures that economical operation does not exceed the safety boundary.
[0119] In an optional embodiment of this example, microgrid A operates in the following state: the real-time SOC of the lithium battery storage is 35%, and the current real-time power of wind power, photovoltaic, fuel cell, lithium battery storage, and diesel generator is [data missing]. The maximum power outputs are 10kW, 40kW, 20kW, 10kW, and 15kW respectively. The minimum power ratings are 35kW, 40kW, 20kW, 100kW, and 50kW respectively. The power generation net profit per kWh of microgrid A is 0 kW, 0 kW, 0 kW, -100 kW, and 0 kW respectively, with respective net profit per kWh of 0.34 yuan / kWh, 0.33 yuan / kWh, 0.23 yuan / kWh, 0.29 yuan / kWh, and 0.08 yuan / kWh. The minimum expected price is 0.12 yuan / kWh. The real-time interaction power between microgrid A and the distribution network is also described. The upper limit warning value is 90kW, and the real-time interactive active power is between 0-90kW, so it enters the economic dispatch control mode.
[0120] According to the queuing rules, wind power, solar power, fuel cells, and energy storage, whose net profit per unit price is higher than the minimum expected price, belong to the additional issuance queue, with the priority order as follows: wind power, solar power, lithium battery energy storage, and fuel cells. Only diesel generators, whose net profit per unit price is lower than the minimum expected price, belong to the reduced issuance queue. Additional issuance adjustments will be allocated to wind power, solar power, lithium battery energy storage, and fuel cells. They are respectively: 25kW, 0kW, 90kW, and 0kW, representing the total regulatory increment of all power sources in the additional generation queue. ; Diesel engine reduction adjustment increment The total adjustment increment for power reduction is -15kW, representing the total power reduction of all power sources in the power reduction queue. Also -15kW. Combining the total regulation increment from increased generation and decreased generation, the current total regulation increment of the microgrid is... .because Therefore, due to excessive issuance, power sources are selected sequentially from the end of the issuance sequence to reduce the originally allocated issuance increment, and the adjusted lithium battery energy storage increment is adjusted accordingly. Other power supplies do not require modification.
[0121] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. If the real-time interactive power is greater than the upper warning value, an over-upper warning control mode is executed; if the real-time interactive power is less than the lower warning value, an over-lower warning control mode is executed. If the real-time interactive power is between zero and the upper warning value, the power source is divided into an increasing generation queue and a decreasing generation queue based on the unit price of net power generation. The queues are prioritized according to their unit price, and the adjustment increment of each queue is calculated and accumulated to obtain the total adjustment increment. When the total adjustment amount does not meet the requirements, the allocation amount is adjusted in reverse from the tail of the queue. Through this combination of multi-mode adaptive switching and economic priority scheduling, precise active power control that coordinates safety constraints and economic optimization in different operating states of the microgrid is achieved.
[0122] Example 5
[0123] Figure 5 This is a flowchart of another active power control optimization method under microgrid grid connection provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiments and optimized. Specifically, the step of "if the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power, then the economic dispatch control mode is executed" has been refined.
[0124] Correspondingly, such as Figure 5 As shown, the method includes:
[0125] S510. Compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0126] S520. If the real-time interactive power is greater than the preset upper limit warning value of active power, then execute the upper limit warning control mode of the super interactive active power.
[0127] S530. If the real-time interactive power is less than the preset lower limit warning value of active power, then execute the super interactive active power lower limit warning working condition control mode.
[0128] S540. If the real-time interactive power is between the lower limit warning value of active power and zero, then determine the current electricity price period.
[0129] In this embodiment, when the real-time interaction power between the microgrid and the distribution network is within the operating range between the lower warning value and zero, the control scheme first determines the operating mode based on the current electricity price period characteristics. If the current period is a low-price off-peak period, the corresponding economic optimization control strategy is activated to maximize operating efficiency by adjusting internal resources.
[0130] S550. If it is a valley segment, the maximum allowable total target adjustment increment of the microgrid is obtained under the condition that it does not exceed the lower limit warning value of active power.
[0131] In this embodiment, after determining the valley operation mode, and provided that the active power lower limit warning value is not exceeded, it is necessary to calculate the maximum allowable power adjustment range under the current state. The lower limit of this adjustment range is determined by a preset safe operation boundary. By calculating the difference between the current real-time power and the minimum allowable power, the upper limit of the total amount of power that can be safely adjusted is obtained, providing a quantitative basis for subsequent resource scheduling.
[0132] S560: Obtain each target energy storage device in the microgrid that is currently in a state of insufficient standby capacity, and sort each target energy storage device in ascending order of real-time charge status.
[0133] In this embodiment, after determining the total adjustment amount, priority is given to scheduling energy storage devices. The scheme will screen out energy storage units with insufficient current energy storage capacity, sort them in order of remaining capacity from low to high, and prioritize charging the energy storage device with the least power. This can effectively improve the overall energy storage level of the system and ensure that each energy storage device is in the best working condition.
[0134] S570. According to the sorting results, one target energy storage device is obtained in sequence for charging operation until the cumulative adjustment increment of the charging operation reaches the total target adjustment increment.
[0135] In this embodiment, after entering the valley control mode, the target energy storage devices are called sequentially according to the predetermined sorting results to perform charging operations. The total adjustment progress is tracked by accumulating the charging power increment of each device in real time until the cumulative charging amount reaches the predetermined total target adjustment increment. This on-demand allocation and sequential accumulation method can ensure the accuracy of power adjustment and avoid overcharging of energy storage devices.
[0136] S580. If it is determined that the cumulative adjustment increment after all target energy storage devices have been charged still does not reach the total target adjustment increment, then the load devices in the microgrid shall be sorted in descending order of load capacity.
[0137] In this embodiment, if the cumulative adjustment amount still fails to reach the total target requirement after all eligible energy storage devices have participated in charging, the load adjustment phase is automatically started. At this time, the load devices are sorted from largest to smallest according to their load capacity, and load devices with large adjustable capacity are selected for priority use, so as to make the maximum use of the adjustment potential of the load side to make up for the deficiency of energy storage adjustment.
[0138] S590. According to the sorting results, one load device is obtained in sequence for load increase processing until the cumulative adjustment increment of the load increase processing reaches the total target adjustment increment.
[0139] In this embodiment, after determining the load call order, the load increase function of each load device is activated sequentially according to the sorting result. By monitoring the actual increase in power consumption of each load device in real time and continuously accumulating its increment until the accumulated increase in load consumption meets the overall target adjustment requirements, this hierarchical control strategy of prioritizing energy storage and reserving loads ensures both adjustment efficiency and the economic efficiency of system operation.
[0140] Furthermore, based on the above embodiments, after determining the current electricity price period, the method may further include:
[0141] If it is a peak, high-peak, or flat period, the power taken by the microgrid from the distribution network needs to be reduced. The maximum total target adjustment increment of the microgrid is calculated with zero power off the grid as the target. Then, the relationship between the maximum total target adjustment increment and the cumulative adjustment increment after all energy storage stops charging is compared.
[0142] If the cumulative adjustment increment is greater than or equal to the maximum total target adjustment increment, the energy storage that is being charged is sorted from largest to smallest according to the real-time state of charge, and the energy storage is selected in turn to stop charging and the remaining maximum total target adjustment increment is updated until the total target adjustment increment is met.
[0143] If the cumulative adjustment increment is less than the maximum total target adjustment increment, the power sources are sorted from largest to smallest according to their net profit per unit price for power generation, and power sources are selected in turn to increase their output power until the total target adjustment increment is met.
[0144] If the power generation still cannot meet the demand, the loads are sorted from largest to smallest according to their load reduction capacity, and loads are selected for load reduction in turn according to the load sorting results until the load adjustment increment meets the overall target adjustment increment.
[0145] Generally, when a microgrid is in a period of high electricity prices, such as peak, mid-peak, or flat periods, the maximum total target regulation increment of the microgrid should be calculated with zero grid power as the target. Therefore, the control scheme first assesses the relative magnitude between the current total power regulation demand and the total regulation capacity that can be provided after all energy storage devices stop charging. By comparing the numerical relationship between these two values, it can be determined whether adjusting the charging status of energy storage devices alone can meet the power regulation target, or whether it is necessary to further utilize other resources for regulation.
[0146] Generally, if the total regulation capacity provided by the energy storage devices after they stop charging is sufficient to cover the required power regulation, the solution will prioritize the charging energy storage units. The energy storage devices are sorted from highest to lowest current state of charge, with those having higher current states of charge prioritized for stopping charging, as these devices have lower charging demands and their stopping charging has less impact on the system. Subsequently, each device is assigned the task of stopping charging, and the remaining power to be regulated is updated in real time until the cumulative regulation reaches the total target.
[0147] Generally, if the regulation capacity provided by the energy storage device after it stops charging is insufficient to meet total demand, the solution will then utilize additional power generation resources. Based on the net profit per unit price of each power generation unit, ranked from highest to lowest, the unit with the best economic efficiency is prioritized to increase output power, thereby achieving power regulation at the lowest cost. Each power generation unit is assigned additional power generation tasks according to its maximum available additional power and current operating status, and the remaining regulation demand is gradually updated until the target is met or all available power generation resources have been utilized.
[0148] Generally, when increased power generation still cannot fully meet power regulation needs, the system will eventually activate load-side management. Load devices are prioritized for load shedding based on their capacity from highest to lowest, with those having the greatest potential for adjustment selected first. This reduces electricity demand to balance the power gap. Each load device is assigned a task based on its available shedding capacity, and the remaining regulation amount is continuously updated until the cumulative load shedding reaches the total target regulation amount.
[0149] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. If the real-time interactive power is greater than the upper warning value, an upper limit warning control mode is executed; if the real-time interactive power is less than the lower warning value, an lower limit warning control mode is executed; if the real-time interactive power is between the lower warning value and zero, it is further determined that the current electricity price period is a valley period, and a valley period control mode is activated. First, the maximum allowable total target adjustment increment is calculated. Then, energy storage devices with insufficient reserve capacity are sorted from smallest to largest according to their real-time charge status and charged sequentially until the cumulative adjustment reaches the target value. If the target value is still not met, the load devices are sorted from largest to smallest according to their load capacity and loaded sequentially. Through this hierarchical control strategy based on electricity price period and device status, the safe consumption and economical utilization of the surplus power of the microgrid during valley periods are realized.
[0150] To facilitate understanding, specific application scenarios applicable to each embodiment of the invention are described. In this specific embodiment, the present invention provides a complete solution for ensuring the safety, stability, and economy of microgrid grid-connected operation.
[0151] Figure 6This is a general framework diagram of an active power optimization control method for microgrid grid connection, as shown below. Figure 6 As shown, the upper limit of the interactive active power between the microgrid and the distribution network is set. With upper limit warning coefficient Interactive active power lower limit With lower limit warning coefficient Obtain real-time interactive active power According to real-time interaction power The size is determined by the control mode according to the following rules:
[0152] When the real-time interactive power exceeds the upper limit warning value or falls below the lower limit warning value, an over-limit warning is triggered, and the system enters the interactive power control mode. When the real-time interactive power is between the upper and lower limit warning values and no over-limit warning is triggered, the system enters the economic dispatch control mode.
[0153] Figure 7 The control flowchart of the interactive power control module is as follows: Figure 7 As shown, if the interactive power control mode is entered, it can be divided into over-limit warning control and over-lower limit warning control, and each condition is controlled according to its own steps.
[0154] Figure 8 The control flow diagram for economic dispatch control mode 1 is as follows: Figure 8 As shown, the first step is to determine the mode. If the real-time interaction between the microgrid and the distribution network has active power... 0-upper limit warning value Between these points, it enters economic dispatch control mode 1.
[0155] Figure 9 The control flow diagram for economic dispatch control mode 2 is as follows: Figure 9 As shown, the first step is to determine the mode. If the real-time interaction between the microgrid and the distribution network has active power... At the lower limit warning value In between, it enters economic dispatch control mode 2. This embodiment of the scheme can achieve the following beneficial effects:
[0156] (1) By establishing a multi-mode adaptive switching mechanism based on interactive power warning intervals, the energy storage system is prioritized for rapid power adjustment when the power exceeds the limit. This effectively overcomes the limitation that the traditional single economic dispatch mode cannot take into account safety constraints, significantly enhances the emergency response capability and operational reliability of the microgrid under power change conditions, and provides a solid guarantee for the safe grid connection of the microgrid.
[0157] (2) A power allocation strategy based on the priority of equipment regulation rate was designed. By sorting the regulation capabilities of energy storage, power supply and load in real time and allocating regulation tasks in sequence, the optimal configuration of regulation resources was realized. This not only ensured the speed of power regulation, but also maximized the regulation potential of high-efficiency equipment, and achieved the optimal synergy between safety control and economy.
[0158] (3) The power incremental iterative allocation and real-time verification mechanism is adopted. By allocating adjustment amount to each device and dynamically updating the remaining adjustment demand, the accuracy and integrity of the power adjustment process are ensured. At the same time, an over-limit verification link is set to prevent excessive adjustment, forming a closed-loop control structure, which significantly improves the stability and reliability of multi-device collaborative control under complex working conditions.
[0159] Example 6
[0160] Figure 10 This is a schematic diagram of the active power control optimization device for a microgrid under grid connection, provided in Embodiment Six of the present invention. Figure 10 As shown, the device includes: a judgment module 1010, an upper limit control module 1020, a lower limit control module 1030, and an economic scheduling control module 1040, wherein:
[0161] The judgment module 1010 is used to compare the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0162] The over-limit control module 1020 is used to execute the over-interactive active power upper limit warning working condition control mode if the real-time interactive power is greater than the preset upper limit warning value of active power.
[0163] The lower limit control module 1030 is used to execute the lower limit warning operating mode of the upper interactive active power if the real-time interactive power is less than the preset lower limit warning value of the active power.
[0164] The economic dispatch control module 1040 is used to execute the economic dispatch control mode if the real-time interactive power is between the preset upper limit warning value and the preset lower limit warning value of the interactive active power.
[0165] The technical solution of this invention compares the real-time interactive power between the microgrid and the distribution network with preset upper and lower warning values for interactive active power. If the real-time interactive power is greater than the upper warning value, the control mode of exceeding the upper warning value for interactive active power is executed; if the real-time interactive power is less than the lower warning value, the control mode of exceeding the lower warning value for interactive active power is executed; and if the real-time interactive power is between the upper and lower warning values, the economic dispatch control mode is executed. This novel active power control optimization scheme under microgrid grid connection can effectively improve the safety, stability, and economy of microgrid operation, and achieve optimized dispatch and efficient utilization of resources within the microgrid while ensuring the safe operation of the distribution network.
[0166] Furthermore, based on the above embodiments, the active power control optimization device under microgrid grid connection may further include:
[0167] The upper limit warning value calculation module is used to multiply the upper limit value of the interactive active power by the upper limit warning coefficient before comparing the real-time interactive power between the microgrid and the distribution network with the preset upper limit warning value and lower limit warning value of the interactive active power.
[0168] The lower limit warning value calculation module is used to multiply the lower limit value of interactive active power by the lower limit warning coefficient to obtain the lower limit warning value of interactive active power.
[0169] Among them, the upper limit warning value of interactive active power is non-negative, and the lower limit warning value of interactive active power is negative.
[0170] Based on the above embodiments, the over-limit control module 1020 can be specifically used for:
[0171] The negative value obtained by subtracting the real-time interactive power from the upper limit warning value of active power is used as the target adjustment increment DeltaP, which is required to reduce the output of the real-time interactive power relative to the upper limit warning value.
[0172] With the goal of reducing the output power of the microgrid to the distribution network, the power regulation rate of each controllable device in the microgrid is obtained, and the controllable devices are sorted in descending order of power regulation rate to obtain the device control priority sequence.
[0173] In the device control priority sequence, a controllable device i is obtained sequentially, and according to the formula: Calculate the adjustment increment allocated to controllable device i ;
[0174] Where i∈[1,N], and N is the total number of controllable devices included in the device control priority sequence. Let i be the minimum power of the controllable device. The current real-time power of controllable device i;
[0175] Subtract the adjustment increment allocated to the controllable device i from the original target adjustment increment DeltaP. The obtained results are used to update the new target adjustment increment DeltaP;
[0176] Determine whether the new target adjustment increment DeltaP is non-negative: if yes, then determine to complete the execution of the super-interactive active power upper limit warning operating condition control mode; otherwise, return to the execution of the operation of acquiring a controllable device i in the device control priority sequence in turn until the end execution condition is met.
[0177] Based on the above embodiments, the lower limit control module 1030 can be specifically used for:
[0178] The positive value obtained by subtracting the real-time interactive power from the lower limit warning value of active power is used as the target adjustment increment DeltaP that the real-time interactive power needs to increase in output compared to the lower limit warning value.
[0179] With the goal of increasing the output power of the microgrid to the distribution network, the power regulation rate of each controllable device in the microgrid is obtained, and the controllable devices are sorted in descending order of power regulation rate to obtain the device control priority sequence.
[0180] In the device control priority sequence, a controllable device i is obtained sequentially, and according to the formula: Calculate the adjustment increment allocated to controllable device i ;
[0181] Where i∈[1,N], and N is the total number of controllable devices included in the device control priority sequence. The maximum power of controllable device i. The current real-time power of controllable device i;
[0182] Subtract the adjustment increment allocated to the controllable device i from the original target adjustment increment DeltaP. The obtained results are used to update the new target adjustment increment DeltaP;
[0183] Determine whether the new target adjustment increment DeltaP is non-positive: if yes, then determine that the execution of the super-interactive active power lower limit early warning operating condition control mode is completed; otherwise, return to the execution of the operation of acquiring one controllable device i in the device control priority sequence in turn until the end execution condition is met.
[0184] Based on the above embodiments, the economic dispatch control module 1040 can be specifically used for:
[0185] If the real-time interactive power is between 0 and the upper limit warning value of active power, then each power source will be divided into an increase generation queue or a decrease generation queue according to the relationship between the net profit unit price of each power source in the microgrid and the preset minimum expected price.
[0186] According to the order of net profit per unit of power generation from large to small, the power generation in the power generation increase queue is sorted by priority for power generation increase, and according to the order of net profit per unit of power generation from small to large, the power generation in the power generation decrease queue is sorted by priority for power generation decrease.
[0187] According to the priority of the additional issuance, the additional issuance adjustment increment of each power source in the additional issuance queue is calculated in turn, and the total adjustment increment of all power sources in the additional issuance queue is accumulated.
[0188] According to the preset power reduction priority, the power reduction adjustment increment of each power source in the power reduction queue is calculated in turn, and the total adjustment increment of power reduction of all power sources in the power reduction queue is obtained by summing them up.
[0189] The total regulation increment of the microgrid is obtained by adding the total regulation increment that has been increased to the total regulation increment that has been decreased.
[0190] If the current total microgrid regulation increment is less than the negative of the current real-time interactive power, then starting from the power source at the tail of the power reduction queue, the original power reduction regulation increment allocated to each power source will be reduced sequentially until the end of regulation conditions is met.
[0191] If the total adjustment increment is greater than the remaining safe value between the real-time interactive power value and the upper limit warning value, then starting from the tail power supply of the power supply in the power supply queue, the power supply adjustment increment originally allocated to each power supply will be reduced sequentially until the end adjustment condition is met.
[0192] Furthermore, based on the above embodiments, the economic dispatch control module 1040 may include:
[0193] The electricity price determination submodule is used to determine the current electricity price period based on whether the real-time interactive power is between the lower limit warning value of active power and zero.
[0194] The valley segment regulation submodule is used to obtain the maximum allowable total target regulation increment of the microgrid if it is a valley segment and the condition is that it does not exceed the lower limit warning value of active power.
[0195] The energy storage device sorting submodule is used to obtain each target energy storage device in the microgrid that is currently in a state of insufficient standby capacity, and sort each target energy storage device in ascending order of real-time charge status;
[0196] The charging submodule is used to sequentially acquire a target energy storage device according to the sorting results and perform charging operations until the accumulated adjustment increment of the charging operations reaches the total target adjustment increment.
[0197] The load sorting submodule is used to sort the load devices in the microgrid in descending order of load capacity if the cumulative adjustment increment after all target energy storage devices have been charged is still less than the total target adjustment increment.
[0198] The load accumulation submodule is used to sequentially obtain a load device according to the sorting result and perform load accumulation processing until the total target adjustment increment is reached.
[0199] Furthermore, based on the above embodiments, the economic dispatch control module 740 may further include:
[0200] The comparison submodule is used to determine the current electricity price period. If it is a peak, high, or flat period, it calculates the maximum total target adjustment increment of the microgrid with the zero grid power as the target, and then compares the magnitude of the maximum total target adjustment increment with the cumulative adjustment increment after all energy storage stops charging.
[0201] The charging energy storage sorting submodule is used to sort the charging energy storage in descending order according to the real-time state of charge if the cumulative adjustment increment is greater than or equal to the maximum total target adjustment increment, and then select the energy storage to stop charging in turn and update the remaining maximum total target adjustment increment until the total target adjustment increment is met.
[0202] The power generation net profit ranking submodule is used to sort the power sources from largest to smallest according to their power generation net profit unit price if the cumulative adjustment increment is less than the maximum total target adjustment increment, and to select power sources in sequence to increase their output power according to the power source ranking results until the total target adjustment increment is met.
[0203] The load sequencing submodule is used to sort the loads from largest to smallest according to their load reduction capacity when the power generation increase still cannot meet the demand. Based on the load sequencing results, loads are selected for load reduction in sequence until the load adjustment increment meets the overall target adjustment increment.
[0204] The active power control optimization device for microgrid grid connection provided in this embodiment of the invention can execute the active power control optimization method for microgrid grid connection provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0205] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0206] Example 7
[0207] Figure 11A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0208] like Figure 11 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0209] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0210] Processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as performing an active power control optimization method under microgrid grid connection as described in any embodiment of the present invention, namely:
[0211] The real-time interaction power between the microgrid and the distribution network is compared with the preset upper and lower warning values of the interaction active power.
[0212] If the real-time interactive power is greater than the preset upper limit warning value of active power, then the super interactive active power upper limit warning working condition control mode is executed.
[0213] If the real-time interactive power is less than the preset lower limit warning value of active power, then the super interactive active power lower limit warning working condition control mode is executed.
[0214] If the real-time interactive power is between the preset upper limit warning value of the interactive active power and the preset upper limit warning value of the interactive active power, then the economic dispatch control mode is executed.
[0215] In some embodiments, the active power control optimization method for a microgrid under grid connection as described in any of the embodiments of the present invention can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the active power control optimization method for a microgrid under grid connection as described above can be performed. Alternatively, in other embodiments, processor 11 can be configured by any other suitable means (e.g., by means of firmware) to perform the active power control optimization method for a microgrid under grid connection as described in any of the embodiments of the present invention.
[0216] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0217] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0218] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0219] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0220] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0221] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0222] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0223] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for active power control optimization of microgrid under grid-connected mode, characterized in that, The method comprises: comparing the real-time interaction power of the micro-grid and the distribution network with the upper limit and lower limit of the preset interactive active power warning value; if the real-time interaction power is greater than the preset upper limit of the active power warning value, the over-interaction active power upper limit warning working condition control mode is executed; if the real-time interaction power is less than the preset lower limit of the active power warning value, the over-interaction active power lower limit warning working condition control mode is executed; if the real-time interaction power is between the upper limit and the lower limit of the preset interactive active power warning value, the economic dispatching control mode is executed.
2. The method of claim 1, wherein, Before comparing the real-time interaction power of the micro-grid and the distribution network with the upper limit and lower limit of the preset interactive active power warning value, the method further comprises: multiplying the upper limit of the interactive active power by the upper limit warning coefficient to obtain the upper limit of the interactive active power warning value; multiplying the lower limit of the interactive active power by the lower limit warning coefficient to obtain the lower limit of the interactive active power warning value; wherein the upper limit of the interactive active power warning value is a non-negative value, and the lower limit of the interactive active power warning value is a negative value.
3. The method of claim 1, wherein, if the real-time interaction power is greater than the preset upper limit of the active power warning value, the over-interaction active power upper limit warning working condition control mode is executed, which comprises: calculating the negative value obtained by subtracting the real-time interaction power from the upper limit of the active power warning value as the target adjustment increment DeltaP required to reduce the output of the real-time interaction power compared with the upper limit warning value; obtaining the power adjustment rate of each controllable device in the micro-grid and sorting the controllable devices in descending order of the power adjustment rate to obtain a device control priority sequence, with the micro-grid reducing the output power to the distribution network as the target; In the sequence of the device control priorities, a controllable device i is acquired in turn, and the adjustment increment allocated to the controllable device i is calculated according to the formula: , wherein the adjustment increment allocated to the controllable device i is ; wherein i∈[1,N], N is the total number of controllable devices in the device control priority sequence, minPoweri, the minimum power for controllable device i, currentRealTimePoweri, the current real-time power for controllable device i; using the original target regulation increment DeltaP minus the regulation increment assigned to the controllable device i The result is updated as the new target regulation increment DeltaP; determining whether the new target adjustment increment DeltaP is a non-negative value: if yes, it is determined that the execution of the over-interaction active power upper limit warning working condition control mode is completed; otherwise, the next controllable device i is obtained in sequence in the device control priority sequence until the end execution condition is met.
4. The method of claim 1, wherein, if the real-time interaction power is less than the preset lower limit of the active power warning value, the over-interaction active power lower limit warning working condition control mode is executed, which comprises: calculating the positive value obtained by subtracting the real-time interaction power from the lower limit of the active power warning value as the target adjustment increment DeltaP required to increase the output of the real-time interaction power compared with the lower limit warning value; obtaining the power adjustment rate of each controllable device in the micro-grid and sorting the controllable devices in descending order of the power adjustment rate to obtain a device control priority sequence, with the micro-grid increasing the output power to the distribution network as the target; In the device control priority sequence, a controllable device i is obtained sequentially, and according to the formula: Calculate the adjustment increment allocated to controllable device i ; Wherein, i∈[1, N], N is the total number of controllable devices included in the device control priority sequence, is the maximum power of the controllable device i, is the current real-time power of the controllable device i; using the original target regulation increment DeltaP minus the regulation increment assigned to the controllable device i The result is updated as the new target regulation increment DeltaP; determining whether the new target adjustment increment DeltaP is a non-positive value: if yes, it is determined that the execution of the over-interaction active power lower limit warning working condition control mode is completed; otherwise, the next controllable device i is obtained in sequence in the device control priority sequence until the end execution condition is met.
5. The method of claim 1, wherein, If the real-time interactive power is between the preset upper warning value and the preset lower warning value of the interactive active power, then the economic dispatch control mode is executed, including: If the real-time interactive power is between 0 and the upper limit warning value of active power, then each power source will be divided into an increase generation queue or a decrease generation queue according to the relationship between the net profit unit price of each power source in the microgrid and the preset minimum expected price. According to the order of net profit per unit of power generation from large to small, the power generation in the power generation increase queue is sorted by priority for power generation increase, and according to the order of net profit per unit of power generation from small to large, the power generation in the power generation decrease queue is sorted by priority for power generation decrease. According to the priority of the additional issuance, the additional issuance adjustment increment of each power source in the additional issuance queue is calculated in turn, and the total adjustment increment of all power sources in the additional issuance queue is accumulated. According to the preset power reduction priority, the power reduction adjustment increment of each power source in the power reduction queue is calculated in turn, and the total adjustment increment of power reduction of all power sources in the power reduction queue is obtained by summing them up. The total regulation increment of the microgrid is obtained by adding the total regulation increment that has been increased to the total regulation increment that has been decreased. If the current total microgrid regulation increment is less than the negative of the current real-time interactive power, then starting from the power source at the tail of the power reduction queue, the original power reduction regulation increment allocated to each power source will be reduced sequentially until the end of regulation conditions is met. If the total adjustment increment is greater than the remaining safe value between the real-time interactive power value and the upper limit warning value, then starting from the tail power supply of the power supply in the power supply queue, the power supply adjustment increment originally allocated to each power supply will be reduced sequentially until the end adjustment condition is met.
6. The method of claim 1, wherein, If the real-time interactive power is between the preset upper warning value and the preset lower warning value of the interactive active power, then the economic dispatch control mode is executed, including: If the real-time interactive power is between the lower limit warning value and zero of the active power, then the current electricity price period is determined. If it is a valley period, the maximum allowable total target adjustment increment of the microgrid is obtained under the condition that it does not exceed the lower limit warning value of active power; The system acquires information on all target energy storage devices in the microgrid that are currently experiencing insufficient reserve capacity, and sorts these target energy storage devices in ascending order of their real-time charge status. According to the sorting results, one target energy storage device is obtained in turn for charging operation until the adjustment increment accumulated by the charging operation reaches the total target adjustment increment. If it is determined that the cumulative adjustment increment after charging all target energy storage devices still does not reach the total target adjustment increment, then the load devices in the microgrid are sorted in descending order of load capacity. According to the sorting results, load devices are obtained one by one for load increase processing until the cumulative adjustment increment of the load increase processing reaches the total target adjustment increment.
7. The method of claim 6, wherein, After determining the current electricity price period, the following is also included: If it is a peak, high, or flat period, calculate the maximum total target adjustment increment of the microgrid with the zero grid power as the target, and compare the magnitude of the maximum total target adjustment increment with the cumulative adjustment increment after all energy storage stops charging; If the cumulative adjustment increment is greater than or equal to the maximum total target adjustment increment, the energy storages being charged are sorted in descending order of real-time state of charge, and the energy storages are selected in turn to stop charging and the remaining maximum total target adjustment increment is updated until the total target adjustment increment is met; If the cumulative adjustment increment is less than the maximum total target adjustment increment, the power sources are sorted in descending order of net profit unit price of power generation, and the power sources are selected in turn to increase output power according to the sorting result of the power sources until the total target adjustment increment is met; When the power source increase does not meet the demand, the loads are sorted in descending order of load shedding capacity, and the loads are selected in turn to be reduced according to the sorting result of the loads until the load adjustment increment meets the total target adjustment increment.
8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the active control optimization method of the microgrid under grid connection according to any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to execute the active control optimization method of the microgrid under grid connection according to any one of claims 1-7.
10. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program implements the active control optimization method of the microgrid under grid connection according to any one of claims 1-7 when executed by the processor.