Energy storage charging and discharging strategy generation method and device and computer program product

By identifying and combining the continuous incremental sequences in the spot market electricity price data, the optimal energy storage charging and discharging strategy was generated, and the problem of traditional energy storage systems dealing with electricity price fluctuations in the spot market was solved, and the efficiency of automation operation and strategy accuracy were improved. .

CN119067389APending Publication Date: 2024-12-03QINGDAO TELD NEW ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411167396.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Traditional energy storage systems cannot effectively respond to electricity price fluctuations under spot market conditions, resulting in low efficiency in manual calculation of charging and discharging time, unable to meet the needs of automatic operation, and the existing optimization methods have high computing power and low efficiency in computers.

Method used

By receiving time series data and user electricity price data, identifying continuous incremental sequences, performing merging operations, generating an optimized energy storage charging and discharging strategy, deleting sequences with expected returns below the threshold, and forming an optimized charging and discharging strategy.

Benefits of technology

It realizes the automatic generation of optimal energy storage charging and discharging strategies in the case of electricity price fluctuations in spot environments, improving operating efficiency and strategy accuracy, and reducing the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067389A_ABST
    Figure CN119067389A_ABST
Patent Text Reader

Abstract

The invention provides an energy storage charging and discharging strategy generation method and device and a computer program product, and the method comprises the steps: receiving input time series data and user electricity price data corresponding to the time series data, and the user electricity price data comprises spot market price data; traversing the electricity price data of the user, and identifying all continuously increasing sequences; performing multiple merging operations on the continuously increasing sequences, and outputting a target sequence; if the first expected income generated by a certain sequence in the target sequence is lower than a preset first threshold value, deleting the sequence; the residual sequences in the target sequence form an optimal energy storage charging and discharging strategy, and the first expected income is the income generated when the sequence independently executes one charging and discharging process. According to the method, spot market prices are considered, and an energy storage charging and discharging strategy is efficiently and automatically generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of energy storage systems, and specifically relates to a method and device for generating an energy storage charging and discharging strategy, and a computer program product. Background Art

[0002] "Peak shaving and valley filling" is the main profit model of distributed energy storage battery systems, that is, by charging during periods of low electricity prices and discharging during periods of high electricity prices, the cost of electricity is reduced. In the traditional industrial and commercial electricity price model, the electricity price level in each period is fixed. As long as the energy storage battery system pre-sets the charging and discharging time, it can automatically achieve the "peak shaving and valley filling" function.

[0003] However, under the spot market conditions, the hourly electricity price is constantly fluctuating with the market supply and demand, and the time periods, frequencies, and price levels of high and low electricity prices are constantly changing every day. This makes the traditional energy storage system only have the function of timed charging and discharging, and cannot cope with the constantly changing high and low electricity price periods under spot conditions. Although the charging and discharging time of the traditional energy storage system can be changed every day according to the prediction of the spot price to adapt to the changes in the electricity price period, the efficiency of manual judgment of the charging and discharging time every day is very low, and the manual judgment method may not be optimized enough, which is difficult to meet the technical requirements of the automatic operation of the energy storage system. Moreover, when conducting preliminary calculations on the investment and construction projects of energy storage systems under spot electricity price conditions, it is necessary to use the spot price historical data of at least one year in the past to calculate the energy storage charging and discharging benefits. Due to the large amount of data, the manual design of the daily charging and discharging strategy of the energy storage system is extremely inefficient, and the results may not be accurate. In addition, some general optimization methods such as dynamic programming can generate optimized energy storage strategies, but these methods require high computer computing power and are inefficient, which is not conducive to daily use by engineers. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention proposes a method and device for generating an energy storage charging and discharging strategy, and a computer program product, which can automatically generate an optimized energy storage charging and discharging strategy for electricity price fluctuations in a spot environment.

[0005] In order to achieve the above object, the present invention provides a method for generating an energy storage charging and discharging strategy, comprising:

[0006] Receive input time series data and user electricity price data corresponding to the time series data, where the user electricity price data includes spot market price data;

[0007] Traverse the user's electricity price data and identify all continuously increasing sequences;

[0008] Perform multiple merge operations on the continuously increasing sequence and output the target sequence;

[0009] If a first expected profit generated by a certain sequence in the target sequence is lower than a preset first threshold, the sequence is deleted; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected profit is the profit generated when the sequence executes a charging and discharging process alone.

[0010] In one embodiment, each merge operation includes:

[0011] For each sequence, calculate the first expected benefit generated when the sequence performs a single charge and discharge process;

[0012] If the second expected benefit generated when two adjacent sequences are combined to perform a charging and discharging process is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, the two adjacent sequences are combined.

[0013] In one embodiment, for each sequence, the first expected benefit is determined based on the starting price and ending price of the sequence, and the charging and discharging energy efficiency of the energy storage system. The first expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the sequence and the starting price of the sequence.

[0014] In one embodiment, when two adjacent sequences are combined to perform a charge-discharge process, the first sequence performs a charge operation and the second sequence performs a discharge operation, and the two adjacent sequences include the first sequence and the second sequence;

[0015] The second expected benefit is determined based on the starting price of the first sequence, the ending price of the second sequence, and the charging and discharging energy efficiency of the energy storage system. The second expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the second sequence and the starting price of the first sequence.

[0016] In one embodiment, during the multiple merging operations, if it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be merged with the previous sequence, the current sequence is removed.

[0017] In one embodiment, during the multiple merging operations, if it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be merged with a subsequent sequence, the current sequence is removed.

[0018] In one embodiment, the user electricity price data also includes other electricity price data, and the other electricity price data includes capacity compensation price and transmission and distribution price.

[0019] In one embodiment, the preset first threshold is determined according to a minimum benefit of a single charge and discharge cycle of the energy storage system.

[0020] Another aspect of the present invention further provides a device for generating an energy storage charge and discharge strategy, which adopts the above-mentioned energy storage charge and discharge strategy generation method, and the device at least comprises:

[0021] An acquisition module, used to receive input time series data and user electricity price data corresponding to the time series data, wherein the user electricity price data includes spot market price data;

[0022] A sorting module is used to traverse the user's electricity price data for sorting and identify all continuously increasing sequences;

[0023] A merging module, used for performing multiple merging operations on the continuously increasing sequence and outputting a target sequence;

[0024] A generation module is used to delete a sequence in the target sequence if the first expected benefit generated by the sequence is lower than a preset first threshold value; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected benefit is the benefit generated when the sequence executes a charging and discharging process alone.

[0025] In another aspect, the present invention provides a computer program product, comprising a computer program. When the computer program is executed by a processor, the computer program automatically generates an optimized energy storage charging and discharging strategy under a given period of time through a worksheet of a VBA macro code; the VBA macro code executes each step of the above-mentioned energy storage charging and discharging strategy generation method, including:

[0026] Enter the time series data needed to generate energy storage charging and discharging strategies in this worksheet;

[0027] Enter the user electricity price data corresponding to the time series data in the worksheet, where the user electricity price data includes spot market price data;

[0028] Traverse the user's electricity price data and sort them to identify all continuously increasing sequences;

[0029] Perform multiple merge operations on the continuously increasing sequence and output the target sequence;

[0030] If a first expected profit generated by a certain sequence in the target sequence is lower than a preset first threshold, the sequence is deleted; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected profit is the profit generated when the sequence executes a charging and discharging process alone.

[0031] In one embodiment, each merge operation includes:

[0032] For each sequence, calculate the first expected benefit generated when the sequence performs a single charge and discharge process;

[0033] If the second expected benefit generated when two adjacent sequences are combined to perform a charging and discharging process is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, the two adjacent sequences are combined.

[0034] In one embodiment, for each sequence, the first expected benefit is determined based on the starting price and ending price of the sequence entered in the worksheet, and the charging and discharging energy efficiency of the energy storage system. The first expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the sequence and the starting price of the sequence.

[0035] In one embodiment, when two adjacent sequences are combined to perform a charge-discharge process, the first sequence performs a charge operation and the second sequence performs a discharge operation, and the two adjacent sequences include the first sequence and the second sequence;

[0036] The second expected benefit is determined based on the starting price of the first sequence, the ending price of the second sequence, and the charging and discharging energy efficiency of the energy storage system. The second expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the second sequence and the starting price of the first sequence.

[0037] In one embodiment, during the multiple merging operations, if it is determined that a first expected benefit generated when a sequence performs a charging and discharging process alone is less than a preset second threshold, the sequence is removed.

[0038] In one embodiment, during the multiple merging operations, if it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be merged with the previous sequence, the current sequence is removed.

[0039] In one embodiment, during the multiple merging operations, if it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be merged with a subsequent sequence, the current sequence is removed.

[0040] In one embodiment, the preset first threshold is determined according to the minimum benefit of a single charge and discharge cycle of the energy storage system input in the work table.

[0041] In one embodiment, a charging instruction and a discharging instruction are generated according to the optimized energy storage charging and discharging strategy; and the charging instruction and the discharging instruction are input into the work table.

[0042] It can be seen from the above scheme that the advantages of the present invention are:

[0043] The energy storage charging and discharging strategy generation method disclosed by the present invention collects user electricity price data including spot market price data in real time in response to electricity price fluctuations in the spot environment, and identifies all continuously increasing sequences by traversing the user electricity price data for sorting; and performs multiple merging operations on the continuously increasing sequences to output the target sequence; and finally obtains the optimal energy storage charging and discharging strategy when it is determined that the first expected return generated by each target sequence is not less than a preset first threshold. This method realizes the automatic generation of the optimal energy storage charging and discharging strategy under the condition of spot price curve data within a given period of time. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The overall flow chart of the energy storage charging and discharging strategy generation method provided by one embodiment of the present invention is shown;

[0045] Figure 2 Shows Figure 1 Detailed flow diagram of step S3;

[0046] Figure 3 The framework diagram corresponding to the energy storage charging and discharging strategy generating device is shown;

[0047] Figure 4 A schematic block diagram of an electronic device is shown.

[0048] in:

[0049] 200: energy storage charging and discharging strategy generating device;

[0050] 201: Get module;

[0051] 202: sorting module;

[0052] 203: Merge module;

[0053] 204: Generate module;

[0054] 300: electronic equipment;

[0055] 301: computing unit;

[0056] 302: read-only memory;

[0057] 303: Random access memory;

[0058] 304: bus;

[0059] 305: I / O interface;

[0060] 306: input unit;

[0061] 307: output unit;

[0062] 308: storage unit;

[0063] 309: Communication unit. DETAILED DESCRIPTION

[0064] In order to make the above features and effects of the present invention more clearly understood, embodiments are given below and described in detail with reference to the accompanying drawings.

[0065] See also Figure 1-Figure 2 As shown, Figure 1 The overall flow chart of the energy storage charging and discharging strategy generation method provided by one embodiment of the present invention is shown; Figure 2 Shows Figure 1 Detailed flowchart of step S3 in FIG.

[0066] See also Figure 1 As shown in, an embodiment of the present invention discloses a method for generating an energy storage charging and discharging strategy, which comprises the following steps:

[0067] Step S1, receiving input time series data and user electricity price data corresponding to the time series data, wherein the user electricity price data includes spot market price data.

[0068] In this embodiment, the time series data required to generate the energy storage charging and discharging strategy is obtained, which can be based on hours, days, weeks, etc. as periods. Then, the user electricity price data corresponding to each time point of the time series data is further obtained, such as the electricity price per hour. Considering the fluctuation of spot electricity prices with market supply and demand, the user electricity price data specifically includes the spot market price data within the time period. The spot market price data can use forecast data or historical data according to different purposes of use, such as future strategy formulation or historical revenue calculation, and the present invention does not make specific limitations. In addition, in practice, spot market price data usually includes day-ahead prices and real-time prices.

[0069] Furthermore, in some embodiments, in addition to the spot market price data, the user electricity price data also includes other price data components such as the capacity compensation price and transmission and distribution price corresponding to each time point of the time series data.

[0070] Step S2: traverse the user electricity price data and identify all continuously increasing sequences.

[0071] In this embodiment, the user electricity price data is traversed in chronological order, the time period in which the price rises continuously is identified, the time period in which the price rises continuously is identified as a continuously increasing sequence, and the starting price and the ending price of each sequence are recorded.

[0072] Step S3: perform multiple merging operations on the continuously increasing sequence and output a target sequence.

[0073] In this embodiment, multiple merging operations are further performed on the continuously increasing sequence, see Figure 2 As shown in . The implementation process of each merging operation is: for each sequence, first calculate the first expected benefit (S31) generated when the sequence performs a charging and discharging process alone. Specifically, in step S31, for each sequence, the first expected benefit is determined based on the starting price and ending price of the sequence, and the charging and discharging energy efficiency of the energy storage system. The first expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the sequence and the starting price of the sequence. For example, the i-th sequence A i , A i The starting price is a i , the end price is b i , the energy storage system's charging and discharging efficiency is k (k<100%), then the sequence starts with charging and ends with discharging, that is, when the sequence performs a single charging and discharging process, the first expected benefit that can be obtained is kb i -a i It should be noted that here, sequence A i It may be all the continuously increasing sequences initially identified, or it may be a new sequence regenerated after performing at least one merging operation on all the continuously increasing sequences initially identified.

[0074] Then, based on the first expected benefit, determine whether the sequence needs to be merged with other sequences. Specifically, in this embodiment, the adjacent merging method is adopted. If the second expected benefit generated when two adjacent sequences are combined to perform a charging and discharging process is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, then the two adjacent sequences are merged (S32). In the step S32, when two adjacent sequences are combined to perform a charging and discharging process, that is, the first sequence performs a charging operation and the second sequence performs a discharging operation, the two adjacent sequences include the first sequence and the second sequence, and the second sequence is the latter sequence of the first sequence. At this time, based on the starting price of the first sequence, the ending price of the second sequence, and the charging and discharging energy efficiency of the energy storage system, the second expected benefit is determined. The second expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the second sequence and the starting price of the first sequence. For example, the i-th sequence A i , A i The starting price is a i , the end price is b i , the i+1th sequence A i+1 , A i+1 The starting price is a i+1 , the end price is b i+1, the charging and discharging energy efficiency of the energy storage system is k (k<100%). When the two sequences are combined to perform a charging and discharging process, the second expected benefit generated is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, that is, kb i+1 -a i >(kb i -a i )+(kb i+1 -a i+1 ), then these two sequences A i 、a i+1 Combine and charge and discharge only once to increase the yield.

[0075] In this embodiment, in view of the fact that the energy storage system's charging and discharging energy efficiency is 100% (usually about 80%), if the sequence is not merged, it is impossible to give a realistic and effective optimized energy storage strategy. The existence of this phenomenon makes it impossible for traditional simple algorithms (such as directly selecting the maximum and minimum price periods for charging and discharging, or only looking for continuous increasing sequences without merging) to give an optimized energy storage strategy.

[0076] In addition, in one embodiment, during each sequence merging operation, if it is determined that the first expected benefit generated by any sequence when performing a charging and discharging process alone is less than a preset second threshold, the sequence is removed. Usually, the preset second threshold is set to zero. For example, for the i-th sequence A i , the first benefit kb generated when performing a single charge and discharge process i -a i <0, it means that the sequence has no independent value. i Removed.

[0077] In addition, in one embodiment, during each sequence merging operation, if it is determined that the first expected return generated by the current sequence is less than the preset second threshold (e.g., zero), and the current sequence cannot be merged with the previous sequence, the current sequence is removed. i Does not match the previous sequence A i-1 The condition for merging is that the sequence A i With sequence A i-1 The second expected benefit generated when these two sequences are combined to perform a charging and discharging process is no higher than the sum of the first expected benefits generated when each sequence is executed separately, that is, kb i -a i-1 ≤(kb i-1 -a i-1 )+(kb i -a i ). At this time, the starting price of the current sequence is not higher than the product of the ending price of the previous sequence and the charging and discharging energy efficiency, that is, ai ≤kb i-1 ; At this time, if the first expected return of the current sequence is less than zero, the end price of the current sequence is not higher than the end price of the previous sequence, that is, kb i ≤kb i-1 In this case, if the next sequence A i+1 Complies with the current sequence A i The conditions for merging are as follows: i+1 It must also be possible to directly combine with the previous sequence A i-1 Merge and get better returns. In this case, the current sequence A i If there is no value in existence, it can be removed directly to facilitate the merging of the remaining sequences in the subsequent process.

[0078] In addition, in one embodiment, during each sequence merging operation, if it is determined that the first expected return of the current sequence is less than the preset second threshold (e.g., zero), and the current sequence cannot be merged with the next sequence, the current sequence is removed. i Does not match the latter sequence A i+1 The condition for merging is that the sequence A i With sequence A i+1 The second expected benefit generated when these two sequences are combined to perform a charging and discharging process is no higher than the sum of the first expected benefits generated when each sequence is executed separately, that is, kb i+1 -a i ≤(kb i -a i )+(kb i+1 -a i+1 ). At this time, the starting price of the next sequence is not higher than the product of the ending price of the current sequence and the charging and discharging energy efficiency, that is, a i+1 ≤kb i ; At this time, if the first expected return of the current sequence is less than zero, the end price of the next sequence is not higher than the end price of the current sequence, that is, a i+1 ≤a i In this case, if the current sequence A i Consistent with the previous sequence A i-1 The conditions for merging are as follows: i-1 It must also be possible to directly combine with the following sequence A i+1 Merge and get better returns. In this case, the current sequence A i If there is no value in existence, it can be removed directly to facilitate the merging of the remaining sequences in the subsequent process.

[0079] In addition, it should be noted that the previous sequence and the next sequence are relative to the current sequence, that is, the previous sequence of the current sequence and the next sequence of the current sequence.

[0080] In this embodiment, after the above-mentioned multiple sequence merging and removal processes, until no new sequence is merged or removed, the final target sequence is obtained.

[0081] Step S4: if a first expected benefit generated by a certain sequence in the target sequence is lower than a preset first threshold, the sequence is deleted; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected benefit is the benefit generated when the sequence executes a charging and discharging process alone.

[0082] In this embodiment, after obtaining the target sequence through multiple rounds of sequence merging, it is further determined whether the revenue generated by each sequence in the target sequence when executing a charge and discharge process alone is not less than a preset first threshold value. In one embodiment, the preset first threshold value is set according to the minimum revenue t of a single charge and discharge cycle of the energy storage system. If there is a sequence in the target sequence that generates a first expected revenue lower than the preset first threshold value when executing a charge and discharge process alone, the sequence is deleted. Then, the remaining sequences in the target sequence constitute the optimal energy storage charge and discharge strategy, that is, at this time, the first expected revenue generated by each sequence in the target sequence is not less than the minimum revenue of a single charge and discharge cycle of the energy storage system, that is, kb i -a i ≥t.

[0083] In addition, in one embodiment, after the optimized energy storage charging and discharging strategy is obtained, the optimized energy storage charging and discharging strategy can be used to further calculate the revenue of the energy storage system.

[0084] In addition, in the present invention, based on the energy storage charging and discharging strategy generation method disclosed in the above embodiment, in another embodiment, a computer program product is disclosed. When the computer program is executed by a processor, it automatically generates an optimized energy storage charging and discharging strategy under a given period of time through a worksheet of a VBA macro code. Specifically, the VBA macro code performs the following steps:

[0085] First, enter the time series data for generating energy storage charging and discharging strategies in the worksheet to construct the "time" column. Enter the user electricity price data corresponding to the time series data in the worksheet to construct the "user electricity price" column. In addition to the spot market price data, the user electricity price data includes the spot market price data corresponding to each time point of the time series data, as well as other price data. Therefore, the "user electricity price" column can be further divided into two parts: the "spot price" column and the "other price" column. At the same time, further enter the charging and discharging energy efficiency of the energy storage system in the worksheet to construct an "energy storage efficiency" column; enter the minimum profit of a single charging and discharging cycle of the energy storage system in the worksheet to construct a "minimum profit" column. At the same time, construct a "energy storage instruction" column, and the content of the "energy storage instruction" column is the energy storage charging and discharging strategy. For example, the number "1" is set to represent full-load charging at this point in time, and the number "2" represents full-load discharge at this point in time.

[0086] The energy storage strategy macro is further defined, namely: traverse the user's electricity price data and sort them, identify all continuously increasing sequences; perform multiple merging operations on the continuously increasing sequences, and output the target sequence; if there is a sequence in the target sequence whose first expected profit is lower than a preset first threshold, delete the sequence; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected profit is the profit generated when the sequence performs a charging and discharging process alone. The specific execution process of this part is the same as the energy storage charging and discharging strategy generation method disclosed in the above embodiment, and this embodiment will not be repeated.

[0087] In addition, in this embodiment, according to the optimized energy storage charging and discharging strategy, a charging instruction and a discharging instruction are generated, and the charging instruction and the discharging instruction are added to the "energy storage instruction" column to update the "energy storage instruction" column.

[0088] In addition, the computer program program code for implementation can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server, and the present invention does not make specific limitations on this.

[0089] In summary, the energy storage charging and discharging strategy generation method and computer program product disclosed in the present invention have good optimization effect and high operation efficiency, and can automatically obtain optimized energy storage charging and discharging strategies. It can not only combine the prediction of future spot price curves to quickly plan future energy storage charging and discharging strategies, but also use historical spot price data to estimate the revenue of new energy storage systems to be built.

[0090] In addition, corresponding to the aforementioned embodiment of the method for generating a storage energy charging and discharging strategy, the present invention also provides an embodiment of a device for generating a storage energy charging and discharging strategy.

[0091] See also Figure 3 , an energy storage charging and discharging strategy generation device 200 provided in an embodiment of the present invention comprises:

[0092] The acquisition module 201 is used to receive input time series data and user electricity price data corresponding to the time series data, and the user electricity price data includes spot market price data.

[0093] The sorting module 202 is used to traverse the user electricity price data and identify all continuously increasing sequences.

[0094] The merging module 203 is used to perform multiple merging operations on the continuously increasing sequence and output a target sequence.

[0095] The generation module 204 is used to delete a sequence in the target sequence if the first expected benefit generated by the sequence is lower than a preset first threshold value; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected benefit is the benefit generated when the sequence executes a charging and discharging process alone.

[0096] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the module described can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0097] In addition, according to an embodiment of the present invention, the present invention also provides an electronic device.

[0098] Figure 4A schematic block diagram of an electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown in the present invention, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required in the present invention.

[0099] The electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0100] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0101] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as steps S1 to S4. For example, in some embodiments, steps S1 to S4 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the methods S1 to S4 described above may be executed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform steps S1 to S4 in any other appropriate manner (e.g., by means of firmware).

[0102] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] It should be understood that the various steps described in the present invention may be executed in parallel, sequentially, or in different orders, as long as the expected results of the technical solution of the present invention can be achieved, and the present invention is not limited thereto.

[0104] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating an energy storage charging and discharging strategy, characterized in that: Include: Receive input time series data and user electricity price data corresponding to the time series data, where the user electricity price data includes spot market price data; Traverse the user's electricity price data and identify all continuously increasing sequences; Perform multiple merge operations on the continuously increasing sequence and output the target sequence; If a first expected profit generated by a certain sequence in the target sequence is lower than a preset first threshold, the sequence is deleted; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected profit is the profit generated when the sequence executes a charging and discharging process alone.

2. The method according to claim 1, characterized in that in: Each merge operation includes: For each sequence, calculate the first expected benefit generated when the sequence performs a single charge and discharge process; If the second expected benefit generated when two adjacent sequences are combined to perform a charging and discharging process is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, the two adjacent sequences are combined.

3. The method according to claim 1 or 2, characterized in that: For each sequence, the first expected benefit is determined based on the starting price and ending price of the sequence and the charging and discharging energy efficiency of the energy storage system. The first expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the sequence and the starting price of the sequence.

4. The method according to claim 2, characterized in that: When two adjacent sequences are combined to perform a charge-discharge process, the first sequence performs a charge operation and the second sequence performs a discharge operation, and the two adjacent sequences include the first sequence and the second sequence; The second expected benefit is determined based on the starting price of the first sequence, the ending price of the second sequence, and the charging and discharging energy efficiency of the energy storage system. The second expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the second sequence and the starting price of the first sequence.

5. The method according to claim 2, characterized in that: In the multiple merging operations, if it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be merged with the previous sequence, the current sequence is removed.

6. The method according to claim 2, characterized in that In this multiple merge operation, If it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be combined with a subsequent sequence, the current sequence is removed.

7. The method according to claim 1, characterized in that The user electricity price data also includes other electricity price data, which includes capacity compensation price and transmission and distribution price.

8. The method according to claim 1, characterized in that The preset first threshold is determined according to the minimum benefit of a single charge and discharge cycle of the energy storage system.

9. A computer program product comprising a computer program, characterized in that When the computer program is executed by the processor, a VBA macro code worksheet is used to automatically generate an optimized energy storage charging and discharging strategy given spot market price data over a period of time; the VBA macro code performs the following steps: Enter the time series data needed to generate energy storage charging and discharging strategies in this worksheet; Enter the user electricity price data corresponding to the time series data in the worksheet, where the user electricity price data includes spot market price data; Traverse the user's electricity price data and identify all continuously increasing sequences; Perform multiple merge operations on the continuously increasing sequence and output the target sequence; If a first expected profit generated by a certain sequence in the target sequence is lower than a preset first threshold, the sequence is deleted; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected profit is the profit generated when the sequence executes a charging and discharging process alone.

10. The computer program product according to claim 9, characterized in that Each merge operation includes: For each sequence, calculate the first expected benefit generated when the sequence performs a single charge and discharge process; If the second expected benefit generated when two adjacent sequences are combined to perform a charging and discharging process is higher than the sum of the first expected benefits generated when the two adjacent sequences are executed separately, the two adjacent sequences are combined.

11. The computer program product according to claim 9 or 10, characterized in that For each sequence, the first expected benefit is determined based on the starting price and ending price of the sequence entered in the worksheet, and the charging and discharging energy efficiency of the energy storage system. The first expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the sequence and the starting price of the sequence.

12. The computer program product according to claim 10, characterized in that When two adjacent sequences are combined to perform a charge-discharge process, the first sequence performs a charge operation and the second sequence performs a discharge operation, and the two adjacent sequences include the first sequence and the second sequence; The second expected benefit is determined based on the starting price of the first sequence, the ending price of the second sequence, and the charging and discharging energy efficiency of the energy storage system. The second expected benefit is the difference between the product of the charging and discharging energy efficiency and the ending price of the second sequence and the starting price of the first sequence.

13. The computer program product according to claim 10, characterized in that In this multiple merge operation, If it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be combined with the previous sequence, the current sequence is removed.

14. The computer program product according to claim 10, characterized in that In this multiple merge operation, If it is determined that the first expected benefit generated by the current sequence executing a single charge and discharge process is less than a preset second threshold, and the current sequence cannot be combined with a subsequent sequence, the current sequence is removed.

15. The computer program product according to claim 9, characterized in that The preset first threshold is determined according to the minimum benefit of a single charge and discharge cycle of the energy storage system input in the worksheet.

16. The computer program product according to claim 9, characterized in that Also includes: Generate charging instructions and discharging instructions according to the optimized energy storage charging and discharging strategy; The charging instruction and the discharging instruction are input into the work table.

17. A device for generating energy storage charging and discharging strategies, characterized in that: The device adopts the energy storage charging and discharging strategy generation method according to any one of claims 1 to 8, and the device at least comprises: An acquisition module, used to receive input time series data and user electricity price data corresponding to the time series data, wherein the user electricity price data includes spot market price data; A sorting module is used to traverse the user's electricity price data for sorting and identify all continuously increasing sequences; A merging module, used for performing multiple merging operations on the continuously increasing sequence and outputting a target sequence; A generation module is used to delete a sequence in the target sequence if the first expected benefit generated by the sequence is lower than a preset first threshold value; and the remaining sequences in the target sequence constitute the optimal energy storage charging and discharging strategy, and the first expected benefit is the benefit generated when the sequence executes a charging and discharging process alone.