Building battery energy storage capacity rapid determination method and device, and storage medium
By processing building energy usage data and the peak-to-valley electricity price difference between the power grid and the optimization model, the systemic problem of building battery energy storage capacity configuration is solved, and the rapid and accurate capacity calibration is achieved, cost and time is reduced, and applicable to various types of architecture.
Patent Information
- Application Number
- CN202411084508.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, there is a lack of systematic methods for the configuration of energy storage capacity of building batteries, which leads to high cost and inequality in fixed capacity, and it is impossible to quickly and accurately select appropriate battery capacity for different buildings.
By processing building energy consumption data, key parameters and typical daily electricity curves are extracted, combined with the power grid peak-to-valley electricity price difference, an optimization model is established to solve the economical optimal energy storage capacity, and the capacity is quickly determined using regression analysis.
It realizes the rapid and accurate capacity of building battery energy storage capacity, reduces personnel and time costs, and is suitable for various types of buildings.
Smart Images

Figure CN118944150A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of building energy storage technology, and in particular to a method, device and storage medium for quickly determining the energy storage capacity of a building battery. Background Art
[0002] With the approach of the dual carbon goals and the rapid development of building photovoltaics, how to solve the mismatch between building power generation and energy consumption has become a focus of concern for people from all walks of life, and energy storage systems are one of the important ways to solve this problem. Compared with thermal energy storage systems, battery energy storage has no delay and is directly compatible with photovoltaic systems, which has also become one of the development directions in the construction field.
[0003] However, there is currently no mature system for selecting the appropriate battery capacity for buildings. Many studies focus on configuring the battery capacity for a specific building. The energy storage capacity is often obtained by establishing and solving the corresponding optimization model. The time and labor costs required are relatively large, and the results are not universal. Summary of the invention
[0004] In view of the defects in the prior art, the purpose of the present invention is to provide a method, device and storage medium for quickly determining the energy storage capacity of building batteries, which can solve the problem of having no basis for accurately determining the capacity of building batteries, as well as the problems of long time and high personnel costs in establishing optimization models.
[0005] To solve the above problems, the technical solution of the present invention is:
[0006] A method for quickly determining the energy storage capacity of a building battery comprises the following steps:
[0007] By processing and analyzing the building energy consumption data, key parameters of building energy storage and typical daily electricity consumption curves are obtained;
[0008] By collecting local time-of-use electricity prices and combining them with battery performance parameters, the peak-valley price difference of the power grid considering the battery charging and discharging efficiency is obtained;
[0009] Establish an optimization model and solve it to obtain the economically optimal energy storage capacity of the building;
[0010] The economically optimal energy storage capacity of each building is regressed with its key parameters to obtain the regression relationship, and the building energy storage is quickly determined.
[0011] Preferably, the step of obtaining key parameters for building energy storage and a typical daily electricity consumption curve by processing and analyzing building energy consumption data specifically includes:
[0012] Obtain actual energy consumption data of several buildings;
[0013] Preprocess the actual energy consumption data of the building;
[0014] Extract key parameters of building energy consumption;
[0015] Extract the typical daily electricity consumption curve.
[0016] Preferably, the key parameter of building energy consumption is the annual average daily peak power consumption E p,annual , the expression is: Among them, E p,i is the peak power consumption and peak power price at the time of day i.
[0017] Preferably, the typical day is divided according to season, electricity price, working day or weekend, and the typical day electricity consumption curve is replaced by the average value of each time in the typical day.
[0018] Preferably, the step of collecting local time-of-use electricity prices and obtaining the peak-valley electricity price difference of the power grid considering the battery charging and discharging efficiency in combination with battery performance parameters specifically includes:
[0019] S21: Collect local time-of-use electricity price policies and pay attention to the distribution and prices of different electricity price periods;
[0020] S22: Setting battery charge and discharge efficiency;
[0021] S23: Calculate the peak-valley price difference ΔC of the power grid considering the battery charging and discharging efficiency, as shown in the following formula:
[0022] ΔC=[η ch ·η dis ·C grid (t2)-C grid (t1)]
[0023] Among them, η ch is the battery charging efficiency, η dis is the battery discharge efficiency, C grid (t2) is the electricity price of the power grid at time t2, C grid (t1) is the electricity price of the power grid at time t1.
[0024] Preferably, the steps of establishing an optimization model and solving the optimization model to obtain the economically optimal energy storage capacity of the building specifically include:
[0025] S31: Establish the economic optimal optimization goal:
[0026]
[0027] Where P(i,j) is the battery charge amount under the jth electricity price difference on the i-th typical day, that is, the transfer amount when the peak / peak / flat load is transferred to the valley under the jth electricity price difference; Day(i) is the number of the i-th typical day in the whole year; Cap bat is the battery capacity; L cyc is the number of battery cycles; k is the initial investment per unit battery capacity;
[0028] S32: Setting optimization constraints;
[0029] The optimization constraint condition includes: for each typical day and each electricity price difference, the load transfer caused by the energy storage battery is not greater than the load under the typical day and the electricity price difference, and its expression is:
[0030] P(i,j)≤load(i,j)
[0031] Among them, load(i,j) is the load under the jth electricity price difference type on the i-th typical day;
[0032] The sum of each typical daily charge amount is not greater than the maximum chargeable capacity of the battery:
[0033]
[0034] Among them, SOC max SOC is the maximum value of battery state of charge; min is the minimum value of battery state of charge;
[0035] S33: Solve the optimization model to obtain the economically optimal energy storage capacity of the building.
[0036] Preferably, the step of performing a regression analysis on the economically optimal energy storage capacity of each building and its key parameters to obtain a regression relationship and quickly determining the capacity of the building energy storage specifically includes: performing a univariate linear regression analysis on the optimal energy storage capacity and the key parameters using the least squares method, assuming that the regression relationship is Cap bat =a×E p,annual +b, where a is the slope and b is the intercept. The value of coefficient a is calculated using the least squares method.
[0037] Furthermore, the present invention also provides a computer device, which includes a processor and a memory for storing executable instructions of the processor, and the processor is configured to execute the above-mentioned method for quickly determining the building battery energy storage capacity by executing the executable instructions.
[0038] Furthermore, the present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the method for quickly determining the energy storage capacity of a building battery as described above.
[0039] Compared with the prior art, the method for quickly determining the energy storage capacity of building batteries of the present invention can solve the problem of having no basis for accurately determining the capacity of building batteries, as well as the problem of too long time and too high personnel costs in establishing an optimization model, and has strong adaptability to various types of buildings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0041] Figure 1 This is a flowchart of a method for quickly determining the energy storage capacity of a building battery according to the present invention;
[0042] Figure 2 This is a detailed flow chart of the method for quickly determining the energy storage capacity of building batteries of the present invention. DETAILED DESCRIPTION
[0043] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0044] Specifically, the present invention provides a method for quickly determining the energy storage capacity of a building battery. Figure 1 and Figure 2 As shown, the method comprises the following steps:
[0045] S1: By processing and analyzing the building energy consumption data, key parameters of building energy storage and typical daily electricity consumption curves are obtained;
[0046] Specifically, the step S1 includes the following steps:
[0047] S11: Obtain actual energy consumption data of several buildings;
[0048] S12: Preprocessing actual building energy consumption data;
[0049] The preprocessing of the actual building energy consumption data includes data cleaning of outliers and missing values. For example, outliers can be deleted using a quartile test, and missing values can be filled with the average energy consumption of two adjacent upper and lower moments.
[0050] S13: Extract key parameters of building energy consumption;
[0051] For example, you can choose the annual average daily peak power consumption E p,annual , the expression is: Among them, Ep,i is the peak power consumption and peak power price at the time of day i.
[0052] S14: Extracting a typical daily electricity consumption curve.
[0053] For example, a typical day can be divided according to season, electricity price, weekday or weekend, and the typical day electricity consumption curve can be replaced by the average value of each time in the typical day.
[0054] S2: By collecting local time-of-use electricity prices and combining them with battery performance parameters, the peak-valley electricity price difference of the power grid is obtained considering the battery charging and discharging efficiency;
[0055] Specifically, step S2 includes the following steps:
[0056] S21: Collect local time-of-use electricity price policies and pay attention to the distribution and prices of different electricity price periods;
[0057] S22: Setting battery charge and discharge efficiency;
[0058] S23: Calculate the peak-valley price difference ΔC of the power grid considering the battery charging and discharging efficiency, as shown in the following formula:
[0059] ΔC=[η ch ·η dis ·C grid (t2)-C grid (t1)]
[0060] Among them, η ch is the battery charging efficiency, η dis is the battery discharge efficiency, C grid (t2) is the electricity price of the power grid at time t2, C grid (t1) is the electricity price of the power grid at time t1.
[0061] S3: Establish an optimization model and solve the optimization model to obtain the economically optimal energy storage capacity of the building;
[0062] Specifically, step S3 includes the following steps:
[0063] S31: Establish the economic optimization goal as follows:
[0064]
[0065] Where p(i,j) is the battery charge amount under the jth electricity price difference on the i-th typical day, that is, the transfer amount when the peak / peak / flat load is transferred to the valley under the jth electricity price difference; Day(i) is the number of typical days of the whole year; Ccap bat is the battery capacity; L cyc is the number of battery cycles; k is the initial investment per unit battery capacity.
[0066] S32: Setting optimization constraints;
[0067] The optimization constraint condition includes: for each typical day and each electricity price difference, the load transfer caused by the energy storage battery is not greater than the load under the typical day and the electricity price difference, and its expression is:
[0068] P(i,j)≤load(i,j)
[0069] Among them, load(i,j) is the load under the j-th electricity price difference type on the i-th typical day.
[0070] The sum of each typical daily charge amount is not greater than the maximum chargeable capacity of the battery:
[0071]
[0072] Among them, SOC max SOC is the maximum value of battery state of charge; min The minimum value of battery state of charge.
[0073] S33: Solve the optimization model to obtain the economically optimal energy storage capacity of the building.
[0074] S4: Perform regression analysis on the economically optimal energy storage capacity of each building and its key parameters to obtain a regression relationship and quickly determine the capacity of the building energy storage.
[0075] Specifically, the least square method is used to perform a univariate linear regression analysis on the optimal energy storage capacity and key parameters. The regression analysis includes: assuming that the regression relationship is Cap bat =a×E p,annual +b, where a is the slope and b is the intercept. When the annual average peak power consumption of the building is 0, theoretically speaking, the building energy storage capacity should also be 0. Therefore, the intercept b can be set to 0, and the value of the coefficient a can be calculated using the least squares method.
[0076] According to another aspect of an embodiment of the present application, a computer device is provided, which includes a processor and a memory for storing executable instructions of the processor, and the processor is configured to execute the method for quickly determining the building battery energy storage capacity described in the embodiment of the present application by executing the executable instructions.
[0077] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the method for quickly determining the energy storage capacity of a building battery described in the embodiment of the present application.
[0078] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A method for quickly determining the energy storage capacity of a building battery, characterized in that: The method comprises the following steps: By processing and analyzing the building energy consumption data, key parameters of building energy storage and typical daily electricity consumption curves are obtained; By collecting local time-of-use electricity prices and combining them with battery performance parameters, the peak-valley price difference of the power grid considering the battery charging and discharging efficiency is obtained; Establish an optimization model and solve it to obtain the economically optimal energy storage capacity of the building; The economically optimal energy storage capacity of each building is regressed with its key parameters to obtain the regression relationship, and the building energy storage is quickly determined.
2. The method for quickly determining the energy storage capacity of a building battery according to claim 1, characterized in that: The step of obtaining key parameters for building energy storage and a typical daily electricity consumption curve by processing and analyzing building energy consumption data specifically includes: Obtain actual energy consumption data of several buildings; Preprocess the actual energy consumption data of the building; Extract key parameters of building energy consumption; Extract the typical daily electricity consumption curve.
3. The method for quickly determining the energy storage capacity of a building battery according to claim 2, characterized in that: The key parameter of building energy consumption is the annual average daily peak power consumption E p,annual , the expression is: Among them, E p,i is the peak power consumption and peak power price at the time of day i.
4. The method for quickly determining the energy storage capacity of a building battery according to claim 2, characterized in that: The typical day is divided according to season, electricity price, working day or weekend, and the typical day electricity consumption curve is replaced by the average value of each time in the typical day.
5. The method for quickly determining the energy storage capacity of a building battery according to claim 1, characterized in that: The step of collecting local time-of-use electricity prices and obtaining the peak-valley electricity price difference of the power grid considering the battery charging and discharging efficiency in combination with battery performance parameters specifically includes: S21: Collect local time-of-use electricity price policies and pay attention to the distribution and prices of different electricity price periods; S22: Setting battery charge and discharge efficiency; S23: Calculate the peak-valley price difference ΔC of the power grid considering the battery charging and discharging efficiency, as shown in the following formula: ΔC=[η ch ·or dis ·C grid (t2)-C grid (t1)] Among them, η ch is the battery charging efficiency, η dis is the battery discharge efficiency, C grid (t2) is the electricity price of the power grid at time t2, C grid (t1) is the electricity price of the power grid at time t1.
6. The method for quickly determining the energy storage capacity of a building battery according to claim 1, characterized in that: The steps of establishing an optimization model and solving the optimization model to obtain the economically optimal energy storage capacity of the building specifically include: S31: Establish the economic optimal optimization goal: Where P(i, j) is the battery charge amount under the jth electricity price difference on the i-th typical day, that is, the transfer amount when the peak / peak / flat load is transferred to the valley under the jth electricity price difference; Day(i) is the number of the i-th typical day in the whole year; Cap bat is the battery capacity; L cyc is the number of battery cycles; k is the initial investment per unit battery capacity; S32: Setting optimization constraints; The optimization constraint condition includes: for each typical day and each electricity price difference, the load transfer caused by the energy storage battery is not greater than the load under the typical day and the electricity price difference, and its expression is: P(i, j)≤load(i, j) Among them, load(i, j) is the load under the j-th electricity price difference type on the i-th typical day; The sum of each typical daily charge amount is not greater than the maximum chargeable capacity of the battery: Among them, SOC max SOC is the maximum value of battery state of charge; min is the minimum value of battery state of charge; S33: Solve the optimization model to obtain the economically optimal energy storage capacity of the building.
7. The method for quickly determining the energy storage capacity of a building battery according to claim 1, characterized in that: The step of regressing the economic optimal energy storage capacity of each building with its key parameters to obtain a regression relationship and quickly determining the capacity of the building energy storage specifically includes: using the least squares method to perform a univariate linear regression analysis on the optimal energy storage capacity and key parameters, assuming that the regression relationship is Cap bat =a×E p,annual +b, where a is the slope and b is the intercept. The value of coefficient a is calculated using the least squares method.
8. A computer device, characterized in that: The computer device includes a processor and a memory for storing executable instructions of the processor, and the processor is configured to execute the method for quickly determining the building battery energy storage capacity as described in any one of claims 1 to 7 by executing the executable instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the method for quickly determining the energy storage capacity of a building battery as described in any one of claims 1-7.
