A method and system for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism.
By constructing a comprehensive performance scoring model and using the rainflow counting method to accurately model battery degradation, and combining it with an improved particle swarm optimization algorithm for multi-market collaborative optimization, the problems of inaccurate revenue calculation and insufficient strategy optimization in independent energy storage systems are solved, thereby maximizing net revenue and protecting battery life.
Patent Information
- Application Number
- CN202611304298.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-17
AI Technical Summary
Existing independent energy storage systems in the frequency regulation market have incomplete revenue calculation methods, which ignore the impact of frequency regulation performance indicators on revenue, have inaccurate battery degradation cost modeling, lack multi-market collaborative optimization mechanisms, and cannot dynamically adapt to market changes, resulting in large deviations in revenue calculation results and poor strategy optimization effects.
A comprehensive performance scoring model is constructed based on response delay, response accuracy, and adjustment rate. Rainflow counting method is used to accurately model battery degradation costs. An improved particle swarm optimization algorithm is combined to perform multi-market collaborative optimization and dynamically adjust energy storage operation strategy to maximize net benefits.
It improves the accuracy of frequency regulation revenue calculation and battery life protection, dynamically optimizes frequency regulation capacity allocation, provides scientific operation strategies, and enhances the overall economic benefits of energy storage systems.
Smart Images

Figure CN123121573A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power system energy storage technology, and in particular to a method and system for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism. Background Technology
[0002] With the continuous increase in the grid connection ratio of new energy power generation such as wind power and photovoltaics, the inertia support capacity and frequency regulation capacity of the power system have significantly decreased, leading to a growing demand for system frequency regulation. Independent energy storage power stations (such as lithium-ion battery energy storage) have become important players in the power frequency regulation ancillary services market due to their characteristics such as fast response speed, high regulation accuracy, fast ramp rate, and flexible bidirectional regulation. Under the current power ancillary services market mechanism, the revenue of energy storage power stations participating in frequency regulation mainly comes from frequency regulation mileage compensation and frequency regulation capacity compensation, and the amount of compensation is closely related to the actual frequency regulation performance of the energy storage system (such as response speed, tracking accuracy, and regulation rate).
[0003] Currently, my country's power frequency regulation ancillary services market mainly adopts a "mileage + capacity" compensation mechanism. Frequency regulation mileage compensation is calculated based on the actual output change of energy storage following AGC commands, while frequency regulation capacity compensation is calculated based on the frequency regulation capacity that energy storage can provide. However, existing methods for calculating the revenue of independent energy storage in the frequency regulation market have significant shortcomings:
[0004] First, existing revenue calculation methods do not provide a comprehensive assessment of frequency regulation performance. Traditional methods rely solely on frequency regulation mileage as the primary basis for revenue calculation, neglecting the impact of key performance indicators such as energy storage response delay, response accuracy, and regulation rate on revenue. This fails to establish a precise quantitative relationship between performance indicators and revenue, resulting in significant discrepancies between the calculated revenue and the actual situation.
[0005] Secondly, the battery degradation cost modeling is inaccurate. Under frequency regulation conditions, energy storage systems are in a state of frequent shallow charging and discharging, which is fundamentally different from the deep charging and discharging under traditional peak-valley arbitrage conditions. Existing methods generally use linear depreciation models or simple cycle number models to calculate battery degradation costs, which cannot accurately reflect the actual degradation characteristics of batteries under frequency regulation conditions. This leads to existing revenue calculation methods seriously underestimating the battery degradation costs of frequency regulation applications.
[0006] Secondly, there is a lack of a multi-market collaborative optimization mechanism. Independent energy storage power stations can participate in both the frequency regulation ancillary service market and the electricity market simultaneously, and achieve electricity arbitrage through energy deviations during the frequency regulation process. However, existing methods usually treat the two markets separately, lacking a unified optimization framework, and cannot find the optimal balance between frequency regulation capacity allocation and energy arbitrage, resulting in the inability to maximize overall benefits.
[0007] Finally, there is a lack of dynamic optimization capabilities to adapt to market changes. Electricity market compensation prices have significant time-varying characteristics, with huge differences in frequency regulation mileage prices, frequency regulation capacity prices, and electricity prices across different seasons and time periods. Existing static calculation methods cannot dynamically adjust energy storage operation strategies according to market price changes, resulting in a significant decrease in returns when market prices fluctuate.
[0008] To address the aforementioned issues, there is an urgent need for an independent energy storage revenue calculation method that can comprehensively assess frequency regulation performance, accurately model battery degradation costs, achieve multi-market collaborative optimization, and possess dynamic adaptability, so as to provide a scientific basis for energy storage investment decisions and operational optimization. Summary of the Invention
[0009] In view of this, this application provides a method and system for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism, so as to achieve accurate frequency regulation revenue calculation and optimal operation strategy recommendation.
[0010] To achieve the above objectives, the first aspect of this application provides a method for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism, including:
[0011] The system collects operational data from independent energy storage power stations and performs outlier detection and cleaning, missing value interpolation, and time alignment preprocessing on the collected data. The operational data includes AGC frequency modulation command signals, actual output response, battery state of charge (SOC), charging and discharging power, frequency modulation market clearing price, and electricity market price.
[0012] Based on the preprocessed data, four performance indicators—frequency modulation mileage, response delay, response accuracy, and regulation rate—are calculated. A K-factor comprehensive performance scoring model is constructed by weighting and fusing response delay score, response accuracy score, and regulation rate score.
[0013] Based on the K-factor and the frequency regulation market rules, calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electrical energy arbitrage revenue respectively.
[0014] A battery degradation cost model based on the rainflow counting method is established to calculate the battery degradation cost under frequency modulation conditions.
[0015] A multi-constraint optimization model with the goal of maximizing net revenue is established. An improved particle swarm optimization algorithm is used to solve for the optimal capacity allocation ratio between the frequency regulation market and the power market, and the optimal operation scheme is output.
[0016] As one possible implementation of the first aspect, the frequency modulation mileage is calculated as follows:
[0017] For each AGC frequency modulation command cycle, the sum of the absolute values of the actual output changes is calculated as the frequency modulation mileage. When the direction of the AGC frequency modulation command reverses, the mileage is re-accumulated from zero. The formula for calculating this frequency modulation mileage is:
[0018] ;
[0019] in, For the first The actual output value of each sampling point This represents the total FM mileage within the statistical period.
[0020] As one possible implementation of the first aspect, the K-factor comprehensive performance scoring model is constructed as follows:
[0021] ;
[0022] in, The response delay score is calculated based on the ratio of the actual response time to the standard response time. To achieve the accuracy score, the Pearson correlation coefficient between the actual output and the AGC frequency modulation command is calculated. The regulation rate score is calculated based on the ratio of the actual regulation rate to the rated regulation rate. , , Let be the weight coefficient, and satisfy... .
[0023] As one possible implementation of the first aspect, the formula for calculating the frequency modulation mileage compensation benefit is as follows:
[0024] ;
[0025] in, Where K is the frequency modulation mileage, and K is the overall performance scoring factor. This is the unit price for FM mileage compensation.
[0026] As one possible implementation of the first aspect, the establishment of a battery degradation cost model based on rainflow counting includes:
[0027] Peak and valley values were extracted from the SOC time series data under frequency modulation conditions, and the discharge depth was extracted using the rainflow counting method. Corresponding number of loops ;
[0028] Based on the battery cycle life curve, establish an equivalent cycle cost function:
[0029] ;
[0030] in, For the total lifecycle replacement cost of the battery, For the corresponding depth of discharge Maximum cycle life under these conditions;
[0031] The battery cycle life curve is fitted using a power function:
[0032] ;
[0033] in, , These are the fitting parameters.
[0034] As one possible implementation of the first aspect, the formula for calculating the net income is:
[0035] ;
[0036] in, To compensate for the mileage of frequency modulation, To compensate for the revenue from frequency modulation capacity, For arbitrage profits in electrical energy, For the cost of battery degradation, This refers to the annual operation and maintenance costs.
[0037] As one possible implementation of the first aspect, the constraints of the multi-constraint optimization model include:
[0038] SOC constraints: ;
[0039] Charge and discharge power constraints: , For charging power, For discharge power, This refers to the rated power of the energy storage power station;
[0040] Charge and discharge mutual exclusion constraint: ;
[0041] Frequency modulation capacity constraints: ,in, This is the frequency modulation capacity ratio coefficient;
[0042] Daily cycle constraint: ,in, The state of charge at the start of a single-day operating cycle. This represents the state of charge at the end of a single-day operating cycle.
[0043] As one possible implementation of the first aspect, the improvements to the improved particle swarm optimization algorithm include:
[0044] A non-linear decreasing inertia weight strategy is adopted:
[0045] ;
[0046] in, , , This represents the current iteration number. This represents the maximum number of iterations.
[0047] Introducing the Cauchy mutation operator to enhance global search capabilities;
[0048] An elite retention strategy based on crowding distance is adopted to maintain population diversity.
[0049] As one possible implementation of the first aspect, the optimal operating scheme includes:
[0050] The optimal frequency regulation capacity allocation ratio, the expected revenue and proportion of each revenue source, the expected battery life and degradation cost, and the sensitivity analysis report.
[0051] The second aspect of this application provides a revenue calculation system for independent energy storage under a frequency regulation compensation mechanism, including:
[0052] The data acquisition module is used to collect operational data from independent energy storage power stations and to perform outlier detection and cleaning, missing value interpolation, and time alignment preprocessing on the collected data. The operational data includes AGC frequency modulation command signals, actual output response, battery state of charge (SOC), charging and discharging power, frequency modulation market clearing price, and electricity market price.
[0053] The performance evaluation module is used to calculate four performance indicators—frequency modulation mileage, response delay, response accuracy, and regulation rate—based on preprocessed data, and to construct a K-factor comprehensive performance scoring model that is a weighted fusion of response delay score, response accuracy score, and regulation rate score.
[0054] The revenue calculation module is used to calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electrical energy arbitrage revenue based on the K factor and the frequency regulation market rules, respectively.
[0055] The cost modeling module is used to establish a battery degradation cost model based on the rainflow counting method and calculate the battery degradation cost under frequency regulation conditions.
[0056] The strategy optimization module is used to establish a multi-constraint optimization model with the goal of maximizing net profit. It uses an improved particle swarm optimization algorithm to solve for the optimal capacity allocation ratio between the frequency regulation market and the electricity market, and outputs the optimal operation plan.
[0057] Compared with the prior art, this application has the following beneficial effects:
[0058] This application provides a method and system for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism. By constructing a comprehensive performance scoring K-factor model covering response delay, response accuracy, and regulation rate, the calculation of frequency regulation mileage compensation revenue is made more comprehensive and accurate. The rainflow counting method is used to cyclically extract SOC time-series data under frequency regulation conditions, and an equivalent degradation cost model is established in combination with the battery cycle life curve, overcoming the shortcomings of traditional linear depreciation methods that cannot accurately reflect shallow charge and discharge losses. On this basis, a multi-source net revenue calculation system is established, including frequency regulation mileage compensation, frequency regulation capacity compensation, electric energy arbitrage, and battery degradation costs. An improved particle swarm optimization algorithm is introduced to collaboratively optimize the capacity allocation ratio between the frequency regulation market and the electric energy market, which can provide energy storage operators with an optimal operating strategy that balances revenue maximization and battery life protection, significantly improving the calculation accuracy and decision-making scientificity. Attached Figure Description
[0059] Figure 1 A flowchart illustrating a method for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism, provided in an embodiment of this application.
[0060] Figure 2 This is a structural diagram of a revenue calculation system for independent energy storage under a frequency regulation compensation mechanism, provided in an embodiment of this application.
[0061] Figure 3 This is a structural diagram of a computing device provided in an embodiment of this application.
[0062] It should be understood that the dimensions and shapes of the block diagrams in the above structural diagrams are for reference only and should not constitute an exclusive interpretation of the embodiments of this application. The relative positions and inclusion relationships between the block diagrams presented in the structural diagrams are only schematic representations of the structural relationships between the block diagrams, and are not intended to limit the physical connection methods of the embodiments of this application. Detailed Implementation
[0063] To make this application easier to understand, specific embodiments are described below to further illustrate this application. The technical solutions provided by this application are further explained below with reference to the accompanying drawings and examples. It should be understood that the system architecture and business scenarios provided in the embodiments of this application are mainly for illustrating possible implementations of the technical solutions of this application and should not be construed as the sole limitation on the technical solutions of this application. Those skilled in the art will recognize that, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided by this application are equally applicable to similar technical problems.
[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. In case of any inconsistency, the meaning set forth in this specification or derived from the content described herein shall prevail. Furthermore, the terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit the scope of this application.
[0065] The solutions provided in this application will now be described in detail with reference to the accompanying drawings and embodiments.
[0066] This application proposes a method for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism. This method can be applied to independent energy storage systems. By constructing a four-dimensional performance evaluation model, it achieves a precise quantitative correlation between frequency regulation performance and revenue. It uses the rainflow counting method to accurately model the nonlinear degradation characteristics of the battery under frequency regulation conditions. Combined with a multi-market collaborative optimization mechanism and an improved particle swarm optimization algorithm, it not only significantly improves the accuracy of revenue calculation but also dynamically optimizes the frequency regulation capacity allocation strategy. It maximizes net revenue while ensuring battery life, providing scientific and reliable technical support for investment decisions and operational optimization of independent energy storage power stations. It effectively solves the technical bottlenecks of existing methods, such as large deviations in revenue calculation and poor strategy optimization effects caused by incomplete performance evaluation, inaccurate cost modeling, and insufficient market collaboration.
[0067] like Figure 1 As shown in the embodiment of this application, a method for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism includes the following steps:
[0068] S110: Collect operational data from independent energy storage power stations and perform outlier detection and cleaning, missing value imputation, and time alignment preprocessing on the collected data.
[0069] In this embodiment, taking a 50MW / 100MWh independent energy storage power station in actual operation as an example, the following data is collected in real time through the SCADA system:
[0070] AGC frequency modulation command signal The AGC instruction sequence issued by the dispatch center has a sampling period of 1-4 seconds;
[0071] Actual output response The actual active power output of the energy storage power station is sampled synchronously with the AGC command.
[0072] Battery operating status: including state of charge (SOC(t)) and charge / discharge power. , Battery temperature ;
[0073] Market data includes: frequency regulation market clearing prices (frequency regulation mileage compensation prices and frequency regulation capacity compensation prices) and electricity market prices.
[0074] Data preprocessing specifically includes:
[0075] Outlier detection: using The criterion is to calculate the deviation of each data point from the mean, and if it exceeds 3 times the standard deviation, it is judged as an outlier and removed.
[0076] Missing value imputation: For data segments with no more than 10 consecutive missing sampling points, cubic spline interpolation is used to imput them; for large missing segments, they are marked as invalid time periods.
[0077] Time alignment: Data from different sampling frequencies are resampled to a 1-minute time resolution and aggregated using the mean.
[0078] S120: Based on the preprocessed data, calculate four performance indicators: frequency modulation mileage, response delay, response accuracy, and regulation rate. Construct a K-factor comprehensive performance scoring model that is a weighted fusion of response delay score, response accuracy score, and regulation rate score.
[0079] The specific implementation of constructing the four-dimensional performance evaluation model in this step is as follows:
[0080] Frequency regulation mileage calculation: Frequency regulation mileage is a core indicator for measuring the activity level of energy storage frequency regulation. It is defined as the sum of the absolute values of the actual output changes within the statistical period. When the AGC command direction reverses, the mileage is re-accumulated from zero. The formula for calculating the frequency regulation mileage is as follows:
[0081]
[0082] in, For the first The actual output value of each sampling point This represents the total FM mileage within the statistical period.
[0083] Response delay calculation: Response delay is defined as the time difference between the issuance of the AGC command and the start of the energy storage output response. For each AGC command change point, the time required for the actual output to reach 10% of the command value is calculated.
[0084]
[0085] in, For the change time of the j-th AGC instruction, This is the moment when the actual output reaches 10% of the commanded value.
[0086] The average response delay within the statistical period is:
[0087]
[0088] in, This represents the number of AGC command changes within the statistical period.
[0089] The average response delay calculated above Response latency score The calculation formula is:
[0090]
[0091] in, This is the standard response time (usually 10 seconds).
[0092] Response accuracy score Calculation: Response accuracy is measured by the Pearson correlation coefficient to determine the consistency between the actual output and the AGC command.
[0093]
[0094] in, and These are the average values of actual output and AGC commands, respectively. The value range is [0,1], and the closer the value is to 1, the higher the tracking accuracy.
[0095] Regulation rate score Calculation: The regulating rate is defined as the ratio of the change in output per unit time to the rated power.
[0096]
[0097] in, The sampling interval is... This is the rated power of the energy storage. The value range is [0,1], and the closer the value is to 1, the faster the adjustment rate.
[0098] Based on the response delay score, response accuracy score, and adjustment rate score obtained from the above calculations, a K-factor comprehensive performance scoring model is constructed through weighted fusion:
[0099]
[0100] in, , , The weighting coefficients are determined using an expert scoring method and satisfy the following conditions: The K factor has a range of [0,1], and the larger the value, the better the frequency modulation performance.
[0101] S130: Based on the K factor and the frequency regulation market rules, calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electrical energy arbitrage revenue respectively.
[0102] In this step, the formula for calculating the frequency modulation mileage compensation benefit is as follows:
[0103]
[0104] in, Where K is the frequency modulation mileage, and K is the overall performance scoring factor. This is the unit price for FM mileage compensation.
[0105] The formula for calculating the frequency modulation capacity compensation benefit is as follows:
[0106]
[0107] in, For the frequency regulation capacity declared for energy storage, The unit price is for frequency modulation capacity compensation. Frequency regulation service duration. When energy storage provides frequency regulation capacity, it can receive capacity compensation even if it is not used.
[0108] The aforementioned arbitrage profit refers to the profit obtained by buying low and selling high in the energy market due to energy deviation during the frequency regulation process of energy storage utilization. Its calculation formula is as follows:
[0109]
[0110] in, and These are the discharge and charge power, respectively. and These are the prices for selling electricity and buying electricity, respectively.
[0111] S140: Establish a battery degradation cost model based on the rainflow counting method to calculate the battery degradation cost under frequency modulation conditions.
[0112] In this step, establishing a battery degradation cost model based on rainflow counting specifically includes:
[0113] Peak and valley values were extracted from the SOC time series data under frequency modulation conditions, and different discharge depths were extracted using the rainflow counting method. Corresponding number of loops ;
[0114] Based on the battery cycle life curve, establish an equivalent cycle cost function:
[0115]
[0116] in, For the total lifecycle replacement cost of the battery, For the corresponding depth of discharge Maximum cycle life under these conditions;
[0117] The battery cycle life curve is fitted using a power function:
[0118] ;
[0119] in, , These are the fitting parameters.
[0120] S150: Establish a multi-constraint optimization model with the goal of maximizing net revenue, and use an improved particle swarm optimization algorithm to solve for the optimal capacity allocation ratio between the frequency regulation market and the power market, and output the optimal operation scheme.
[0121] In this step, the net revenue of independent energy storage is calculated by combining all revenue sources and cost items. The calculation formula is as follows:
[0122]
[0123] in, To compensate for the mileage of frequency modulation, To compensate for the revenue from frequency modulation capacity, For arbitrage profits in electrical energy, For the cost of battery degradation, Annual operation and maintenance costs are typically calculated as a linear function of the energy storage's rated power and capacity.
[0124]
[0125] in, To maintain a fixed maintenance coefficient, For variable maintenance coefficients, For the rated capacity of energy storage, This refers to the number of operating hours per year.
[0126] Based on the above formula for calculating net income, a multi-constraint optimization model is established. The decision variable of this model is the frequency regulation capacity ratio coefficient. This indicates the proportion of rated power allocated to the FM market, with the remaining... The proportion is used in the electricity market.
[0127] The objective function of this multi-constraint optimization model is to maximize net profit.
[0128]
[0129] The constraints of this multi-constraint optimization model include:
[0130] SOC constraints: ;
[0131] Charge and discharge power constraints: ;
[0132] Charge and discharge mutual exclusion constraint: ;
[0133] Frequency modulation capacity constraints: ,in, This is the frequency modulation capacity ratio coefficient;
[0134] Daily cycle constraint: ,in, The state of charge at the start of a single-day operating cycle. This represents the state of charge at the end of a single-day operating cycle.
[0135] Because traditional particle swarm optimization (PSO) algorithms are prone to getting trapped in local optima, this embodiment improves the PSO algorithm to solve for the optimal capacity allocation ratio. The improvements to the PSO algorithm include:
[0136] A non-linear decreasing inertia weight strategy is adopted:
[0137] ;
[0138] in, , , This represents the current iteration number. This represents the maximum number of iterations.
[0139] Introducing the Cauchy mutation operator enhances global search capabilities; when a particle gets trapped in a local optimum, it uses probability... Apply Cauchy mutation to the particle position: ,in, For variable asynchronous long factor, These are standard Cauchy distribution random numbers;
[0140] An elite retention strategy based on crowding distance is adopted: after each iteration, the crowding distance is calculated based on the objective function value of the particles, and elite particles with larger crowding distances are retained to maintain population diversity.
[0141] After the calculations in the above steps, an optimal operating scheme that balances maximizing revenue and protecting battery life can be output. Specifically, it includes the optimal frequency regulation capacity allocation ratio, the expected revenue and proportion of each revenue source, the expected battery life and degradation cost, and a sensitivity analysis report.
[0142] In summary, the revenue calculation method for independent energy storage under the frequency regulation compensation mechanism proposed in this application, on the one hand, overcomes the limitation of relying solely on frequency regulation mileage to calculate revenue by constructing a weighted K-factor comprehensive performance evaluation model that integrates response delay, response accuracy, and regulation rate, thus conforming to the current market-based pricing rules for frequency regulation and significantly improving the accuracy of frequency regulation revenue calculation; on the other hand, it uses the rainflow counting method to analyze the battery SOC fluctuation cycle characteristics under frequency regulation conditions, and combines the battery life curve to finely calculate the battery degradation cost caused by shallow charging and discharging, abandoning the traditional crude calculation method of linear depreciation and achieving accurate cost quantification; at the same time, this invention coordinates the frequency regulation market and electrical energy. To maximize net profit in the arbitrage market, a multi-constraint optimization model is built. The optimal capacity allocation ratio is solved using a particle swarm optimization algorithm, improved with nonlinear inertia weighting, Cauchy mutation, and crowding distance elite retention. This achieves optimal cross-market allocation of energy storage resources and improves overall economic efficiency. A modular calculation system with visualization analysis capabilities provides a clear view of profit composition, K-factor changes, and battery degradation patterns. It also performs sensitivity analysis of key parameters, providing reliable data support for energy storage operators to dynamically adjust their operational strategies. This effectively addresses the shortcomings of existing technologies, such as biased assessments, distorted costs, unreasonable capacity configurations, and insufficient practical guidance.
[0143] like Figure 2 As shown, this application also provides a revenue calculation system for independent energy storage under a frequency regulation compensation mechanism. This system can be deployed within an independent energy storage system to implement any step of the aforementioned revenue calculation method for independent energy storage under a frequency regulation compensation mechanism, and its optional embodiments. (Refer to...) Figure 2 As shown, the system includes a data acquisition module 210, a performance evaluation module 220, a revenue calculation module 230, a cost modeling module 240, and a strategy optimization module 250.
[0144] The data acquisition module 210 is used to collect operational data from independent energy storage power stations and perform outlier detection and cleaning, missing value imputation, and time alignment preprocessing on the collected data. The operational data includes AGC frequency regulation command signals, actual output response, battery state of charge (SOC), charge and discharge power, frequency regulation market clearing price, and electricity market price. The performance evaluation module 220 is used to calculate four performance indicators—frequency regulation mileage, response delay, response accuracy, and regulation rate—based on the preprocessed data, and construct a K-factor comprehensive performance scoring model that is a weighted fusion of response delay score, response accuracy score, and regulation rate score. The revenue calculation module 230 is used to calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electricity arbitrage revenue based on the K-factor and frequency regulation market rules. The cost modeling module 240 is used to establish a battery degradation cost model based on the rainflow counting method and calculate the battery degradation cost under frequency regulation conditions. The strategy optimization module 250 is used to establish a multi-constraint optimization model with the goal of maximizing net revenue, and uses an improved particle swarm optimization algorithm to solve for the optimal capacity allocation ratio between the frequency regulation market and the electricity market, and outputs the optimal operation plan.
[0145] It should be understood that the systems or modules in the embodiments of this application can be implemented by software, for example, by computer programs or instructions having the above-described functions. The corresponding computer programs or instructions can be stored in the internal memory of the terminal, and the processor reads the corresponding computer programs or instructions from the memory to implement the above functions. Alternatively, the systems or modules in the embodiments of this application can also be implemented by hardware. Or, the systems or modules in the embodiments of this application can also be implemented by a combination of a processor and software modules.
[0146] It should be understood that the processing details of the system or module in the embodiments of this application can be found by referring to... Figure 1 The descriptions of the embodiments and related extended embodiments shown will not be repeated in this application.
[0147] Figure 3 This is a schematic structural diagram of a computing device 1000 provided in an embodiment of this application. This computing device can execute or implement various optional embodiments of the above-described methods. The computing device can be a terminal, or a chip or chip system within the terminal. Figure 3 As shown, the computing device 1000 includes: a processor 1010, a memory 1020, and a communication interface 1030.
[0148] It should be understood that Figure 3 The communication interface 1030 in the computing device 1000 shown can be used to communicate with other devices, and may specifically include one or more transceiver circuits or interface circuits.
[0149] The processor 1010 can be connected to the memory 1020. The memory 1020 can be used to store the program code and data. Therefore, the memory 1020 can be a storage unit inside the processor 1010, an external storage unit independent of the processor 1010, or a component that includes both the storage unit inside the processor 1010 and the external storage unit independent of the processor 1010.
[0150] Optionally, the computing device 1000 may also include a bus. The memory 1020 and communication interface 1030 can be connected to the processor 1010 via the bus. The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The symbol is represented by a line without an arrow, but this does not mean that there is only one bus or one type of bus.
[0151] It should be understood that in the embodiments of this application, the processor 1010 may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. Alternatively, the processor 1010 may employ one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0152] The memory 1020 may include read-only memory and random access memory, and provides instructions and data to the processor 1010. A portion of the processor 1010 may also include non-volatile random access memory. For example, the processor 1010 may also store device type information.
[0153] When the computing device 1000 is running, the processor 1010 executes computer execution instructions stored in the memory 1020 to perform any of the operation steps of the above method and any of the optional embodiments thereof.
[0154] It should be understood that the computing device 1000 according to the embodiments of this application can correspond to the corresponding subject in executing the methods according to the various embodiments of this application, and the above and other operations and / or functions of each module in the computing device 1000 are respectively for implementing the corresponding processes of the methods of this embodiment. For the sake of brevity, they will not be described in detail here.
[0155] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0156] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0157] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0158] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0159] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0160] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0161] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is used to perform the above-described method, which includes at least one of the schemes described in the above embodiments.
[0162] The computer storage medium in this application embodiment can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0163] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0164] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including, but not limited to, wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0165] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0166] Furthermore, the terms "first, second, third, etc." or similar terms such as module A, module B, and module C used in the specification and claims are only used to distinguish similar objects and do not represent a specific ordering of objects. It is understood that, where permissible, a specific order or sequence may be interchanged so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0167] In the above description, the labels of the steps involved, such as S110, S120, etc., do not mean that the steps will necessarily be executed. The order of the steps can be interchanged or executed simultaneously if permitted.
[0168] The term "comprising" as used in the specification and claims should not be construed as limiting itself to what follows; it does not exclude other elements or steps. Therefore, it should be interpreted as specifying the presence of the mentioned feature, integral, step, or component, but does not exclude the presence or addition of one or more other features, integrals, steps, or components, or groups thereof. Thus, the statement "device comprising means A and B" should not be limited to a device consisting solely of components A and B.
[0169] The terms "an embodiment" or "an embodiment" as used in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in at least one embodiment of this application. Therefore, the terms "in one embodiment" or "in an embodiment" appearing throughout this specification do not necessarily refer to the same embodiment, but may refer to the same embodiment. Furthermore, in one or more embodiments, the particular features, structures, or characteristics can be combined in any suitable manner, as will be apparent to those skilled in the art from this disclosure.
[0170] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, all of which fall within the scope of protection of this application.
Claims
1. A method for calculating the revenue of independent energy storage under a frequency regulation compensation mechanism, characterized in that, include: Collect operational data from independent energy storage power stations, and perform outlier detection and cleaning, missing value imputation, and time alignment preprocessing on the collected data; The operational data includes AGC frequency modulation command signals, actual output response, battery state of charge (SOC), charging and discharging power, frequency modulation market clearing price, and electricity market price. Based on the preprocessed data, four performance indicators—frequency modulation mileage, response delay, response accuracy, and regulation rate—are calculated. A K-factor comprehensive performance scoring model is constructed by weighting and fusing response delay score, response accuracy score, and regulation rate score. Based on the K-factor and the frequency regulation market rules, calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electrical energy arbitrage revenue respectively. A battery degradation cost model based on the rainflow counting method is established to calculate the battery degradation cost under frequency modulation conditions. A multi-constraint optimization model with the goal of maximizing net revenue is established. An improved particle swarm optimization algorithm is used to solve for the optimal capacity allocation ratio between the frequency regulation market and the power market, and the optimal operation scheme is output.
2. The method according to claim 1, characterized in that, The frequency modulation mileage is calculated as follows: For each AGC frequency modulation command cycle, the sum of the absolute values of the actual output changes is calculated as the frequency modulation mileage. When the direction of the AGC frequency modulation command reverses, the mileage is re-accumulated from zero. The formula for calculating this frequency modulation mileage is: ; in, For the first The actual output value of each sampling point This represents the total FM mileage within the statistical period.
3. The method according to claim 1, characterized in that, The K-factor comprehensive performance scoring model is constructed as follows: ; in, The response delay score is calculated based on the ratio of the actual response time to the standard response time. To achieve the accuracy score, the Pearson correlation coefficient between the actual output and the AGC frequency modulation command is calculated. The regulation rate score is calculated based on the ratio of the actual regulation rate to the rated regulation rate. , , Let be the weight coefficient, and satisfy... .
4. The method according to claim 1, characterized in that, The formula for calculating the frequency modulation mileage compensation benefit is as follows: ; in, Where K is the frequency modulation mileage, and K is the overall performance scoring factor. This is the unit price for FM mileage compensation.
5. The method according to claim 1, characterized in that, The establishment of the battery degradation cost model based on the rainflow counting method includes: Peak and valley values were extracted from the SOC time series data under frequency modulation conditions, and the discharge depth was extracted using the rainflow counting method. Corresponding number of loops ; Based on the battery cycle life curve, establish an equivalent cycle cost function: ; in, For the total lifecycle replacement cost of the battery, For the corresponding depth of discharge Maximum cycle life under these conditions; The battery cycle life curve is fitted using a power function: ; in, , These are the fitting parameters.
6. The method according to claim 1, characterized in that, The formula for calculating the net income is as follows: ; in, To compensate for the mileage of frequency modulation, To compensate for the revenue from frequency modulation capacity, For arbitrage profits in electrical energy, For the cost of battery degradation, This refers to the annual operation and maintenance costs.
7. The method according to claim 1, characterized in that, The constraints of the multi-constraint optimization model include: SOC constraints: ; Charge and discharge power constraints: , For charging power, For discharge power, This refers to the rated power of the energy storage power station; Charge and discharge mutual exclusion constraint: ; Frequency modulation capacity constraints: ,in, This is the frequency modulation capacity ratio coefficient; Daily cycle constraint: ,in, The state of charge at the start of a single-day operating cycle. This represents the state of charge at the end of a single-day operating cycle.
8. The method according to claim 1, characterized in that, The improvements to the particle swarm optimization algorithm include: A non-linear decreasing inertia weight strategy is adopted: ; in, , , This represents the current iteration number. This represents the maximum number of iterations. Introducing the Cauchy mutation operator to enhance global search capabilities; An elite retention strategy based on crowding distance is adopted to maintain population diversity.
9. The method according to claim 1, characterized in that, The optimal operating scheme includes: The optimal frequency regulation capacity allocation ratio, the expected revenue and proportion of each revenue source, the expected battery life and degradation cost, and the sensitivity analysis report.
10. A revenue calculation system for independent energy storage under a frequency regulation compensation mechanism, characterized in that, include: The data acquisition module is used to collect operational data from independent energy storage power stations and to perform outlier detection and cleaning, missing value imputation, and time alignment preprocessing on the collected data. The operational data includes AGC frequency modulation command signals, actual output response, battery state of charge (SOC), charging and discharging power, frequency modulation market clearing price, and electricity market price. The performance evaluation module is used to calculate four performance indicators—frequency modulation mileage, response delay, response accuracy, and regulation rate—based on preprocessed data, and to construct a K-factor comprehensive performance scoring model that is a weighted fusion of response delay score, response accuracy score, and regulation rate score. The revenue calculation module is used to calculate the frequency regulation mileage compensation revenue, frequency regulation capacity compensation revenue, and electrical energy arbitrage revenue based on the K factor and the frequency regulation market rules, respectively. The cost modeling module is used to establish a battery degradation cost model based on the rainflow counting method and calculate the battery degradation cost under frequency regulation conditions. The strategy optimization module is used to establish a multi-constraint optimization model with the goal of maximizing net profit. It uses an improved particle swarm optimization algorithm to solve for the optimal capacity allocation ratio between the frequency regulation market and the electricity market, and outputs the optimal operation plan.
