Charging and discharging control method, device and equipment based on energy storage equipment and storage medium

By dynamically adjusting the charging and discharging strategies of energy storage devices and optimizing their operating status and power consumption in real time according to changes in grid load, the problems of grid instability and increased electricity costs caused by fixed-time strategies are solved, achieving more efficient grid management.

CN121663600APending Publication Date: 2026-03-13ZHE JIANG SAI WEI SHU ZI NENG YUAN JI SHU YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing energy storage device charging and discharging strategies are based on fixed time periods and peak-valley strategies, which cannot adapt to grid load fluctuations across time periods, resulting in decreased grid stability and reliability and increased electricity costs for the load system.

Method used

By using the current excitation value as a benchmark and combining it with the excitation value within a predetermined period, the operating status and power of the energy storage device are dynamically adjusted. Real-time optimization is performed based on load forecasts and available charging power to determine charging and discharging operations.

Benefits of technology

It improves the stability and reliability of the power grid, reduces the electricity cost of the load system, and enables the efficient operation of energy storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121663600A_ABST
    Figure CN121663600A_ABST
Patent Text Reader

Abstract

The invention discloses a charging and discharging control method, device and equipment based on energy storage equipment and a storage medium. According to the scheme, the charging and discharging strategy of the energy storage equipment is not fixed, whether the energy storage equipment is in a charging state or a discharging state at each moment is dynamically determined according to the actual situation, and the charging and discharging target electric quantity of the energy storage equipment is changed in different states; if the excitation value at the current moment is the maximum value in the preset period, controlling the energy storage equipment to discharge to a first electric quantity value, if the excitation value at the current moment is the minimum value in the preset period, controlling the energy storage equipment to charge to a second electric quantity value, and if the excitation value at the current moment is an intermediate value, controlling the energy storage equipment to charge to a third electric quantity value; if yes, the operation state and the target electric quantity are comprehensively determined through the load prediction discharge capacity, the chargeable electric quantity, the excitation value and the like at each subsequent moment, so that the charging and discharging process of the energy storage equipment is more accurately determined and controlled, power grid load fluctuation is avoided, the stability and reliability of a power grid are improved, and the power utilization cost of a load system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of energy storage equipment technology, and in particular to a charging and discharging control method, device, equipment and storage medium based on energy storage equipment. Background Technology

[0002] With the market-oriented reform of the power sector and the increase in the proportion of renewable energy, energy production and consumption are exhibiting high volatility and intermittency, posing challenges to the stability and reliability of the power system. Battery energy storage technology utilizes rechargeable batteries to store electrical energy in the form of chemical energy and release it when needed. Therefore, battery energy storage, as a flexible load and controllable resource, is being increasingly widely used in power systems so that energy storage devices can store energy during periods of low electricity demand and release energy during periods of high demand, thereby improving the stability of the power grid.

[0003] Current charging and discharging strategies employ a fixed-time-segmentation peak-valley approach. This means that a day is pre-divided into peak, flat, and valley periods, with charging during valley hours and discharging during peak hours. These strategies are predetermined and cannot be changed. However, while simple, this approach overlooks the possibility of cross-time-segment substitution, impacting grid stability and electricity costs. For example, in the original strategy, the energy storage system should discharge during periods 1 and 2, with period 2 being the peak electricity consumption period. However, due to increased energy consumption in the load system during period 1, the energy storage system may have already discharged its power. Therefore, it cannot discharge during period 2, requiring the grid to supply power to the load system. This leads to a surge in grid electricity consumption during the peak period of period 2, causing grid load fluctuations and affecting grid stability and reliability. Furthermore, the load system's practice of drawing power from the grid during peak hours incurs additional electricity costs.

[0004] Therefore, how to improve the stability and reliability of the power grid and reduce the electricity cost of the load system is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] This application provides a charging and discharging control method, device, equipment, and storage medium based on energy storage devices to improve the stability and reliability of the power grid and reduce the electricity cost of the load system.

[0006] In a first aspect, this application provides a charging and discharging control method based on an energy storage device, the charging and discharging control method comprising:

[0007] Obtain the current excitation value and use it as the benchmark excitation value. Compare the benchmark excitation value with the excitation values ​​at each comparison time within the predetermined period. If the benchmark excitation value is the maximum value, set the target operating state to the discharge state and the target battery level to the first battery level value. If the benchmark excitation value is the minimum value, set the target operating state to the charging state and the target battery level to the second battery level value.

[0008] If the reference excitation value is the median value, then the operating state at each comparison time is determined based on the reference excitation value and the excitation value at each comparison time, and each comparison time is divided into a processing block; each processing block includes times with the same continuous operating state, and the operating states of adjacent processing blocks are different.

[0009] Based on the operating status and power variation parameters at each comparison time, the cumulative power at each comparison time is calculated sequentially. If the cumulative power at the last target comparison time within the target block is detected and is within the target range for the first time, the target operating status at the current time is determined based on the target range. Based on the maximum cumulative power value between the current time and the target comparison time, and the overflow power within the target block, the target power at the current time is determined. The power variation parameters include: predicted load discharge and rechargeable power. The process for determining the overflow power is as follows: find the comparison time within the target block that meets the cost requirements, and determine the overflow power based on the power variation parameters of the comparison time that meets the cost requirements.

[0010] Based on the target operating status and target power, control the energy storage device to perform charging / discharging operations within the target time period starting from the current time.

[0011] Optionally, the step of determining the operating state at each comparison time based on the reference excitation value and the excitation value at each comparison time, and dividing each comparison time into a processing block, includes:

[0012] Determine the excitation values ​​at each comparison time after the current time, and compare the excitation values ​​at each comparison time with the baseline excitation value;

[0013] If the excitation value at the comparison time is less than the reference excitation value, the operating state at the comparison time is determined to be the charging state; if the excitation value at the comparison time is greater than the reference excitation value, the operating state at the comparison time is determined to be the discharging state; if the excitation value at the comparison time is equal to the reference excitation value, the operating state at the comparison time is determined to be the stationary state.

[0014] Based on the operating status at each comparison moment, comparison moments that are continuously in the charging state are assigned to the same processing block; comparison moments that are continuously in the discharging state are assigned to the same processing block; and comparison moments that are continuously in the stationary state are assigned to the same processing block.

[0015] Optionally, based on the operating status and power variation parameters at each comparison time, the cumulative power at each comparison time is calculated sequentially, including:

[0016] Determine the initial charge at the current moment, and the time intervals to be calculated after the current moment;

[0017] The cumulative power at each time point to be calculated is calculated by taking into account the operating status at each time point to be calculated and the cumulative power at the previous time point.

[0018] If the time to be calculated is in a charging state, the chargeable capacity is added to the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; if the time to be calculated is in a discharging state, the predicted load discharge amount is subtracted from the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; the accumulated capacity of the current time is the initial capacity.

[0019] Optionally, if the accumulated charge of the last target comparison time within the target block is detected and it is within the target range for the first time, the target operating status at the current time is determined based on the target range, including:

[0020] The accumulated power at the last comparison moment in each processing block is compared with the charging threshold and the discharging threshold respectively, and the first target comparison moment that is greater than or equal to the charging threshold, or the first target comparison moment that is less than or equal to the discharging threshold is found; where the processing block containing the target comparison moment is the target block;

[0021] If the first target comparison time that is greater than or equal to the charging threshold is found, the target operating state at the current time is determined to be the discharging state; if the first target comparison time that is less than or equal to the discharging threshold is found, the target operating state at the current time is determined to be the charging state.

[0022] Optionally, determining the target power at the current moment based on the cumulative maximum power value between the current moment and the target comparison moment, and the overflow power within the target block, includes:

[0023] If the target is in a discharging state, then determine the minimum cumulative charge value between the current time and the target comparison time.

[0024] Calculate the difference between the baseline excitation value and the charging / discharging cost;

[0025] Determine whether the lowest excitation value at each comparison time in the target block is greater than the difference;

[0026] If yes, the allowable discharge is zero; if no, the allowable discharge is determined based on the minimum accumulated charge, the accumulated charge at the target comparison time, the total charge, and the first determination rule, and the target charge is determined by the initial charge and the allowable discharge at the current time.

[0027] The total charging amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the first moment when the difference value is less than the charging and discharging cost is found, and the total charging amount at each first moment is calculated.

[0028] Optionally, determining the target power at the current moment based on the cumulative maximum power value between the current moment and the target comparison moment, and the overflow power within the target block, includes:

[0029] If the target is in a charging state, then determine the highest cumulative charge value between the current time and the target comparison time.

[0030] Calculate the sum of the baseline excitation value and the charging / discharging cost;

[0031] Determine whether the highest excitation value at each comparison moment in the target block is less than the sum;

[0032] If yes, the allowed charging amount is zero; if no, the allowed charging amount is determined based on the highest accumulated charging amount, the accumulated charging amount at the target comparison time, the total discharge amount, and the second determination rule, and the target charging amount is determined by the initial charging amount at the current time and the allowed charging amount.

[0033] The total discharge amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the second moment when the difference value is less than the charging and discharging cost is found, and the total discharge amount at each second moment is calculated.

[0034] Optionally, the first determining rule is:

[0035] ;

[0036] in, To allow the discharge amount, This represents the minimum accumulated battery level. The cumulative battery level at the target comparison point. Total charge amount;

[0037] The second determining rule is:

[0038] ;

[0039] in, To allow charging amount, This represents the highest accumulated battery level. This represents the total discharge amount.

[0040] Secondly, this application provides a charge / discharge control device based on an energy storage device, comprising:

[0041] The first comparison module is used to obtain the excitation value at the current moment and use the excitation value at the current moment as the benchmark excitation value to compare with the excitation values ​​at each comparison moment within the predetermined period.

[0042] The setting module is used to set the target operating state to discharge state and the target battery level to the first battery level when the reference excitation value is at its maximum value; and to set the target operating state to charging state and the target battery level to the second battery level when the reference excitation value is at its minimum value.

[0043] The partitioning module is used to determine the running state at each comparison time based on the reference excitation value and the excitation values ​​at each comparison time when the reference excitation value is in the middle value, and to divide each comparison time into a processing block; each processing block includes times with the same running state continuously, and the running states of adjacent processing blocks are different;

[0044] The second comparison module is used to calculate the cumulative power at each comparison time according to the operating status and power change parameters at each comparison time.

[0045] The running status determination module is used to determine the target running status at the current moment based on the target range if the cumulative power of the last target comparison time in the target block is detected and it is the first time that it is within the target range.

[0046] The target power determination module is used to determine the target power at the current moment based on the cumulative maximum power value between the current moment and the target comparison moment, and the overflow power within the target block; the power variation parameters include: load predicted discharge amount and chargeable power; the process of determining the overflow power is as follows: find the comparison moment within the target block that meets the cost requirements, and determine the overflow power based on the power variation parameters of the comparison moment that meets the cost requirements;

[0047] The control module is used to control the energy storage device to perform charging / discharging operations within a target time period starting from the current time, based on the target operating status and target power.

[0048] Thirdly, this application provides an electronic device, comprising:

[0049] Memory, used to store computer programs;

[0050] A processor is used to implement the charging and discharging control method when executing the computer program.

[0051] Fourthly, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described charging and discharging control method.

[0052] Compared with the prior art, the technical solutions provided in this application have the following advantages: This application provides a charging and discharging control method, device, equipment, and storage medium based on energy storage devices. In this solution, the charging and discharging strategy of the energy storage device is not fixed, but dynamically determines whether it is in a charging or discharging state at each moment according to the actual situation. Furthermore, the target charge / discharge capacity also changes under different states. That is: if the current excitation value is the maximum value within a predetermined period, the energy storage device is controlled to discharge to a first charge value; if the current excitation value is the minimum value within a predetermined period, the energy storage device is controlled to charge to a second charge value; if the current excitation value is an intermediate value, its operating state and target charge are comprehensively determined by the load prediction discharge amount, chargeable capacity, and excitation value at subsequent moments. This allows for more accurate control of the charging and discharging process of the energy storage device, avoiding grid load fluctuations, improving grid stability and reliability, and reducing the electricity cost of the load system. Attached Figure Description

[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0055] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0056] Figure 1 A schematic flowchart of a charging and discharging control method based on an energy storage device is provided for an embodiment of this application;

[0057] Figure 2 A complete flowchart is provided for embodiments of this application;

[0058] Figure 3 A schematic diagram of a charging and discharging control device based on an energy storage device is provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0060] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0061] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0062] In traditional solutions, battery energy storage, as a flexible load and controllable resource, is often used for electricity price arbitrage by "charging when prices are low and discharging when prices are high." However, the main arbitrage method currently is based on a fixed-time peak-valley strategy, that is, dividing the day into peak, flat, and valley periods in advance, charging during valley hours and discharging during peak hours. The rules are simple, but they ignore the possibility of short-term price fluctuations and cross-time period replacements, greatly reducing the power plant's revenue and extending the payback period. Furthermore, this method also causes fluctuations in the power grid, affecting the grid's reliability and stability.

[0063] Therefore, in order to solve the above problems, this application proposes a scheme based on dynamic SOC adjustment. That is, the battery charging and discharging is planned by estimating the load hourly each day and the hourly electricity price. Then, the load estimation deviation is considered and the optimization is performed hourly. That is, the charging / discharging of the energy storage system and the amount of electricity charged / discharged are determined at each hour. Compared with the traditional peak-valley arbitrage strategy, this method directly controls the battery SOC and only gives the target SOC. When the charging / discharging reaches the target SOC, the system stops, thereby maximizing the power plant revenue and improving the stability of the power grid.

[0064] See Figure 1 This is a schematic flowchart of a charging and discharging control method based on an energy storage device, provided in an embodiment of this application. The charging and discharging control method includes:

[0065] S101. Obtain the excitation value at the current moment, and use the excitation value at the current moment as the benchmark excitation value to compare with the excitation values ​​at each comparison moment within the predetermined period.

[0066] In this application, "current time" refers to the moment when the operating status of the energy storage device needs to be determined. Specifically, "time" refers to each hour within a 24-hour period, such as 0:00, 1:00, 2:00, etc. The operating status of the energy storage device includes charging and discharging states. Once the operating status of the energy storage device is determined at the current time, the corresponding operations need to be performed within the target time period starting from the current time.

[0067] For example, if the running state is charging, then the charging operation needs to be performed within the target time period starting from the current time; if the running state is discharging, then the discharging operation needs to be performed within the target time period starting from the current time.

[0068] Furthermore, this energy storage device is used to charge the grid and discharge to the load system when needed. If the load system does not obtain enough power from the energy storage device, it needs to obtain additional power from the grid, which affects the stability and reliability of the grid and increases the electricity cost of the load system. Therefore, in this application, the operating status of the energy storage device is precisely controlled at different times to avoid the load system obtaining power from the grid during peak electricity consumption periods, which would cause a sudden increase in grid electricity consumption during peak hours, resulting in grid load fluctuations, affecting the stability and reliability of the grid, and thus avoiding additional electricity costs.

[0069] The incentive values ​​at various times in this application can be electricity prices, points, credit values, etc. These incentive values ​​are related to the electricity demand of the power grid. If the electricity demand at a certain time is relatively high, then the incentive value at that time is larger; if the electricity demand at a certain time is relatively low, then the incentive value at that time is smaller. Therefore, this application does not specifically limit the type of incentive value, as long as it reflects the correspondence between the electricity demand of the power grid at different times and the incentive value. For example, if the incentive value is electricity price, then the electricity price is larger during peak electricity demand periods and smaller during off-peak electricity demand periods.

[0070] Furthermore, this application uses the current excitation value as a benchmark excitation value to compare with the excitation values ​​at various comparison points within a predetermined period to determine the current operating status. When determining the predetermined period, the time it takes for the energy storage device's battery to be fully charged at the lowest electricity price can be used as one period, with a minimum period of one day. For example, given the common situation in China where electricity prices are lowest between 0:00 and 8:00 daily, and the energy storage system can always be fully charged during this period, this embodiment sets a period from 0:00 to 24:00 daily.

[0071] It should be noted that, in order to clearly illustrate the differences between the various times, this application divides the time within the predetermined period into the current time, the comparison time, and the historical time. The current time refers to the time when the operating status needs to be determined. The comparison time refers to the time within the predetermined period when the operating status has not yet been determined. The historical time refers to the time within the predetermined period when the operating status has been determined. For example, if the predetermined period is 1 day and the current time is 6 o'clock, then 6 o'clock is determined as the current time, while 0 o'clock to 5 o'clock are the historical times when the operating status has been determined, and 7 o'clock to 23 o'clock are the comparison times when the operating status has not yet been determined.

[0072] S102. If the reference excitation value is the maximum value, then set the target operating state to the discharge state and the target charge value to the first charge value.

[0073] S103. If the reference excitation value is the minimum value, then set the target operating state to the charging state and the target power level to the second power level.

[0074] In this application, before accurately determining the current operating status, relevant data needs to be obtained in advance, including: the incentive value at each moment within the predetermined period, the predicted load discharge at each moment within the predetermined period, and the available chargeable power. For example, if the predetermined period is 1 day and the incentive value is the electricity price, then the incentive value at each moment within the predetermined period is the electricity price for each hour of the day; the predicted load discharge is the predicted load power consumption per hour of the day, which can be denoted as... 'i' represents hours; the amount of electricity that can be charged per hour is denoted as 'i'. , i represents hours; in this application, the predicted load discharge and the chargeable capacity are both converted into battery SOC (State of Charge, remaining capacity).

[0075] In this application, the current excitation value is used as the baseline excitation value and compared with the excitation values ​​at various comparison times within a predetermined period. If the baseline excitation value is found to be the maximum, the target operating state is set to the discharge state, and the target energy level is set to the first energy level. If the baseline excitation value is the minimum, the target operating state is set to the charging state, and the target energy level is set to the second energy level. The target energy level refers to the target SOC, that is, the energy storage device needs to charge / discharge to the target SOC within the target time period starting from the current time. The specific values ​​of the first and second energy levels can be customized. In this embodiment, the first energy level can be set to 0, and the second energy level can be set to 1. This is not specifically limited.

[0076] For example, if the current time is 6:00, it is necessary to determine whether the power station's energy storage equipment is charging or discharging during the target time period from 6:00 to 7:00, starting from the current time, and specifically how much is charged / discharged. First, determine if the electricity price at 6:00 is the highest price of the day. If so, mark 6:00-7:00 as the discharging state, and the target SOC is 0. This means that discharging stops when the system SOC reaches 0. If it hasn't reached 0 by 7:00, discharging also stops, and the system charging / discharging strategy for 7:00-8:00 is re-determined at the next time (7:00). Next, determine if the current time is 6:00 as the lowest price of the day. If so, mark 6:00-7:00 as the charging state, and the target SOC is 1. This means that charging stops when the system SOC reaches 1. If it hasn't reached 1 by 7:00, charging also stops, and the system charging / discharging strategy for 7:00-8:00 is re-determined at the next time (7:00).

[0077] S104. If the reference excitation value is an intermediate value, then based on the reference excitation value and the excitation value at each comparison time, determine the operating state at each comparison time and divide each comparison time into a processing block; each processing block includes times with the same continuous operating state, and the operating states between adjacent processing blocks are different.

[0078] S105. Based on the operating status and power change parameters at each comparison time, calculate the cumulative power at each comparison time in sequence; if the cumulative power at the last target comparison time in the target block is detected and is within the target range for the first time, determine the target operating status at the current time based on the target range; determine the target power at the current time based on the maximum value of the cumulative power between the current time and the target comparison time, and the overflow power in the target block.

[0079] The power variation parameters include: predicted load discharge and chargeable power; the process for determining the overflow power is: finding the comparison time within the target block that meets the cost requirements, and determining the overflow power based on the power variation parameters of the comparison time that meets the cost requirements.

[0080] In this application, if the excitation value at the current moment is an intermediate value, the operating status and target power are determined by comprehensively considering the load prediction discharge amount, chargeable power and excitation value at subsequent moments, thereby more accurately determining the operating status and target power of the energy storage device.

[0081] Specifically, this application first needs to determine the operating state at each comparison time based on the baseline excitation value and the excitation values ​​at each comparison time, and then divide each comparison time into a processing block. This ensures that times with consecutively identical operating states are grouped into the same processing block, while adjacent processing blocks have different operating states. After dividing subsequent comparison times into different processing blocks, the cumulative power at each comparison time needs to be calculated sequentially based on the operating state and power variation parameters. These power variation parameters include the predicted load discharge and the chargeable power. That is, if the operating state at the time to be calculated is charging, the cumulative power at the time to be calculated is calculated based on the chargeable power and the cumulative power at the previous time; if the operating state at the time to be calculated is discharging, the cumulative power at the time to be calculated is calculated based on the predicted load discharge and the cumulative power at the previous time. When calculating the cumulative power, the limitation that soc > 0 and soc < 1 is not considered.

[0082] Then, the accumulated power at the last comparison moment in each processing block is detected. If it falls within the target range for the first time, the processing block is determined to be the target block, and the last comparison moment within the target block is the target comparison moment. The target power calculation process continues. The target range can be any range within which the storage system might experience power overflow. It is not specifically limited here and can be set according to actual conditions. For example, the target range could be: SOC less than or equal to 0.1 and SOC greater than or equal to 0.9, or SOC less than or equal to 0 and SOC greater than or equal to 1. It is not specifically limited here.

[0083] Finally, based on the target range of the last target in the target block at the comparison time, the target running status at the current time is determined. For example, if the target range is SOC less than or equal to 0, it means that after continuous discharge at subsequent times, the power may be insufficient, so it is necessary to charge at the current time. Therefore, the current time is set to charging status. If the target range is SOC greater than or equal to 1, it means that after continuous charging at subsequent times, the power may be excessive, so it is possible to discharge at the current time. Therefore, the current time is set to charging status.

[0084] Furthermore, this application determines the target power capacity based on the cumulative maximum power capacity between the current time and the target comparison time, as well as the overflow power capacity within the target block. The process for determining the overflow power capacity is as follows: Find the comparison time within the target block that meets the cost requirement, and determine the overflow power capacity based on the power capacity variation parameters of the comparison time that meets the cost requirement. Here, the cost requirement can be understood as a profit requirement; that is, a comparison time that meets the cost requirement is a comparison time in a profitable state. For example, if the difference between the incentive value and the benchmark incentive value at the comparison time is greater than the charging and discharging cost, then the comparison time is in a profitable state; otherwise, it is in a non-profitable state. When determining the overflow power capacity, only the power capacity variation parameters of the comparison time that meets the cost requirement are considered. If the cost requirement is not met at a certain time, the power capacity variation parameters of that comparison time are not considered.

[0085] For example: If the charging state is from 11:00 to 14:00, and the charge level before charging at 11:00 is 0.28, and the charge level change parameter at each comparison time is the chargeable charge level (0.2), if all four times from 11:00 to 14:00 meet the cost requirements, then after charging for 4 hours from 11:00 to 14:00, the accumulated charge level is 0.28 + 0.2 * 4 = 1.08, and the overflow charge level is 1.08 - 1 = 0.08. If only the cost requirements are met from 11:00 to 13:00, then only the chargeable charge level from 11:00 to 13:00 is considered. After charging from 11:00 to 13:00, the accumulated charge level is 0.28 + 0.2 * 3 = 0.88, and 0.88 is less than 1, so the overflow charge level is 0.

[0086] This application ensures that charging and discharging to the target capacity at the current moment will not incur additional electricity costs, thus achieving profitability. Furthermore, by determining the target capacity through the maximum value of the accumulated capacity, this application ensures that after charging and discharging to the target capacity at the current moment, the accumulated capacity at subsequent charging and discharging moments will not exceed the target range.

[0087] For example: If the current time is 6:00, and the target range is SOC less than or equal to 0 and SOC greater than or equal to 1, and the calculated accumulated charge at 9:00 is 1.4, then the accumulated charge at 9:00 exceeds 1. Therefore, it is determined that discharge is required at the current time, meaning the current operating state is a discharge state. The minimum charge between 6:00 and 9:00 is 0.2, indicating that the allowable discharge amount at the current time cannot exceed 0.2. If it exceeds 0.2, there will be no charge to discharge. Furthermore, the overflow charge between 6:00 and 9:00 is 0.3. Considering the charging and discharging costs, a discharge of 0.3 is allowed between 6:00 and 9:00. Then, considering that the allowable discharge amount at the current time cannot exceed 0.2, the minimum value between these two is selected as the allowable discharge amount at the current time, which is 0.2. If the initial charge at the current time is 0.5, and the allowable discharge amount is 0.2, then the target charge is 0.3.

[0088] S106. Based on the target operating status and target power, control the energy storage device to perform charging / discharging operations within the target time period starting from the current time.

[0089] By determining the target operating state and target energy level at the current moment through the above process, the energy storage device can be controlled to perform charging / discharging operations within the target time period starting from the current moment. At the next moment, steps S101 to S106 above are continued.

[0090] In summary, the charging and discharging strategy of the energy storage device in this application is not fixed, but dynamically determines whether it is in a charging or discharging state at each moment based on the actual situation. Furthermore, the target capacity for charging and discharging also changes under different states. That is, if the excitation value at the current moment is the maximum value within a predetermined period, the energy storage device is controlled to discharge to the first capacity value; if the excitation value at the current moment is the minimum value within a predetermined period, the energy storage device is controlled to charge to the second capacity value; if the excitation value at the current moment is an intermediate value, the operating state and target capacity are comprehensively determined by the load prediction discharge amount, chargeable capacity, and excitation value at subsequent moments. This allows for more accurate determination and control of the charging and discharging process of the energy storage device, avoiding grid load fluctuations, improving grid stability and reliability, and reducing the electricity cost of the load system.

[0091] In another embodiment of this application, the process of determining the operating state at each comparison moment based on the reference excitation value and the excitation value at each comparison moment, and dividing each comparison moment into a processing block, specifically includes the following:

[0092] Determine the excitation values ​​for each comparison time after the current time, and compare each comparison time's excitation value with the reference excitation value. If the excitation value at the comparison time is less than the reference excitation value, the operating state at the comparison time is determined to be charging; if the excitation value at the comparison time is greater than the reference excitation value, the operating state at the comparison time is determined to be discharging; if the excitation value at the comparison time is equal to the reference excitation value, the operating state at the comparison time is determined to be stationary. Based on the operating state of each comparison time, each comparison time that is continuously in the charging state is assigned to the same processing block; each comparison time that is continuously in the discharging state is assigned to the same processing block; and each comparison time that is continuously in the stationary state is assigned to the same processing block.

[0093] In this application, when determining the operating state at each subsequent comparison time, it can be determined whether the excitation value at each subsequent comparison time is greater than the reference excitation value at the current time. If the excitation value at the comparison time is less than the reference excitation value, the operating state at the comparison time is determined to be the charging state; if the excitation value at the comparison time is greater than the reference excitation value, the operating state at the comparison time is determined to be the discharging state; if the excitation value at the comparison time is equal to the reference excitation value, the operating state at the comparison time is determined to be the stationary state. Then, each comparison time that is continuously in the charging state is assigned to the same processing block; each comparison time that is continuously in the discharging state is assigned to the same processing block; and each comparison time that is continuously in the stationary state is assigned to the same processing block.

[0094] In another embodiment of this application, the cumulative power consumption at each comparison time is calculated sequentially based on the operating status and power consumption change parameters at each comparison time, including:

[0095] Determine the initial power level at the current moment, and the power levels to be calculated at each subsequent moment. Calculate the cumulative power level at each moment based on its operating status and the cumulative power level of the previous moment. If the moment to be calculated is in a charging state, add the chargeable power level to the cumulative power level of the previous moment to obtain the cumulative power level. If the moment to be calculated is in a discharging state, subtract the predicted load discharge amount from the cumulative power level of the previous moment to obtain the cumulative power level. The cumulative power level at the current moment is the initial power level.

[0096] For example, if the current time is 6:00, and the electricity price at the current time is neither the highest nor the lowest electricity price of the day, then the baseline incentive value for the current time is first determined. In this embodiment, the baseline incentive value is the electricity price P6 from 6:00 to 7:00. At this time, the SOC value at 6:00 can be marked as the initial electricity consumption Soc_initial. In this application, each time to be calculated after the current time is denoted as time i:00, and the electricity price of i:00 – (i+1) is called Pi.

[0097] When marking the charge and discharge states at subsequent comparison times, when Pi < P6, it is marked as the charging state, and the charging amount is the chargeable amount that can be charged in that hour. When Pi > P6, it is marked as the discharging state, and the discharging amount is the predicted discharging amount of the load in that hour. When Pi = P6, it is marked as stationary. Then, continuous charging segments are connected into an entire block, continuous discharging segments are connected into an entire block, and continuous stationary states are connected into an entire block. When calculating the cumulative power at the first calculation time to be calculated, if the time to be calculated is in the charging state, calculate the sum of the initial power at the current time and the chargeable amount as the cumulative power at the time to be calculated. If the time to be calculated is in the discharging state, calculate the difference between the initial power at the current time and the predicted discharging amount of the load as the cumulative power at the time to be calculated; when calculating the cumulative power at a non-first calculation time to be calculated, if the time to be calculated is in the charging state, calculate the sum of the cumulative power at the previous time and the chargeable amount as the cumulative power at the time to be calculated. If the time to be calculated is in the discharging state, calculate the difference between the cumulative power at the previous time and the predicted discharging amount of the load as the cumulative power at the time to be calculated. And when calculating the cumulative power, there is no need to consider the limitation that soc > 0 and soc < 1, that is: the calculated cumulative power can be greater than 0 or less than 1.

[0098] As can be seen from the above, through the reference excitation value at the current time and the excitation values at each comparison time in the present application, the operating states at each comparison time can be determined and divided into different processing blocks, so as to determine the operating state and target power at the current time through subsequent processes; moreover, the cumulative power at each comparison time can be determined by the chargeable amount and the predicted discharging amount of the load, thus fully considering the load fluctuation conditions at different times to accurately determine the charging state and target power at each time.

[0099] In another embodiment of the present application, when detecting that the cumulative power at the last target comparison time in the target block is first within the target range, the process of determining the target operating state at the current time according to the target range specifically includes the following:

[0100] Compare the cumulative power at the last comparison time in each processing block with the charging threshold and the discharging threshold respectively to find the first target comparison time greater than or equal to the charging threshold or the first target comparison time less than or equal to the discharging threshold; the processing block where the target comparison time is located is the target block; if the first target comparison time greater than or equal to the charging threshold is found, it is determined that the target operating state at the current time is the discharging state; if the first target comparison time less than or equal to the discharging threshold is found, it is determined that the target operating state at the current time is the charging state.

[0101] In this application, the specific values ​​of the charging threshold and discharging threshold are not specifically limited and can be set according to actual conditions. In this application, the charging threshold can be set to 1 and the discharging threshold can be set to 0. Then, the accumulated power at the end time of each processing block after the current time is found. The end time of the processing block is the last comparison time in the processing block. It is then compared with the charging threshold and the discharging threshold to find the first target comparison time that is greater than or equal to the charging threshold, or the first target comparison time that is less than or equal to the discharging threshold. For example, the accumulated power at the last comparison time in the first processing block is obtained, and it is determined whether the accumulated power is greater than or equal to 1 or less than or equal to 0. If so, the comparison time is determined to be the first target comparison time that meets the condition. If not, the accumulated power at the last comparison time in the next processing block is obtained in order to find the first target comparison time that meets the condition. If the first target comparison time that meets the condition is found, the calculation stops. The condition is that the accumulated power at the comparison time is greater than or equal to the charging threshold, or less than or equal to the discharging threshold.

[0102] In another embodiment of this application, if the target operating state is a discharge state, the target charge at the current moment is determined by the maximum cumulative charge value between the current moment and the target comparison moment, and the overflow charge within the target block, including:

[0103] Determine the minimum cumulative charge value between the current time and the target comparison time; calculate the difference between the benchmark stimulus value and the charging / discharging cost; determine whether the minimum stimulus value at each comparison time in the target block is greater than the difference; if so, the allowable discharge amount is zero; if not, determine the allowable discharge amount based on the minimum cumulative charge value, the cumulative charge at the target comparison time, the total charging amount, and the first determination rule, and determine the target charge amount through the initial charge at the current time and the allowable discharge amount; wherein, the total charging amount is calculated as follows: calculate the difference between the stimulus value at each comparison time in the target block and the benchmark stimulus value, compare the difference value with the charging / discharging cost, find the first time when the difference value is less than the charging / discharging cost, and calculate the total charging amount at each first time.

[0104] In this application, if the accumulated battery level is greater than or equal to 1 at the time the calculation stops, the target operating state at the current time is set to the discharge state. Then, throughout the entire process from the current time to the target comparison time, the lowest Soc value is marked as the lowest accumulated battery level. The accumulated charge at the target comparison time is marked as the end of the charging block's operation at the target comparison time. Finally, calculate the total charging amount. When calculating the total charging capacity, the difference between the excitation value and the benchmark excitation value at each comparison moment in the target block can be calculated. This difference is then compared with the charging and discharging cost. The first moment when the difference is less than the charging and discharging cost is identified, and the total charging capacity at each of these first moments is calculated. When calculating the target power, first calculate the difference between the baseline excitation value and the charging and discharging cost, and determine whether the lowest excitation value at each comparison time in the target block is greater than the difference. If so, the allowable discharge amount is zero; otherwise, determine the allowable discharge amount based on the lowest cumulative power value, the cumulative power at the target comparison time, the total charging amount, and the first determination rule, and obtain the target power by subtracting the allowable discharge amount from the initial power at the current time.

[0105] For example: the current time is 6:00, the current reference excitation value is P6, and the current initial charge is... The amount of charge that can be added to the target block at the first moment when the difference between P6 and P6 is less than a is marked as... The minimum excitation value at each comparison time in the target block is The charging and discharging cost is 'a'. If the lowest excitation value in the target block... The allowable discharge amount =0. If the lowest excitation value in the target block is 0. The allowable discharge amount is then calculated using the first determining rule. Therefore, taking the target time period from 6:00 to 7:00 as the starting point, the target SOC is... – .

[0106] In another embodiment of this application, the first determining rule is:

[0107] ;

[0108] in, To allow the discharge amount, This represents the minimum accumulated battery level. The cumulative battery level at the target comparison point. Total charge amount;

[0109] Specifically, in the first determining rule... - The amount of electricity calculated by -1 is the overflow amount of electricity charged at each comparison moment within the target block when the difference between the excitation value and the benchmark excitation value is greater than the charging and discharging cost. In other words, it is the overflow charging amount.

[0110] In another embodiment of this application, if the target operating state is a charging state, the target battery level at the current moment is determined by the maximum cumulative battery level between the current moment and the target comparison moment, and the overflow battery level within the target block, including:

[0111] Determine the highest cumulative charge value between the current time and the target comparison time; calculate the sum of the benchmark excitation value and the charging / discharging cost; determine whether the highest excitation value at each comparison time in the target block is less than the sum; if so, the allowed charging amount is zero; if not, determine the allowed charging amount based on the highest cumulative charge value, the cumulative charge at the target comparison time, the total discharge amount, and the second determination rule, and determine the target charge amount through the initial charge at the current time and the allowed charging amount; wherein, the total discharge amount is calculated as follows: calculate the difference between the excitation value at each comparison time in the target block and the benchmark excitation value, compare the difference value with the charging / discharging cost, find the second time when the difference value is less than the charging / discharging cost, and calculate the total discharge amount at each second time.

[0112] In this application, if the accumulated battery power is less than or equal to 0 at the time the calculation stops, the target operating state at the current moment is set to the charging state. Then, throughout the entire process from the current moment to the target comparison moment, the highest Soc value is marked as the highest accumulated battery power value. The accumulated charge at the target comparison time is marked as the end of the charging block's operation at the target comparison time. Finally, calculate the total discharge amount. When calculating the total discharge, the difference between the excitation value and the benchmark excitation value at each comparison moment in the target block is calculated. This difference is then compared with the charging and discharging cost. The second moment when the difference is less than the charging and discharging cost is identified, and the total discharge at each of these second moments is calculated. When calculating the target charge, the sum of the baseline excitation value and the charging / discharging cost is calculated; it is determined whether the highest excitation value at each comparison moment in the target block is less than the sum; if so, the allowable charge is zero; if not, the allowable charge is determined based on the highest cumulative charge, the cumulative charge at the target comparison moment, the total discharge, and the second determination rule, and the target charge is determined by adding the allowable charge to the initial charge at the current moment.

[0113] For example: the current time is 6:00, the current reference excitation value is P6, and the current initial charge is... The total discharge amount at the second moment in the target block, where the difference between P6 and P6 is less than a, is The highest excitation value at each comparison time in the target block is The charging and discharging cost is 'a'. If the highest excitation value in the target block... Then the allowed charging amount =0. If the target block contains The allowable charging amount is then calculated using the second determining rule. Therefore, taking the target time period from 6:00 to 7:00 as the starting point, the target SOC is... + The second determining rule is as follows:

[0114] ;

[0115] in, To allow charging amount, This represents the highest accumulated battery level. This represents the total discharge amount.

[0116] Specifically, in the second determination rule... + The calculated amount of electricity is the overflow discharge amount at each comparison moment within the target block where the difference between the excitation value and the benchmark excitation value is greater than the charging and discharging cost.

[0117] For ease of understanding, here, through Figure 2 Tables 1 and 2 explain the process by which this scheme determines the operating status and target power at each time point.

[0118] See Figure 2 Here is the complete flowchart of this embodiment, which specifically includes the following:

[0119] Obtain the current SOC, hourly electricity price within the period, and estimated hourly load power consumption; if the current electricity price is equal to the lowest electricity price within the period, change the power station status to charging, with a target SOC of 1; if the current electricity price is equal to the highest electricity price within the period, change the power station status to discharging, with a target SOC of 0; if the current electricity price is the intermediate price, mark the current electricity price as the benchmark price, mark the current status as stationary, and mark subsequent time periods with the same electricity price as stationary, mark higher prices as discharging, and mark lower prices as charging.

[0120] Then, the continuous discharge segments and the continuous charge segments are combined into a block, and the current time point is used as the starting point and the current SOC is used as the starting SOC. The SOC of each block is gradually accumulated to obtain the cumulative SOC at each time point, until the cumulative SOC is less than or equal to 0 or the cumulative SOC is greater than or equal to 1, at which point the calculation ends.

[0121] If the cumulative SOC at the cutoff point is greater than or equal to 1, then the current time point is marked as the discharge state, and the allowable discharge amount is min(the lowest SOC point in the entire calculation process, max(the overflow charge amount in the last charging block that is only charged during the time period when the price difference is greater than 0.3, 0)); if the SOC at the cutoff point is less than or equal to 0, then the current time point is marked as the charging state, and the allowable charge amount is min(1-the highest SOC point in the entire calculation process, max(the overflow discharge amount in the last discharge block that is only discharged during the time period when the price difference is greater than 0.3, 0)).

[0122] Here, we will provide a detailed explanation based on the data in Tables 1 and 2:

[0123] Table 1

[0124]

[0125] Refer to Table 1, which is a data table for each time moment provided in the embodiments of this application. In Table 1, time represents each time moment within a predetermined period, price represents the incentive value at each time moment: price, and load represents the predicted load discharge amount at each time moment, that is: load energy consumption. For example, if the load in the first row of Table 1 is 0.05, it means that the energy consumed from 0:00 to 1:00 is converted to SOC=5%, and charge represents the chargeable power. In this embodiment, in order to simplify the calculation, the chargeable power is expressed as 20% SOC / 10% SOC can be charged in one hour.

[0126] As shown in Table 1, during the first 8 hours, the electricity price is the lowest price of the day, so the system is in charging mode and defaults to charging at maximum power, with a target SOC of 1. This will not be elaborated further. During 9:00-10:00, 10:00-11:00, 15:00-16:00, and 16:00-17:00, the electricity price is the highest price, so the system is in discharging mode, with a target SOC of 0. At other times, the electricity price is neither the lowest nor the highest price. Taking the current time as 8:00 and the target time period from 8:00 to 9:00 as an example, the operating status and target power determination process for this time period will be explained. See Table 2, which is the charging and discharging decision data table provided in this embodiment of the application.

[0127] Table 2

[0128]

[0129] In Table 2, status indicates the running state, idle indicates the idle state, charge indicates the charging state, discharge indicates the discharging state, block indicates the processing block, and its specific value represents the identification number of the processing block, soc_change indicates the changing power level, a negative value indicates discharging, and a positive value indicates charging, and cum_soc indicates the cumulative power level.

[0130] As shown in Table 2, the initial charge at 8:00 AM is as follows. The baseline excitation at point 8 is 1.0067. Therefore, at subsequent time points, values ​​greater than or equal to 1.0067 are considered discharge states, values ​​less than or equal to 1.0067 are considered charging states, and values ​​equal to 1.0067 are considered stationary states. Furthermore, the current state at point 8 can be set to the stationary state. See the `status` field for each time point in Table 2 for details. Then, based on the operating state at each time point, different processing blocks are defined, as shown in Table 2. Point 8 is processing block 1, points 9 and 10 are processing block 2, points 11 to 14 are processing block 3, and so on. The cumulative charge at each time point is then calculated.

[0131] Next, in each processing block, find the position where the accumulated power at the last moment is first greater than or equal to 1 or less than or equal to 0. Referring to cum_soc in Table 2, the first row that meets the condition is the row corresponding to time=14. Since the accumulated power at 14:00 is 1.08, which is greater than or equal to 1, mark the power station at 8:00 as being in a discharging state. The target block is processing block 3, the target comparison time is 14:00, and the lowest value of the accumulated power from 8:00 to 14:00 is selected. The cumulative battery level at the target comparison time is 0.28. It is 1.08.

[0132] Assuming the charging / discharging cost a = 0.3, the difference between the baseline excitation value of 1.0067 and the charging / discharging cost of 0.3 is 0.7067. This represents the lowest excitation value at each comparison time in the target block. The value is 0.2319, and the minimum excitation value is less than the difference of 0.7067. Therefore, the allowable discharge amount needs to be calculated according to the first determining rule, and the total charging amount in the first determining rule... The calculation method is as follows: In processing block 3, the difference between the incentive value of 0.2319 at 11:00 and 12:00 and the base incentive value of 1.0067 is 0.7748, and the difference between the incentive value of 0.6101 at 13:00 and the base incentive value of 1.0067 is 0.3975. It can be seen that each difference value is not less than the charging and discharging cost. Therefore, the four times from 11:00 to 14:00 are not the first time. That is, all the electricity prices in block 3 meet the arbitrage requirements and will be profitable. Therefore, the total charging amount is... It is 0.

[0133] Then, combining the data from the above: minimum accumulated battery power. The cumulative battery level at the target comparison time is 0.28. Substituting 1.08 into the first determining rule, we obtain the allowable discharge amount. Since the value is 0.08, the allowable discharge rate from 8:00 to 9:00 is 8%, and the target charge is 1 - 8% = 92%. Similarly, if the charging and discharging cost a = 0.5, then the price of 0.6101 cannot meet the arbitrage requirements. According to the first determining rule, the discharge rate from 8:00 to 9:00 is 0%, and the target charge is 1.

[0134] It should be noted that after determining the target SOC, this application can directly convert the control SOC into control power, that is, calculate the expected charging / discharging power value based on the hourly SOC change value, thereby controlling the power station to perform charging or discharging operations.

[0135] In summary, this application can determine the current charging / discharging state based on the accumulated electricity. Then, under the condition of satisfying the arbitrage price difference, it determines the specific charging / discharging amount based on the overflow charging / discharging amount. This method can fully consider the estimation deviation of the load forecast electricity, calibrate hourly, improve the overall accuracy of the charging / discharging strategy, and avoid the load system drawing electricity from the grid during peak hours, which would cause a sudden increase in grid electricity consumption during peak hours, resulting in grid load fluctuations and affecting the stability and reliability of the grid. Furthermore, compared with the traditional logic of charging during off-peak hours and discharging during peak hours, this solution makes fuller use of electricity price differences, improving the profitability of the power station per unit time. In addition, this solution is easier to implement, simplifies engineering complexity, decouples from load estimation, and can improve peak-valley arbitrage capability even if the load estimation is inaccurate, reducing the requirements for load estimation accuracy.

[0136] The charging and discharging control device provided in the embodiments of this application is described below. The charging and discharging control device described below can be referred to in correspondence with the charging and discharging control method described above.

[0137] See Figure 3 , Figure 3 A schematic diagram of a charge / discharge control device based on an energy storage device is provided in this application embodiment. The device specifically includes:

[0138] The first comparison module 11 is used to obtain the excitation value at the current moment and use the excitation value at the current moment as the benchmark excitation value to compare with the excitation values ​​at each comparison moment within a predetermined period.

[0139] Setting module 12 is used to set the target operating state to discharge state and the target charge level to the first charge level when the reference excitation value is at its maximum value; and to set the target operating state to charging state and the target charge level to the second charge level when the reference excitation value is at its minimum value.

[0140] The partitioning module 13 is used to determine the running state of each comparison time based on the reference excitation value and the excitation value of each comparison time when the reference excitation value is the middle value, and to divide each comparison time into a processing block; each processing block includes times with the same running state, and the running states of adjacent processing blocks are different.

[0141] The second comparison module 14 is used to calculate the cumulative power at each comparison time according to the operating status and power change parameters at each comparison time.

[0142] The running status determination module 15 is used to determine the target running status at the current moment based on the target range if the accumulated power of the last target comparison time in the target block is detected and it is the first time within the target range.

[0143] The target power determination module 16 is used to determine the target power at the current moment based on the cumulative maximum power value between the current moment and the target comparison moment, and the overflow power in the target block; the power change parameters include: load predicted discharge amount and chargeable power; the process of determining the overflow power is: finding the comparison moment in the target block that meets the cost requirements, and determining the overflow power according to the power change parameters of the comparison moment that meets the cost requirements.

[0144] The control module 17 is used to control the energy storage device to perform charging / discharging operations within a target time period starting from the current time, based on the target operating status and target power.

[0145] As an optional embodiment, the partitioning module is specifically used for:

[0146] Determine the excitation values ​​for each comparison time after the current time, and compare each comparison time's excitation value with the reference excitation value. If the excitation value at the comparison time is less than the reference excitation value, the operating state at the comparison time is determined to be charging; if the excitation value at the comparison time is greater than the reference excitation value, the operating state at the comparison time is determined to be discharging; if the excitation value at the comparison time is equal to the reference excitation value, the operating state at the comparison time is determined to be stationary. Based on the operating state of each comparison time, each comparison time that is continuously in the charging state is assigned to the same processing block; each comparison time that is continuously in the discharging state is assigned to the same processing block; and each comparison time that is continuously in the stationary state is assigned to the same processing block.

[0147] As an optional embodiment, the second comparison module is specifically used for:

[0148] Determine the initial charge at the current moment, and the time intervals to be calculated after the current moment;

[0149] The cumulative power at each time point to be calculated is calculated by taking into account the operating status at each time point to be calculated and the cumulative power at the previous time point.

[0150] If the time to be calculated is in a charging state, the chargeable capacity is added to the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; if the time to be calculated is in a discharging state, the predicted load discharge amount is subtracted from the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; the accumulated capacity of the current time is the initial capacity.

[0151] As an optional embodiment, the running status determination module is specifically used for:

[0152] The accumulated power at the last comparison moment in each processing block is compared with the charging threshold and the discharging threshold respectively, and the first target comparison moment that is greater than or equal to the charging threshold, or the first target comparison moment that is less than or equal to the discharging threshold is found; where the processing block containing the target comparison moment is the target block;

[0153] If the first target comparison time that is greater than or equal to the charging threshold is found, the target operating state at the current time is determined to be the discharging state; if the first target comparison time that is less than or equal to the discharging threshold is found, the target operating state at the current time is determined to be the charging state.

[0154] As an optional embodiment, if the target operating state is a discharge state, the target charge determination module is specifically used for:

[0155] Determine the minimum cumulative charge value between the current time and the target comparison time; calculate the difference between the baseline excitation value and the charging / discharging cost; determine whether the minimum excitation value at each comparison time in the target block is greater than the difference;

[0156] If yes, the allowable discharge is zero; if no, the allowable discharge is determined based on the minimum accumulated charge, the accumulated charge at the target comparison time, the total charge, and the first determination rule, and the target charge is determined by the initial charge and the allowable discharge at the current time.

[0157] The total charging amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the first moment when the difference value is less than the charging and discharging cost is found, and the total charging amount at each first moment is calculated.

[0158] As an optional embodiment, if the target operating state is a charging state, the target power determination module is specifically used for:

[0159] Determine the highest cumulative charge value between the current time and the target comparison time; calculate the sum of the baseline excitation value and the charging / discharging cost; determine whether the highest excitation value at each comparison time in the target block is less than the sum.

[0160] If yes, the allowed charging amount is zero; if no, the allowed charging amount is determined based on the highest accumulated charging amount, the accumulated charging amount at the target comparison time, the total discharge amount, and the second determination rule, and the target charging amount is determined by the initial charging amount at the current time and the allowed charging amount.

[0161] The total discharge amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the second moment when the difference value is less than the charging and discharging cost is found, and the total discharge amount at each second moment is calculated.

[0162] As an optional embodiment, the first determining rule is:

[0163] ;

[0164] in, To allow the discharge amount, This represents the minimum accumulated battery level. The cumulative battery level at the target comparison point. Total charge amount;

[0165] The second determining rule is:

[0166] ;

[0167] in, To allow charging amount, This represents the highest accumulated battery level. This represents the total discharge amount.

[0168] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present invention, such as... Figure 4 As shown, it includes:

[0169] Memory 20 is used to store computer programs;

[0170] The processor 21 is used to execute a computer program to implement the steps of the charge / discharge control method as described in the above embodiments.

[0171] The electronic devices provided in this embodiment may include, but are not limited to, smartphones, tablets, laptops, or desktop computers.

[0172] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.

[0173] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the charge / discharge control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. In some embodiments, the electronic device may also include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0174] Those skilled in the art will understand that Figure 4 The structures shown do not constitute a limitation on electronic devices and may include more or fewer components than those shown.

[0175] In another exemplary embodiment, a computer storage medium is also provided, wherein the program instructions, when executed by a processor, implement the steps of the data deduplication method described in any of the above method embodiments.

[0176] It is understood that if the charging and discharging control method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk, or optical disk, and other media capable of storing program code.

[0177] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.

[0178] The various embodiments described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” used herein may also mean the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a specific order described or illustrated, unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0179] It should be noted that, in the optional embodiments of this application, the data related to object information, when applied to specific products or technologies, requires the permission or consent of the object. Furthermore, the collection, use, and processing of this data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. In other words, if the embodiments of this application involve data related to an object, it must be obtained with the permission and consent of the object, the permission and consent of relevant departments, and in accordance with the relevant laws, regulations, and standards of the country and region. If the embodiments involve personal information, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject is required. The embodiments also need to be implemented with the permission and consent of the object.

[0180] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A charging and discharging control method based on an energy storage device, characterized in that, The charging and discharging control method includes: Obtain the current excitation value and use it as the benchmark excitation value. Compare the benchmark excitation value with the excitation values ​​at each comparison time within the predetermined period. If the benchmark excitation value is the maximum value, set the target operating state to the discharge state and the target battery level to the first battery level value. If the benchmark excitation value is the minimum value, set the target operating state to the charging state and the target battery level to the second battery level value. If the reference excitation value is the median value, then the operating state at each comparison time is determined based on the reference excitation value and the excitation value at each comparison time, and each comparison time is divided into a processing block; each processing block includes times with the same continuous operating state, and the operating states of adjacent processing blocks are different. Based on the operating status and power variation parameters at each comparison time, the cumulative power at each comparison time is calculated sequentially. If the cumulative power at the last target comparison time within the target block is detected and is within the target range for the first time, the target operating status at the current time is determined based on the target range. Based on the maximum cumulative power value between the current time and the target comparison time, and the overflow power within the target block, the target power at the current time is determined. The power variation parameters include: predicted load discharge and rechargeable power. The process for determining the overflow power is as follows: find the comparison time within the target block that meets the cost requirements, and determine the overflow power based on the power variation parameters of the comparison time that meets the cost requirements. Based on the target operating status and target power, control the energy storage device to perform charging / discharging operations within the target time period starting from the current time.

2. The charging and discharging control method according to claim 1, characterized in that, The process of determining the operating state at each comparison time based on the baseline excitation value and the excitation values ​​at each comparison time, and dividing each comparison time into a processing block, includes: Determine the excitation values ​​at each comparison time after the current time, and compare the excitation values ​​at each comparison time with the baseline excitation value; If the excitation value at the comparison time is less than the reference excitation value, the operating state at the comparison time is determined to be the charging state; if the excitation value at the comparison time is greater than the reference excitation value, the operating state at the comparison time is determined to be the discharging state; if the excitation value at the comparison time is equal to the reference excitation value, the operating state at the comparison time is determined to be the stationary state. Based on the operating status at each comparison moment, comparison moments that are continuously in the charging state are assigned to the same processing block; comparison moments that are continuously in the discharging state are assigned to the same processing block; and comparison moments that are continuously in the stationary state are assigned to the same processing block.

3. The charging and discharging control method according to claim 1, characterized in that, Based on the operating status and power fluctuation parameters at each comparison time, the cumulative power at each comparison time is calculated sequentially, including: Determine the initial charge at the current moment, and the time intervals to be calculated after the current moment; The cumulative power at each time point to be calculated is calculated by taking into account the operating status at each time point to be calculated and the cumulative power at the previous time point. If the time to be calculated is in a charging state, the chargeable capacity is added to the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; if the time to be calculated is in a discharging state, the predicted load discharge amount is subtracted from the accumulated capacity of the previous time to obtain the accumulated capacity of the time to be calculated; the accumulated capacity of the current time is the initial capacity.

4. The charging and discharging control method according to any one of claims 1 to 3, characterized in that, If the accumulated charge of the last target comparison time within the target block is detected, and it is the first time within the target range, then the target's operating status at the current time is determined based on the target range, including: The accumulated power at the last comparison moment in each processing block is compared with the charging threshold and the discharging threshold respectively, and the first target comparison moment that is greater than or equal to the charging threshold, or the first target comparison moment that is less than or equal to the discharging threshold is found; where the processing block containing the target comparison moment is the target block; If the first target comparison time that is greater than or equal to the charging threshold is found, the target operating state at the current time is determined to be the discharging state; if the first target comparison time that is less than or equal to the discharging threshold is found, the target operating state at the current time is determined to be the charging state.

5. The charging and discharging control method according to claim 4, characterized in that, The determination of the target energy level at the current moment based on the maximum cumulative energy level between the current moment and the target comparison moment, and the overflow energy level within the target block, includes: If the target is in a discharging state, then determine the minimum cumulative charge value between the current time and the target comparison time. Calculate the difference between the baseline excitation value and the charging / discharging cost; Determine whether the lowest excitation value at each comparison time in the target block is greater than the difference; If yes, the allowable discharge is zero; if no, the allowable discharge is determined based on the minimum accumulated charge, the accumulated charge at the target comparison time, the total charge, and the first determination rule, and the target charge is determined by the initial charge and the allowable discharge at the current time. The total charging amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the first moment when the difference value is less than the charging and discharging cost is found, and the total charging amount at each first moment is calculated.

6. The charging and discharging control method according to claim 5, characterized in that, The determination of the target energy level at the current moment based on the maximum cumulative energy level between the current moment and the target comparison moment, and the overflow energy level within the target block, includes: If the target is in a charging state, then determine the highest cumulative charge value between the current time and the target comparison time. Calculate the sum of the baseline excitation value and the charging / discharging cost; Determine whether the highest excitation value at each comparison moment in the target block is less than the sum; If yes, the allowed charging amount is zero; if no, the allowed charging amount is determined based on the highest accumulated charging amount, the accumulated charging amount at the target comparison time, the total discharge amount, and the second determination rule, and the target charging amount is determined by the initial charging amount at the current time and the allowed charging amount. The total discharge amount is calculated as follows: the difference between the excitation value and the reference excitation value at each comparison moment in the target block is calculated, the difference value is compared with the charging and discharging cost, the second moment when the difference value is less than the charging and discharging cost is found, and the total discharge amount at each second moment is calculated.

7. The charging and discharging control method according to claim 6, characterized in that, The first determining rule is: ; in, To allow the discharge amount, This represents the minimum accumulated battery level. The cumulative battery level at the target comparison point. Total charge amount; The second determining rule is: ; in, To allow charging amount, This represents the highest accumulated battery level. This represents the total discharge amount.

8. A charging and discharging control device based on an energy storage device, characterized in that, include: The first comparison module is used to obtain the excitation value at the current moment and use the excitation value at the current moment as the benchmark excitation value to compare with the excitation values ​​at each comparison moment within the predetermined period. The setting module is used to set the target operating state to the discharge state and the target charge to the first charge value when the reference excitation value is at its maximum value. When the baseline excitation value is at its minimum, the target operating state is set to the charging state, and the target energy level is the second energy level value. The partitioning module is used to determine the running state at each comparison time based on the reference excitation value and the excitation values ​​at each comparison time when the reference excitation value is in the middle value, and to divide each comparison time into a processing block; each processing block includes times with the same running state continuously, and the running states of adjacent processing blocks are different; The second comparison module is used to calculate the cumulative power at each comparison time according to the operating status and power change parameters at each comparison time. The running status determination module is used to determine the target running status at the current moment based on the target range if the cumulative power of the last target comparison time in the target block is detected and it is the first time that it is within the target range. The target power determination module is used to determine the target power at the current moment based on the maximum cumulative power value between the current moment and the target comparison moment, as well as the overflow power within the target block. The power variation parameters include: predicted load discharge and chargeable power; the process for determining the overflow power is: finding the comparison time within the target block that meets the cost requirements, and determining the overflow power based on the power variation parameters of the comparison time that meets the cost requirements. The control module is used to control the energy storage device to perform charging / discharging operations within a target time period starting from the current time, based on the target operating status and target power.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the charge / discharge control method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the charge-discharge control method as described in any one of claims 1 to 7.