Method and device for estimating the amount of energy storage to be charged, storage medium and electronic device

CN122553479APending Publication Date: 2026-08-11SHANGHAI QINGKE INSTRUMENT INNOVATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-28
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0004]本申请的主要目的在于提供一种储能器待充电量的估计方法、储能器待充电量的估计装置、计算机可读存储介质和电子设备,以至少解决现有技术中储能系统无法根据电价动态预判并约束待充电量的问题

Benefits of technology

[0015]应用本申请的技术方案,获取当前电价、当日最低电价、储能器的额定容量、储能器的当前容量以及最大充电深度;在当前电价不是当日最低电价的情况下,生成剩余电价区列表,剩余电价区列表包括从当前电价所属的时段开始的多个连续的电价时段,同一电价时段的电价相等;初始化待充电容量为零;从剩余电价区列表的末端开始,按时间倒序遍历各电价时段,对各电价时段执行更新操作,得到更新后的待充电容量,更新操作包括:在满足第一预设条件的情况下,将遍历时段内储能器以额定功率持续运行所释放的能量累加至待充电容量中,并基于储能器的额定容量和最大充电深度更新待充电容量,第一预设条件是基于遍历时段的电价以及当前电价之间的价格差设定的;在满足第二预设条件的情况下,将遍历时段内储能器以额定功率持续运行所能充入的能量从待充电容量中扣除,得到扣除后的待充电容量,并基于扣除后的待充电容量更新待充电容量,第二预设条件是基于遍历时段的电价与当前电价的大小关系设定的;根据更新后的待充电容量和储能器的当前容量,确定当前电价所属的时段的待充电量。该方案中,通过倒序遍历未来电价时段,在电价高于当前时累加需保留的放电能量,在电价低于当前时扣除可延迟充电的补偿量,最终结合当前实际容量,动态推导出当前时段应充入的电量,突破传统仅基于SOC的静态估算局限,从而解决了现有储能系统无法根据电价动态预判并约束待充电量的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122553479A_ABST
    Figure CN122553479A_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, storage medium, and electronic device for estimating the amount of electricity to be charged in an energy storage device. The method involves obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum charging depth. If the current electricity price is not the lowest electricity price of the day, a list of remaining electricity price zones starting from the time period to which the current electricity price belongs is generated. The amount of electricity to be charged is initialized to zero. Starting from the end of the list of remaining electricity price zones, each electricity price period is traversed in reverse chronological order. If the electricity price of a certain period is significantly higher than the current period, the discharge demand corresponding to the rated power of the accumulator is added to the amount of electricity to be charged. If the electricity price of a certain period is lower than the current period, its rechargeable potential is deducted. Constraints on the energy storage capacity and charging depth are superimposed to avoid exceeding limits. Based on the updated amount of electricity to be charged and the current capacity of the energy storage device, the amount of electricity to be charged in the time period to which the current electricity price belongs is determined. This solves the problem that energy storage systems cannot dynamically predict and constrain the amount of electricity to be charged based on electricity prices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system energy storage control technology, and more specifically, to a method for estimating the amount of energy storage to be charged, a device for estimating the amount of energy storage to be charged, a computer-readable storage medium, and an electronic device. Background Technology

[0002] Existing energy storage systems generally use a static method to calculate the "current rechargeable capacity," directly scheduling energy storage according to the rule of "low-price charging, high-price discharging," and estimating the rechargeable capacity based on the remaining SOC space. This existing technology has the following problems:

[0003] The system cannot dynamically determine the required charging amount based on the electricity price structure, which may result in overcharging or undercharging during non-optimal periods; it cannot identify whether future periods have arbitrage value, leading to insufficient charging of energy storage in low-price periods when it should be prioritized; it cannot determine how much electricity should be reserved for discharge during future high-price periods based on electricity price differences, resulting in revenue loss; and it cannot handle the problem of inaccurate capacity calculation caused by cross-period electricity price zones (such as cross-day periods). Summary of the Invention

[0004] The main objective of this application is to provide a method for estimating the amount of energy storage to be charged, a device for estimating the amount of energy storage to be charged, a computer-readable storage medium, and an electronic device, so as to at least solve the problem in the prior art that energy storage systems cannot dynamically predict and constrain the amount of energy to be charged based on electricity prices.

[0005] To achieve the above objectives, according to one aspect of this application, a method for estimating the charging capacity of an energy storage device is provided, comprising: obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum charging depth; if the current electricity price is not the lowest electricity price of the day, generating a list of remaining electricity price zones, the list of remaining electricity price zones including multiple consecutive electricity price periods starting from the time period to which the current electricity price belongs, wherein the electricity prices in the same electricity price period are equal; initializing the charging capacity to zero; starting from the end of the list of remaining electricity price zones, traversing each of the electricity price periods in reverse chronological order, performing an update operation on each of the electricity price periods to obtain an updated charging capacity, the update operation including: under the condition of satisfying a first preset condition, storing the energy storage within the traversed time periods... The energy released by the energy storage device operating continuously at rated power is accumulated into the charging capacity, and the charging capacity is updated based on the rated capacity of the energy storage device and the maximum charging depth. The first preset condition is set based on the price difference between the electricity price during the traversed period and the current electricity price. When the second preset condition is met, the energy that the energy storage device can charge during the traversed period operating continuously at rated power is deducted from the charging capacity to obtain the deducted charging capacity, and the charging capacity is updated based on the deducted charging capacity. The second preset condition is set based on the relationship between the electricity price during the traversed period and the current electricity price. Based on the updated charging capacity and the current capacity of the energy storage device, the charging amount for the period to which the current electricity price belongs is determined.

[0006] Optionally, if the current electricity price is not the lowest electricity price of the day, generating a list of remaining electricity price zones includes: if the time period to which the current electricity price belongs is the last time period of the day, concatenating the electricity price time period of the next day to the time period to which the current electricity price belongs, and then generating the list of remaining electricity price zones.

[0007] Optionally, after obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, and the current capacity of the energy storage device, the estimation method further includes: if the current electricity price is the lowest electricity price of the day, and if the time period to which the current electricity price belongs is not the last time period of the day, then determining the amount of electricity to be charged for the time period to which the current electricity price belongs based on the rated capacity of the energy storage device and the maximum charging depth.

[0008] Optionally, under the condition of satisfying a first preset condition, the energy released by the energy storage device operating continuously at rated power during the traversal period is accumulated into the capacity to be charged, and the capacity to be charged is updated based on the rated capacity of the energy storage device and the maximum charging depth, including: if the electricity price during the traversal period is higher than the current electricity price, obtaining the price difference between the electricity price during the traversal period and the current electricity price; if the price difference is greater than the minimum electricity price difference, determining the product of the duration of the traversal period and the rated power as the energy released by the energy storage device operating continuously at the rated power; accumulating the product value into the capacity to be charged to obtain the accumulated capacity to be charged; comparing the accumulated capacity to be charged with the product of the rated capacity of the energy storage device and the maximum charging depth to obtain a comparison result; and determining the updated capacity to be charged based on the comparison result.

[0009] Optionally, determining the updated charging capacity based on the comparison result includes: if the product value is less than the accumulated charging capacity, then determining the product value as the updated charging capacity; if the accumulated charging capacity is less than the product value, then determining the accumulated charging capacity as the updated charging capacity.

[0010] Optionally, under the condition of satisfying the second preset condition, the energy that the energy storage device can continuously charge at rated power during the traversal period is deducted from the charging capacity to obtain the deducted charging capacity, and the charging capacity is updated based on the deducted charging capacity, including: if the electricity price during the traversal period is lower than the current electricity price, determining the product of the duration of the traversal period and the rated power as the energy that the energy storage device can continuously charge at the rated power; deducting the product value from the charging capacity to obtain the deducted charging capacity; if the deducted charging capacity is greater than zero, determining the deducted charging capacity as the updated charging capacity; if the deducted charging capacity is less than zero, the updated charging capacity is zero.

[0011] Optionally, determining the amount of electricity to be charged for the time period to which the current electricity price belongs, based on the updated capacity to be charged and the current capacity of the energy storage device, includes: comparing the updated capacity to be charged with the current capacity of the energy storage device; if the updated capacity to be charged is greater than the current capacity of the energy storage device, then determining the difference between the updated capacity to be charged and the current capacity of the energy storage device as the amount of electricity to be charged for the time period to which the current electricity price belongs; if the updated capacity to be charged is less than or equal to the current capacity of the energy storage device, then determining the amount of electricity to be charged for the time period to which the current electricity price belongs as zero.

[0012] According to another aspect of this application, an apparatus for estimating the amount of energy storage to be charged is provided, comprising: an acquisition unit for acquiring a current electricity price, a daily minimum electricity price, the rated capacity of the energy storage, the current capacity of the energy storage, and a maximum charging depth; a generation unit for generating a list of remaining electricity price zones when the current electricity price is not the daily minimum electricity price, the list of remaining electricity price zones including multiple consecutive electricity price periods starting from the time period to which the current electricity price belongs, wherein the electricity prices in the same electricity price period are equal; an initialization unit for initializing the amount of energy storage to be charged to zero; and an update unit for traversing each of the electricity price periods in reverse chronological order, starting from the end of the list of remaining electricity price zones, performing an update operation on each of the electricity price periods to obtain an updated amount of energy storage to be charged, the update operation including: under the condition of satisfying a first preset condition, traversing the list of remaining electricity price zones in reverse chronological order, performing an update operation on each of the electricity price periods to obtain an updated amount of energy storage to be charged, the update operation including: under the condition of satisfying a first preset condition, traversing the list of remaining electricity price zones in reverse chronological order, the list of remaining electricity price zones including a list of remaining electricity price periods ... The energy released by the energy storage device operating at rated power continuously during the time period is accumulated into the charging capacity, and the charging capacity is updated based on the rated capacity of the energy storage device and the maximum charging depth. The first preset condition is set based on the price difference between the electricity price during the time period and the current electricity price. When the second preset condition is met, the energy that the energy storage device can charge during the time period operating at rated power continuously is deducted from the charging capacity to obtain the deducted charging capacity, and the charging capacity is updated based on the deducted charging capacity. The second preset condition is set based on the relationship between the electricity price during the time period and the current electricity price. The first determining unit is used to determine the charging amount of the time period to which the current electricity price belongs based on the updated charging capacity and the current capacity of the energy storage device.

[0013] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the aforementioned methods for estimating the amount of energy storage to be charged.

[0014] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any of the methods for estimating the chargeable amount of the energy storage device.

[0015] Applying the technical solution of this application, the following steps are taken: First, obtain the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum charging depth. If the current electricity price is not the lowest electricity price of the day, generate a list of remaining electricity price zones. This list includes multiple consecutive electricity price periods starting from the period to which the current electricity price belongs, with equal electricity prices within the same period. Second, initialize the capacity to be charged to zero. Third, starting from the end of the remaining electricity price zone list, traverse each electricity price period in reverse chronological order, performing an update operation on each period to obtain the updated capacity to be charged. The update operation includes: under the condition of satisfying a first preset condition, continuously operating the energy storage device at its rated power within the traversed period. The energy released during the process is accumulated into the uncharged capacity, and the uncharged capacity is updated based on the rated capacity and maximum charging depth of the energy storage device. The first preset condition is set based on the price difference between the electricity price during the traversed period and the current electricity price. Under the condition of satisfying the second preset condition, the energy that the energy storage device can charge continuously at rated power during the traversed period is deducted from the uncharged capacity to obtain the deducted uncharged capacity, and the uncharged capacity is updated based on the deducted uncharged capacity. The second preset condition is set based on the relationship between the electricity price during the traversed period and the current electricity price. Based on the updated uncharged capacity and the current capacity of the energy storage device, the uncharged amount for the current electricity price period is determined. In this scheme, by traversing future electricity price periods in reverse order, the discharge energy to be retained is accumulated when the electricity price is higher than the current price, and the compensation amount for delayed charging is deducted when the electricity price is lower than the current price. Finally, combined with the current actual capacity, the amount of electricity to be charged in the current period is dynamically derived, breaking through the limitations of traditional static estimation based solely on SOC, thereby solving the problem that existing energy storage systems cannot dynamically predict and constrain the uncharged amount based on electricity price. Attached Figure Description

[0016] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0017] Figure 1 A hardware block diagram of a mobile terminal for performing a method for estimating the amount of energy storage to be charged, according to an embodiment of this application, is shown.

[0018] Figure 2 A flowchart illustrating a method for estimating the charge capacity of an energy storage device according to an embodiment of this application is shown.

[0019] Figure 3 A schematic diagram of the electricity price zone is shown for a method for estimating the chargeable amount of an energy storage device according to an embodiment of this application;

[0020] Figure 4A flowchart is shown for a specific method for estimating the charge capacity of an energy storage device according to an embodiment of this application;

[0021] Figure 5 A structural block diagram of an energy storage device for estimating the amount of charge to be generated according to an embodiment of this application is shown.

[0022] The above figures include the following reference numerals:

[0023] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0024] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] As described in the background section, existing technologies use static State of Charge (SOC) to estimate the amount of energy to be charged. This fails to dynamically identify arbitrage opportunities and compensation periods based on electricity price structures, resulting in insufficient charging during low-price periods and no energy available for discharging during high-price periods. Furthermore, it ignores cross-day electricity price linkages, leading to losses in energy storage revenue and low capacity utilization. To address the problem that existing energy storage systems cannot dynamically predict and constrain the amount of energy to be charged based on electricity prices, embodiments of this application provide a method for estimating the amount of energy to be charged, a device for estimating the amount of energy to be charged, a computer-readable storage medium, and an electronic device.

[0028] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0029] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for estimating the charge capacity of an energy storage device according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0030] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for estimating the energy storage capacity in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0031] This embodiment provides a method for estimating the charge capacity of an energy storage device running on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] Figure 2 This is a flowchart of a method for estimating the chargeable capacity of an energy storage device according to an embodiment of this application. For example... Figure 2 As shown, the method includes the following steps:

[0033] Step S201: Obtain the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the aforementioned energy storage device, and the maximum charging depth;

[0034] Specifically, this application constructs its data foundation by acquiring parameters such as the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum depth of charging. The current electricity price serves as a real-time benchmark for dynamic charging decisions, determining whether charging is worthwhile or whether reserve power is necessary. The lowest electricity price of the day is a threshold for identifying the optimal charging opportunity, used to determine if the current period is the cheapest of the day. The rated capacity of the energy storage device defines the upper limit of the total energy of the energy storage system. The current capacity of the energy storage device reflects the real-time state of charge of the battery to calculate the actual replenishment demand. The maximum depth of charging defines the upper limit of safe charging for the battery, serving as a hard engineering constraint to protect battery life and safety. These parameters provide the necessary constraints for subsequent accurate calculation of the amount of electricity to be charged based on dynamic electricity price extrapolation, rather than relying solely on the traditional static estimation model that depends on the state of charge (SOC).

[0035] Step S202: If the current electricity price is not the lowest electricity price of the day, generate a list of remaining electricity price zones. The list of remaining electricity price zones includes multiple consecutive electricity price periods starting from the period to which the current electricity price belongs, and the electricity prices in the same electricity price period are equal.

[0036] Specifically, step S202 aims to construct a time series window from the perspective of future electricity prices. If the current electricity price is not the lowest price of the day, it means that the current time is not the cheapest time to charge, and you cannot charge it directly. Instead, you should combine the electricity price in the future period to determine whether you should charge less to wait for a cheaper time, or store more to prepare for discharging at a higher price.

[0037] If the current electricity price is not the lowest price of the day, a list of remaining electricity price zones is generated. Electricity price zones are determined by time-of-use pricing, which divides the day into multiple time periods (e.g., off-peak, flat, peak). Within each time period, the price is constant; for example, off-peak price is 0.3 yuan, flat price is 0.6 yuan, and peak price is 1.2 yuan. The remaining electricity price zones are an ordered time sequence, starting from the current electricity price's time period and extending to the end of the day (and even into the next day). Figure 3 As shown, the electricity price for the whole day is divided into six time periods (six price zones). If the current time is 7 o'clock, then the price zone is price zone 2. And the current electricity price is obviously not the lowest price of the day. So the list of remaining price zones is all the time periods from price zone 2 to the end of the day. That is, the time periods of price zone 2, price zone 3, price zone 4, price zone 5 and price zone 6 constitute the list of remaining price zones.

[0038] When the current electricity price is not the lowest throughout the day, a list of continuous electricity price zones is dynamically generated from the current time period to the end of the future (which can be extended to the next day). This list is based on segments of time with constant electricity prices, which fully depicts the future electricity price evolution path and provides a structured and traversable decision-making basis for subsequent reverse capacity extrapolation based on price differences.

[0039] Step S203: Initialize the charging capacity to zero;

[0040] Specifically, before conducting a systematic analysis of future electricity price ranges, the variable of how much electricity should be charged in the current period is initially set to zero. In other words, theoretically, no charging is needed until any future arbitrage opportunities at high prices or compensation opportunities at low prices are assessed. Subsequently, by iterating backward through the future electricity price sequence, only when truly economically valuable scenarios of necessary or negligible charging are identified are the amounts added or subtracted to arrive at the precise net amount of electricity to be charged.

[0041] The charging capacity is initialized to zero, and adjustments are made only when a clear arbitrage profit or compensation opportunity is identified in the future. This ensures that the final output charging amount is the optimal net demand calculated dynamically based on the electricity price structure, rather than subjective presets or redundant filling.

[0042] Step S204: Starting from the end of the list of remaining electricity price zones, traverse each of the above-mentioned electricity price periods in reverse chronological order, and perform an update operation on each of the above-mentioned electricity price periods to obtain the updated charging capacity. The update operation includes: when a first preset condition is met, adding the energy released by the energy storage device continuously operating at rated power during the traversed period to the charging capacity, and updating the charging capacity based on the rated capacity of the energy storage device and the maximum charging depth. The first preset condition is set based on the price difference between the electricity price during the traversed period and the current electricity price; when a second preset condition is met, deducting the energy that the energy storage device can charge during the traversed period continuously operating at rated power from the charging capacity to obtain the deducted charging capacity, and updating the charging capacity based on the deducted charging capacity. The second preset condition is set based on the relationship between the electricity price during the traversed period and the current electricity price.

[0043] Specifically, starting from the end of the list of remaining electricity price zones, the electricity price periods (price zones) are traversed in reverse chronological order, such as... Figure 3 As shown, if the electricity price zone is 2, then starting from the end of the remaining electricity price zone list, that is, starting from electricity price zone 6, we traverse the four electricity price zones in reverse order: electricity price zone 6, electricity price zone 5, electricity price zone 4, and electricity price zone 3. We perform update operations on each traversed electricity price zone. The update operations include:

[0044] If the first preset condition is met (based on the price difference between the electricity price during the traversal period and the current electricity price), then the traversal period is determined to be a discharge arbitrage zone. At this time, the total energy value that can be released if the energy storage device continues to discharge at rated power during the traversal period is calculated, and the total energy value is added to the capacity to be charged.

[0045] The first preset condition is actually used to determine whether there is an arbitrage opportunity for discharge in the future. It is set based on the price difference between the electricity price during the traversal period and the current electricity price. Its significance is: if the price difference is too small, even if the discharge is carried out after charging, the profit may be negative or negligible after deducting charging and discharging losses, equipment depreciation, and system response costs; if the price difference meets the standard, it indicates that the period has an economic arbitrage value that can be realized, and it is worthwhile to charge it in advance and reserve electricity.

[0046] Even with significant future discharge demand, energy storage systems cannot be charged indefinitely. Therefore, after accumulation, the updated rechargeable capacity needs to be determined based on two key constraints: the rated capacity of the energy storage device and the maximum depth of charge. The rated capacity represents the total energy of the battery system, for example, 1000 kWh; the maximum depth of charge represents the highest allowed state of charge (SOC), for example, 95%, meaning a maximum usable capacity of 950 kWh. This constraint is crucial. If the total accumulated demand is 1200 kWh, but the maximum storable capacity is only 950 kWh, then the upper limit is truncated to 950 kWh. This means that even if there are more arbitrage opportunities, they cannot all be satisfied due to physical limitations, thus automatically making the optimal decision.

[0047] If the second preset condition is met (set based on the relationship between the electricity price during the traversal period and the current electricity price), then the traversal period is determined to be a rechargeable compensation zone. That is, instead of charging now, it is better to wait until the electricity price is lower during this period to save costs. At this time, the energy that the energy storage device can continuously absorb at its rated power during the traversal period is deducted from the accumulated capacity to be charged.

[0048] The second presupposition condition is actually used to identify the existence of a cheaper charging window in the future. Traditional methods assume that as much charging as possible is done when prices are low. However, this application differs from traditional methods. The core of this application's method is: if even lower prices are available in the future, then it's unnecessary to charge as much now; charging can be postponed until the price is lower. For example: if the current electricity price is 0.6 yuan / kWh at 8 AM, and the price is 0.3 yuan / kWh at 1 PM, which is significantly lower, then one should not charge fully now, but rather reduce the current charging amount and recharge at 10 PM.

[0049] To ensure the final output is engineering-feasible, the following protection logic needs to be executed after subtraction:

[0050] The capacity to be charged = max(0, the value after deduction).

[0051] Assuming a future period of low charging prices allows for a total charging capacity of 3000 kWh, but current arbitrage needs necessitate reserving only 1500 kWh, the result is -1500 kWh. Without restrictions, this would result in negative charging capacity, which is physically meaningless as reverse discharge cannot reduce the required charging capacity. By forcibly setting the lower limit to zero, the current charging demand will not fall below zero, even with ample future opportunities for low-price charging. Less charging is allowed, but not charging at all and instead outputting in reverse. The final output is always a non-negative capacity to be charged.

[0052] By iterating backwards from the last electricity price period in the future, the method accumulates the charging amount required for future discharge when the electricity price is significantly higher than the current price, and deducts the charging demand that can be replaced by future lower prices when the electricity price is lower than the current price. Simultaneously, it incorporates physical constraints such as the rated capacity and maximum charging depth of the energy storage device, achieving accurate estimation of the optimal charging amount for the current period. This method completely abandons the traditional extensive strategy that relies on static SOC margin or single low-price charging. Without load forecasting, it constructs a global optimization mechanism centered on the electricity price difference, maximizing arbitrage profits while minimizing charging costs, thereby improving overall operational efficiency and equipment utilization.

[0053] Step S205: Based on the updated capacity to be charged and the current capacity of the energy storage device, determine the amount of electricity to be charged for the time period to which the current electricity price belongs.

[0054] Specifically, after the update operation, the updated rechargeable capacity is obtained. This updated rechargeable capacity represents the total amount of electricity that the energy storage system should theoretically store in the battery from the current moment, in order to achieve all future high-yield discharge targets while fully utilizing the compensation opportunities during periods of lower electricity prices. To determine the actual amount of electricity needed for the current period, it must be determined in conjunction with the actual remaining electricity of the energy storage device at this moment (i.e., the current capacity). If the current capacity is greater than or equal to the updated rechargeable capacity, it means that the battery has already stored all the electricity required to meet future arbitrage needs, or even more, and no further charging is needed; the rechargeable amount is 0. If the current capacity is less than the updated rechargeable capacity, it means that the battery has not yet reached the economically optimal energy storage target, and the difference must be made up in the current period.

[0055] Step S205 enables the energy storage system's charging behavior to possess high dynamic adaptability and economic intelligence: if sufficient energy is already stored (current capacity ≥ target capacity), no charging is required, avoiding overcharge-discharge cycle losses; if the current energy is insufficient, it is replenished as needed, ensuring sufficient discharge capacity during periods of high electricity prices. The final output of the amount to be charged is a numerical command that can be directly executed by the energy management system (EMS) or converter (PCS), realizing closed-loop optimization of "economic goals - physical constraints - engineering execution," significantly improving the revenue efficiency and operational safety of the energy storage system under variable electricity price environments.

[0056] This embodiment generates a list of remaining electricity price zones based on the current electricity price. Using a reverse time traversal mechanism, it identifies future high-price arbitrage periods (accumulating the amount of discharge to be reserved) and low-price compensation periods (deducting the amount of charge that can be delayed). It also integrates the physical constraints of the energy storage device's rated capacity and maximum charging depth to dynamically calculate the global target energy storage value that maximizes economic benefits across time periods. Finally, combining the energy storage device's real-time current capacity, it accurately outputs the net charging amount to be performed in the current time period. This completely abandons the traditional extensive strategy of relying on static SOC or single low-price charging, improving the arbitrage benefits, charging and discharging efficiency, and equipment lifespan of the energy storage system in a variable electricity price environment. This solves the problem that existing energy storage systems cannot dynamically predict and constrain the amount of charge to be performed based on electricity prices.

[0057] In the specific implementation process, if the current electricity price is not the lowest electricity price of the day, a list of remaining electricity price zones is generated, including: if the time period to which the current electricity price belongs is the last time period of the day, the electricity price period of the next day is concatenated to the time period to which the current electricity price belongs, and then the list of remaining electricity price zones is generated.

[0058] Specifically, if the current electricity price falls within the last time period of the day (e.g., 24:00), traditional methods terminate future forecasting because they cannot predict the next day's electricity price, resulting in the inability to reserve charging capacity in advance for the high-price period of the next day and missing cross-day arbitrage opportunities. This embodiment generates a continuous cross-day electricity price sequence by splicing the next day's electricity price period to the end of the current day, allowing the electricity price structure of the next day to be taken into account. This enables a decision at the current stage as to whether to charge more electricity to prepare for the high-price discharge window in the early morning or midday of the next day.

[0059] By splicing the next day's electricity price period into the list of remaining electricity price periods when the current time period is the last electricity price zone of the day, the shortcomings of traditional single-day local dispatching methods that cannot predict the high price window of the next day are overcome. This allows the discharge capacity required for the high price period of the next day to be calculated and reserved in advance at the end of the off-peak electricity period of the day (such as late at night), thereby maximizing the cross-day arbitrage profit.

[0060] In some embodiments of this application, after obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, and the current capacity of the energy storage device, the estimation method further includes: if the current electricity price is the lowest electricity price of the day, and if the time period to which the current electricity price belongs is not the last time period of the day, then the amount of electricity to be charged in the time period to which the current electricity price belongs is determined based on the rated capacity of the energy storage device and the maximum charging depth.

[0061] Specifically, if the current electricity price is the lowest price of the day, and the time period to which the current electricity price belongs is not the last time period of the day, then the current time period is the optimal charging time. In this case, reverse traversal and arbitrage compensation calculations are no longer performed. Instead, the amount to be charged is directly calculated based on the rated capacity and maximum charging depth of the energy storage device. That is, the amount to be charged in the time period to which the current electricity price belongs = rated capacity of the energy storage device × maximum charging depth.

[0062] When it is identified that the current electricity price is the lowest of the day and it is not the end of the period, complex calculations are skipped, and the energy storage device is directly and quickly charged to the maximum safe capacity, achieving the immediate capture of optimal economic benefits. This mechanism avoids redundant cross-period traversal and compensation analysis even under clearly favorable conditions, greatly improving the algorithm's response speed and engineering practicality. At the same time, it ensures that the energy storage system is fully charged during the lowest electricity price period, releasing the maximum discharge potential for the subsequent high-price period.

[0063] In some embodiments of this application, under the condition of satisfying a first preset condition, the energy released by the energy storage device continuously operating at rated power during the aforementioned traversal period is accumulated into the aforementioned charging capacity, and the charging capacity is updated based on the rated capacity of the energy storage device and the aforementioned maximum charging depth, including: if the electricity price during the aforementioned traversal period is higher than the aforementioned current electricity price, obtaining the price difference between the electricity price during the aforementioned traversal period and the aforementioned current electricity price; if the aforementioned price difference is greater than the minimum electricity price difference, determining the product of the duration of the aforementioned traversal period and the aforementioned rated power as the energy released by the energy storage device continuously operating at the aforementioned rated power; accumulating the aforementioned product value into the charging capacity to obtain the accumulated charging capacity; comparing the accumulated charging capacity with the product of the rated capacity of the energy storage device and the aforementioned maximum charging depth to obtain a comparison result; and determining the aforementioned updated charging capacity based on the aforementioned comparison result.

[0064] Specifically, if the electricity price `future_price` during the traversed period is higher than the current electricity price `current_price`, the price difference between the traversed period's price and the current price is obtained. If the price difference is greater than the minimum price difference `min_price_diff`, the period is determined to be a discharge arbitrage zone. In this case, the product of the traversed period's duration and the rated power `storage_rated` is determined as the energy released by the energy storage device operating continuously at rated power. The minimum price difference is determined by calculating the cost per kilowatt-hour of electricity charged or discharged using the energy storage device's cost and the number of charge / discharge cycles; the minimum price difference must be greater than the cost.

[0065] Then, this product value is added to the capacity to be charged to obtain the accumulated capacity to be charged:

[0066] charge_capacity+= storage_rated dt, where, storage_rated dt is the product of the duration of the traversal period and the rated power.

[0067] The accumulated capacity to be charged is compared with the product of the energy storage device's rated capacity and maximum depth of charge to obtain the comparison result.

[0068] Further, determining the updated charging capacity based on the comparison results includes: if the product value is less than the accumulated charging capacity, then the product value is determined as the updated charging capacity; if the accumulated charging capacity is less than the product value, then the accumulated charging capacity is determined as the updated charging capacity.

[0069] Specifically, see the formula: charge_capacity = min(storage_capacity × ratio, charge_capacity += storage_rated dt) where charge_capacity is the updated capacity to be charged, storage_capacity is the rated capacity of the energy storage device, ratio is the maximum depth of charge, and charge_capacity += storage_rated dt is the accumulated capacity to be charged.

[0070] This embodiment ensures that the final output capacity to be charged never exceeds the maximum amount of electricity that the energy storage system can be charged within a safe range (i.e., the product of the rated capacity and the maximum depth of charge). When the accumulated future discharge demand exceeds this upper limit, it is automatically cut off and the maximum available capacity is used as the final value; conversely, if the demand does not reach the upper limit, the accumulated result is directly adopted. Thus, without sacrificing economy, it fundamentally avoids the risk of overcharging caused by the calculated value exceeding the physical limits of the battery, making the output result of the capacity to be charged have strict engineering constraints and feasibility.

[0071] When it is identified that the electricity price in a future period is higher than that in the current period and the difference exceeds the minimum price difference, the amount of electricity required to support the discharge in that period is accurately calculated based on the product of the duration of that period and the rated power of the energy storage device. The required amount of electricity for all future periods that meet the conditions is then accumulated. At the same time, the accumulated result is always limited to the product of the rated capacity of the energy storage device and the maximum depth of charging. This ensures that the calculated amount of electricity to be charged is sufficient to support the future high-yield discharge demand without exceeding the safe charging boundary of the battery. Thus, without relying on load forecasting, a safe, reliable, and directly dispatchable dynamic charging amount estimation is achieved, effectively improving the economy and operational stability of the energy storage system.

[0072] In some embodiments of this application, when a second preset condition is met, the energy that the energy storage device can continuously charge at rated power during the aforementioned traversal period is deducted from the aforementioned uncharged capacity to obtain a deducted uncharged capacity, and the uncharged capacity is updated based on the deducted uncharged capacity, including: when the electricity price during the aforementioned traversal period is lower than the aforementioned current electricity price, determining the product of the duration of the aforementioned traversal period and the aforementioned rated power as the energy that the energy storage device can continuously charge at the aforementioned rated power; deducting the aforementioned product value from the aforementioned uncharged capacity to obtain the deducted uncharged capacity; if the deducted uncharged capacity is greater than zero, then determining the deducted uncharged capacity as the updated uncharged capacity; if the deducted uncharged capacity is less than zero, then the updated uncharged capacity is zero.

[0073] Specifically, if the electricity price during the traversal period is lower than the current electricity price, i.e., the second preset condition is met, the product of the duration of the traversal period and the rated power is considered as the additional charging capacity that can be replenished and deducted from the currently accumulated charging capacity. This product represents the maximum electrical energy that can be charged if the charging is performed continuously at the rated power during the low-price period. For example, if the current electricity price is 0.5 yuan / kWh, and the future electricity price is 0.2 yuan / kWh, lasting for 3 hours, with a rated power of 500kW, then the energy that can be replenished during that period is 3 × 500 = 1500kWh. If the previously accumulated charging capacity is 2000kWh, after deducting it, it becomes 500kWh, meaning that only 500kWh needs to be charged during the current period, and the remaining 1500kWh can be saved for a cheaper period, thus saving costs.

[0074] However, to prevent negative values ​​from causing logical errors or scheduling command failures, this embodiment sets a non-negative constraint: if the result after deduction is less than zero, it means that the charging potential of future lower electricity prices is sufficient to cover all the charging demand, so there is no need to charge in the current period, and the final charging capacity is directly set to zero. This mechanism effectively prevents misjudgments caused by excessive deduction.

[0075] When a future period with a lower electricity price than the current period is identified, the maximum energy that can be charged at rated power during that period is calculated and deducted from the currently estimated total amount of electricity to be charged, thereby reducing unnecessary charging demand. At the same time, by setting a zero lower limit protection mechanism, it is ensured that the result after deduction will not be negative, avoiding extreme instructions that do not require charging. This ensures that the final output capacity of electricity to be charged not only makes full use of subsequent charging opportunities with lower electricity prices and reduces overall operating costs, but also always maintains a non-negative and executable scheduling value, thus realizing refined and economical adjustment of the charging strategy in the context of fluctuating electricity prices.

[0076] In some embodiments of this application, determining the amount of electricity to be charged for the time period to which the current electricity price belongs, based on the updated capacity to be charged and the current capacity of the energy storage device, includes: comparing the updated capacity to be charged with the current capacity of the energy storage device; if the updated capacity to be charged is greater than the current capacity of the energy storage device, then determining the difference between the updated capacity to be charged and the current capacity of the energy storage device as the amount of electricity to be charged for the time period to which the current electricity price belongs; if the updated capacity to be charged is less than or equal to the current capacity of the energy storage device, then determining the amount of electricity to be charged for the time period to which the current electricity price belongs as zero.

[0077] Specifically, if the updated capacity to be charged is greater than the current capacity of the energy storage device, it indicates a charging shortfall, and the difference needs to be made up during this period. For example, if the updated capacity to be charged is 900 kWh and the current capacity of the energy storage device is 600 kWh, then 300 kWh needs to be charged during this period to meet future discharge arbitrage needs. If the updated capacity to be charged is less than or equal to the current capacity of the energy storage device, it indicates sufficient power to support future high-price discharge, and no additional charging is needed during this period. For example, if the updated capacity to be charged is 700 kWh and the current capacity of the energy storage device is 800 kWh, it indicates that the demand is already met, and continuing to charge would be wasteful and increase losses, so charging should be stopped.

[0078] By comparing the updated capacity to be charged with the current capacity of the energy storage device in real time, the system accurately outputs the amount of additional power that must be supplied in the current period. When the current power is insufficient, it only supplements the difference to meet future arbitrage needs. When the current power has met or exceeded the target, it actively stops charging to prevent ineffective charging and discharging. Thus, without relying on load forecasting, it balances economy, safety and engineering operability, significantly improving the operating efficiency and profitability of the energy storage system in a variable electricity price environment.

[0079] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the method for estimating the charge capacity of the energy storage device in this application will be described in detail below with reference to specific embodiments.

[0080] This embodiment relates to a specific method for estimating the charge capacity of an energy storage device, which includes at least the following steps:

[0081] Step S1: Determine the price period to which the current electricity price belongs.

[0082] Based on the current timestamp, determine the corresponding time-of-use electricity price range and obtain the current electricity price and the lowest electricity price of the day. Calculate whether the current electricity price is the lowest electricity price of the day. If the current electricity price is in the lowest electricity price range of the day, and there are still electricity price ranges to be determined later, then it is directly determined as the optimal charging period. The maximum charging capacity = rated energy storage capacity × maximum charging depth.

[0083] Step S2: Divide the subsequent arbitrage opportunity time series.

[0084] Starting from the current time period, construct the list of remaining electricity price zones: last_period_list

[0085] If the current time period is the last time period of the day, then the segmented electricity price area of ​​the next day will be used for calculation;

[0086] Mark whether net load forecasting is used.

[0087] Step S3: Forecast future net load (optional).

[0088] When Net Load Forecasting is marked as True, the Net Load Forecasting model is enabled (if a Net Load Forecasting algorithm is available, it is used; otherwise, it is not).

[0089] Net load forecasting can predict photovoltaic power output and user load separately, and then obtain the net load using the formula: Net Load = User Load - Photovoltaic Power. Alternatively, net load forecasting can be performed directly.

[0090] Step S4: Initialize charging capacity charge_capacity=0.

[0091] Step S5: Identify future periods of arbitrage and charging compensation.

[0092] Traverse the remaining electricity price zone list last_period_list from back to front. If the electricity price of a certain period is higher than that of the current period and the price difference is greater than the target period of the minimum electricity price difference min_price_diff, the period is considered to be a "dischargeable arbitrage zone". If the electricity price of a certain period is lower than that of the current period, the period is considered to be a "chargeable compensation zone" and charge_capacity is updated at the same time. The update logic is shown in steps S6 and S7.

[0093] Step S6: For the "dischargeable arbitrage zone", calculate the energy demand during the future dischargeable period.

[0094] If net load forecasting is enabled, the required discharge amount in the future is:

[0095] Where future_net_load is the future net load;

[0096] If prediction is not enabled, the required future discharge amount is:

[0097] ,in, This is the rated power of the energy storage device. Because the charging capacity of the energy storage device has an upper limit, an additional charging capacity limit is needed: ,in, It is the rated capacity of the energy storage device.

[0098] Step S7: For the “rechargeable compensation zone”, identify future rechargeable periods and perform compensation.

[0099] For the "rechargeable compensation zone," if there are periods where the future net load is lower than the preset demand threshold (threshold_demand), charging can be performed at a lower price, thereby reducing the charging capacity for the current period (charge_capacity). The preset demand threshold (threshold_demand) can be determined based on the electricity consumption of the previous month and the production plan for the current month.

[0100] If net load forecasting is enabled, the required discharge amount in the future is:

[0101] ,

[0102] If prediction is not enabled:

[0103] ,

[0104] Because the energy storage device has a lower limit on its discharge capacity, it is necessary to add a limit on the discharge capacity:

[0105] .

[0106] Step S8: Obtain the final dynamic uncharged capacity.

[0107] The final charge_capacity is obtained as follows:

[0108] Where available_capacity is the current energy storage capacity. If charge_capacity is a positive value, it means that the dischargeable capacity that needs to be stored in the energy storage during the current period in order to discharge during future periods of high price.

[0109] Specifically, such as Figure 4As shown, the first step is to input the operating parameters, including the current timestamp `ts`, the electricity price range `price_period_list`, the energy storage's rated capacity `storage_capacity`, the maximum charging depth `ratio`, the current available capacity (the energy storage's current capacity) `available_capacity`, the minimum price difference `min_price_diff`, and the battery's current state of charge (SOC). The current electricity price `current_price` is determined based on the current timestamp `ts`. It is then determined whether the current price is the lowest of the day and not the last period. If not, the maximum rechargeable capacity (the amount of electricity to be charged in the period to which the current price belongs) `charge_capacity` = `storage_capacity` × `ratio` is directly calculated. If the current price is not the lowest of the day, a subsequent period sequence (a list of remaining price ranges) `last_period_list` is constructed. If it is the last period of the day, the next day's price range is appended. The rechargeable capacity `charge_capacity` is initialized to 0, and future periods are traversed from back to front to identify arbitrage structures. If the price difference between the future price and the current price during the traversed period is greater than the minimum price difference min_price_diff, it is determined to be a dischargeable arbitrage zone, and the required energy storage capacity for the future arbitrage zone is calculated as charge_capacity = min(storage_capacity × ratio, charge_capacity + future_net_load × T). If the price difference between the future price and the current price during the traversed period is less than the minimum price difference min_price_diff, it is determined whether the future price during the traversed period is less than the current price. If not, it is determined to be a non-arbitrage and non-replenishment period. If so, it is determined to be a chargeable compensation zone, and the compensation amount is calculated to reduce the current amount of electricity to be charged as charge_capacity = max(0, charge_capacity - (demand_threshold - future_net_load) × T). Determine if there is a next time period. If not, determine the capacity to be replenished in the current time period: charge_capacity=max(0,charge_capacity-storage_capacity×SOC).

[0110] The following example uses a certain energy storage system:

[0111] The energy storage has a rated capacity of 1000kWh, a rated power of 500kW, a maximum charging depth of 95%, a maximum discharging depth of 5%, a minimum electricity price difference of 0.3 yuan / kWh, and does not enable net load forecasting. The electricity price range is as follows: Figure 3 As shown: It includes 6 time periods: peak, flat, and trough.

[0112] Assuming it's currently 7 o'clock, in price zone 2, which is not the lowest price zone, initialize charge_capacity=0, and then iterate through the four price zones from back to front: price zone 6, price zone 5, price zone 4, and price zone 3.

[0113] Electricity price zone 6 has the same price as electricity price zone 2, and is neither a "dischargeable arbitrage zone" nor a "chargeable compensation zone", so skip it;

[0114] Electricity price zone 5 has a higher price than electricity price zone 2, and this price difference is greater than the minimum price difference.

[0115] ;

[0116] Electricity price zone 4 has the same price as electricity price zone 2, and is neither a "dischargeable arbitrage zone" nor a "chargeable compensation zone", so skip it;

[0117] Electricity price zone 3 has a higher price than electricity price zone 2 and the difference is greater than the minimum price difference.

[0118] ;

[0119] Therefore, it is calculated that the energy storage device needs to retain 950kWh of electricity.

[0120] If the current energy storage capacity available_capacity is greater than or equal to 950kWh, no charging is required. If the current energy storage capacity available_capacity is less than 950kWh, then charge_capacity = max(950-available_capacity,0)kWh.

[0121] In this application, the arbitrage zone identification threshold can be replaced by a dynamic threshold instead of a fixed threshold; the price comparison can be replaced by the "absolute electricity price difference" instead of the "relative electricity price percentage difference"; the traversal method can be replaced by the "reverse traversal" instead of the "forward traversal + tag-based reverse calculation"; the rechargeable compensation zone algorithm can deduct based on other parameters, such as a fixed deduction ratio. An efficiency model (SOC-related) can be used instead of fixed efficiency. Time-of-use pricing can be replaced by any discrete-time cost structure (such as real-time electricity price, quotation range, etc.).

[0122] This application also provides an apparatus for estimating the remaining charge capacity of an energy storage device. It should be noted that this apparatus can be used to execute the method for estimating the remaining charge capacity of an energy storage device provided in this application. This apparatus is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0123] The following describes the energy storage device for estimating the amount of charge to be generated by the energy storage device provided in the embodiments of this application.

[0124] Figure 5 This is a structural block diagram of an energy storage device for estimating the amount of charge to be generated according to an embodiment of this application. Figure 5 As shown, the device includes an acquisition unit 51, a generation unit 52, an initialization unit 53, an update unit 54, and a first determination unit 55. The acquisition unit acquires the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum charging depth. The generation unit generates a list of remaining electricity price zones when the current electricity price is not the lowest electricity price of the day. This list includes multiple consecutive electricity price periods starting from the period to which the current electricity price belongs, with equal electricity prices within the same electricity price period. The initialization unit initializes the capacity to be charged to zero. The update unit iterates through each of the remaining electricity price periods in reverse chronological order, starting from the end of the remaining electricity price zone list, and performs an update operation on each of the electricity price periods to obtain the updated capacity to be charged. The update operation includes, under a first preset condition, continuously operating the energy storage device at rated power within the traversed period. The released energy is added to the aforementioned uncharged capacity, and the uncharged capacity is updated based on the rated capacity of the energy storage device and the aforementioned maximum charging depth. The aforementioned first preset condition is set based on the price difference between the electricity price during the traversal period and the aforementioned current electricity price. When the second preset condition is met, the energy that the energy storage device can charge continuously at rated power during the traversal period is deducted from the uncharged capacity to obtain the deducted uncharged capacity, and the uncharged capacity is updated based on the deducted uncharged capacity. The aforementioned second preset condition is set based on the relationship between the electricity price during the traversal period and the aforementioned current electricity price. The first determining unit is used to determine the uncharged amount for the period to which the aforementioned current electricity price belongs based on the updated uncharged capacity and the current capacity of the energy storage device.

[0125] This embodiment generates a list of remaining electricity price zones based on the current electricity price. Using a reverse time traversal mechanism, it identifies future high-price arbitrage periods (accumulating the amount of discharge to be reserved) and low-price compensation periods (deducting the amount of charge that can be delayed). It also integrates the physical constraints of the energy storage device's rated capacity and maximum charging depth to dynamically calculate the global target energy storage value that maximizes economic benefits across time periods. Finally, combining the energy storage device's real-time current capacity, it accurately outputs the net charging amount to be performed in the current time period. This completely abandons the traditional extensive strategy of relying on static SOC or single low-price charging, improving the arbitrage benefits, charging and discharging efficiency, and equipment lifespan of the energy storage system in a variable electricity price environment. This solves the problem that existing energy storage systems cannot dynamically predict and constrain the amount of charge to be performed based on electricity prices.

[0126] In the specific implementation process, the above-mentioned generation unit includes a splicing module, which is used to splice the next day's electricity price period to the time period to which the current electricity price belongs if the time period to which the current electricity price belongs is the last time period of the day, and then generate the above-mentioned list of remaining electricity price zones.

[0127] By splicing the next day's electricity price period into the list of remaining electricity price periods when the current time period is the last electricity price zone of the day, the shortcomings of traditional single-day local dispatching methods that cannot predict the high price window of the next day are overcome. This allows the discharge capacity required for the high price period of the next day to be calculated and reserved in advance at the end of the off-peak electricity period of the day (such as late at night), thereby maximizing the cross-day arbitrage profit.

[0128] In some embodiments of this application, the estimation device further includes a second determining unit, which, after obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, and the current capacity of the energy storage device, determines the amount of electricity to be charged in the time period to which the current electricity price belongs, if the time period to which the current electricity price belongs is not the last time period of the day, based on the rated capacity of the energy storage device and the maximum charging depth.

[0129] When it is identified that the current electricity price is the lowest of the day and it is not the end of the period, complex calculations are skipped, and the energy storage device is directly and quickly charged to the maximum safe capacity, achieving the immediate capture of optimal economic benefits. This mechanism avoids redundant cross-period traversal and compensation analysis even under clearly favorable conditions, greatly improving the algorithm's response speed and engineering practicality. At the same time, it ensures that the energy storage system is fully charged during the lowest electricity price period, releasing the maximum discharge potential for the subsequent high-price period.

[0130] In some embodiments of this application, the updating unit includes an acquisition module, a first determination module, a first comparison module, and a second determination module. The acquisition module is used to acquire the price difference between the electricity price during the traversal period and the current electricity price when the electricity price during the traversal period is higher than the current electricity price. The first determination module is used to determine the product of the duration of the traversal period and the rated power as the energy released by the energy storage device operating continuously at the rated power when the price difference is greater than the minimum price difference. The first comparison module is used to add the product value to the capacity to be charged to obtain the accumulated capacity to be charged, and compare the accumulated capacity to be charged with the product of the rated capacity of the energy storage device and the maximum charging depth to obtain a comparison result. The second determination module is used to determine the updated capacity to be charged based on the comparison result.

[0131] Furthermore, the second determining module includes a first determining submodule and a second determining submodule. The first determining submodule is used to determine the product value as the updated charging capacity if the product value is less than the accumulated charging capacity; the second determining submodule is used to determine the accumulated charging capacity as the updated charging capacity if the accumulated charging capacity is less than the product value.

[0132] This embodiment ensures that the final output capacity to be charged never exceeds the maximum amount of electricity that the energy storage system can be charged within a safe range (i.e., the product of the rated capacity and the maximum depth of charge). When the accumulated future discharge demand exceeds this upper limit, it is automatically cut off and the maximum available capacity is used as the final value; conversely, if the demand does not reach the upper limit, the accumulated result is directly adopted. Thus, without sacrificing economy, it fundamentally avoids the risk of overcharging caused by the calculated value exceeding the physical limits of the battery, making the output result of the capacity to be charged have strict engineering constraints and feasibility.

[0133] When it is identified that the electricity price in a future period is higher than that in the current period and the difference exceeds the minimum price difference, the amount of electricity required to support the discharge in that period is accurately calculated based on the product of the duration of that period and the rated power of the energy storage device. The required amount of electricity for all future periods that meet the conditions is then accumulated. At the same time, the accumulated result is always limited to the product of the rated capacity of the energy storage device and the maximum depth of charging. This ensures that the calculated amount of electricity to be charged is sufficient to support the future high-yield discharge demand without exceeding the safe charging boundary of the battery. Thus, without relying on load forecasting, a safe, reliable, and directly dispatchable dynamic charging amount estimation is achieved, effectively improving the economy and operational stability of the energy storage system.

[0134] In some embodiments of this application, the updating unit includes a third determining module, a subtraction module, a fourth determining module, and a fifth determining module. The third determining module is used to determine the product of the duration of the traversal period and the rated power as the energy that the energy storage device can continuously charge at the rated power when the electricity price during the traversal period is lower than the current electricity price. The subtraction module is used to subtract the product value from the capacity to be charged to obtain the subtracted capacity to be charged. The fourth determining module is used to determine the subtracted capacity to be charged as the updated capacity to be charged if the subtracted capacity to be charged is greater than zero. The fifth determining module is used to determine the updated capacity to be charged as zero if the subtracted capacity to be charged is less than zero.

[0135] When a future period with a lower electricity price than the current period is identified, the maximum energy that can be charged at rated power during that period is calculated and deducted from the currently estimated total amount of electricity to be charged, thereby reducing unnecessary charging demand. At the same time, by setting a zero lower limit protection mechanism, it is ensured that the result after deduction will not be negative, avoiding extreme instructions that do not require charging. This ensures that the final output capacity of electricity to be charged not only makes full use of subsequent charging opportunities with lower electricity prices and reduces overall operating costs, but also always maintains a non-negative and executable scheduling value, thus realizing refined and economical adjustment of the charging strategy in the context of fluctuating electricity prices.

[0136] In some embodiments of this application, the first determining unit includes a second comparison module, a sixth determining module, and a seventh determining module. The second comparison module is used to compare the updated capacity to be charged with the current capacity of the energy storage device; the sixth determining module is used to determine the difference between the updated capacity to be charged and the current capacity of the energy storage device as the amount to be charged for the time period to which the current electricity price belongs if the updated capacity to be charged is greater than the current capacity of the energy storage device; the seventh determining module is used to determine the amount to be charged for the time period to which the current electricity price belongs as zero if the updated capacity to be charged is less than or equal to the current capacity of the energy storage device.

[0137] By comparing the updated capacity to be charged with the current capacity of the energy storage device in real time, the system accurately outputs the amount of additional power that must be supplied in the current period. When the current power is insufficient, it only supplements the difference to meet future arbitrage needs. When the current power has met or exceeded the target, it actively stops charging to prevent ineffective charging and discharging. Thus, without relying on load forecasting, it balances economy, safety and engineering operability, significantly improving the operating efficiency and profitability of the energy storage system in a variable electricity price environment.

[0138] The aforementioned energy storage capacity estimation device includes a processor and a memory. The acquisition unit, generation unit, initialization unit, update unit, and first determination unit are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0139] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0140] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the method for estimating the amount of energy to be charged in the energy storage device.

[0141] This invention provides a processor for running a program, wherein the program executes the method for estimating the amount of energy to be charged in the energy storage device.

[0142] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the method for estimating the charge capacity of the energy storage device described above. The device described herein can be a server, PC, PAD, mobile phone, etc.

[0143] This application also provides a computer program product that, when executed on a data processing device, is adapted to perform the steps of initializing the estimation method for the amount of energy to be charged in the energy storage device as described above.

[0144] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0145] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0146] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0147] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0148] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0150] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0151] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0152] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 specification.

[0153] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0154] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method of estimating the amount of energy storage to be charged, characterized in that, include: Obtain the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum depth of charging; If the current electricity price is not the lowest electricity price of the day, a list of remaining electricity price zones is generated. The list of remaining electricity price zones includes multiple consecutive electricity price periods starting from the time period to which the current electricity price belongs, and the electricity prices in the same electricity price period are equal. Initialize the charging capacity to zero; Starting from the end of the list of remaining electricity price zones, each electricity price period is traversed in reverse chronological order, and an update operation is performed on each electricity price period to obtain the updated charging capacity. The update operation includes: Under the condition of satisfying the first preset condition, the energy released by the energy storage device operating at rated power during the traversal period is accumulated into the capacity to be charged, and the capacity to be charged is updated based on the rated capacity of the energy storage device and the maximum charging depth. The first preset condition is set based on the price difference between the electricity price during the traversal period and the current electricity price. Under the condition of satisfying the second preset condition, the energy that the energy storage device can charge continuously at rated power during the traversal period is deducted from the charging capacity to obtain the charging capacity after deduction, and the charging capacity is updated based on the charging capacity after deduction. The second preset condition is set based on the relationship between the electricity price during the traversal period and the current electricity price. Based on the updated capacity to be charged and the current capacity of the energy storage device, the amount of electricity to be charged for the time period to which the current electricity price belongs is determined.

2. The estimation method according to claim 1, characterized in that, If the current electricity price is not the lowest electricity price of the day, a list of remaining electricity price zones is generated, including: If the time period to which the current electricity price belongs is the last time period of the day, the time period of the electricity price of the next day is concatenated to the time period to which the current electricity price belongs to generate the list of remaining electricity price zones.

3. The estimation method of claim 1, wherein, After obtaining the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, and the current capacity of the energy storage device, the estimation method further includes: If the current electricity price is the lowest electricity price of the day, and the time period to which the current electricity price belongs is not the last time period of the day, then the amount of electricity to be charged during the time period to which the current electricity price belongs is determined based on the rated capacity of the energy storage device and the maximum charging depth.

4. The estimation method of claim 1, wherein, Under the condition of satisfying the first preset condition, the energy released by the energy storage device operating continuously at rated power during the traversal period is added to the capacity to be charged, and the capacity to be charged is updated based on the rated capacity of the energy storage device and the maximum charging depth, including: If the electricity price during the traversed period is higher than the current electricity price, obtain the price difference between the electricity price during the traversed period and the current electricity price; If the price difference is greater than the minimum electricity price difference, the product of the duration of the traversal period and the rated power is determined as the energy released by the energy storage device when it operates continuously at the rated power. The product value is added to the capacity to be charged to obtain the accumulated capacity to be charged. The accumulated capacity to be charged is compared with the product of the rated capacity of the energy storage device and the maximum depth of charging to obtain the comparison result; The updated capacity to be charged is determined based on the comparison results.

5. The estimation method of claim 4, wherein, Determining the updated charging capacity based on the comparison results includes: If the product value is less than the accumulated capacity to be charged, then the product value is determined as the updated capacity to be charged; If the accumulated capacity to be charged is less than the product value, then the accumulated capacity to be charged is determined as the updated capacity to be charged.

6. The estimation method of claim 1, wherein, Under the condition of satisfying the second preset condition, the energy that the energy storage device can continuously charge at rated power during the traversal period is deducted from the capacity to be charged, to obtain the deducted capacity to be charged, and the capacity to be charged is updated based on the deducted capacity to be charged, including: If the electricity price during the traversal period is lower than the current electricity price, the product of the duration of the traversal period and the rated power is determined as the energy that the energy storage device can charge when it operates continuously at the rated power. The product value is subtracted from the capacity to be charged to obtain the capacity to be charged after subtraction. If the deducted capacity to be charged is greater than zero, then the deducted capacity to be charged is determined as the updated capacity to be charged. If the deducted capacity to be charged is less than zero, then the updated capacity to be charged is zero.

7. The estimation method of claim 1, wherein, Based on the updated capacity to be charged and the current capacity of the energy storage device, determine the amount of electricity to be charged for the time period to which the current electricity price belongs, including: Compare the updated capacity to be charged with the current capacity of the energy storage device; If the updated capacity to be charged is greater than the current capacity of the energy storage device, then the difference between the updated capacity to be charged and the current capacity of the energy storage device is determined as the amount of electricity to be charged in the time period to which the current electricity price belongs; If the updated capacity to be charged is less than or equal to the current capacity of the energy storage device, then the amount of energy to be charged in the time period to which the current electricity price belongs is determined to be zero.

8. An energy storage device chargeable amount estimation device characterized by comprising: include: The acquisition unit is used to acquire the current electricity price, the lowest electricity price of the day, the rated capacity of the energy storage device, the current capacity of the energy storage device, and the maximum depth of charging. The generation unit is configured to generate a list of remaining electricity price zones when the current electricity price is not the lowest electricity price of the day. The list of remaining electricity price zones includes multiple consecutive electricity price periods starting from the time period to which the current electricity price belongs, and the electricity prices in the same electricity price period are equal. An initialization unit is used to initialize the capacity to be charged to zero. An update unit is configured to start from the end of the list of remaining electricity price zones, traverse each of the electricity price periods in reverse chronological order, perform an update operation on each of the electricity price periods, and obtain the updated capacity to be charged. The update operation includes: Under the condition of satisfying the first preset condition, the energy released by the energy storage device operating at rated power during the traversal period is accumulated into the capacity to be charged, and the capacity to be charged is updated based on the rated capacity of the energy storage device and the maximum charging depth. The first preset condition is set based on the price difference between the electricity price during the traversal period and the current electricity price. Under the condition of satisfying the second preset condition, the energy that the energy storage device can charge continuously at rated power during the traversal period is deducted from the charging capacity to obtain the charging capacity after deduction, and the charging capacity is updated based on the charging capacity after deduction. The second preset condition is set based on the relationship between the electricity price during the traversal period and the current electricity price. The first determining unit is used to determine the amount of electricity to be charged in the time period to which the current electricity price belongs, based on the updated capacity to be charged and the current capacity of the energy storage device.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the method for estimating the amount of energy storage to be charged according to any one of claims 1 to 7.

10. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a method for performing an estimation method for the energy storage capacity to be charged according to any one of claims 1 to 7.