Energy storage system charging and discharging plan generation method, device and equipment and storage medium
By automatically generating charging and discharging plans for energy storage systems and optimizing charging and discharging strategies based on electricity prices and time periods, the problem of uneven voltage differences between batteries in energy storage systems has been solved, improving safety and resource utilization efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HEFEI SUNGROW RENEWABLE ENERGY SCI & TECH CO LTD
- Filing Date
- 2022-12-21
- Publication Date
- 2026-05-15
AI Technical Summary
Existing energy storage systems suffer from uneven voltage differences between batteries during charging and discharging, leading to circulating current effects that affect safety and make it difficult to optimize charging and discharging schedules while conserving resources.
By automatically generating charging and discharging plans for the energy storage system, dividing time periods according to electricity prices, prioritizing high-power charging or discharging during low-price periods, and rationally arranging idle time, the voltage difference between batteries is reduced, and safety is improved.
This achieves the goals of saving resources while reducing the pressure difference in the energy storage system, minimizing the circulation effect, and improving the safety of the charging and discharging process.
Smart Images

Figure CN115986791B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of energy storage system technology, and in particular to a method, apparatus, device, and computer-readable storage medium for generating charge and discharge plans for energy storage systems. Background Technology
[0002] Using peak-valley differential pricing to guide consumption is an effective way to stagger peak hours, reduce overall power supply costs, conserve resources, and use electricity efficiently. Correspondingly, to conserve resources, energy storage systems generally follow the principle of charging during low-price periods and discharging during high-price periods. However, while setting up charging and discharging plans for energy storage systems based on this principle to save resources as much as possible, it is also necessary to consider the safety issues of the energy storage system during charging and discharging processes. Summary of the Invention
[0003] The main objective of this invention is to provide a method, apparatus, device, and computer-readable storage medium for generating charge and discharge plans for energy storage systems. The aim is to provide an automatic generation scheme for charge and discharge plans of energy storage systems, thereby saving resources while maximizing resting time during the charging and discharging process. This resting time reduces the voltage difference in the energy storage system, making the voltage difference between batteries more balanced, reducing the circulating current effect between batteries, and thus improving the safety of the energy storage system during charging and discharging.
[0004] To achieve the above objectives, the present invention provides a method for generating a charge and discharge plan for an energy storage system, the method comprising the following steps:
[0005] Obtain the various electricity price sub-periods within the planned time period, divided according to different electricity prices;
[0006] Each of the aforementioned electricity price sub-periods belongs to the charging type and is continuous in time as a group of charging sub-periods, and each of the aforementioned electricity price sub-periods belongs to the discharging type and is continuous in time as a group of discharging sub-periods, wherein the charging and discharging type of the electricity price sub-periods is determined based on the electricity price;
[0007] The charging power of each price sub-period within the charging period is generated according to the rule that charging is preferentially performed with higher charging power in the price sub-periods with lower electricity prices during the charging period. Similarly, the discharge power of each price sub-period within the discharging period is generated according to the rule that discharging is preferentially performed with higher discharge power in the price sub-periods with higher electricity prices during the discharging period.
[0008] Optionally, the step of grouping consecutive charging sub-periods from each of the aforementioned electricity price sub-periods into a charging sub-period, and consecutive discharging sub-periods from each of the aforementioned electricity price sub-periods into a discharging sub-period, includes:
[0009] Arrange the various electricity price sub-time periods in chronological order to obtain the first sequence;
[0010] Remove each price sub-period after the penultimate discharge type in the first sequence from the first sequence to obtain the second sequence;
[0011] If there is a discharge type price sub-period separated by a charging type price sub-period in the second sequence, then the second sequence is divided from the target price sub-period to divide the second sequence into groups of charging and discharging periods. The target price sub-period is the price sub-period that comes first among the two discharge type price sub-periods separated by a charging type price sub-period.
[0012] If there is no charge-type ...
[0013] The charging-type price sub-periods in the charging and discharging periods are grouped into a charging period, and the discharging-type price sub-periods in the charging and discharging periods are grouped into a discharging period.
[0014] Optionally, after the step of arranging the various electricity price sub-time periods in chronological order to obtain a first sequence, the method further includes:
[0015] Set the price sub-periods after the penultimate discharge type in the first sequence to the preset default power.
[0016] Optionally, the step of generating the charging power for each price sub-period within the charging period according to the rule of preferentially charging with higher charging power for the lower price sub-period within the charging period includes:
[0017] Obtain the upper limit of charging power for each price sub-period within the charging period;
[0018] Determine whether the energy storage system can be fully charged when the lowest electricity price sub-period during the charging period is charged according to the corresponding charging power limit.
[0019] If so, the charging power during the period in the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit is set to the corresponding charging power upper limit, and the charging power during the other periods in the charging period is set to zero.
[0020] If not, the charging power within the lowest electricity price sub-period is set to the corresponding upper limit of charging power. If there is a high electricity price sub-period within the charging period where the electricity price is higher than that of the lowest electricity price sub-period, the remaining charging amount within the high electricity price sub-period is calculated based on the upper limit of charging power for the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system. The charging power within the high electricity price sub-period is then set based on the remaining charging amount and the upper limit of charging power for the high electricity price sub-period.
[0021] Optionally, the step of setting the charging power during the high-price sub-period based on the remaining charging capacity and the upper limit of charging power during the high-price sub-period includes:
[0022] For the previous high-price sub-period before the lowest-price sub-period in the high-price sub-period, the remaining charging amount is divided by the duration of the previous high-price sub-period to obtain the average charging power, and the charging power in the previous high-price sub-period is set as the smaller of the average charging power and the upper limit of the charging power in the previous high-price sub-period.
[0023] Optionally, the step of obtaining the upper limit of charging power for each electricity price sub-period within the charging period includes:
[0024] Obtain the load power of the first target time within the electricity price sub-period of the charging period and the demand of the month in which the first target time is located;
[0025] The feasible charging power is obtained by subtracting the load power of the first target time from the demand of the month in which the first target time is located, and the upper limit of the charging power corresponding to the first target time is set to the smaller of the feasible charging power and the rated power of the energy storage system.
[0026] Optionally, the step of generating the discharge power of each price sub-period within the discharge period according to the rule of preferentially discharging with higher discharge power in the price sub-periods of the discharge period includes:
[0027] Obtain the upper limit of discharge power for each price sub-period within the discharge period;
[0028] Set the discharge power of the highest-priced sub-period with the highest electricity price in the discharge period as the corresponding upper limit of discharge power;
[0029] Determine whether the energy storage system can discharge completely when discharging at the corresponding upper limit of discharge power during the highest electricity price sub-period.
[0030] If so, then the discharge power for the remaining periods in the discharge period is set to zero;
[0031] If not, then there is a low-price sub-period during the discharge period where the electricity price is lower than that of the highest-price sub-period. Based on the upper limit of the discharge power of the highest-price sub-period, the duration of the highest-price sub-period, and the rated maximum discharge capacity of the energy storage system, the remaining discharge capacity in the low-price sub-period is calculated. The discharge power in the low-price sub-period is set based on the remaining discharge capacity and the upper limit of the discharge power of the low-price sub-period.
[0032] Optionally, the step of setting the discharge power within the low-price sub-period based on the remaining discharge capacity and the upper limit of the discharge power for the low-price sub-period includes:
[0033] For the previous low-price sub-period before the highest-price sub-period in the low-price sub-period, the remaining discharge amount is divided by the duration of the previous low-price sub-period to obtain the average discharge power, and the discharge power in the previous low-price sub-period is set as the smaller of the average discharge power and the upper limit of the discharge power in the previous low-price sub-period.
[0034] Optionally, the step of obtaining the upper limit of discharge power for each price sub-period within the discharge period includes:
[0035] Obtain the load power at the second target time within the electricity price sub-period of the discharge period;
[0036] The upper limit of the discharge power corresponding to the second target time is set to the smaller of the load power at the second target time and the rated power of the energy storage system.
[0037] To achieve the above objectives, the present invention also provides an energy storage system charge / discharge plan generation device, the energy storage system charge / discharge plan generation device comprising:
[0038] The acquisition module is used to acquire the various electricity price sub-periods within the planned time period, divided according to different electricity prices.
[0039] The grouping module is used to group the electricity price sub-time periods that are of the charging type and are consecutive in time into a group of charging time periods, and to group the electricity price sub-time periods that are of the discharging type and are consecutive in time into a group of discharging time periods, wherein the charging and discharging type of the electricity price sub-time periods is determined based on the electricity price.
[0040] The generation module is used to generate the charging power of each price sub-period in the charging period according to the rule that charging is preferentially performed with higher charging power in the price sub-periods with lower electricity prices in the charging period, and to generate the discharge power of each price sub-period in the discharging period according to the rule that discharging is preferentially performed with higher discharge power in the price sub-periods with higher electricity prices in the discharging period.
[0041] To achieve the above objectives, the present invention also provides an energy storage system charge and discharge plan generation device, the energy storage system charge and discharge plan generation device comprising: a memory, a processor, and an energy storage system charge and discharge plan generation program stored in the memory and executable on the processor, wherein when the energy storage system charge and discharge plan generation program is executed by the processor, the steps of the energy storage system charge and discharge plan generation method described above are implemented.
[0042] Furthermore, to achieve the above objectives, the present invention also proposes a computer-readable storage medium storing an energy storage system charge / discharge plan generation program, wherein when the energy storage system charge / discharge plan generation program is executed by a processor, it implements the steps of the energy storage system charge / discharge plan generation method as described above.
[0043] In this invention, the charging and discharging types of a planned time period are divided into sub-time periods based on different electricity prices. These sub-time periods are then grouped into charging periods (those that are charging and are temporally consecutive) and discharging periods (those that are discharging and are temporally consecutive), with the charging / discharging type determined by the electricity price. The charging power for each sub-time period is generated according to the rule of prioritizing higher charging power in the lower-priced sub-time periods during the charging period, and the discharging power for each sub-time period is generated according to the rule of prioritizing higher discharging power in the higher-priced sub-time periods during the discharging period. This invention provides an automatic generation scheme for charging and discharging plans of an energy storage system. It achieves resource conservation while maximizing rest time during the charging and discharging process of the energy storage system. This rest time reduces the voltage difference between batteries, resulting in a more balanced voltage difference and reducing the circulating current effect between batteries, thereby improving the safety of the energy storage system during charging and discharging. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of the hardware operating environment involved in the embodiments of the present invention;
[0045] Figure 2 This is a flowchart illustrating the first embodiment of the energy storage system charge / discharge plan generation method of the present invention;
[0046] Figure 3 This is a schematic diagram of the functional modules of a preferred embodiment of the energy storage system charge / discharge plan generation device of the present invention.
[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0049] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.
[0050] It should be noted that the energy storage system charge and discharge plan generation device in this embodiment of the invention can be a smartphone, personal computer, server, or other device, and no specific limitation is made here.
[0051] like Figure 1 As shown, the energy storage system charge / discharge plan generation device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to establish communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0052] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the device for generating the energy storage system charge and discharge schedule. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0053] like Figure 1 As shown, the memory 1005, serving as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an energy storage system charge / discharge plan generation program. The operating system is a program that manages and controls the hardware and software resources of the device, supporting the operation of the energy storage system charge / discharge plan generation program and other software or programs. Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the energy storage system charge and discharge plan generation program stored in the memory 1005, and execute the various steps of the energy storage system charge and discharge plan generation method in the following embodiments.
[0054] Based on the above structure, various embodiments of the energy storage system charge and discharge plan generation method are proposed.
[0055] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the energy storage system charge / discharge plan generation method of the present invention.
[0056] This invention provides an embodiment of a method for generating a charge / discharge plan for an energy storage system. It should be noted that although the flowchart shows a logical order, in some cases, the steps shown or described may be executed in a different order. In this embodiment, the executing entity of the energy storage system charge / discharge plan generation method can be a personal computer, smartphone, server, or other device; no limitation is made in this embodiment. For ease of description, the execution entity is omitted from the following description of each embodiment. In this embodiment, the energy storage system charge / discharge plan generation method includes:
[0057] Step S10: Obtain the various electricity price sub-periods within the planned time period, divided according to different electricity prices;
[0058] The planned time period refers to the period during which a planned charging and discharging strategy needs to be implemented. The planned time period can be a day, a month, or a year, and this embodiment does not impose any restrictions. In this embodiment, the time periods within the planned time period divided according to different electricity prices are called electricity price sub-time periods for distinction. That is, an electricity price sub-time period is a continuous period with a consistent electricity price, although the electricity prices in different sub-time periods may differ. In this embodiment, the method of obtaining each electricity price sub-time period within the planned time period is not limited. For example, it can be obtained directly from other devices or uploaded by the user. Alternatively, electricity price information can be obtained first, and then the various electricity price sub-time periods within the planned time period can be calculated based on that information. The electricity price information can be the local electricity price information for the energy storage system, such as the hourly electricity price each day. It should be noted that the electricity price can be expressed as a price or as a price tier that reflects price levels. For example, some regions have four electricity price tiers: peak, flat, and valley, with prices decreasing from high to low.
[0059] For example, suppose the planned period is a certain day, which is divided into 8 electricity price sub-periods, arranged in the following order: 0:00-6:00 (valley), 7:00-8:00 (flat), 9:00-11:00 (peak), 12:00-16:00 (flat), 17:00-18:00 (peak), 19:00-21:00 (peak), 22:00 (flat), 23:00 (valley). This set of exemplary data will be referred to as "Example 1" below.
[0060] Step S20: Take the electricity price sub-time periods that are of the charging type and are continuous in time as a group of charging time periods, and take the electricity price sub-time periods that are of the discharging type and are continuous in time as a group of discharging time periods, wherein the charging and discharging type of the electricity price sub-time periods is determined based on the electricity price.
[0061] Different electricity prices can be pre-classified as either charging or discharging types. Generally, high electricity prices are classified as discharging types, and low electricity prices are classified as charging types. For example, in one embodiment, for the four levels of electricity prices—peak, flat, and valley—peak and valley prices can be classified as discharging types, and flat and valley prices as charging types.
[0062] After obtaining the various electricity price sub-periods, the electricity price sub-periods that belong to the charging type and are consecutive in time can be grouped into a charging period. For example, in Example 1 above, the 1st and 2nd electricity price sub-periods of the day can be divided into a charging period, the 4th electricity price sub-period can be divided into a charging period (understandably, there is only one electricity price sub-period in this charging period), and the 7th and 8th electricity price sub-periods can be divided into a charging period.
[0063] Electricity price sub-periods that are of the discharge type and are consecutive in time can be grouped into a discharge period. For example, in the example above, the third electricity price sub-period of the day can be divided into a discharge period (understandably, there is only one electricity price sub-period in this discharge period), and the fifth and sixth electricity price sub-periods can be divided into a discharge period.
[0064] It should be noted that, within the planned time period, not all consecutive charging sub-periods are considered as a charging period, nor are all consecutive discharging sub-periods considered as a discharging period. These can be configured as needed in specific implementations. For example, in one feasible implementation, considering that the energy storage system's charging and discharging mode is a one-charge-one-discharge or two-charge-two-discharge pattern (i.e., one charge followed by one discharge), the charging sub-periods at the end of the planned time period can be left undivided as charging periods. Instead, the charging and discharging power can be set to a default value, such as 0, meaning neither charging nor discharging occurs.
[0065] Step S30: According to the rule that charging is preferentially performed with higher charging power in the lower price sub-period of the charging period, the charging power of each price sub-period in the charging period is generated; according to the rule that discharging is preferentially performed with higher discharge power in the higher price sub-period of the discharging period, the discharge power of each price sub-period in the discharging period is generated.
[0066] After obtaining the charging time periods, the charging power can be set for each group of charging time periods. Specifically, the charging power for each price sub-period within the charging time period can be generated according to the rule of prioritizing charging with higher charging power during the lower price sub-periods within the charging time period. It is understood that in this embodiment, there are no restrictions on the specific algorithm for generating the charging power for each price sub-period within the charging time period; any algorithm that satisfies this rule can be adopted. During a charging period, there may be sub-periods with high or low electricity prices. Following this rule, the charging power can be set higher during sub-periods with low prices and lower during sub-periods with high prices. For example, if the price during off-peak hours is lower than during normal hours, the charging power during off-peak hours can be set higher than during normal hours. This allows the system to be fully charged during low-price sub-periods, while the energy storage system can remain idle during high-price sub-periods. This idle time reduces the voltage difference within the energy storage system, resulting in a more balanced voltage difference between batteries and reducing circulating current effects, thus improving the safety of the energy storage system during charging and discharging. Furthermore, by charging more during low-price sub-periods and less during high-price sub-periods, the system also achieves resource conservation in conjunction with the differentiated pricing strategy.
[0067] After obtaining the discharge periods, the discharge power can be set for each discharge period. Specifically, the discharge power of each price sub-period within the discharge period can be generated according to the rule that discharges with higher discharge power are prioritized in the price sub-periods with higher electricity prices within the discharge period. It is understood that in this embodiment, there are no restrictions on the specific algorithm for generating the discharge power of each price sub-period within the discharge period; any algorithm that satisfies this rule can be adopted. During a discharge period, there may be sub-periods with high or low electricity prices. Following this rule, the discharge power can be set higher for sub-periods with high electricity prices and lower for sub-periods with low electricity prices. For example, if the electricity price during a peak period is higher than the peak period price, the discharge power during the peak period can be set higher than the peak period discharge power. This allows the system to be fully charged during high-price sub-periods, while the energy storage system can remain idle during low-price sub-periods. This idle time reduces the voltage difference in the energy storage system, making the voltage difference between batteries more balanced, reducing the circulating current effect between batteries, and thus improving the safety of the energy storage system during charging and discharging. Furthermore, by discharging more during high-price sub-periods and less during low-price sub-periods, the system also achieves the effect of saving resources in conjunction with the differential pricing strategy.
[0068] In this embodiment, the system obtains various electricity price sub-periods within a planned time period, divided according to different electricity prices. Each electricity price sub-period that is charging and temporally consecutive is grouped into a charging period, and each electricity price sub-period that is discharging and temporally consecutive is grouped into a discharging period. The charging / discharging type of each electricity price sub-period is determined based on the electricity price. The charging power of each electricity price sub-period within the charging period is generated according to the rule of prioritizing higher charging power in electricity price sub-periods with lower prices during the charging period. Similarly, the discharging power of each electricity price sub-period within the discharging period is generated according to the rule of prioritizing higher discharging power in electricity price sub-periods with higher prices during the discharging period. This invention provides an automatic generation scheme for charging and discharging plans of an energy storage system. While saving resources, it also allows for some rest time during the charging and discharging process of the energy storage system. This rest time reduces the voltage difference in the energy storage system, making the voltage difference between batteries more balanced, reducing the circulating current effect between batteries, and thus improving the safety of the energy storage system during charging and discharging.
[0069] Furthermore, based on the first embodiment described above, a second embodiment of the energy storage system charge / discharge plan generation method of the present invention is proposed. In this embodiment, step S20 includes:
[0070] Step S201: Arrange the various electricity price sub-time periods in chronological order to obtain the first sequence;
[0071] After obtaining the various electricity price sub-periods within the planned time period, these sub-periods can be arranged in chronological order. The sequence formed by arranging these sub-periods in chronological order is called the first sequence for distinction. Example 1 above exemplarily shows eight electricity price sub-periods arranged in chronological order.
[0072] In one feasible implementation, different electricity price sub-periods can be represented by different labels. For example, the four price levels of valley, flat, peak, and high-peak can be represented by 0, 1, 2, and 3, respectively. Then, the first sequence can be represented by two arrays: one is an array composed of the labels of each electricity price sub-period arranged in chronological order (hereinafter referred to as the state array), and the other is an array composed of the duration of each electricity price sub-period arranged in chronological order (hereinafter referred to as the time array). For example, Example 1 above can be represented as:
[0073] State array: [0, 1, 2, 1, 3, 2, 1, 0]
[0074] Time array: [7, 2, 3, 5, 2, 3, 1, 1]
[0075] Suppose the planned period is a certain day, which is divided into 7 electricity price sub-periods, arranged in the following order: 0:00-7:00 (valley), 8:00-10:00 (flat), 11:00 (peak), 12:00-15:00 (peak), 16:00 (peak), 17:00 (peak), 18:00-23:00 (flat). This set of exemplary data will be referred to as "Example 2" below.
[0076] Example 2 can be represented as:
[0077] State array: [0, 1, 3, 2, 3, 2, 1]
[0078] Time array: [8, 3, 1, 4, 1, 1, 6]
[0079] Step S202: Remove each price sub-time period after the last discharge type in the first sequence from the first sequence to obtain the second sequence;
[0080] The sequence obtained by removing all price sub-periods after the penultimate discharge type in the first sequence is called the second sequence. In one feasible implementation, the label corresponding to the price of the penultimate discharge type can be found from the state array of the first sequence, for example, 2 or 3. The 0s or 1s following the found 2 or 3 are then removed to obtain the state array of the second sequence. For example, in Example 1 above, the state array of the second sequence is: [0, 1, 2, 1, 3, 2]. For example, in Example 2 above, the state array of the second sequence is: [0, 1, 3, 2, 3, 2].
[0081] Step S203: If there is a discharge type price sub-period separated by a charging type price sub-period in the second sequence, then the second sequence is divided from the target price sub-period to divide the second sequence into groups of charging and discharging periods. The target price sub-period is the price sub-period that comes first among the two discharge type price sub-periods separated by a charging type price sub-period.
[0082] The second sequence may contain discharge type price sub-segments separated by charging type price sub-segments. The first price sub-segment of the discharge type separated by charging type price sub-segments can be designated as the target price sub-segment for distinction. The second sequence is then divided after the target price sub-segment. If there is one target price sub-segment, the second sequence is divided once, resulting in two sets of charging / discharging periods. If there are multiple target price sub-segments, the second sequence is divided multiple times, resulting in two or more sets of charging / discharging periods. In one feasible implementation, the state array of the second sequence can be searched for discharge type tags separated by charging type tags. For example, it can be searched for tags 2 and / or 3 separated by 0 or 1. For example, in Example 1 above, two sets of charging / discharging periods will be obtained, with state arrays of [0, 1, 2] and [1, 3, 2] respectively. For example, in Example 2 above, there are no discharge type price sub-segments separated by charging type price sub-segments.
[0083] Step S204: If there is no charge-type ...
[0084] If there is no charge-type ...
[0085] Step S205: Take the charging-type price sub-periods in the charging and discharging period as a group of charging periods, and take the discharging-type price sub-periods in the charging and discharging period as a group of discharging periods.
[0086] After obtaining the charging and discharging time periods, for each charging and discharging time period, the price sub-periods belonging to the charging type within that charging and discharging time period can be considered as a charging time period. Then, for that charging time period, the charging power of each price sub-period within that charging time period is generated according to the rule of prioritizing charging with higher charging power in the price sub-periods of lower electricity prices within the charging time period. For each discharging time period, the price sub-periods belonging to the discharging type within that discharging time period are considered as a discharging time period. Then, for that discharging time period, the discharging power of each price sub-period within that discharging time period is generated according to the rule of prioritizing discharging with higher discharging power in the price sub-periods of higher electricity prices within the discharging time period.
[0087] Furthermore, in one feasible embodiment, after step S201, the method further includes:
[0088] Step S206: Set each price sub-period after the penultimate discharge type in the first sequence to a preset default power.
[0089] For each price sub-period after the penultimate discharge type in the first sequence, which belongs to the price sub-periods that cannot constitute a complete charge-discharge period, their charge-discharge power can be set to a preset default power. The preset default power can be set in advance as needed, for example, it can be set to 0, or it can be set to a certain charge-discharge power value.
[0090] Furthermore, based on the first and / or second embodiments described above, a third embodiment of the energy storage system charge / discharge plan generation method of the present invention is proposed. In this embodiment, the step S30, which generates the charging power of each price sub-period within the charging period according to the rule of preferentially charging with higher charging power in the lower price sub-period within the charging period, includes:
[0091] Step S301: Obtain the upper limit of charging power for each price sub-period in the charging period;
[0092] In this embodiment, a specific implementation method is proposed to generate the charging power of each price sub-period within the charging period according to the rule of prioritizing charging with higher charging power in the price sub-periods with lower electricity prices during the charging period.
[0093] The charging power upper limit refers to the upper limit of the charging power of the energy storage system. The charging power upper limit may be the same or different for each electricity price sub-period, and the charging power upper limit at each moment within the electricity price sub-period may be the same or different, depending on the specific application scenario. There are many ways to obtain the charging power upper limit, and this embodiment does not impose any restrictions. For example, in a feasible implementation, it can be obtained directly from other devices or uploaded by the user. Alternatively, the load power and demand for each electricity price sub-period can be obtained first, and the charging power upper limit for each electricity price sub-period can be calculated based on the load power and demand.
[0094] Step S302: Determine whether the energy storage system can be fully charged when the lowest electricity price sub-period during the charging period is charged according to the corresponding charging power limit.
[0095] The period with the lowest electricity price during the charging period is designated as the lowest-price sub-period for distinction. First, it can be determined whether the energy storage system can be fully charged during this lowest-price sub-period, using the maximum charging power limit for that sub-period. In one feasible implementation, the charging amount during this lowest-price sub-period, calculated based on its duration and maximum charging power limit, is compared to the energy storage system's rated maximum charging capacity. If this amount is greater than or equal to the rated maximum charging capacity, the system is determined to be fully charged; otherwise, it is determined to be insufficient. Alternatively, in another feasible implementation, the duration of the lowest-price sub-period can be compared to the energy storage system's maximum charging duration. If the duration is less than the maximum charging duration, the system cannot be fully charged; if it is greater than the maximum charging duration, the charging amount during this lowest-price sub-period, calculated using the maximum charging power limit, is compared to the energy storage system's rated maximum charging capacity to determine if the system can be fully charged. The relationship between the maximum charging time and the maximum charging capacity of an energy storage system is that the rated power of the energy storage system multiplied by the maximum charging time equals the maximum charging capacity.
[0096] Step S303: If yes, then set the charging power of the period in the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit to the corresponding charging power upper limit, and set the charging power of the other periods in the charging period to zero.
[0097] If it is determined that the energy storage system can be fully charged by charging at the upper limit of the charging power for the lowest electricity price sub-period, then the charging power during the period within the lowest electricity price sub-period that can fully charge the energy storage system at the corresponding upper limit of the charging power can be set to the corresponding upper limit of the charging power, while the charging power during the remaining periods within the charging period can be set to zero. It needs to be explained that setting the charging power of the period within the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit means: 1. When the charging amount within the lowest electricity price sub-period according to the corresponding charging power upper limit is greater than the maximum charging capacity of the energy storage system, it can be understood that only a portion of the lowest electricity price sub-period needs to be charged at the charging power upper limit to fully charge it. In this case, the charging power of that portion of the sub-period can be set to the corresponding charging power upper limit, while the charging power of the remaining periods within the lowest electricity price sub-period and the remaining periods within the charging period excluding the lowest electricity price sub-period can be set to 0, in order to maximize the idle time of the energy storage system during the charging phase; 2. When the charging amount within the lowest electricity price sub-period according to the corresponding charging power upper limit is equal to the maximum charging capacity of the energy storage system, the charging power of the entire lowest electricity price sub-period is set to the corresponding charging power upper limit, while the charging power of the remaining periods within the charging period excluding the lowest electricity price sub-period can be set to 0, in order to maximize the idle time of the energy storage system during the charging phase.
[0098] Step S304: If not, then set the charging power within the lowest electricity price sub-period to the corresponding upper limit of charging power. If there is a high electricity price sub-period in the charging period where the electricity price is higher than that of the lowest electricity price sub-period, calculate the remaining charging amount within the high electricity price sub-period based on the upper limit of charging power of the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system. Set the charging power within the high electricity price sub-period based on the remaining charging amount and the upper limit of charging power of the high electricity price sub-period.
[0099] If it is determined that charging the energy storage system at the maximum charging power during the lowest electricity price sub-period cannot fully charge it, it means that while charging at the maximum charging power during the lowest electricity price sub-period, charging is also required during other electricity price sub-periods to fully charge the energy storage system. In this case, the charging power during the lowest electricity price sub-period can be set to the corresponding maximum charging power to maximize charging during the lowest electricity price sub-period and minimize charging during other electricity price sub-periods, thereby gaining more idle time. There may be only one electricity price sub-period or multiple electricity price sub-periods during the charging period. If there are multiple electricity price sub-periods, the electricity price sub-periods with prices higher than the lowest electricity price sub-period are called high-price sub-periods for distinction.
[0100] Based on the upper limit of charging power in the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system, the remaining charging capacity in the high electricity price sub-period can be calculated. That is, the charging capacity of the lowest electricity price sub-period can be calculated first based on the upper limit of charging power and the duration of the lowest electricity price sub-period, and the remaining charging capacity in the high electricity price sub-period can be obtained by subtracting the charging capacity of the lowest electricity price sub-period from the rated maximum charging capacity of the energy storage system.
[0101] The charging power within a high-price sub-period can be calculated based on the remaining charging capacity and the upper limit of charging power for that sub-period. There are many specific calculation methods, which are not limited in this embodiment. For example, in one feasible implementation, if there are sub-periods with different price levels within the high-price sub-period, the sub-period with the lowest price can be found and used as the new lowest-price sub-period, returning to step S302 for execution. As another feasible implementation, the charging power within a high-price sub-period can be set to the smaller of the upper limit of charging power for that sub-period and the remaining charging capacity. In this way, the charging process within the charging period is continuous, maximizing the continuity of the energy storage system's resting time during the charging phase. This further enhances the effect of reducing the voltage difference of the energy storage system through resting time, thereby further improving the safety of the energy storage system during charging and discharging.
[0102] Further, in a feasible embodiment, the step S304 of setting the charging power during the high-price sub-period based on the remaining charging capacity and the upper limit of charging power during the high-price sub-period includes:
[0103] Step S3041: For the previous high-price sub-period before the lowest-price sub-period in the high-price sub-period, divide the remaining charging amount by the duration of the previous high-price sub-period to obtain the average charging power, and set the charging power in the previous high-price sub-period to the smaller of the average charging power and the upper limit of the charging power in the previous high-price sub-period.
[0104] High-price sub-periods may occur either before or after the lowest-price sub-periods. High-price sub-periods preceding the lowest-price sub-period are referred to as "early high-price sub-periods," and those following are referred to as "later high-price sub-periods." For "early high-price sub-periods," the remaining charging capacity can be divided by the duration of that sub-period; the result is called the average charging power for distinction. The charging power within the "early high-price sub-period" can be set as the smaller of the average charging power and the upper limit of the charging power for that sub-period. It is understandable that if the average charging power is less than the upper limit of the charging power during the first high-price sub-period, then when the charging power during the first high-price sub-period is set to the average charging power, the energy storage system can be fully charged during the first high-price sub-period and the lowest-price sub-period. The energy storage system will not be charged during the subsequent high-price sub-period, that is, it enters a resting time. This resting time can reduce the voltage difference of the energy storage system, making the voltage difference between batteries more balanced, reducing the circulating current effect between batteries, and thus improving the safety of the energy storage system during charging and discharging.
[0105] The charging power during the later high-price sub-period can be set as needed. For example, it can be set to the upper limit of the charging power during that sub-period, or, if it is determined that the energy storage system can be fully charged during the earlier high-price and lowest-price sub-periods, the charging power during the later high-price sub-period can be set to 0. It should be noted that if the energy storage system is already fully charged when entering the later high-price sub-period, the energy storage system will enter a static state even if the charging power during the later high-price sub-period is not 0.
[0106] Further, in one feasible embodiment, step S301 includes:
[0107] Step S3011: Obtain the load power of the first target time within the electricity price sub-period in the charging period and the demand of the month in which the first target time is located;
[0108] Any time (moment or period) within each electricity price sub-period of the charging period is referred to as the first target time for distinction. The load power and demand for the month in which the first target time is located can be obtained. The load power of the first target time refers to the projected load power during the first target time, which can be set according to the company's production plan. There are many ways to obtain load power and demand, and this embodiment is not limited to any particular method; for example, it can be obtained directly from other devices or uploaded by the user.
[0109] Step S3012: Subtract the load power of the first target time from the demand of the month in which the first target time is located to obtain the feasible charging power, and set the upper limit of the charging power corresponding to the first target time to the smaller of the feasible charging power and the rated power of the energy storage system.
[0110] The demand for the month containing the first target time can be subtracted from the load power for that first target time. The result is called the feasible charging power for differentiation. The upper limit of the charging power corresponding to the first target time can be set as the smaller of the feasible charging power and the rated power of the energy storage system. That is, assuming the load power for the first target time is denoted as load, the demand for the month containing the first target time is denoted as demand, and the rated power of the energy storage system is denoted as Power, then the upper limit of the charging power for the first target time, planPower, is min(demand-load,Power).
[0111] Furthermore, based on the first, second, and / or third embodiments described above, a fourth embodiment of the energy storage system charge / discharge plan generation method of the present invention is proposed. In this embodiment, the step S30, which generates the discharge power of each price sub-period within the discharge period according to the rule of preferentially discharging with higher discharge power in the price sub-periods of the discharge period, includes:
[0112] Step S305: Obtain the upper limit of discharge power for each valence sub-period in the discharge period;
[0113] In this embodiment, a specific implementation method is proposed to generate the discharge power of each price sub-period within the discharge period according to the rule of prioritizing discharge with higher discharge power in the price sub-periods with higher electricity prices during the discharge period.
[0114] The upper limit of discharge power refers to the upper limit of the discharge power of the energy storage system. The upper limit of discharge power for each electricity price sub-period may be the same or different, and the upper limit of discharge power at each moment within an electricity price sub-period may be the same or different, depending on the specific application scenario. There are many ways to obtain the upper limit of discharge power, and this embodiment does not impose any restrictions. For example, in a feasible implementation, it can be obtained directly from other devices or uploaded by the user. Alternatively, the load power of each electricity price sub-period can be obtained first, and the upper limit of discharge power for each electricity price sub-period can be determined based on the load power.
[0115] Step S306: Set the discharge power of the highest-priced sub-period with the highest electricity price in the discharge period to the corresponding upper limit of discharge power;
[0116] The period with the highest electricity price during the discharge period is designated as the highest-price period for distinction. The discharge power within the highest-price period can be directly set as the corresponding upper limit of discharge power. In other words, discharge should be performed as quickly as possible during the period with the highest electricity price to maximize the resting time of the energy storage system during the discharge period.
[0117] Step S307: Determine whether the energy storage system can discharge completely when discharging at the corresponding upper limit of discharge power during the highest electricity price sub-period.
[0118] It can be determined whether the energy storage system can completely discharge when discharging at the upper limit of the discharge power during the highest electricity price sub-period. In one feasible embodiment, the discharge amount when discharging at the corresponding upper limit of the discharge power during the highest electricity price sub-period can be calculated based on the duration of the highest electricity price sub-period and the upper limit of the discharge power during the highest electricity price sub-period. This discharge amount is compared with the rated maximum discharge capacity of the energy storage system. If it is greater than or equal to the rated maximum discharge capacity, it is determined that the system can completely discharge; if it is less than the rated maximum discharge capacity, it is determined that the system cannot completely discharge. Alternatively, in one feasible embodiment, the duration of the highest electricity price sub-period can be compared with the maximum discharge duration of the energy storage system. If it is less than the maximum discharge duration, it indicates that the system cannot completely discharge; if it is greater than the maximum discharge duration, the discharge amount when discharging at the corresponding upper limit of the discharge power during the highest electricity price sub-period can be further calculated and compared with the rated maximum discharge capacity of the energy storage system to determine whether the system can completely discharge. The relationship between the maximum discharge duration and the maximum discharge amount of the energy storage system is that the rated power of the energy storage system multiplied by the maximum discharge duration equals the maximum discharge amount.
[0119] Step S308: If yes, then set the discharge power for the remaining periods in the discharge period to zero;
[0120] If it is determined that discharging at the maximum discharge power during the highest electricity price sub-period will allow the energy storage system to fully discharge, then the discharge power for the remaining sub-periods can be set to zero. This means that if discharging at the maximum power during the highest electricity price sub-period allows the energy storage system to fully discharge, then setting the discharge power to zero during the remaining sub-periods allows the energy storage system to remain in a static state. This static time reduces the voltage difference within the energy storage system, resulting in a more balanced voltage difference between batteries, reducing circulating current effects between batteries, and thus improving the safety of the energy storage system during charging and discharging.
[0121] Step S309: If not, then during the discharge period there is a low-price sub-period with a price lower than the highest-price sub-period. Based on the upper limit of the discharge power of the highest-price sub-period, the duration of the highest-price sub-period, and the rated maximum discharge capacity of the energy storage system, the remaining discharge capacity in the low-price sub-period is calculated. The discharge power in the low-price sub-period is set based on the remaining discharge capacity and the upper limit of the discharge power of the low-price sub-period.
[0122] If it is determined that discharging at the maximum discharge power during the highest-priced sub-period is insufficient to fully discharge the energy storage system, it indicates that while discharging at the maximum discharge power during the highest-priced sub-period, discharging is also necessary during other sub-periods to fully discharge the system. In this case, the discharge power during the highest-priced sub-period can be set to the corresponding maximum discharge power to maximize discharge during the highest-priced sub-period and minimize discharge during other sub-periods, thereby gaining more idle time. Discharge periods may include sub-periods with only one electricity price or sub-periods with multiple electricity prices. If there are sub-periods with multiple electricity prices, those with prices lower than the highest-priced sub-period are designated as low-priced sub-periods for distinction.
[0123] Based on the upper limit of discharge power in the highest-priced sub-period, the duration of the highest-priced sub-period, and the rated maximum discharge capacity of the energy storage system, the remaining discharge capacity in the low-priced sub-period can be calculated. That is, the discharge capacity of the highest-priced sub-period can be calculated first based on the upper limit of discharge power and the duration of the highest-priced sub-period, and the remaining discharge capacity in the low-priced sub-period can be obtained by subtracting the discharge capacity of the highest-priced sub-period from the rated maximum discharge capacity of the energy storage system.
[0124] The discharge power within a low-price sub-period can be calculated based on the remaining discharge capacity and the upper limit of discharge power for that sub-period. There are many specific calculation methods, which are not limited in this embodiment. For example, in one feasible implementation, if there are sub-periods with different price levels within the low-price sub-period, the sub-period with the highest price can be found and used as the new highest-price sub-period, returning to step S306 for execution. As another feasible implementation, the remaining discharge capacity of the low-price sub-period can be divided by the duration of the preceding low-price sub-period, and the result can be set as the discharge power of that preceding low-price sub-period. The discharge power of the subsequent low-price sub-periods can then be set as the corresponding upper limit of discharge power. In this way, the discharge process within the discharge period is continuous, maximizing the continuity of the energy storage system's resting time during the discharge phase. This further enhances the effect of reducing the voltage difference of the energy storage system through resting time, thereby further improving the safety of the energy storage system during charging and discharging.
[0125] Further, in a feasible embodiment, the step S309 of setting the discharge power within the low-price sub-period based on the remaining discharge amount and the upper limit of the discharge power for the low-price sub-period includes:
[0126] Step S3091: For the previous low-price sub-period before the highest-price sub-period in the low-price sub-period, the remaining discharge amount is divided by the duration of the previous low-price sub-period to obtain the average discharge power, and the discharge power in the previous low-price sub-period is set as the smaller of the average discharge power and the upper limit of the discharge power in the previous low-price sub-period.
[0127] Low-price sub-periods may occur either before or after the highest-price sub-periods. Low-price sub-periods preceding the highest-price sub-period are referred to as "early low-price sub-periods," and those following the highest-price sub-periods as "later low-price sub-periods." For "early low-price sub-periods," the remaining discharge capacity can be divided by the duration of that sub-period; the calculated result is called the average discharge power for distinction. The discharge power within the "early low-price sub-period" can be set as the smaller of the average discharge power and the upper limit of the discharge power for that sub-period. It is understandable that if the average discharge power is less than the upper limit of the discharge power in the previous low-price sub-period, then when the discharge power in the previous low-price sub-period is set to the average discharge power, the energy storage system can be fully discharged in the previous low-price sub-period and the highest-price sub-period. The energy storage system will not discharge in the subsequent low-price sub-period, that is, it enters a resting time. This resting time can reduce the voltage difference of the energy storage system, make the voltage difference between batteries more balanced, reduce the circulating current effect between batteries, and thus improve the safety of the energy storage system during charging and discharging.
[0128] The discharge power during the later low-price sub-period can be set as needed. For example, it can be set to the upper limit of the discharge power during that sub-period, or, if it is determined that the energy storage system can be fully discharged during the earlier low-price sub-period and the highest-price sub-period, the discharge power during the later low-price sub-period can be set to 0. It should be noted that if the energy storage system has been fully discharged when entering the later low-price sub-period, the energy storage system will enter a static state even if the discharge power during the later low-price sub-period is not 0.
[0129] Further, in one feasible embodiment, step S305 includes:
[0130] Step S3051: Obtain the load power of the second target time within the electricity price sub-period in the discharge period;
[0131] Any time (moment or period) within each price sub-period of the discharge period is referred to as the second target time for distinction. The load power at the second target time can be obtained. The load power at the second target time refers to the projected load power at the second target time, which can be set according to the company's production plan. There are many ways to obtain load power, and this embodiment is not limited; for example, it can be obtained directly from other devices or uploaded by the user.
[0132] Step S3052: Set the upper limit of the discharge power corresponding to the second target time to the smaller of the load power of the second target time and the rated power of the energy storage system.
[0133] That is, assuming the load power at the second target time is denoted as load and the rated power of the energy storage system is denoted as Power, then the upper limit of the discharge power at the second target time is planPower = min(load, Power).
[0134] In one feasible implementation, after obtaining each group of charge / discharge time periods, each group of charge / discharge time periods can be processed sequentially. The processing flow for a group of charge / discharge time periods is as follows:
[0135] Initialize the cumulative charge amount Epower = 0, and the cumulative discharge amount EpowerD = 0.
[0136] 1. Charging power generation:
[0137] 1.1. Search for the 0 tag in the state array corresponding to the charging and discharging period. If there is a 0 tag, get the upper limit of the charging power planPower for each hour of the electricity price sub-period corresponding to the 0 tag. Accumulate the charging amount Epower = Epower + planPower for each hour. When Epower > Erated, it means that it is fully charged. Set the charging power of the other periods in the electricity price sub-period corresponding to the 0 tag and the electricity price sub-period corresponding to the 1 tag to 0.
[0138] 1.2 If the state array corresponding to the charging and discharging period does not find the 0 tag, then find the 1 tag and process the electricity price sub-period corresponding to the 1 tag according to step 1.1 above;
[0139] 1.3 If a 0 tag is found in the state array corresponding to the charging and discharging period, and the energy storage system cannot be fully charged in the time period corresponding to the electricity price of the 0 tag, the charging power in the time period corresponding to the electricity price of the 1 state can be set as planPower1 = min((E rated - Epower), planPower).
[0140] 2. Discharge power generation:
[0141] 2.1. Search for tag 3 in the state array corresponding to the charging and discharging period. If tag 3 exists, obtain the upper limit of the discharge power planPower for each hour of the electricity price sub-period corresponding to tag 3, and set the discharge power of the electricity price sub-period corresponding to tag 3 as the upper limit of the discharge power. Accumulate the discharge amount corresponding to each hour EpowerD = EpowerD + planPower. When EpowerD > E rated, it means that it has been fully discharged, and the discharge power of the electricity price sub-period corresponding to tag 2 is set to 0.
[0142] 2.2 If tag 3 is not found in the state array corresponding to the charging / discharging period, tag 2 is searched, and the electricity price sub-period corresponding to tag 2 is processed according to step 2.1 above.
[0143] 2.3 If tag 3 is found in the state array corresponding to the charging and discharging period, and the energy storage system cannot be fully discharged in the time period corresponding to the price of tag 3, if tag 2 is before tag 3, the discharge power in the time period corresponding to the price of tag 2 can be set to planPower2 = (E rated - EpowerD) / T2. If tag 2 is after tag 3, the discharge power in the time period corresponding to the price of tag 2 is set to the corresponding upper limit of discharge power.
[0144] Furthermore, embodiments of the present invention also propose a charging and discharging plan generation device for an energy storage system, referring to... Figure 3 The energy storage system charge / discharge plan generation device includes:
[0145] Module 10 is used to obtain the various electricity price sub-periods divided according to different electricity prices within the planned time period;
[0146] Grouping module 20 is used to group the electricity price sub-time periods that are of the charging type and are continuous in time into a group of charging time periods, and to group the electricity price sub-time periods that are of the discharging type and are continuous in time into a group of discharging time periods, wherein the charging and discharging type of the electricity price sub-time periods is determined based on the electricity price.
[0147] The generation module 30 is used to generate the charging power of each price sub-period in the charging period according to the rule that charging is preferentially performed at a higher charging power in the price sub-period of the lower electricity price in the charging period, and to generate the discharge power of each price sub-period in the discharging period according to the rule that discharging is preferentially performed at a higher discharge power in the price sub-period of the higher electricity price in the discharging period.
[0148] Optionally, the grouping module 20 is further configured to:
[0149] Arrange the various electricity price sub-time periods in chronological order to obtain a first sequence; remove each electricity price sub-time period after the last discharge type in the first sequence from the first sequence to obtain a second sequence;
[0150] If the second sequence contains a discharge-type price sub-period separated by a charging-type price sub-period, then the second sequence is segmented after the target price sub-period to divide the second...
[0151] The sequence is divided into groups of charging and discharging time periods, wherein the target price sub-time period is the price sub-time period that comes first among the two discharge type price sub-time periods separated by the charging type price sub-time period;
[0152] If there is no charge-type ...
[0153] The charging-type price sub-periods in the charging and discharging periods are grouped into a charging period, and the discharging-type price sub-periods in the charging and discharging periods are grouped into a discharging period.
[0154] Optionally, the generation module 30 is further configured to:
[0155] Set the price sub-periods after the penultimate discharge type in the first sequence to the preset default power.
[0156] Optionally, the generation module 30 is further configured to:
[0157] Obtain the upper limit of charging power for each price sub-period within the charging period;
[0158] 5. Determine whether the energy storage system can be fully charged when the lowest electricity price sub-period during the charging period is charged according to the corresponding upper limit of charging power;
[0159] If so, then the charging power during the period within the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit is set as the corresponding charging power upper limit, and the charging...
[0160] The charging power is set to zero during the remaining time periods within the designated time period;
[0161] If not, the charging power within the lowest electricity price sub-period is set to the corresponding upper limit of charging power. If there is a high electricity price sub-period within the charging period where the electricity price is higher than that of the lowest electricity price sub-period, the remaining charging amount within the high electricity price sub-period is calculated based on the upper limit of charging power for the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system. The charging power within the high electricity price sub-period is then set based on the remaining charging amount and the upper limit of charging power for the high electricity price sub-period.
[0162] Optionally, the generation module 30 is further configured to:
[0163] For the previous high-price sub-period before the lowest-price sub-period in the high-price sub-period, the remaining charging amount is divided by the duration of the previous high-price sub-period to obtain the average charging power, and the charging power in the previous high-price sub-period is set as the smaller of the average charging power and the upper limit of the charging power in the previous high-price sub-period.
[0164] Optionally, the generation module 30 is further configured to:
[0165] Obtain the load power of the first target time within the electricity price sub-period of the charging period and the demand of the month in which the first target time is located;
[0166] The feasible charging power is obtained by subtracting the load power of the first target time from the demand of the month in which the first target time is located, and the upper limit of the charging power corresponding to the first target time is set to the smaller of the feasible charging power and the rated power of the energy storage system.
[0167] Optionally, the generation module 30 is further configured to:
[0168] Obtain the upper limit of discharge power for each price sub-period within the discharge period;
[0169] Set the discharge power of the highest-priced sub-period with the highest electricity price in the discharge period as the corresponding upper limit of discharge power;
[0170] Determine whether the energy storage system can discharge completely when discharging at the corresponding upper limit of discharge power during the highest electricity price sub-period.
[0171] If so, then the discharge power for the remaining periods in the discharge period is set to zero;
[0172] If not, then there is a low-price sub-period during the discharge period where the electricity price is lower than that of the highest-price sub-period. Based on the upper limit of the discharge power of the highest-price sub-period, the duration of the highest-price sub-period, and the rated maximum discharge capacity of the energy storage system, the remaining discharge capacity in the low-price sub-period is calculated. The discharge power in the low-price sub-period is set based on the remaining discharge capacity and the upper limit of the discharge power of the low-price sub-period.
[0173] Optionally, the generation module 30 is further configured to:
[0174] For the previous low-price sub-period before the highest-price sub-period in the low-price sub-period, the remaining discharge amount is divided by the duration of the previous low-price sub-period to obtain the average discharge power, and the discharge power in the previous low-price sub-period is set as the smaller of the average discharge power and the upper limit of the discharge power in the previous low-price sub-period.
[0175] Optionally, the generation module 30 is further configured to:
[0176] Obtain the load power at the second target time within the electricity price sub-period of the discharge period;
[0177] The upper limit of the discharge power corresponding to the second target time is set to the smaller of the load power at the second target time and the rated power of the energy storage system.
[0178] The extended content of the specific implementation of the energy storage system charge and discharge plan generation device of the present invention is basically the same as the various embodiments of the energy storage system charge and discharge plan generation method described above, and will not be repeated here.
[0179] Furthermore, this invention also proposes a computer-readable storage medium storing an energy storage system charge / discharge plan generation program. When the energy storage system charge / discharge plan generation program is executed by a processor, it implements the steps of the energy storage system charge / discharge plan generation method described below.
[0180] The embodiments of the energy storage system charge / discharge plan generation device and computer-readable storage medium of the present invention can all refer to the embodiments of the energy storage system charge / discharge plan generation method of the present invention, and will not be repeated here.
[0181] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0182] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0183] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0184] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for generating a charge / discharge plan for an energy storage system, characterized in that, The method for generating a charge / discharge plan for an energy storage system includes the following steps: Obtain the various electricity price sub-periods within the planned time period, divided according to different electricity prices; Each of the aforementioned electricity price sub-periods belongs to the charging type and is continuous in time as a group of charging sub-periods, and each of the aforementioned electricity price sub-periods belongs to the discharging type and is continuous in time as a group of discharging sub-periods, wherein the charging and discharging type of the electricity price sub-periods is determined based on the electricity price; Obtain the upper limit of charging power for each price sub-period within the charging period; Determine whether the energy storage system can be fully charged when the lowest electricity price sub-period during the charging period is charged according to the corresponding charging power limit. If it is determined that the system can be fully charged, the charging power during the period in the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit is set to the corresponding charging power upper limit, and the charging power during the remaining periods in the charging period is set to zero. If it is determined that the battery cannot be fully charged, the charging power within the lowest electricity price sub-period is set to the corresponding upper limit of charging power. If there is a high electricity price sub-period in the charging period where the electricity price is higher than that of the lowest electricity price sub-period, the remaining charging amount within the high electricity price sub-period is calculated based on the upper limit of charging power of the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system. The charging power within the high electricity price sub-period is then set based on the remaining charging amount and the upper limit of charging power of the high electricity price sub-period. Obtain the upper limit of discharge power for each price sub-period within the discharge period; Set the discharge power of the highest-priced sub-period with the highest electricity price in the discharge period as the corresponding upper limit of discharge power; Determine whether the energy storage system can discharge completely when discharging at the corresponding upper limit of discharge power during the highest electricity price sub-period. If it is determined that the discharge can be completed, the discharge power in the remaining periods of the discharge period is set to zero. If it is determined that the discharge cannot be completely completed, then during the discharge period, if there is a low-price sub-period with a lower electricity price than the highest-price sub-period, the remaining discharge amount in the low-price sub-period is calculated based on the upper limit of the discharge power of the highest-price sub-period, the duration of the highest-price sub-period, and the rated maximum discharge capacity of the energy storage system. The discharge power in the low-price sub-period is then set based on the remaining discharge amount and the upper limit of the discharge power of the low-price sub-period.
2. The method for generating a charge / discharge plan for an energy storage system as described in claim 1, characterized in that, The step of grouping consecutive charging sub-periods from each of the aforementioned electricity price sub-periods into a charging sub-period and consecutive discharging sub-periods from each of the aforementioned electricity price sub-periods into a discharging sub-period includes: Arrange the various electricity price sub-time periods in chronological order to obtain the first sequence; Remove each price sub-period after the penultimate discharge type in the first sequence from the first sequence to obtain the second sequence; If there is a discharge type price sub-period separated by a charging type price sub-period in the second sequence, then the second sequence is divided from the target price sub-period to divide the second sequence into groups of charging and discharging periods. The target price sub-period is the price sub-period that comes first among the two discharge type price sub-periods separated by a charging type price sub-period. If there is no charge-type ... The charging-type price sub-periods in the charging and discharging periods are grouped into a charging period, and the discharging-type price sub-periods in the charging and discharging periods are grouped into a discharging period.
3. The method for generating a charge / discharge plan for an energy storage system as described in claim 2, characterized in that, After the step of arranging the various electricity price sub-time periods in chronological order to obtain the first sequence, the method further includes: Set the price sub-periods after the penultimate discharge type in the first sequence to the preset default power.
4. The method for generating a charge / discharge plan for an energy storage system as described in claim 1, characterized in that, The step of setting the charging power during the high-price sub-period based on the remaining charging capacity and the upper limit of charging power during the high-price sub-period includes: For the previous high-price sub-period before the lowest-price sub-period in the high-price sub-period, the remaining charging amount is divided by the duration of the previous high-price sub-period to obtain the average charging power, and the charging power in the previous high-price sub-period is set as the smaller of the average charging power and the upper limit of the charging power in the previous high-price sub-period.
5. The method for generating a charge / discharge plan for an energy storage system as described in claim 1, characterized in that, The step of obtaining the upper limit of charging power for each electricity price sub-period within the charging period includes: Obtain the load power of the first target time within the electricity price sub-period of the charging period and the demand of the month in which the first target time is located; The feasible charging power is obtained by subtracting the load power of the first target time from the demand of the month in which the first target time is located, and the upper limit of the charging power corresponding to the first target time is set to the smaller of the feasible charging power and the rated power of the energy storage system.
6. The method for generating a charge / discharge plan for an energy storage system as described in claim 1, characterized in that, The step of setting the discharge power within the low-price sub-period based on the remaining discharge capacity and the upper limit of discharge power for the low-price sub-period includes: For the previous low-price sub-period before the highest-price sub-period in the low-price sub-period, the remaining discharge amount is divided by the duration of the previous low-price sub-period to obtain the average discharge power, and the discharge power in the previous low-price sub-period is set as the smaller of the average discharge power and the upper limit of the discharge power in the previous low-price sub-period.
7. The method for generating a charge / discharge plan for an energy storage system as described in claim 1, characterized in that, The step of obtaining the upper limit of discharge power for each price sub-period in the discharge period includes: Obtain the load power at the second target time within the electricity price sub-period of the discharge period; The upper limit of the discharge power corresponding to the second target time is set to the smaller of the load power at the second target time and the rated power of the energy storage system.
8. A device for generating a charge / discharge plan for an energy storage system, characterized in that, The energy storage system charge / discharge plan generation device includes: The acquisition module is used to acquire the various electricity price sub-periods within the planned time period, divided according to different electricity prices. The grouping module is used to group the electricity price sub-time periods that are of the charging type and are consecutive in time into a group of charging time periods, and to group the electricity price sub-time periods that are of the discharging type and are consecutive in time into a group of discharging time periods, wherein the charging and discharging type of the electricity price sub-time periods is determined based on the electricity price. Generate modules for: Obtain the upper limit of charging power for each price sub-period within the charging period; Determine whether the energy storage system can be fully charged when the lowest electricity price sub-period during the charging period is charged according to the corresponding charging power limit. If it is determined that the system can be fully charged, the charging power during the period in the lowest electricity price sub-period that can fully charge the energy storage system according to the corresponding charging power upper limit is set to the corresponding charging power upper limit, and the charging power during the remaining periods in the charging period is set to zero. If it is determined that the battery cannot be fully charged, the charging power within the lowest electricity price sub-period is set to the corresponding upper limit of charging power. If there is a high electricity price sub-period in the charging period where the electricity price is higher than that of the lowest electricity price sub-period, the remaining charging amount within the high electricity price sub-period is calculated based on the upper limit of charging power of the lowest electricity price sub-period, the duration of the lowest electricity price sub-period, and the rated maximum charging capacity of the energy storage system. The charging power within the high electricity price sub-period is then set based on the remaining charging amount and the upper limit of charging power of the high electricity price sub-period. Obtain the upper limit of discharge power for each price sub-period within the discharge period; Set the discharge power of the highest-priced sub-period with the highest electricity price in the discharge period as the corresponding upper limit of discharge power; Determine whether the energy storage system can discharge completely when discharging at the corresponding upper limit of discharge power during the highest electricity price sub-period. If it is determined that the discharge can be completed, the discharge power in the remaining periods of the discharge period is set to zero. If it is determined that the discharge cannot be completely completed, then during the discharge period, if there is a low-price sub-period with a lower electricity price than the highest-price sub-period, the remaining discharge amount in the low-price sub-period is calculated based on the upper limit of the discharge power of the highest-price sub-period, the duration of the highest-price sub-period, and the rated maximum discharge capacity of the energy storage system. The discharge power in the low-price sub-period is then set based on the remaining discharge amount and the upper limit of the discharge power of the low-price sub-period.
9. A device for generating charge and discharge plans for an energy storage system, characterized in that, The energy storage system charge / discharge plan generation device includes: a memory, a processor, and an energy storage system charge / discharge plan generation program stored in the memory and executable on the processor. When the energy storage system charge / discharge plan generation program is executed by the processor, it implements the steps of the energy storage system charge / discharge plan generation method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an energy storage system charge / discharge plan generation program, which, when executed by a processor, implements the steps of the energy storage system charge / discharge plan generation method as described in any one of claims 1 to 7.