Photovoltaic energy storage AGC power tracking control method
The photovoltaic energy storage AGC power tracking control method with a three-layer control architecture solves the problem of battery stress and SOC fluctuation caused by power jumps in the energy storage system during AGC frequency regulation, and realizes battery life protection and AGC accuracy improvement.
Patent Information
- Application Number
- CN202611519332.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, when photovoltaic energy storage systems assist AGC frequency regulation, the jump in the energy storage compensation reference power leads to increased battery stress, severe SOC fluctuations, and easy exceedance of AGC performance. Furthermore, existing methods cannot adaptively adjust and optimize, affecting battery life and system stability.
A three-layer control architecture is adopted, including a DPSO economic optimization layer, a middle-layer command shaper, and a PCS execution layer. Through jump error calculation, adaptive maximum power change rate, and fifth-order polynomial transition trajectory generation, power commands are smoothed, battery life is protected, and AGC tracking accuracy is improved.
While maintaining economic optimization results, the power command was smoothed, protecting battery life, ensuring SOC safety, and improving AGC tracking accuracy and system stability.
Smart Images

Figure CN123162986A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of photovoltaic power generation control technology, and specifically to a photovoltaic energy storage AGC power tracking control method. Background Technology
[0002] With the increasing penetration of photovoltaic (PV) power generation in the power grid, the demand for PV power plants to participate in grid AGC (Automatic Generation Control) frequency regulation is becoming increasingly urgent. Energy storage systems, due to their rapid power regulation capabilities, have become a key means for PV power plants to assist in AGC frequency regulation. In energy storage-assisted AGC control, how to reduce the overall loss cost of energy storage while meeting grid performance requirements is a core technical challenge.
[0003] In existing technologies, particle swarm optimization (DPSO) is used for economic optimization, with the dual core objectives of minimizing grid assessment risk and minimizing the overall energy storage loss cost, to solve for the globally optimal energy storage compensation benchmark power. This benchmark power is calculated in 15-minute time steps, while also considering constraints such as SOC and battery life. However, as an optimization layer, the output of DPSO may exhibit significant jumps between adjacent time periods. If this jump sequence is directly used as the power input for the PCS, the following problems arise: (1) Increased battery stress: Excessive power change rate accelerates battery capacity decay; (2) Grid-connected power overshoot: When the PCS responds to the jump command, it generates overshoot, which can easily lead to the AGC assessment exceeding the standard; (3) Rapid fluctuation of SOC: High-power charging and discharging can cause a sudden change in SOC, which may trigger protection action; (4) DC bus voltage fluctuation: Power sudden change affects the stability of the photovoltaic inverter MPPT.
[0004] Existing technologies for addressing power command jumps mainly include low-pass filtering, moving averages, rate-of-change limiters, and model predictive control (MPC). However, low-pass filtering and moving averages use fixed time constants, which cannot be adaptively adjusted according to battery health status and SOC constraints; rate-of-change limiters only perform simple limiting and do not consider the higher-order continuity of the transition trajectory and SOC feasibility; MPC has a large computational load and does not have a dedicated design for the interface between the DPSO optimization layer output and the PCS execution layer.
[0005] Therefore, there is an urgent need for a control method that can achieve smooth power command, battery life protection, and SOC safety constraints while maintaining the economic optimization results of DPSO, and improve AGC tracking accuracy. Summary of the Invention
[0006] The technical problem to be solved by this invention is to provide a photovoltaic energy storage AGC power tracking control method to solve problems such as large jumps in the output energy storage compensation benchmark power of the DPSO optimization layer, large battery stress caused by directly giving PCS, violent SOC fluctuations, and easy over-limit of AGC assessment. In order to achieve smooth power command, battery life protection and SOC safety constraints while maintaining the economic optimization results of DPSO, and improve AGC tracking accuracy.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows.
[0008] A photovoltaic energy storage AGC power tracking control method includes the following steps: S1. Algorithm Data Input: The upper DPSO economic optimization layer takes photovoltaic prediction error, AGC command, SOC, risk level, and battery life as input, and outputs the energy storage compensation benchmark power sequence. , ;in, For the first k The energy storage compensation baseline power for each time period N To optimize the total number of time periods, SOC represents the state of charge. S2. Jump Error Calculation: The middle layer instruction shaper receives the output of the economy optimization layer. Given the current battery SOC and SOH, calculate the jump amplitude between adjacent time periods. Among them, SOH represents the battery health status. For the first k -1 time period energy storage compensation baseline power; S3. Plastic Surgery Condition Judgment: If the conditions are met... If the result is not specified, skip the reshaping and output directly. Upon reaching the PCS execution end, step S8 is executed; if the above conditions are not met, the shaping process is initiated, sequentially executing steps S4 to S7, and then step S8; wherein, For the transition boundary, The jump boundary function is determined based on the battery health state (SOH). S4. Calculation of Maximum Power Change Rate: The maximum power change rate is dynamically determined based on the battery's State of Health (SOH) and State of Charge (SOC). ; S5. Transition Time Calculation: Based on the jump amplitude and maximum power change rate Calculate transition time ; S6. Trajectory Generation: Generate a quintic polynomial transition trajectory. To ensure that power, power change rate, and power change acceleration are continuously differentiable; S7. SOC Verification: After trajectory generation, verify whether the SOC exceeds the limit. If it does, extend the transition time and regenerate the trajectory. ; S8. Command Issuance and Tracking: The lower-level PCS execution layer tracking controller receives the direct output from step S3. Or receive the smooth power adjustment command generated in step S6 and verified in step S7. Power tracking control is performed.
[0009] Preferably, in step S3, the transition boundary... ,in, This is the power constant adjusted according to the actual photovoltaic power station's collector lines.
[0010] Preferably, in step S4, the maximum power change ; in, The baseline maximum power change rate is based on a battery health state of SOH=100% and a state of charge (SOC) at the neutral point. The rate of change of power at that time; For SOH adaptive function, ,in, This is a reference value for battery health status; a brand new battery is... After the battery ages , For definition Parameters indicating the curvature of the curve; It is a SOC adaptive function, and it is a piecewise function. When the SOC is close to the upper limit, the rate of change of charging power decreases, and when the SOC is close to the lower limit, the rate of change of discharging power decreases.
[0011] Preferably, the When SOH decreases, the rate of change decreases more rapidly.
[0012] Preferably, the Defined as:
[0013] in, The minimum state of charge (SOC) allowed for battery discharge. Maximum SOC for battery charging.
[0014] Preferably, in step S5, the transition time ,in, This represents the minimum computation cycle of the algorithm.
[0015] Preferably, in step S6, the fifth-order polynomial transition trajectory is:
[0016] in, , which is the transition starting power; , which is the transition target power; t For the current time during the transition time, 0 ≤ t ≤ T trance .
[0017] Preferably, in step S7, the formula for SOC verification is:
[0018] in, For the transition process t The state of charge, The initial SOC is used for the integer algorithm. This is the total battery capacity; if or Then extend Regenerate .
[0019] Due to the adoption of the above technical solutions, the technical progress achieved by this invention is as follows.
[0020] In this invention, the instruction shaper is located between the DPSO optimization layer and the PCS execution layer, specifically to solve the problem of output jumps in the optimization layer.
[0021] The jump triggering mechanism in this invention is that shaping is initiated only when the reference power jump in adjacent time periods exceeds a threshold, which can avoid unnecessary smoothing delays.
[0022] In this invention, the adaptive transition rate of State of Health (SOH) and State of Charge (SOC) is dynamically adjusted: the maximum power change rate is adjusted according to the battery's State of Health (SOH) and State of Charge (SOC). The lower the SOH, the more conservative the transition, thereby extending battery life. When the SOC approaches its upper limit, the rate of change of charging power decreases; when the SOC approaches its lower limit, the rate of change of discharging power decreases, i.e., the transition rate decreases.
[0023] The fifth-order polynomial transition trajectory in this invention ensures that the power, power change rate, and power change acceleration are continuously differentiable, thereby minimizing battery stress.
[0024] The present invention includes a feasibility verification and closed-loop correction of the state of charge (SOC): after the trajectory is generated, the SOC is checked to see if it exceeds the limit. If it does, the transition time is extended to ensure the safety of energy storage. Attached Figure Description
[0025] Figure 1 This is a flowchart of the present invention; Figure 2This is an internal flowchart of the adaptive instruction shaper of the present invention. Detailed Implementation
[0026] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0027] A photovoltaic energy storage AGC power tracking control method adopts a three-layer control architecture: The upper layer is the DPSO economic optimization layer, which takes photovoltaic prediction error, AGC command, SOC, risk level, and battery life as inputs, and outputs the energy storage compensation benchmark power sequence. ; The middle layer is the instruction shaper, which receives the output from the economy optimization layer. When a jump exceeding a threshold is detected between adjacent time periods At that time, the maximum power change rate is adaptively determined based on the battery health state (SOH) and state of charge (SOC), generating a smooth transition trajectory that satisfies high-order continuity. ; The lower layer is the PCS execution layer. The lower-layer tracking controller is an optional implementation and can adopt ADRC, fuzzy PID, sliding mode control or other conventional power point tracking algorithms, which does not constitute a limitation of the present invention.
[0028] Combination Figures 1 to 2 As shown, it includes the following steps: S1. Algorithm Data Input: The upper DPSO economic optimization layer takes photovoltaic prediction error, AGC command, SOC, risk level, and battery life as input, and outputs the energy storage compensation benchmark power sequence. , ;in, For the first k The energy storage compensation baseline power for each time period N To optimize the total number of time periods, SOC represents the state of charge.
[0029] S2. Jump Error Calculation: The middle layer instruction shaper receives the output of the economy optimization layer. Given the current battery SOC and SOH, calculate the jump amplitude between adjacent time periods. Among them, SOH represents the battery health status. For the first k -1 time period energy storage compensation benchmark power.
[0030] S3. Plastic Surgery Condition Judgment: If the conditions are met... If the result is not specified, skip the reshaping and output directly. Upon reaching the PCS execution end, step S8 is executed; if the above conditions are not met, the shaping process is initiated, sequentially executing steps S4 to S7, and then step S8; wherein, For the transition boundary, This is the boundary function for the jump determined based on the battery health state (SOH).
[0031] Specifically, boundary jump ,in, The power constant is adjusted according to the actual photovoltaic power station's collector circuit, for example... The lower the State of Health (SOH) of the battery, the faster it enters the remodeling process. A lower SOH also indicates severe battery aging, requiring more frequent and gentler charging and discharging.
[0032] S4. Calculation of Maximum Power Change Rate: The maximum power change rate is dynamically determined based on the battery's State of Health (SOH) and State of Charge (SOC). .
[0033] Specifically, the lower the SOH (State of Harm), the more conservative the transition, thus extending battery life. Maximum power variation ; in, The baseline maximum power change rate is based on a battery health state of SOH=100% and a state of charge (SOC) at the neutral point. The rate of change of power at that time; For SOH adaptive function, ,in, This is a reference value for battery health status; a brand new battery is... After the battery ages This value depends on the initial state of the battery when the patented method is applied in the field; For definition Parameters for the curvature of the curve. When SOh decreases, the rate of change decreases more rapidly; This is a SOC adaptive function, and it's a piecewise function. The rate of change of charging power decreases as the SOC approaches its upper limit, and the rate of change of discharging power decreases as the SOC approaches its lower limit, meaning the transition rate decreases. Defined as:
[0034] in, The minimum state of charge (SOC) allowed for battery discharge. Maximum SOC for battery charging.
[0035] S5. Transition Time Calculation: Based on the jump amplitude and maximum power change rate Calculate transition time .
[0036] Specifically, transition time ,in, This represents the minimum computation cycle of the algorithm.
[0037] S6. Trajectory Generation: Generate a quintic polynomial transition trajectory. This ensures that power, power change rate, and power change acceleration are continuously differentiable.
[0038] Specifically, the transition locus of the fifth-order polynomial is:
[0039] in, , which is the transition starting power; , which is the transition target power; t For the current time during the transition time, 0 ≤ t ≤ T trance .
[0040] S7. SOC Verification: After trajectory generation, verify whether the SOC exceeds the limit. If it does, extend the transition time and regenerate the trajectory. .
[0041] Specifically, the formula for SOC verification is:
[0042] in, For the transition process t The state of charge, The initial SOC is used for the integer algorithm. This is the total battery capacity; if or Then extend Regenerate .
[0043] S8. Command Issuance and Tracking: The lower-level PCS execution layer tracking controller receives the direct output from step S3. Or receive the smooth power adjustment command generated in step S6 and verified in step S7. Power tracking control is performed.
[0044] The working principle of this invention is as follows: The DPSO economic optimization layer uses a 15-minute time step and aims to minimize grid assessment costs and energy storage losses, while also considering constraints such as SOC and battery life, to output a reference power sequence for energy storage compensation. The sequence may exhibit significant jumps between adjacent time periods.
[0045] Middle-level instruction shaper receiver Then, first calculate the jump amplitude between adjacent time periods. .like It did not exceed the jump boundary determined according to SOH. This indicates that the jump is within an acceptable range, and the output should be given directly. To the PCS execution end, avoid unnecessary smoothing delays; if Exceed If so, the plastic surgery procedure will be initiated.
[0046] In the shaping process, the maximum power change rate is first dynamically determined based on SOH and SOC. The lower the SOH, The smaller the SOC, the more conservative the transition, thus extending battery life; when the SOC is close to its upper limit, As the SOC decreases, the rate of change in charging power decreases; when the SOC approaches its lower limit... As the discharge power decreases, the rate of change of discharge power also decreases.
[0047] Then, based on the jump amplitude and maximum power change rate Calculate transition time And generate a fifth-order polynomial transition trajectory. This trajectory ensures that power, power change rate, and power change acceleration are continuously differentiable, minimizing battery stress.
[0048] Finally, the generated trajectory undergoes a State of Charge (SOC) feasibility check. If the SOC exceeds the limit, the transition time is extended, and the trajectory is regenerated until the SOC meets the constraints. After the check passes, the smoothing power adjustment command is issued. The power is then sent to the PCS execution layer, where the PCS tracking controller performs the power adjustment.
[0049] Through the coordinated operation of the above three-layer control architecture, this invention achieves smooth power command, battery life protection, and SOC safety constraints while maintaining the economic optimization results of DPSO, and improves AGC tracking accuracy.
Claims
1. A photovoltaic energy storage AGC power tracking control method, characterized in that: Includes the following steps: S1. Algorithm Data Input: The upper DPSO economic optimization layer takes photovoltaic prediction error, AGC command, SOC, risk level, and battery life as input, and outputs the energy storage compensation benchmark power sequence. , ;in, For the first k The energy storage compensation baseline power for each time period N To optimize the total number of time periods, SOC represents the state of charge. S2. Jump Error Calculation: The middle layer instruction shaper receives the output of the economy optimization layer. Given the current battery SOC and SOH, calculate the jump amplitude between adjacent time periods. Among them, SOH represents the battery health status. For the first k -1 time period energy storage compensation baseline power; S3. Plastic Surgery Condition Judgment: If the conditions are met... If the result is not specified, skip the reshaping and output directly. Upon reaching the PCS execution end, step S8 is executed; if the above conditions are not met, the shaping process is initiated, sequentially executing steps S4 to S7, and then step S8; wherein, For the transition boundary, The jump boundary function is determined based on the battery health state (SOH). S4. Calculation of Maximum Power Change Rate: The maximum power change rate is dynamically determined based on the battery's State of Health (SOH) and State of Charge (SOC). ; S5. Transition Time Calculation: Based on the jump amplitude and maximum power change rate Calculate transition time ; S6. Trajectory Generation: Generate a quintic polynomial transition trajectory. To ensure that power, power change rate, and power change acceleration are continuously differentiable; S7. SOC Verification: After trajectory generation, verify whether the SOC exceeds the limit. If it does, extend the transition time and regenerate the trajectory. ; S8. Command Issuance and Tracking: The lower-level PCS execution layer tracking controller receives the direct output from step S3. Or receive the smooth power adjustment command generated in step S6 and verified in step S7. Power tracking control is performed.
2. The photovoltaic energy storage AGC power tracking control method according to claim 1, characterized in that: In step S3, the transition boundary ,in, This is the power constant adjusted according to the actual photovoltaic power station's collector lines.
3. The photovoltaic energy storage AGC power tracking control method according to claim 1, characterized in that: In step S4, the maximum power change ; in, The baseline maximum power change rate is based on a battery health state of SOH=100% and a state of charge (SOC) at the neutral point. The rate of change of power at that time; For SOH adaptive function, ,in, This is a reference value for battery health status; a brand new battery is... After the battery ages , For definition Parameters indicating the curvature of the curve; It is a SOC adaptive function, and it is a piecewise function. When the SOC is close to the upper limit, the rate of change of charging power decreases, and when the SOC is close to the lower limit, the rate of change of discharging power decreases.
4. The photovoltaic energy storage AGC power tracking control method according to claim 3, characterized in that: The When SOH decreases, the rate of change decreases more rapidly.
5. The photovoltaic energy storage AGC power tracking control method according to claim 3, characterized in that: The Defined as: in, The minimum state of charge (SOC) allowed for battery discharge. Maximum SOC for battery charging.
6. The photovoltaic energy storage AGC power tracking control method according to claim 1, characterized in that: In step S5, the transition time ,in, This represents the minimum computation cycle of the algorithm.
7. The photovoltaic energy storage AGC power tracking control method according to claim 1, characterized in that: In step S6, the transition trajectory of the fifth-order polynomial is: in, , which is the transition starting power; , which is the transition target power; t For the current time during the transition time, 0 ≤ t ≤ T trance .
8. The photovoltaic energy storage AGC power tracking control method according to claim 1, characterized in that: In step S7, the formula for SOC verification is: in, For the transition process t The state of charge, The initial SOC is used for the integer algorithm. This is the total battery capacity; if or Then extend Regenerate .
