Power distribution double-layer optimization method and device for frequency modulation of energy storage system, computer equipment, readable storage medium and program product

By calculating the resistance coefficient and remaining frequency regulation capacity of the energy storage power station, power allocation is performed at a double-layer optimization layer, which solves the problem of uneven distribution of frequency regulation tasks in the energy storage system and improves the frequency stability of the power system and the sustainability of frequency regulation tasks. .

CN118676969APending Publication Date: 2024-09-20CHINA SOUTHERN POWER GRID COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410859854.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing energy storage systems have unreasonable problems in the allocation of frequency regulation tasks, which affects the frequency stability of renewable energy units, and parameter differences in energy storage power station clusters lead to uneven allocation of frequency regulation tasks.

Method used

A two-layer optimization method of power allocation for frequency modulation of energy storage systems is proposed. By calculating the resistance coefficient and remaining frequency modulation capacity of each energy storage power station, the inter-station optimization layer power allocation is performed, and the intra-station optimization layer power allocation is performed based on the reconstruction weight to ensure Scientific and reasonable distribution of frequency modulation tasks among energy storage power stations and energy storage units.

Benefits of technology

It realizes the double-layer optimization of power distribution when energy storage power station clusters participate in power system frequency regulation, improves the completion and sustainability of frequency regulation tasks, and avoids the problem of uneven frequency regulation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118676969A
    Figure CN118676969A
Patent Text Reader

Abstract

The invention relates to a power distribution double-layer optimization method and device for energy storage system frequency modulation, equipment, a storage medium and a program product, and relates to the technical field of energy storage system frequency modulation control. According to the invention, scientific and reasonable distribution of the frequency modulation task between each energy storage power station and each energy storage unit can be realized. The method comprises the steps of obtaining an energy storage power station cluster participating in power system frequency modulation in a target area, and target parameters of energy storage power stations and energy storage units included in the energy storage power station cluster; in response to an AGC signal sent by the AGC dispatching center, calculating the rejection coefficient and the residual frequency modulation capability of each energy storage power station according to the target parameter; correspondingly carrying out inter-station optimization layer power distribution according to whether the rejection coefficient and the residual frequency modulation capability meet demand conditions or not, and obtaining the sum of frequency modulation power of an intra-station optimization layer; determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation power of the in-station optimization layer; and performing power distribution of the in-station optimization layer according to the reconstruction weight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of frequency regulation control of energy storage systems, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for double-layer optimization of power distribution for frequency regulation of energy storage systems. Background Art

[0002] With the continuous development of the power industry, high-penetration renewable energy represented by wind power and photovoltaics has become increasingly popular. However, the output of renewable energy units is usually intermittent and uncertain, and compared with traditional synchronous generators, the inertial support capacity that renewable energy units can provide to the system after being disturbed is also greatly weakened, which can easily have an adverse impact on the frequency safety and stability of the power system.

[0003] In traditional technology, large-scale energy storage power station clusters are usually used to maintain the power system to keep the frequency safe and stable. However, due to the differences in performance parameters of each energy storage power station in the energy storage power station cluster, it is not suitable to evenly distribute the frequency regulation tasks arranged by the AGC (Automatic Generation Control) signal to each energy storage power station, resulting in unreasonable frequency regulation task distribution in current technology. Summary of the invention

[0004] Based on this, it is necessary to provide a two-layer optimization method, device, computer equipment, computer-readable storage medium and computer program product for power distribution of energy storage system frequency modulation in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a two-layer optimization method for power allocation of an energy storage system frequency modulation, comprising:

[0006] Determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain target parameters of the energy storage power station cluster, the energy storage power stations, and the energy storage units;

[0007] In response to an AGC signal sent by an AGC dispatch center, the rejection coefficient and the remaining frequency regulation capacity of each of the energy storage power stations are calculated according to the target parameters;

[0008] According to the rejection coefficient and whether the remaining frequency modulation capacity meets the demand conditions, the inter-station optimization layer power allocation is performed accordingly to obtain the sum of the frequency modulation powers of the intra-station optimization layer;

[0009] Determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layers in the station;

[0010] Power allocation of the optimization layer within the station is performed according to the reconstruction weight.

[0011] In one embodiment, the calculation of the resistance coefficient and the remaining frequency regulation capacity of each energy storage power station according to the target parameter includes:

[0012] Obtain a resistance coefficient calculation parameter and a remaining frequency regulation capacity calculation parameter from the target parameters; input the resistance coefficient calculation parameter into a resistance coefficient calculation model to obtain the resistance coefficient of each of the energy storage power stations; input the remaining frequency regulation capacity calculation parameter into a remaining frequency regulation capacity calculation model to obtain the remaining frequency regulation capacity of each of the energy storage power stations.

[0013] In one embodiment, performing inter-station optimization layer power allocation according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand condition includes:

[0014] According to the resistance coefficient, the first objective function of the inter-station optimization layer is generated; when the remaining frequency modulation capacity meets the demand condition, a first constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the first constraint condition; when the remaining frequency modulation capacity does not meet the demand condition, a second constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the second constraint condition.

[0015] In one embodiment, determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layer in the station includes:

[0016] Based on the sum of the frequency modulation powers of the optimization layer within the station, the unit state of charge of each energy storage unit is reconstructed and adjusted to obtain an adjusted unit state of charge; a reconstruction weight calculation parameter is obtained from the target parameter; the adjusted unit state of charge and the reconstruction weight calculation parameter are input into a reconstruction weight calculation model to obtain the reconstruction weight of each energy storage unit.

[0017] In one of the embodiments, performing power allocation of the optimization layer within the station according to the reconstruction weight includes:

[0018] According to the reconstruction weight, a second objective function of the in-station optimization layer is generated; based on the power limitation condition and the charge state limitation condition of the in-station optimization layer, a third constraint condition is generated; under the third constraint condition, power allocation of the in-station optimization layer is performed according to the second objective function.

[0019] In one of the embodiments, after allocating the power of the optimization layer within the station according to the reconstruction weight, the method further includes:

[0020] Update the unit charge state of each energy storage unit after power distribution at the current moment; send the unit charge state to the AGC dispatching center so that the AGC dispatching center can perform rolling optimization on the unit charge state following the generated AGC signal.

[0021] In a second aspect, the present application also provides a dual-layer power distribution optimization device for frequency modulation of an energy storage system, comprising:

[0022] A parameter acquisition module is used to determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and to obtain target parameters of the energy storage power station cluster, the energy storage power stations, and the energy storage units;

[0023] A calculation and processing module, used for calculating the rejection coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters in response to the AGC signal sent by the AGC dispatch center;

[0024] An inter-station optimization module, configured to perform inter-station optimization layer power allocation according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand conditions, and obtain the sum of the frequency modulation powers of the intra-station optimization layers;

[0025] A weight determination module, used to determine the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layer in the station;

[0026] The in-station optimization module is used to perform power allocation of the in-station optimization layer according to the reconstruction weight.

[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0028] Determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain the target parameters of the energy storage power station cluster, the energy storage power station, and the energy storage units; in response to the AGC signal sent by the AGC dispatching center, calculate the resistance coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters; perform inter-station optimization layer power allocation according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, and obtain the sum of the frequency regulation power of the intra-station optimization layer; determine the reconstruction weight of each of the energy storage units in the energy storage power station based on the sum of the frequency regulation power of the intra-station optimization layer; and perform power allocation of the intra-station optimization layer according to the reconstruction weight.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0030] Determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain the target parameters of the energy storage power station cluster, the energy storage power station, and the energy storage units; in response to the AGC signal sent by the AGC dispatching center, calculate the resistance coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters; perform inter-station optimization layer power allocation according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, and obtain the sum of the frequency regulation power of the intra-station optimization layer; determine the reconstruction weight of each of the energy storage units in the energy storage power station based on the sum of the frequency regulation power of the intra-station optimization layer; and perform power allocation of the intra-station optimization layer according to the reconstruction weight.

[0031] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0032] Determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain the target parameters of the energy storage power station cluster, the energy storage power station, and the energy storage units; in response to the AGC signal sent by the AGC dispatching center, calculate the resistance coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters; perform inter-station optimization layer power allocation according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, and obtain the sum of the frequency regulation power of the intra-station optimization layer; determine the reconstruction weight of each of the energy storage units in the energy storage power station based on the sum of the frequency regulation power of the intra-station optimization layer; and perform power allocation of the intra-station optimization layer according to the reconstruction weight.

[0033] The above-mentioned two-layer optimization method, device, computer equipment, computer-readable storage medium and computer program product for power allocation of frequency regulation of energy storage system calculate the resistance coefficient and remaining frequency regulation capacity of each energy storage power station according to the target parameters; then, according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, the power allocation of the optimization layer between stations is carried out accordingly, and the sum of the frequency regulation power of the optimization layer within the station is obtained; then, based on the sum of the frequency regulation power of the optimization layer within the station, the reconstruction weight of each energy storage unit in the energy storage power station is determined; finally, the power allocation of the optimization layer within the station is carried out according to the reconstruction weight, so as to achieve the technical effect of two-layer optimization of power allocation of energy storage power station cluster participating in power system frequency regulation, realize the scientific and reasonable allocation of frequency regulation tasks among various energy storage power stations and various energy storage units, and also help to enhance the completion and sustainability of frequency regulation tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] FIG1 is an application environment diagram of a dual-layer optimization method for power allocation of an energy storage system frequency modulation in one embodiment;

[0036] Figure 2 A schematic flow chart of a double-layer optimization method for power allocation of frequency modulation of an energy storage system in one embodiment;

[0037] Figure 3 A schematic flow chart of a double-layer optimization method for power allocation of frequency modulation of an energy storage system in an application embodiment;

[0038] Figure 4 It is an overall framework diagram of a two-layer optimization method for power allocation of energy storage system frequency modulation in one embodiment;

[0039] Figure 5 is a schematic diagram of total frequency modulation power under different control strategies in one embodiment;

[0040] Figure 6 A structural block diagram of a dual-layer optimization device for power distribution of an energy storage system frequency modulation in one embodiment;

[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] The two-layer optimization method for power allocation of energy storage system frequency modulation provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the AGC dispatch center communicates with the server through the network. The data storage system can store data that the server needs to process. The data storage system can be integrated on the server, or it can be placed on the cloud or other network servers.

[0044] Specifically, the dual-layer optimization method for power allocation of energy storage system frequency modulation provided in the embodiment of the present application can be executed by a server.

[0045] Exemplarily, the server determines the energy storage power station cluster, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each energy storage power station that participate in the frequency regulation of the power system in the target area, and obtains the target parameters of the energy storage power station cluster, the energy storage power station, and the energy storage unit; in response to the AGC signal sent by the AGC dispatching center, the server calculates the resistance coefficient and the remaining frequency regulation capacity of each energy storage power station according to the target parameters; the server performs inter-station optimization layer power allocation according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, and obtains the sum of the frequency regulation power of the intra-station optimization layer; the server determines the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency regulation power of the intra-station optimization layer; the server performs power allocation of the intra-station optimization layer according to the reconstruction weight.

[0046] In the application environment shown in Figure 1, the AGC dispatch center is the center or department responsible for monitoring and managing the operation of the AGC system in the power system, and the others are usually set up by power companies or grid operators. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, Figure 2 As shown, a two-layer optimization method for power allocation of energy storage system frequency modulation is provided, and the method is applied to the server in FIG1 as an example for explanation, including the following steps:

[0048] Step S201, determining the energy storage power station clusters, energy storage power stations contained in the energy storage power station clusters, and energy storage units contained in each energy storage power station that participate in power system frequency regulation in the target area, and obtaining target parameters of the energy storage power station clusters, energy storage power stations, and energy storage units.

[0049] The target parameters include but are not limited to the rated power PN i, rated capacity SN i, unit power cost Cp i, unit capacity cost Ce i, equivalent cycle number N i, and the rated capacity SN i of each energy storage power station.i , floating charge life Tfloat i and charge and discharge efficiency η, the initial SoC of each energy storage unit, the upper and lower limits SoCmax and SoCmin of charge and discharge, and the discount rate r, scheduling step Δt and grid-connected electricity price C when the energy storage power station cluster participates in frequency regulation e .

[0050] Specifically, the server determines the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each energy storage power station, and obtains target parameters of the energy storage power station cluster, the energy storage power station, and the energy storage unit.

[0051] Step S202, in response to the AGC signal sent by the AGC dispatch center, the rejection coefficient and the remaining frequency regulation capacity of each energy storage power station are calculated according to the target parameters.

[0052] It should be noted that the various energy storage stations in the energy storage station cluster often have differences in parameters. Such differences in parameters are not only reflected in different cost parameters, but also in rated capacity and rated power, which means that each energy storage station cannot provide equal power support to the system. Therefore, blindly pursuing the minimum total frequency regulation cost can easily lead to energy storage stations with lower frequency regulation costs always bearing the frequency regulation responsibility, and energy storage stations with higher frequency regulation costs but larger remaining frequency regulation capacity not arranging frequency regulation plans, which is not conducive to the sustainability of overall frequency regulation. In order to avoid this problem, the resistance coefficient RES can be introduced in the inter-station optimization layer i (t), taking into account the frequency regulation willingness of each energy storage power station, thus correcting the total frequency regulation cost of the system. i (t) is related to the remaining frequency regulation capacity of the energy storage power station. The smaller the remaining frequency regulation capacity, the greater the resistance coefficient.

[0053] It should be noted that when the energy storage power station is performing charging and discharging frequency regulation, it needs to be limited by the remaining frequency regulation capacity Plefti(t), which is related to the rated power and remaining frequency regulation capacity of the energy storage power station.

[0054] Specifically, the server responds to the AGC signal sent by the AGC dispatching center, obtains the resistance coefficient calculation parameters and the remaining frequency regulation capacity calculation parameters in the target parameters, and calculates the resistance coefficient and the remaining frequency regulation capacity of each energy storage power station based on the resistance coefficient calculation parameters and the remaining frequency regulation capacity calculation parameters.

[0055] Step S203, according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand conditions, the inter-station optimization layer power allocation is performed accordingly to obtain the sum of the frequency modulation powers of the intra-station optimization layers.

[0056] The demand condition may be the sum of the frequency regulation powers allocated by the AGC dispatching center to all energy storage power stations.

[0057] Specifically, the server generates the first objective function of the inter-station optimization layer based on the resistance coefficient; when the sum of the frequency regulation powers allocated to all energy storage power stations by the AGC dispatching center is greater than the remaining frequency regulation capacity, the first constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the first constraint condition; when the sum of the frequency regulation powers allocated to all energy storage power stations by the AGC dispatching center is less than or equal to the remaining frequency regulation capacity, the second constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the second constraint condition.

[0058] Step S204: determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layers in the station.

[0059] It should be noted that in order to keep the overall SoC (State of charge) in an optimal state to enhance the sustainability of frequency modulation, a reconstruction weight ω can be introduced into the in-station optimization layer. i,j (t), while allocating frequency modulation power, the SoC state of the energy storage unit is reconstructed and adjusted.

[0060] Specifically, the server reconstructs and adjusts the unit state of charge of each energy storage unit based on the sum of the frequency modulation powers of the optimization layer within the station to obtain an adjusted unit state of charge; obtains a reconstruction weight calculation parameter from the target parameter; inputs the adjusted unit state of charge and the reconstruction weight calculation parameter into a reconstruction weight calculation model to obtain a reconstruction weight of each energy storage unit.

[0061] Step S205: Perform power allocation of the optimization layer within the station according to the reconstruction weight.

[0062] It should be noted that when the energy storage output units in the optimization layer within the station participate in system frequency regulation, they need to meet the power equation constraints, power upper and lower limit constraints, and charge state upper and lower limit constraints.

[0063] Specifically, the server generates a second objective function of the in-station optimization layer according to the reconstruction weight; generates a third constraint condition based on the power limitation condition and charge state limitation condition of the in-station optimization layer; and performs power allocation of the in-station optimization layer according to the second objective function under the third constraint condition.

[0064] In the above-mentioned two-layer optimization method for power allocation of energy storage system frequency regulation, the resistance coefficient and remaining frequency regulation capacity of each energy storage power station are calculated according to the target parameters; then, according to whether the resistance coefficient and the remaining frequency regulation capacity meet the demand conditions, the power allocation of the optimization layer between stations is carried out accordingly, and the sum of the frequency regulation power of the optimization layer within the station is obtained; then, based on the sum of the frequency regulation power of the optimization layer within the station, the reconstruction weight of each energy storage unit in the energy storage power station is determined; finally, the power allocation of the optimization layer within the station is carried out according to the reconstruction weight, so as to achieve the technical effect of two-layer optimization of power allocation of energy storage power station clusters participating in power system frequency regulation, realize the scientific and reasonable allocation of frequency regulation tasks among various energy storage power stations and various energy storage units, and at the same time help to enhance the completion and sustainability of frequency regulation tasks.

[0065] In one embodiment, in the above step S203, according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand conditions, the inter-station optimization layer power allocation is performed accordingly, which specifically includes the following steps:

[0066] According to the resistance coefficient, the first objective function of the inter-station optimization layer is generated; when the remaining frequency regulation capacity meets the demand conditions, the first constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the first constraint condition; when the remaining frequency regulation capacity does not meet the demand conditions, the second constraint condition is generated, and the inter-station optimization layer power allocation is performed according to the first objective function and the second constraint condition.

[0067] (1) Resistance coefficient

[0068] There are often differences in parameters between the energy storage power stations in the energy storage power station cluster. Such differences in parameters are not only reflected in different cost parameters, but also in rated capacity and rated power, which means that each energy storage power station cannot provide equal power support to the system. Therefore, blindly pursuing the minimum total frequency regulation cost can easily lead to energy storage power stations with lower frequency regulation costs always taking on frequency regulation responsibilities, while energy storage power stations with higher frequency regulation costs but larger remaining frequency regulation capacity do not arrange frequency regulation plans, which is not conducive to the sustainability of overall frequency regulation.

[0069] In order to avoid this problem, a resistance coefficient RES can be introduced in the inter-station optimization layer. i (t), taking into account the frequency regulation willingness of each energy storage power station, thus correcting the total frequency regulation cost of the system. i (t) is related to the remaining frequency regulation capacity of the energy storage power station. The smaller the remaining frequency regulation capacity, the greater the resistance coefficient. The specific calculation method and normalization method are as follows:

[0070] (1)

[0071] (2)

[0072] (3)

[0073] (4)

[0074] Among them, RESc i(t) real and RESd i(t) real They represent the actual values ​​of the charging resistance coefficient and the discharging resistance coefficient of the energy storage station i respectively; J represents the total number of energy storage output units in the energy storage station i; SN i,j represents the rated capacity of the jth energy storage unit in the energy storage station i; SoC i,j (t-1) represents the state of charge of the j-th energy storage unit in the energy storage station i; SoCmaxi,j and SoCmin i,j represent the maximum and minimum state of charge of the j-th energy storage unit in the energy storage station i, respectively; Δt represents the time interval for updating the frequency regulation plan; RESc i(t) and RESd i(t) represent the normalized values ​​of the charging resistance coefficient and the discharging resistance coefficient of the energy storage station i, respectively. i (t) represents the total resistance coefficient of energy storage station i, f c (t) and f d (t) respectively represent the charge and discharge flag variables, P AGC (t) represents the sum of the frequency regulation powers allocated by the AGC dispatching center to all energy storage power stations.

[0075] (2) Remaining frequency modulation capacity

[0076] When the energy storage power station is performing charging and discharging frequency regulation, it needs to be limited by the remaining frequency regulation capacity Pleft i(t). The remaining frequency regulation capacity is related to the rated power and remaining frequency regulation capacity of the energy storage power station. The calculation formula is:

[0077] (5)

[0078] (6)

[0079] Among them, Pc,left i(t) and Pd,left i(t) represent the charging remaining frequency regulation capacity and discharging remaining frequency regulation capacity of energy storage station i respectively; PN i,j represents the rated power of the jth energy storage unit in energy storage station i; Pleft i(t) represents the total remaining frequency regulation capacity of energy storage station i.

[0080] (3) Objective function

[0081] The inter-station optimization layer aims to minimize the total frequency regulation cost after taking into account the frequency regulation intention, and aims to reasonably allocate the frequency regulation tasks to each energy storage power station. For a single energy storage power station, the frequency regulation cost needs to be calculated from three perspectives: investment and construction cost, energy loss cost, and life attenuation cost.

[0082] When configuring the rated capacity and rated power of the energy storage power station, a certain amount of investment and construction cost is required, and the calculation formula is:

[0083] (7)

[0084] Wherein, Cinv i(t) represents the investment and construction cost of energy storage station i in the current scheduling step, which is calculated by dividing the total investment and construction cost after attenuation into each step; r represents the discount rate; Tfloat i represents the floating charge life of energy storage station i after frequent charging and discharging actions under regular load; Ce i and SN i represent the unit capacity cost and rated capacity of energy storage station i, respectively; n represents the number of scheduling plan updates in 1 day.

[0085] When the energy storage power station is charging and discharging, due to the existence of charging and discharging efficiency, the system will bear the energy loss cost, which is calculated as follows:

[0086] (8)

[0087] Where Closs i(t) represents the energy loss cost of energy storage power station i in the current scheduling step; C e represents the on-grid electricity price; Pci(t) and Pdi(t) represent the charging power and discharging power of energy storage station i in the current scheduling step, respectively; ηci and ηdi represent the charging efficiency and discharging efficiency of energy storage station i, respectively.

[0088] As the energy storage power station is charged and discharged, its operating life will also decay to a certain extent. In order to ensure the normal operation of the energy storage power station, a certain life decay cost needs to be borne. The calculation formula is:

[0089] (9)

[0090] Where Clife i(t) represents the life attenuation cost of energy storage station i within the current scheduling step; Cp i and PN i represent the unit power cost and rated power of energy storage station i, respectively; N i It represents the equivalent number of cycles of energy storage station i at 100% charge and discharge depth.

[0091] Therefore, the frequency regulation cost of energy storage station i is:

[0092] (10)

[0093] For multiple energy storage power stations, the frequency regulation cost needs to be corrected in combination with the resistance coefficient, and the objective function of the inter-station optimization layer is obtained as follows:

[0094] (11)

[0095] Where T represents the total number of steps in the scheduling plan; I represents the total number of energy storage power stations in the inter-station optimization layer.

[0096] (4) Constraints

[0097] Each energy storage power station in the inter-station optimization layer needs to comply with the power equality constraint and the power upper and lower limit constraints when participating in frequency regulation. When the energy storage power station cannot meet the frequency regulation task assigned by the system, the expression of the constraint condition will also change. Assuming that a stability margin K of 0.95 is reserved during frequency regulation, the constraint condition of the inter-station optimization layer is:

[0098] 1) When the sum of the frequency regulation powers allocated by the AGC dispatching center to all energy storage power stations is greater than the sum of their remaining frequency regulation capabilities, that is, When , the constraints are:

[0099] (12)

[0100] At this time, the energy storage power station is unable to complete the frequency regulation task assigned by the AGC dispatching center and can only output according to its own remaining frequency regulation capacity.

[0101] 2) When the sum of the frequency regulation powers allocated by the AGC dispatch center to all energy storage power stations is less than or equal to the sum of their remaining frequency regulation capabilities, that is, When , the constraints are:

[0102] (13)

[0103] (14)

[0104] At this time, the energy storage power station is able to perform the frequency regulation tasks assigned by the AGC dispatching center and needs to comply with the power equation constraints and the upper and lower power limits.

[0105] In one embodiment, in the above step S204, based on the sum of the frequency modulation powers of the optimization layers in the station, determining the reconstruction weight of each energy storage unit in the energy storage power station specifically includes the following steps:

[0106] Based on the sum of the frequency regulation powers of the optimization layer within the station, the unit state of charge of each energy storage unit is reconstructed and adjusted to obtain the adjusted unit state of charge; the reconstruction weight calculation parameters are obtained from the target parameters; the adjusted unit state of charge and the reconstruction weight calculation parameters are input into the reconstruction weight calculation model to obtain the reconstruction weight of each energy storage unit.

[0107] (1) Reconstruction weight

[0108] The various energy storage output units in the energy storage power station may have slight differences in aging speed and parameter specifications, and may be put into operation in different initial SoC states. Therefore, inconsistent SoC states of energy storage output units may occur during the frequency modulation process.

[0109] When allocating frequency modulation tasks, different allocation methods will cause the SoC status of each output unit to present different distributions. Generally, output units in a bad SoC state will be limited by the frequency modulation capacity and may not be able to provide sufficient frequency modulation power. Output units in a good SoC state may be limited by the rated power, although their frequency modulation capacity is sufficient to perform frequency modulation tasks. Therefore, keeping the SoC status of each energy storage output unit as consistent as possible and close to the ideal value can keep the overall SoC in the best state to the greatest extent.

[0110] In order to keep the overall SoC in an optimal state to enhance the sustainability of frequency modulation, a reconstruction weight ω can be introduced into the in-station optimization layer. i,j (t), while distributing the frequency modulation power, the SoC state of the energy storage unit is reconstructed and adjusted, and its construction method and normalization processing method are as follows:

[0111] (15)

[0112] (16)

[0113] Among them, ω i,j (t) real represents the actual value of the reconstruction weight of the j-th energy storage unit in the energy storage station i; SN i,j represents the rated capacity of the j-th energy storage unit in the energy storage station i; SoC i,j (t-1) represents the charge state of the jth energy storage unit in the energy storage station i; SoC ideal represents the ideal SoC value set artificially, which is 0.5 in this scheme; Δt represents the time interval for updating the frequency modulation plan; ω i,j (t) represents the normalized reconstruction weight value of the j-th energy storage unit in energy storage station i, and J represents the total number of energy storage units in energy storage station i.

[0114] (2) Objective function

[0115] The in-station optimization layer aims to take into account the best state of SoC after reconstruction, and aims to reasonably distribute the frequency regulation tasks undertaken by energy storage power station i to the output units of energy storage power stations with different SoCs. For a single energy storage output unit, the reconstructed SoC is compared with the ideal SoC. ideal Deviation measures the state. For multiple energy storage output units, the SoC after considering the reconstruction weights and the ideal value SoC ideal The minimum sum of deviations is the objective function, that is:

[0116] (17)

[0117] Since the solution of the two-layer optimization problem is difficult and the objective function of each energy storage output unit in the station optimization layer is relatively independent, the objective function of the station optimization layer is transformed to consider the SoC of all energy storage output units in each energy storage power station and the ideal value SoC after the reconstruction weights. ideal The minimum sum of deviations is the objective function, that is:

[0118] (18)

[0119] Where I represents the total number of energy storage power stations; J represents the total number of energy storage units in energy storage power station i; ω i,j (t) represents the actual value of the reconstruction weight of the jth energy storage unit in the energy storage station i; SoC i,j (t) represents the state of charge of the jth energy storage unit in the energy storage station i; SoC ideal Indicates the ideal value of the SoC.

[0120] (3) Constraints

[0121] When participating in system frequency regulation, the energy storage output unit of the station optimization layer needs to meet the power equation constraint, power upper and lower limit constraints, and charge state upper and lower limit constraints, which are:

[0122] (19)

[0123] (20)

[0124] (twenty one)

[0125] At this point, the objective functions and constraints of the inter-station optimization layer and the intra-station optimization layer can be combined to transform the two-level optimization problem of power allocation of energy storage power stations participating in the secondary frequency regulation of the system into a multi-objective mixed integer nonlinear programming problem.

[0126] In one embodiment, Figure 3As shown, a two-layer optimization method for power allocation of energy storage system frequency modulation in an application embodiment is provided, which specifically includes the following steps:

[0127] Step S1: Based on the energy storage power station cluster participating in system frequency regulation in the selected area, the rated power, rated capacity, cost coefficient, initial SoC and other parameters of each energy storage power station and each energy storage unit in the power station are obtained;

[0128] Step S2: Based on the AGC signal generated by the AGC dispatching center, the rejection coefficient and the remaining frequency regulation capacity of each energy storage power station are calculated, and the power of the optimization layer between stations is allocated according to whether the frequency regulation demand can be met, and it is used as the sum of the frequency regulation power of the optimization layer within the station;

[0129] Step S3: Based on the sum of the frequency modulation power of the optimization layer in the station, the reconstruction weight of each energy storage unit in the energy storage power station is calculated, and finally the power distribution of the optimization layer in the station is performed;

[0130] Step S4: Update the SoC of each energy storage unit after the current power optimization allocation, and perform rolling optimization following the AGC signal.

[0131] The energy storage power station cluster in this embodiment is composed of 3 energy storage power stations with a total of 24 energy storage units. The corresponding overall framework diagram is as follows: Figure 4 shown.

[0132] During the specific implementation of this scheme, in order to verify the advantages of the two-layer optimization method of power allocation, four frequency modulation power allocation methods including the method of this scheme were selected for comparative analysis.

[0133] Specifically, four frequency modulation power allocation methods including this solution method include:

[0134] Method 1: Only the inter-station optimization layer is considered, with the minimum total frequency regulation cost as the objective function, and the intra-station layer follows the principle of average power distribution. This is the most commonly used method;

[0135] Method 2: Considering both the inter-station optimization layer and the intra-station optimization layer, the inter-station optimization layer takes the minimum total frequency regulation cost as its objective function, and the intra-station optimization layer takes the minimum total SoC deviation of the energy storage unit as its objective function;

[0136] Method 3: Considering both the inter-station optimization layer and the intra-station optimization layer, the inter-station optimization layer introduces a resistance coefficient to reflect the frequency regulation willingness of the energy storage power station, and takes the minimum corrected total frequency regulation cost as the objective function. The intra-station optimization layer is the same as method 2.

[0137] Method 4: This method introduces the resistance coefficient and reconstruction coefficient in the inter-station optimization layer and the intra-station optimization layer respectively, and considers the economy and sustainability of the secondary frequency modulation process.

[0138] In the specific implementation of this solution, the two-layer optimization method of power allocation for frequency regulation of energy storage system has advantages in frequency regulation effect and sustainability. For the comparison results of the four frequency regulation power allocation methods, please refer to Figure 5 and Table 1 and Table 2.

[0139] Table 1 Frequency modulation effects of different control strategies

[0140]

[0141] Table 2 Frequency regulation cost of different control strategies

[0142]

[0143] Specifically, the advantages of the two-layer optimization method for power allocation in energy storage system frequency regulation in terms of frequency regulation effect and sustainability include: Figure 5 The total frequency regulation power that the energy storage power station can provide under the four power allocation methods is clearly shown. Analysis of the figure shows that Method 1 and Method 2 cannot meet the frequency regulation task assigned by the AGC dispatching center from the 166th minute onwards, Method 3 follows the AGC frequency regulation task until the 168th minute, and finally Method 4 cannot provide sufficient frequency regulation power support to the system at the 169th minute.

[0144] Combination Figure 5 As shown in Table 1, from method 1 to method 4, the energy storage power station has a higher and higher degree of completion of the frequency regulation task assigned by the AGC dispatching center. Compared with method 1, method 2 improves the frequency regulation effect by 0.87%, confirming the advantages of the two-layer power allocation model; compared with method 2, method 3 improves the frequency regulation effect by 8.78%, highlighting the advantages of introducing the resistance coefficient in the inter-station optimization layer; method 4 is the method of this paper. Compared with method 3, method 4 improves the frequency regulation effect by 4%, confirming the advantages of introducing the reconstruction weight in the intra-station optimization layer, and compared with method 1, method 4 improves the frequency regulation effect by 13.85%, which fully proves that the method of this paper significantly improves the frequency regulation effect and sustainability of the energy storage power station when participating in the secondary frequency regulation of the system by introducing the resistance coefficient and the reconstruction coefficient in the inter-station optimization layer and the intra-station optimization layer respectively.

[0145] The advantage of method 4, i.e., the method of this solution, is that by introducing the resistance coefficient and reconstruction weight, the energy storage power station with poor SoC status and the energy storage output unit in the power station are given priority to bear the frequency modulation power that can promote the recovery of their own SoC. For example, method 4 prioritizes the discharge plan for the output unit with SoC higher than the ideal value, and the higher the SoC of the output unit, the higher the priority for it to perform discharge SoC reconstruction. Similarly, method 4 also arranges an orderly charging reconstruction plan for the output unit with SoC lower than the ideal value, so that the overall SoC of each energy storage output unit in the energy storage power station is as consistent as possible and close to the ideal value, thereby reserving a considerable two-way frequency modulation capacity, and finally improving the frequency modulation effect by 8.78% on the basis of method 3 and by 13.85% on the basis of method 1.

[0146] In summary, this solution method completes the double-layer optimization of power allocation when the energy storage power station cluster participates in the secondary frequency regulation of the system by introducing the resistance coefficient and reconstruction weight in the inter-station optimization layer and the intra-station optimization layer respectively, thereby effectively maintaining the overall SoC state while considering the economic goals, and ultimately significantly improving the frequency regulation effect and sustainability by about 13.85%.

[0147] During the specific implementation of this plan, the performance of the two-layer optimization method for power allocation of the energy storage system frequency regulation in terms of frequency regulation economy is shown in Table 2.

[0148] Specifically, the performance of the two-layer optimization method for power allocation of energy storage system frequency regulation in terms of frequency regulation economy includes: As shown in Table 2, the unit cost of frequency regulation power of method 4 is the lowest, which is only 10.93 yuan / MW, which is 1.33%, 1.22% and 1.50% lower than that of method 1, method 2 and method 3, respectively. This is because method 4 introduces a resistance coefficient in the inter-station optimization layer, and takes into account the overall SoC recovery of energy storage power stations 1 and 2 while taking the minimum total frequency regulation cost as the objective function, and introduces a reconstruction coefficient in the intra-station optimization layer, arranging an orderly SoC reconstruction and recovery plan for each energy storage unit, thereby providing more frequency regulation power as a whole, reducing the proportion of investment cost and life cost in the total frequency regulation cost, and finally achieving a reduction in the unit cost of frequency regulation power.

[0149] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0150] Based on the same inventive concept, the embodiment of the present application also provides a device for realizing the dual-layer optimization method for power distribution of energy storage system frequency regulation involved in the above-mentioned dual-layer optimization method for power distribution of energy storage system frequency regulation. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more dual-layer optimization devices for power distribution of energy storage system frequency regulation provided below can refer to the limitations of the dual-layer optimization method for power distribution of energy storage system frequency regulation above, and will not be repeated here.

[0151] In an exemplary embodiment, Figure 6 As shown, a power distribution double-layer optimization device for frequency regulation of an energy storage system is provided, comprising:

[0152] The parameter acquisition module 601 is used to determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain target parameters of the energy storage power station cluster, the energy storage power stations, and the energy storage units;

[0153] A calculation processing module 602 is used to calculate the rejection coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters in response to the AGC signal sent by the AGC dispatch center;

[0154] The inter-station optimization module 603 is used to perform inter-station optimization layer power allocation according to the rejection coefficient and whether the remaining frequency modulation capacity meets the demand condition, and obtain the sum of the frequency modulation power of the intra-station optimization layer;

[0155] A weight determination module 604, configured to determine a reconstruction weight of each of the energy storage units in the energy storage power station based on the sum of the frequency modulation powers of the optimization layers in the station;

[0156] The in-station optimization module 605 is configured to perform power allocation of the in-station optimization layer according to the reconstruction weight.

[0157] In one embodiment, the inter-station optimization module 603 is also used to generate a first objective function of the inter-station optimization layer according to the resistance coefficient; when the remaining frequency modulation capacity meets the demand condition, generate a first constraint condition, and perform inter-station optimization layer power allocation according to the first objective function and the first constraint condition; when the remaining frequency modulation capacity does not meet the demand condition, generate a second constraint condition, and perform inter-station optimization layer power allocation according to the first objective function and the second constraint condition.

[0158] In one embodiment, the calculation processing module 602 is also used to obtain a resistance coefficient calculation parameter and a remaining frequency regulation capacity calculation parameter from the target parameters; input the resistance coefficient calculation parameter into a resistance coefficient calculation model to obtain the resistance coefficient of each energy storage power station; input the remaining frequency regulation capacity calculation parameter into a remaining frequency regulation capacity calculation model to obtain the remaining frequency regulation capacity of each energy storage power station.

[0159] In one embodiment, the weight determination module 604 is also used to reconstruct and adjust the unit charge state of each energy storage unit based on the sum of the frequency modulation power of the optimization layer within the station to obtain an adjusted unit charge state; obtain a reconstruction weight calculation parameter from the target parameter; input the adjusted unit charge state and the reconstruction weight calculation parameter into a reconstruction weight calculation model to obtain the reconstruction weight of each energy storage unit.

[0160] In one embodiment, the in-station optimization module 605 is also used to generate a second objective function of the in-station optimization layer according to the reconstruction weight; generate a third constraint condition based on the power limitation condition and charge state limitation condition of the in-station optimization layer; and under the third constraint condition, perform power allocation of the in-station optimization layer according to the second objective function.

[0161] In one embodiment, the power distribution two-layer optimization device for frequency regulation of the energy storage system also includes a state update module, which is used to update the unit charge state of each energy storage unit after power distribution at the current moment; and send the unit charge state to the AGC dispatching center so that the AGC dispatching center can perform rolling optimization on the unit charge state following the generated AGC signal.

[0162] Each module in the above-mentioned power distribution double-layer optimization device for frequency modulation of the energy storage system can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0163] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a two-layer optimization method for power distribution of an energy storage system frequency modulation is implemented.

[0164] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0165] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0166] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0167] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0168] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0169] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0170] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0171] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A two-layer optimization method for power allocation of energy storage system frequency modulation, characterized in that: The method comprises: Determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and obtain target parameters of the energy storage power station cluster, the energy storage power stations, and the energy storage units; In response to an AGC signal sent by an AGC dispatch center, the rejection coefficient and the remaining frequency regulation capacity of each of the energy storage power stations are calculated according to the target parameters; According to the rejection coefficient and whether the remaining frequency modulation capacity meets the demand conditions, the inter-station optimization layer power allocation is performed accordingly to obtain the sum of the frequency modulation powers of the intra-station optimization layer; Determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layers in the station; Power allocation of the optimization layer within the station is performed according to the reconstruction weight.

2. The method according to claim 1, characterized in that The step of performing inter-station optimization layer power allocation according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand condition includes: generating a first objective function of the inter-station optimization layer according to the resistance coefficient; When the remaining frequency modulation capacity meets the demand condition, generating a first constraint condition, and performing inter-station optimization layer power allocation according to the first objective function and the first constraint condition; When the remaining frequency modulation capacity does not meet the demand condition, a second constraint condition is generated, and inter-station optimization layer power allocation is performed according to the first objective function and the second constraint condition.

3. The method according to claim 1, characterized in that The step of calculating the resistance coefficient and the remaining frequency regulation capacity of each energy storage power station according to the target parameters includes: Obtaining a resistance coefficient calculation parameter and a remaining frequency modulation capacity calculation parameter from the target parameters; Inputting the resistance coefficient calculation parameters into a resistance coefficient calculation model to obtain the resistance coefficient of each energy storage power station; The remaining frequency regulation capacity calculation parameters are input into the remaining frequency regulation capacity calculation model to obtain the remaining frequency regulation capacity of each energy storage power station.

4. The method according to claim 1, characterized in that: The step of determining the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layer in the station includes: Based on the sum of the frequency modulation powers of the optimization layer in the station, reconstructing and adjusting the unit state of charge of each of the energy storage units to obtain an adjusted unit state of charge; Obtaining a reconstruction weight calculation parameter from the target parameter; The adjusted unit state of charge and the reconstruction weight calculation parameters are input into a reconstruction weight calculation model to obtain the reconstruction weight of each energy storage unit.

5. The method according to claim 4, characterized in that The performing power allocation of the optimization layer within the station according to the reconstruction weight includes: generating a second objective function of the in-station optimization layer according to the reconstruction weight; generating a third constraint condition based on the power constraint condition and the charge state constraint condition of the in-station optimization layer; Under the third constraint condition, power allocation of the in-station optimization layer is performed according to the second objective function.

6. The method according to any one of claims 1 to 5, characterized in that: After performing power allocation of the optimization layer within the station according to the reconstruction weight, the method further includes: Updating the unit charge state of each energy storage unit after power allocation at the current moment; The unit state of charge is sent to the AGC scheduling center so that the AGC scheduling center can perform rolling optimization on the unit state of charge following the generated AGC signal.

7. A double-layer optimization device for power distribution of energy storage system frequency modulation, characterized in that: The device comprises: A parameter acquisition module is used to determine the energy storage power station cluster participating in the power system frequency regulation in the target area, the energy storage power stations included in the energy storage power station cluster, and the energy storage units included in each of the energy storage power stations, and to obtain target parameters of the energy storage power station cluster, the energy storage power stations, and the energy storage units; A calculation and processing module, used for calculating the rejection coefficient and the remaining frequency regulation capacity of each of the energy storage power stations according to the target parameters in response to the AGC signal sent by the AGC dispatch center; An inter-station optimization module, configured to perform inter-station optimization layer power allocation according to whether the rejection coefficient and the remaining frequency modulation capacity meet the demand conditions, and obtain the sum of the frequency modulation powers of the intra-station optimization layers; A weight determination module, used to determine the reconstruction weight of each energy storage unit in the energy storage power station based on the sum of the frequency modulation powers of the optimization layer in the station; The in-station optimization module is used to perform power allocation of the in-station optimization layer according to the reconstruction weight.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.