Energy storage configuration method and system, electronic device, and storage medium
By setting objective functions and constraints in the battery energy storage system, the charging and discharging strategies of the energy storage batteries are optimized, solving the problem that existing technologies have failed to effectively reduce users' electricity costs, and achieving cost minimization and load reduction during electricity price fluctuations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2026-03-17
AI Technical Summary
Existing technologies have failed to provide effective battery energy storage configuration methods to reduce users' electricity costs, and have failed to optimize the charging and discharging strategies of energy storage batteries to minimize load and electricity costs when electricity prices fluctuate.
By acquiring load, time-of-use electricity price, and unit demand cost within historical time periods, setting objective functions and constraints, calculating the charging and discharging power of energy storage batteries at different times, and optimizing the energy storage battery capacity to minimize total electricity costs.
It enables the optimization of energy storage battery charging and discharging strategies during electricity price fluctuations, minimizing user electricity costs and improving user experience.
Smart Images

Figure CN114552610B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery energy storage technology, and in particular to an energy storage configuration method and system, electronic device and storage medium. Background Technology
[0002] Battery energy storage has extremely wide applications in power systems, including peak shaving and other ancillary services, peak shifting and valley filling, and renewable energy consumption. Battery energy storage refers to storing electrical energy when user electricity load and electricity prices are low, and releasing electrical energy when user electricity load and electricity prices are high. Therefore, battery energy storage adopts a low-storage, high-release strategy, which can not only reduce the maximum demand of user load, but also reduce users' electricity bills. Summary of the Invention
[0003] This invention provides an energy storage configuration method and system, electronic device and storage medium that can minimize users' electricity costs.
[0004] A first aspect of the present invention provides an energy storage configuration method, comprising the following steps:
[0005] With energy storage batteries configured, the load, time-of-use electricity price, and unit demand electricity cost are obtained for historical time periods excluding the energy storage batteries; wherein, each historical time period is divided into several different time periods.
[0006] The objective function is to minimize the total electricity cost within the historical time period. The charging power and discharging power of the energy storage battery at different times, as well as the maximum demand within the historical time period, are calculated based on the constraints. The constraints are set based on the energy storage battery's maximum charging power, maximum discharging power, minimum capacity, maximum capacity, capacity at the start of energy storage, capacity at the end of energy storage, capacity, and the power provided by the grid.
[0007] The total electricity cost for the historical time period is calculated based on the charging and discharging power of the energy storage battery at different times and the maximum demand during the historical time period.
[0008] The optimal capacity energy storage battery is selected based on the total electricity cost over the historical period, assuming different battery capacities.
[0009] Optionally, the objective function is formulated as follows:
[0010]
[0011] Where t represents the time period after dividing the historical time period T into equal parts, and N represents the number of time periods. This represents the load excluding the energy storage battery during time period t. This represents the charging power of the energy storage battery in time period t. C represents the discharge power of the energy storage battery in time period t. t Let P represent the time-of-use electricity price for period t, Δt = T / N, C1 represent the unit demand electricity price, and P represent the time-of-use electricity price for period t. M This indicates the maximum demand during the historical period.
[0012] The constraints include:
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021] Among them, P C,Max P represents the maximum charging power of the energy storage battery. D,Max x represents the maximum discharge power of the energy storage battery. t +y t ≤1, and x t and y t All are integers, SOC t S represents the charge of the energy storage battery in time period t. min S represents the minimum capacity of the energy storage battery. max The State of Charge (SOC) indicates the maximum capacity of the energy storage battery. Start The State of Charge (SOC) indicates the initial charge level of the energy storage battery when it begins storing energy. End This indicates the charge level of the energy storage battery when energy storage ends, and E represents the capacity of the energy storage battery. Indicates the power supplied by the power grid. This represents the lower limit of the maximum demand. This represents the upper limit of the maximum required quantity.
[0022] Optionally, if the energy storage battery is charged and discharged twice a day, then when the electricity price is at parity during the period t between the first charge and discharge of the energy storage battery, x t +y t =0.
[0023] Optionally, if the energy storage battery is charged and discharged once a day and the electricity price in time period t is at parity, then x t +y t =0.
[0024] Optionally, the step of selecting the optimal capacity energy storage battery based on the total electricity cost over the historical time period when configuring energy storage batteries of different capacities specifically includes:
[0025] The optimal capacity energy storage battery is selected based on the total electricity cost during the historical period with different capacity energy storage batteries, the total electricity cost during the historical period without energy storage batteries, and the cost of the energy storage batteries.
[0026] Optionally, the historical time period is a historical month.
[0027] Optionally, the energy storage configuration method further includes the following steps:
[0028] If the current load exceeds the maximum demand during the historical time period, the energy storage battery is controlled to discharge.
[0029] A second aspect of the present invention provides an energy storage configuration system, comprising:
[0030] The acquisition module is used to acquire, when an energy storage battery is configured, the load, time-of-use electricity price, and unit demand electricity cost within a historical time period, excluding the energy storage battery; wherein the historical time period is divided into several different time periods.
[0031] The first calculation module is used to calculate the charging power and discharging power of the energy storage battery at different times, as well as the maximum demand during the historical time period, with the objective function being the minimum total electricity cost within the historical time period, and according to the constraints. The constraints are set based on the energy storage battery's maximum charging power, maximum discharging power, minimum capacity, maximum capacity, capacity at the start of energy storage, capacity at the end of energy storage, capacity, and the power provided by the grid.
[0032] The second calculation module is used to calculate the total electricity cost during the historical time period based on the charging power and discharging power of the energy storage battery at different times and the maximum demand during the historical time period.
[0033] The selection module is used to select the energy storage battery with the optimal capacity based on the total electricity cost within the historical time period when different capacity energy storage batteries are configured.
[0034] A third aspect of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the energy storage configuration method described in the first aspect.
[0035] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the energy storage configuration method described in the first aspect.
[0036] The positive and progressive effects of this invention are as follows: by using the minimum total electricity cost within a historical time period as the objective function, and based on the set constraints, the charging and discharging power of the energy storage battery at different times, as well as the maximum demand within the historical time period, can be calculated. This allows for the calculation of the total electricity cost within the historical time period. Based on the total electricity cost within the historical time period when configuring energy storage batteries of different capacities, the optimal capacity energy storage battery can be selected. Based on the optimal capacity energy storage battery, the user's electricity cost can be reduced to the maximum extent. Attached Figure Description
[0037] Figure 1 This is a flowchart illustrating an energy storage configuration method provided in Embodiment 1 of the present invention.
[0038] Figure 2 This is a schematic diagram of user load data collection provided in Embodiment 1 of the present invention.
[0039] Figure 3 This is a schematic diagram of a time-of-use electricity pricing scheme provided in Embodiment 1 of the present invention.
[0040] Figure 4 This is a power curve provided in Embodiment 1 of the present invention.
[0041] Figure 5 This is a schematic diagram of the energy storage battery being charged and discharged twice a day, as provided in Embodiment 1 of the present invention.
[0042] Figure 6 This is a schematic diagram of a daily charge and discharge cycle for an energy storage battery provided in Embodiment 1 of the present invention.
[0043] Figure 7 This is a structural block diagram of an energy storage configuration system provided in Embodiment 1 of the present invention.
[0044] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. Detailed Implementation
[0045] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0046] Example 1
[0047] Figure 1 This is a flowchart illustrating an energy storage configuration method provided in this embodiment. This energy storage configuration method can be executed by an energy storage configuration system, which can be implemented through software and / or hardware. The energy storage configuration system can be part or all of an electronic device. In this embodiment, the electronic device can be a personal computer (PC), such as a desktop, all-in-one, laptop, or tablet computer, or it can be a mobile phone, wearable device, or PDA (Personal Digital Assistant) terminal device.
[0048] In practical implementation, the energy storage configuration method provided in this embodiment can be applied to buildings, power stations, and other locations. The following description uses electronic devices as the execution subject to illustrate the energy storage configuration method provided in this embodiment. Figure 1 As shown, the energy storage configuration method provided in this embodiment may include the following steps S1 to S4:
[0049] Step S1: If an energy storage battery is configured, obtain the load, time-of-use electricity price, and unit demand electricity cost for the period excluding the energy storage battery.
[0050] The historical time period is divided into several different time intervals. In one optional implementation, the historical time period is a historical month, that is, the past month. For example, the past month can be divided into 30*24*60 / 15 = 2880 time intervals with a time interval of 15 minutes.
[0051] In practice, energy storage batteries can be configured in buildings, stations, and other locations, and the configured energy storage batteries can be controlled to charge when the electricity price is low and discharge when the electricity price is high.
[0052] In a specific example, the load excluding energy storage batteries, i.e., the user load, is collected over the past month. Figure 2 As shown, the peak user load reached 1330kW.
[0053] In a specific example, the time-of-use electricity pricing for industrial and commercial users is shown in Table 1 and... Figure 3 As shown.
[0054] Table 1
[0055] Time period (h) 0-7 7-10 10-15 15-18 18-21 21-24 Electricity price (yuan / kWh) 0.316 0.678 1.106 0.678 1.106 0.678
[0056] The aforementioned time-of-use electricity prices include low price, flat price, and high price. Specifically, the low price is 0.316 yuan / kWh, the flat price is 0.678 yuan / kWh, and the high price is 1.106 yuan / kWh.
[0057] Step S2: Using the minimum total electricity cost within the historical time period as the objective function, and based on the constraints, calculate the charging power and discharging power of the energy storage battery at different times, as well as the maximum demand within the historical time period.
[0058] In specific implementation, the load, time-of-use electricity price, and unit demand electricity cost obtained in step S1 are substituted into the objective function, and the charging power and discharging power of the energy storage battery in different time periods, as well as the maximum demand in the historical time period, are calculated according to the constraints.
[0059] The constraints are set based on the energy storage battery's maximum charging power, maximum discharging power, minimum capacity, maximum capacity, initial capacity at the start of energy storage, initial capacity at the end of energy storage, capacity, and the power supplied by the grid. Specifically, the initial capacity and the initial capacity of the energy storage battery at the end of energy storage can be set according to actual conditions.
[0060] In one optional implementation, industrial and commercial users are charged electricity according to a two-part tariff system. The total electricity bill includes a basic electricity charge, i.e., the actual electricity cost, and a power consumption charge, i.e., the additional electricity cost incurred based on maximum demand. The formula for the above objective function is:
[0061]
[0062] Where t represents the time period after dividing the historical time period T into equal parts, and N represents the number of time periods. This represents the load excluding the energy storage battery during time period t. This represents the charging power of the energy storage battery in time period t. C represents the discharge power of the energy storage battery in time period t. t Let P represent the time-of-use electricity price for period t, Δt = T / N, C1 represent the unit demand electricity price, and P represent the time-of-use electricity price for period t. M This indicates the maximum demand during the historical time period.
[0063] The above constraints include:
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072] Among them, P C,Max P represents the maximum charging power of the energy storage battery. D,Max x represents the maximum discharge power of the energy storage battery. t +y t ≤1, and x t and y t All are integers, SOC t S represents the charge of the energy storage battery in time period t. min S represents the minimum capacity of the energy storage battery. max The State of Charge (SOC) indicates the maximum capacity of the energy storage battery. Start The State of Charge (SOC) indicates the initial charge level of the energy storage battery when it begins storing energy. End This indicates the charge level of the energy storage battery when energy storage ends, and E represents the capacity of the energy storage battery. Indicates the power supplied by the power grid. This represents the lower limit of the maximum demand. This represents the upper limit of the maximum demand. Among the constraints mentioned above, SOC... 1+n*N / T =SOC Start This indicates that the initial capacity of the energy storage battery is the same every day when it begins storing energy; SOC (State of Charge) N / T+n*N / T =SOC End This indicates that the capacity of the energy storage battery is the same every day when it ends its energy storage.
[0073] In a specific example, T = 30 days, N = 30 * 24 * 60 / 15 = 2880, SOC Start =0.1, SOC End =0.1, S min =0.1, S max =1, P C,Max =0.5C, P D,Max =0.5C, C1 = 40 yuan / KW (taking Shanghai as an example). Therefore: 0.1≤SOC t ≤1; SOC 1+n*96 =0.1; SOC 96+n*96 =0.1.
[0074] In this embodiment, the charging power of the energy storage battery in time period t is calculated using the above objective function and the above constraints. Discharge power and the maximum demand P within the historical period M The specific solution process can be implemented using software such as MATLAB.
[0075] Figure 4 Used to illustrate a power curve. For example... Figure 4 As shown, based on the collected loads outside the energy storage battery and the above constraints, the charging power and discharging power of the energy storage battery at different times can be calculated.
[0076] In one optional implementation, the energy storage battery is charged and discharged twice a day, sequentially including four processes: charging, discharging, recharging, and re-discharging. Between the first charging and discharging of the energy storage battery, and when the electricity price in time period t is at parity, the energy storage battery neither charges nor discharges. t +y t =0, that is, x t =0, and y t =0; while in all other cases it is x t +y t =1, when x t =1 and y t When x = 0, the energy storage battery is charged; when x = 0, the energy storage battery is charged. t =0 and y t When the value is 1, the energy storage battery discharges. In the case of... Figure 5 In the example shown, the energy storage battery is charged and discharged twice a day. The solid line represents the SOC value (State of Charge) of the energy storage battery, i.e., its capacity. An upward solid line indicates that the energy storage battery is charging, and a downward solid line indicates that the energy storage battery is discharging. The dashed lines represent time-of-use electricity prices, from low to high: low price, flat price, and high price.
[0077] In an alternative embodiment, the energy storage battery is charged and discharged once a day, consisting of two processes: charging and discharging. When the electricity price is at parity during time period t, the energy storage battery neither charges nor discharges. t +y t =0, that is, x t =0, and y t =0; while the energy storage battery is charged when the electricity price is low, x t =1 and y t =0, the energy storage battery discharges when the electricity price is high, x t =0 and y t =1. In such cases Figure 6In the example shown, the energy storage battery is charged and discharged once a day. The solid line represents the SOC value (State of Charge) of the energy storage battery, i.e., its capacity. An upward solid line indicates that the energy storage battery is charging, and a downward solid line indicates that the energy storage battery is discharging. The dashed lines represent time-of-use electricity prices, from low to high: low price, flat price, and high price.
[0078] Step S3: Calculate the total electricity cost for the historical time period based on the charging and discharging power of the energy storage battery at different times and the maximum demand during the historical time period.
[0079] In practical implementation, the charging and discharging power of the energy storage battery at different times, calculated in step S2, and the maximum demand during the historical time period can be substituted into the following formula to calculate the total electricity cost Sum_Charge during the historical time period:
[0080]
[0081] Step S4: Select the optimal capacity energy storage battery based on the total electricity cost over the historical time period when configuring energy storage batteries of different capacities. In practice, configuring the optimal capacity energy storage battery can minimize the user's electricity costs, thereby improving the user experience.
[0082] In a specific example, the following energy storage batteries are configured: 200kW, 300kW, 400kW, 500kW, 600kW, 700kW, and 800kW. The total electricity cost for the historical time period is calculated for each energy storage battery capacity. The energy storage battery with the optimal capacity is selected based on all the calculated total electricity costs.
[0083] In one alternative implementation, the optimal capacity energy storage battery is the one that generates the lowest total electricity cost after configuring the energy storage battery with that capacity.
[0084] In an alternative implementation, the optimal capacity energy storage battery is the one that generates the highest rate of return after configuring it. Step S4 specifically includes: selecting the optimal capacity energy storage battery based on the total electricity cost during the historical period with different capacity energy storage batteries configured, the total electricity cost during the historical period without energy storage batteries configured, and the cost of the energy storage battery. In this implementation, the rate of return = revenue / cost = (total electricity cost generated with energy storage battery configured - total electricity cost generated without energy storage battery configured) / cost of energy storage battery.
[0085] In one optional embodiment, the above energy storage configuration method further includes the following step: if the current load exceeds the maximum demand within the historical time period, then the energy storage battery is controlled to discharge. In this embodiment, the current charge / discharge state of the energy storage battery is controlled based on the maximum demand within the historical time period. In a specific example, the charge / discharge state of the energy storage battery for the current month is controlled based on the maximum demand within the past month. If the current load exceeds the maximum demand within the past month, regardless of whether the electricity price is high, the energy storage battery is controlled to discharge, thereby achieving the purpose of reducing the load.
[0086] This embodiment also provides an energy storage configuration system 70, such as Figure 7 As shown, it includes an acquisition module 71, a first calculation module 72, a second calculation module 73, and a selection module 74.
[0087] The acquisition module 71 is used to acquire the load, time-of-use electricity price, and unit demand electricity cost excluding the energy storage battery during a historical time period when an energy storage battery is configured; wherein the historical time period is divided into several different time periods.
[0088] The first calculation module 72 is used to calculate the charging power and discharging power of the energy storage battery at different times, as well as the maximum demand during the historical time period, with the objective function being the minimum total electricity cost within the historical time period, and according to the constraints. The constraints are set based on the maximum charging power, maximum discharging power, minimum energy, maximum energy, energy at the start of energy storage, energy at the end of energy storage, capacity, and the power provided by the power grid.
[0089] The second calculation module 73 is used to calculate the total electricity cost during the historical time period based on the charging power and discharging power of the energy storage battery at different times and the maximum demand during the historical time period.
[0090] The selection module 74 is used to select the energy storage battery with the optimal capacity based on the total electricity cost during the historical time period when different capacity energy storage batteries are configured.
[0091] In one optional implementation, the selection module is specifically used to select the energy storage battery with the optimal capacity based on the total electricity cost during the historical period when different capacity energy storage batteries are configured, the total electricity cost during the historical period when no energy storage battery is configured, and the cost of the energy storage battery.
[0092] In one optional embodiment, the energy storage configuration system further includes a discharge control module for controlling the energy storage battery to discharge when the current load exceeds the maximum demand during the historical time period.
[0093] It should be noted that the energy storage configuration system in this embodiment can be a separate chip, chip module or electronic device, or it can be a chip or chip module integrated into an electronic device.
[0094] Regarding the various modules / units included in the energy storage configuration system described in this embodiment, they may be software modules / units, hardware modules / units, or a combination of both.
[0095] Example 2
[0096] Figure 8 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the energy storage configuration method of Embodiment 1. The electronic device provided in this embodiment can be a personal computer, such as a desktop computer, all-in-one computer, laptop computer, tablet computer, etc., and can also be a mobile phone, wearable device, PDA, and other terminal devices. Figure 8 The electronic device 3 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0097] The components of the electronic device 3 may include, but are not limited to: at least one processor 4, at least one memory 5, and a bus 6 connecting different system components (including memory 5 and processor 4).
[0098] Bus 6 includes a data bus, an address bus, and a control bus.
[0099] The memory 5 may include volatile memory, such as random access memory (RAM) 51 and / or cache memory 52, and may further include read-only memory (ROM) 53.
[0100] The memory 5 may also include a program / utility 55 having a set (at least one) of program modules 54, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0101] The processor 4 executes various functional applications and data processing, such as the energy storage configuration method described above, by running computer programs stored in the memory 5.
[0102] Electronic device 3 can also communicate with one or more external devices 7 (e.g., keyboard, pointing device, etc.). This communication can be performed through input / output (I / O) interface 8. Furthermore, electronic device 3 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 9. Figure 8 As shown, network adapter 9 communicates with other modules of electronic device 3 via bus 6. It should be understood that, although... Figure 8 Not shown, it can be combined with electronic device 3 to use other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0103] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0104] Example 3
[0105] This embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the energy storage configuration method of Embodiment 1.
[0106] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0107] In a possible implementation, the present invention can also be implemented as a program product comprising program code that, when the program product is run on an electronic device, causes the electronic device to execute the energy storage configuration method of Embodiment 1.
[0108] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on an electronic device, partially on an electronic device, as a standalone software package, partially on an electronic device and partially on a remote device, or entirely on a remote device.
[0109] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. An energy storage configuration method, characterized in that, The method comprises the following steps: In the case of configuring the energy storage battery, the load, time-of-use electricity price and unit demand charge in a historical period except the energy storage battery are acquired, wherein the historical period is divided into several different time periods; The total electricity charge in the historical period is taken as an objective function, and the charging power and discharging power of the energy storage battery in different time periods and the maximum demand in the historical period are calculated according to a constraint condition, wherein the constraint condition is set based on the maximum charging power, maximum discharging power, minimum power, maximum power, power at the beginning of energy storage, power at the end of energy storage, capacity and power provided by the power grid of the energy storage battery; The total electricity charge in the historical period is calculated according to the charging power and discharging power of the energy storage battery in different time periods and the maximum demand in the historical period; The optimal capacity of the energy storage battery is selected according to the total electricity charge in the historical period in the case of configuring the energy storage battery with different capacities, the total electricity charge in the historical period in the case of not configuring the energy storage battery and the cost of the energy storage battery, wherein the optimal capacity of the energy storage battery is the capacity of the energy storage battery after which the maximum yield rate is generated; the yield rate is the ratio of the difference between the total electricity charge generated by the energy storage battery and the total electricity charge generated by the energy storage battery without the energy storage battery to the cost of the energy storage battery.
2. The energy storage configuration method of claim 1, wherein, The formula of the objective function is: in, This represents the time period after dividing the historical time period T into equal parts. Indicates the number of time periods. Indicates the first The load during the time period other than the energy storage battery, Indicates that the energy storage battery in the first Charging power during the period Indicates that the energy storage battery in the first Discharge power during the period Indicates the first Time-of-use electricity pricing for different time periods , This indicates the unit demand for electricity. This indicates the maximum demand during the historical period. The constraint condition comprises: wherein represents the maximum charging power of the energy storage battery, represents the maximum discharging power of the energy storage battery, , and and are integers, represents the amount of electricity of the energy storage battery at the time interval, represents the minimum amount of electricity of the energy storage battery, represents the maximum amount of electricity of the energy storage battery, represents the amount of electricity of the energy storage battery at the beginning of energy storage, represents the amount of electricity of the energy storage battery at the end of energy storage, represents the capacity of the energy storage battery, represents the power provided by the power grid, represents the lower limit value of the maximum demand, represents the upper limit value of the maximum demand.
3. The energy storage configuration method of claim 2, wherein, If the energy storage battery is charged and discharged twice a day, the electricity price of the period between the first charging and discharging of the energy storage battery and the second charging and discharging of the energy storage battery is flat. If the electricity price of the period is flat, .
4. The energy storage configuration method of claim 2, wherein, If the energy storage battery is charged and discharged once a day and the electricity price of the first time period is flat, then .
5. The energy storage configuration method of claim 1, wherein, The historical period is a historical month.
6. The energy storage configuration method of any one of claims 1-5, wherein, The energy storage configuration method further comprises the following steps: If the current load exceeds the maximum demand in the historical period, the energy storage battery is controlled to discharge.
7. An energy storage configuration system, characterized by, The method comprises: An acquisition module is configured to acquire, in the case of configuring the energy storage battery, the load, time-of-use electricity price and unit demand charge in a historical period except the energy storage battery, wherein the historical period is divided into several different time periods; A first calculation module is configured to take the total electricity charge in the historical period as an objective function, and calculate the charging power and discharging power of the energy storage battery in different time periods and the maximum demand in the historical period according to a constraint condition, wherein the constraint condition is set based on the maximum charging power, maximum discharging power, minimum power, maximum power, power at the beginning of energy storage, power at the end of energy storage, capacity and power provided by the power grid of the energy storage battery; A second calculation module is configured to calculate the total electricity charge in the historical period according to the charging power and discharging power of the energy storage battery in different time periods and the maximum demand in the historical period; A selection module is configured to select the optimal capacity of the energy storage battery according to the total electricity charge in the historical period in the case of configuring the energy storage battery with different capacities, the total electricity charge in the historical period in the case of not configuring the energy storage battery and the cost of the energy storage battery, wherein the optimal capacity of the energy storage battery is the capacity of the energy storage battery after which the maximum yield rate is generated; the yield rate is the ratio of the difference between the total electricity charge generated by the energy storage battery and the total electricity charge generated by the energy storage battery without the energy storage battery to the cost of the energy storage battery.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The computer program is executed by the processor to implement the energy storage configuration method in any one of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the energy storage configuration method in any one of claims 1-6.