Energy distribution method and system for distributed energy storage micro energy network
By classifying the load of the distributed energy storage micro-energy network and optimizing the model, and adjusting the energy storage strategy based on climate data, the problem of insufficient flexibility and accuracy when the load changes in the existing technology is solved, and a more efficient energy storage system is realized. Energy distribution and power supply stability.
Patent Information
- Application Number
- CN202311873579.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-12-29
AI Technical Summary
The existing distributed energy storage micro-energy network lacks flexibility and accuracy when the load changes, resulting in unreasonable energy distribution, shortage of supply, or energy waste.
Classify historical power consumption data through preset classification rules, match the baseline demand model, and optimize the prediction sequence combined with climate data to dynamically adjust the charging and discharging strategy of energy storage equipment to ensure that the release line and energy storage line match the actual load conditions.
It improves the accuracy and flexibility of energy distribution, reduces data processing time, enhances system efficiency and reliability, and ensures the stability of power supply.
Smart Images

Figure CN118134141B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology for power distribution networks, and in particular to an energy distribution method and system for a micro-energy network with distributed energy storage. Background Art
[0002] As a new type of power network that comprehensively utilizes multiple energy sources and realizes intelligent management, the distributed energy storage micro-energy grid system is of great significance for improving energy utilization efficiency and ensuring the stability of power supply. The system integrates renewable energy such as solar energy and wind energy and fuel cells, and cooperates with energy storage units to achieve flexible scheduling and optimized distribution of energy.
[0003] In the existing micro-energy grid management strategy, a series of fixed rules are usually used for the energy allocation of distributed energy storage. These rules guide the charging and discharging operations of energy storage devices according to the set load forecasting model, aiming to ensure the continuity of power supply and the operating efficiency of the system.
[0004] However, fixed rules lack sufficient flexibility and accuracy in dealing with different loads, resulting in unreasonable energy allocation, insufficient supply or energy waste. Summary of the invention
[0005] The present application provides an energy distribution method and system for a distributed energy storage micro-energy grid, which makes the formulation of release lines and energy storage lines closer to the actual power consumption of the load, thereby improving accuracy and flexibility.
[0006] In a first aspect, the present application provides an energy distribution method for a distributed energy storage micro energy grid, comprising:
[0007] Classify the historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of power consumption changes over time;
[0008] Find the current baseline demand model corresponding to the classification result in the preset model library, where the preset model library includes the baseline demand models that are pre-set and correspond to all the classification results one by one;
[0009] Use historical electricity consumption data to optimize the parameters in the current baseline demand model to obtain a preliminary optimized baseline demand model;
[0010] Outputting a future sequence of power consumption changes over time of the current load in a future preset time period by using a preliminary optimized baseline demand model;
[0011] Obtain climate data for a preset time period in the future;
[0012] According to the climate data, the future sequence is adjusted using the preset impact table to obtain the optimized sequence;
[0013] The release line and energy storage line are determined according to the current power of the energy storage device corresponding to the current load and the optimization sequence. The release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
[0014] In the above embodiment, in the case of rapid classification of historical electricity consumption data, by building and maintaining a preset model library, the corresponding baseline demand model can be easily matched. The cumbersome process of establishing an independent model for each load is avoided, and the time required for data processing is significantly reduced, thereby improving overall efficiency. Next, the selected baseline demand model parameters are optimized to ensure that the output of the model is closer to the actual electricity consumption of each load, which not only improves the accuracy of the model, but also increases the flexibility of handling various load conditions. At the same time, by taking future climate data into consideration and carefully adjusting the prediction model, the prediction sequence can more accurately reflect the fluctuations in electricity demand caused by environmental changes, ensuring the reliability of the prediction. At the same time, based on these optimized prediction sequences, more accurate energy storage equipment charging and discharging strategies can be formulated, which improves the accuracy and flexibility of the rules.
[0015] In conjunction with some embodiments of the first aspect, in some embodiments, the step of determining the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence specifically includes:
[0016] Calculate the amount of energy deficit above the initial release line in the optimization sequence;
[0017] Calculate the total amount of abundant energy above the initial energy storage line in the optimization sequence;
[0018] Adjust the initial release line and the initial energy storage line so that the difference between the total amount of surplus energy and the total amount of deficit energy is equal to the current power.
[0019] In the above embodiment, the accuracy of the strategy is improved by measuring the deficit energy and surplus energy in the optimization sequence and adjusting the release line and energy storage line so that the difference between the surplus energy and the deficit energy is equal to the current power.
[0020] In conjunction with some embodiments of the first aspect, in some embodiments, the step of calculating the total amount of deficit energy above the initial release line in the optimization sequence specifically includes:
[0021] For all time points in the optimization sequence where the power level is lower than the initial release line, the difference between the corresponding power consumption and the initial release line is calculated;
[0022] All differences are accumulated to obtain the total amount of energy deficit.
[0023] In the above embodiment, the total amount of energy deficit with a certain accuracy is obtained by measuring and accumulating the energy difference when the power consumption is lower than the initial release line at all times.
[0024] In conjunction with some embodiments of the first aspect, in some embodiments, the steps of optimizing the parameters in the current baseline demand model using the historical electricity consumption data to obtain a preliminary optimized baseline demand model specifically include:
[0025] Intercept the built-in sequence in the current baseline demand model to make the time length of the built-in sequence consistent with the historical sequence;
[0026] The average power consumption at the same time in the historical sequence and the built-in sequence is averaged to obtain the average sequence;
[0027] The average sequence is used to replace the built-in sequence to obtain a preliminary optimized baseline demand model.
[0028] In the above embodiment, by adjusting the built-in sequence time length of the baseline model to be consistent with the historical electricity consumption data sequence, the time synchronization when comparing the data is ensured. At the same time, by averaging the power consumption data at the corresponding time points, the generated average sequence not only reflects the statistical characteristics of the actual load conditions, but also integrates the built-in prediction logic of the model.
[0029] In conjunction with some embodiments of the first aspect, in some embodiments, after the step of averaging the power consumption at the same time in the historical sequence and the built-in sequence to obtain the average sequence, the method further includes:
[0030] Take the square difference of the power consumption at the same time in the historical series and the average series to obtain the square first square difference set;
[0031] Take the square difference of the power consumption at the same time in the built-in sequence and the average sequence to obtain the second square difference set;
[0032] Using an optimization algorithm to adjust the average sequence so that the sum of all square differences in the first square difference set plus the second square difference set is minimized;
[0033] The steps of replacing the built-in sequence with the average sequence to obtain the preliminary optimization of the baseline demand model include:
[0034] The built-in sequence is replaced by the adjusted average sequence to obtain a preliminary optimized baseline demand model.
[0035] In the above embodiment, by calculating the square difference between the historical sequence and the average sequence, a first square difference set is obtained to measure the deviation between the historical data and the current model prediction. Similarly, the square difference between the built-in sequence and the average sequence is calculated to form a second square difference set, and the optimization algorithm is used to minimize the sum of the two square difference sets, so that the generated average sequence better reflects the statistical characteristics of the actual load situation and is more in line with the prediction logic built into the model.
[0036] In conjunction with some embodiments of the first aspect, in some embodiments, the step of classifying the historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load specifically includes:
[0037] Calculate the historical volatility of the historical series in the historical electricity consumption data;
[0038] According to the matching result of the preset classification rules and the historical fluctuation rate, the fluctuation classification result of the current load is determined;
[0039] Calculate the historical average electricity consumption of the historical series in the historical electricity consumption data;
[0040] Determine the average power consumption classification result of the current load according to the matching result of the preset classification rule and the historical average power consumption;
[0041] A set of the fluctuation classification result and the average power consumption classification result is determined as the classification result of the current load.
[0042] In the above embodiment, by calculating the historical volatility in the historical power consumption data, it is possible to identify and distinguish load types with different volatility characteristics, and then by analyzing the historical average power consumption of the historical sequence and classifying according to preset rules, it is possible to further distinguish between high-consumption loads and low-consumption loads. Combining the volatility classification results and the average power consumption classification results to obtain the comprehensive classification results of the current load can provide a more complex and comprehensive load portrait for the power system and achieve more refined classification.
[0043] In combination with some embodiments of the first aspect, in some embodiments, after the step of determining the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence, the method further includes:
[0044] After determining that the preset sub-time period has passed, the step of acquiring climate data for a future preset time period is performed, the preset sub-time period being smaller than the future preset time period.
[0045] In the above embodiment, the instant acquisition of climate data enables the energy storage system to adapt to real-time climate changes, so that the release or storage of electricity can be adjusted in time when climate conditions change, making the strategy more accurate.
[0046] In a second aspect, an embodiment of the present application provides an energy distribution system for a micro energy grid with distributed energy storage, including:
[0047] A classification module, used to classify the historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of changes in power consumption over time;
[0048] A search module is used to find the current baseline demand model corresponding to the classification result in a preset model library, wherein the preset model library includes baseline demand models that are pre-set and correspond to all classification results one by one;
[0049] An optimization module, used to optimize the parameters in the current baseline demand model using historical electricity consumption data to obtain a preliminary optimized baseline demand model;
[0050] An output module, used for outputting a future sequence of power consumption of the current load over time in a future preset time period by using a preliminary optimized baseline demand model;
[0051] An acquisition module is used to obtain climate data for a preset time period in the future;
[0052] An adjustment module is used to adjust the future sequence using a preset impact table according to climate data to obtain an optimized sequence;
[0053] The decision module is used to determine the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence. The release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
[0054] In conjunction with some embodiments of the second aspect, in some embodiments, the decision module specifically includes:
[0055] A first calculation submodule is used to calculate the total amount of deficit energy above the initial release line in the optimization sequence;
[0056] The second calculation submodule is used to calculate the total amount of abundant energy above the initial energy storage line in the optimization sequence;
[0057] The adjustment submodule is used to adjust the initial release line and the initial energy storage line so that the difference between the total amount of surplus energy and the total amount of deficit energy is equal to the current power.
[0058] In conjunction with some embodiments of the second aspect, in some embodiments, the first computing submodule specifically includes:
[0059] a difference unit, for calculating the difference between the corresponding power consumption and the initial release line for all time points in the optimization sequence with a power level lower than the initial release line;
[0060] The accumulation unit is used to accumulate all differences to obtain the total amount of deficit energy.
[0061] In conjunction with some embodiments of the second aspect, in some embodiments, the optimization module specifically includes:
[0062] The interception submodule is used to intercept the built-in sequence in the current baseline demand model so that the time length of the built-in sequence is consistent with the historical sequence;
[0063] The averaging submodule is used to average the power consumption at the same time in the historical sequence and the built-in sequence to obtain an average sequence;
[0064] The replacement submodule is used to replace the built-in sequence with the average sequence to obtain a preliminary optimized baseline demand model.
[0065] In conjunction with some embodiments of the second aspect, in some embodiments, the optimization module specifically further includes:
[0066] The first square difference submodule is used to obtain a square first square difference set by taking the square difference of the power consumption at the same time in the historical sequence and the average sequence;
[0067] The second square difference submodule is used to obtain a square difference set of the power consumption at the same time in the built-in sequence and the average sequence;
[0068] An adjustment submodule, used to adjust the average sequence by using an optimization algorithm so that the sum of all square differences in the first square difference set plus the second square difference set is minimized;
[0069] The replacement submodule is used to replace the built-in sequence with the adjusted average sequence to obtain a preliminary optimized baseline demand model.
[0070] In conjunction with some embodiments of the second aspect, in some embodiments, the classification module specifically includes:
[0071] The first calculation submodule is used to calculate the historical volatility of the historical sequence in the historical electricity consumption data;
[0072] The fluctuation submodule is used to determine the fluctuation classification result of the current load according to the matching result of the preset classification rule and the historical fluctuation rate;
[0073] The second calculation submodule is used to calculate the historical average power consumption of the historical sequence in the historical power consumption data;
[0074] The balancing submodule is used to determine the average power consumption classification result of the current load according to the matching result of the preset classification rule and the historical average power consumption;
[0075] The determination submodule is used to determine the set of the fluctuation classification result and the average power consumption classification result as the classification result of the current load.
[0076] In conjunction with some embodiments of the second aspect, in some embodiments, the system further includes:
[0077] The loop submodule is used to execute the step of acquiring climate data for a future preset time period after determining that a preset sub-time period has passed, wherein the preset sub-time period is smaller than the future preset time period.
[0078] In a third aspect, an embodiment of the present application provides an energy distribution system for a micro energy grid with distributed energy storage, the system comprising: one or more processors and a memory;
[0079] The memory is coupled to the one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors call the computer instructions to enable the energy distribution system of the distributed energy storage micro-energy grid to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0080] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when the computer program product is run on a server, enables the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0081] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions. When the above instructions are executed on an energy distribution system of a micro-energy grid with distributed energy storage, the energy distribution system of the micro-energy grid with distributed energy storage executes the method described in the first aspect and any possible implementation method of the first aspect.
[0082] It can be understood that the energy distribution system of the distributed energy storage micro energy network provided in the second aspect, the energy distribution system of the distributed energy storage micro energy network provided in the third aspect, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to execute the energy distribution method of the distributed energy storage micro energy network provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.
[0083] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0084] 1. The energy distribution method of the distributed energy storage micro-energy grid provided in the present application, under the condition of rapid classification of historical electricity consumption data, by building and maintaining a preset model library, can be easily matched to the corresponding baseline demand model. The cumbersome process of establishing an independent model for each load is avoided, and the time required for data processing is significantly reduced, thereby improving the overall efficiency. Then, the selected baseline demand model parameters are optimized to ensure that the output of the model is closer to the actual electricity consumption of each load, which not only improves the accuracy of the model, but also increases the flexibility of handling various load conditions. At the same time, by taking future climate data into consideration and carefully adjusting the prediction model, the prediction sequence can more accurately reflect the fluctuations in electricity demand caused by environmental changes, ensuring the reliability of the prediction. At the same time, based on these optimized prediction sequences, more accurate energy storage equipment charging and discharging strategies can be formulated, which improves the accuracy and flexibility of the rules.
[0085] 2. The energy allocation method of the distributed energy storage micro-energy grid provided in this application improves the accuracy of the strategy by measuring the deficit energy and surplus energy in the optimization sequence, and adjusting the release line and energy storage line to make the difference between the surplus energy and the deficit energy equal to the current power supply.
[0086] 3. The energy allocation method for the distributed energy storage micro-energy grid provided in the present application ensures the time synchronization when comparing data by adjusting the built-in sequence time length of the baseline model to be consistent with the historical electricity consumption data sequence. At the same time, by averaging the power consumption data at the corresponding time points, the generated average sequence not only reflects the statistical characteristics of the actual load conditions, but also integrates the built-in prediction logic of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 A flow chart of an energy distribution method for a distributed energy storage micro energy grid provided in this application.
[0088] Figure 2 Another flow chart of the energy distribution method for the distributed energy storage micro energy grid provided in this application.
[0089] Figure 3 A schematic diagram of a modular virtual device of an energy distribution system of a micro energy grid with distributed energy storage provided in this application.
[0090] Figure 4 A schematic diagram of a physical device of an energy distribution system for a micro energy grid with distributed energy storage provided in this application. DETAILED DESCRIPTION
[0091] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0092] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0093] The energy distribution method of the micro energy grid with distributed energy storage in this embodiment is described below:
[0094] like Figure 1 As shown, Figure 1 A flow chart of an energy distribution method for a distributed energy storage micro energy grid provided in this application.
[0095] S101. Classify historical power consumption data of a current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of power consumption changes over time.
[0096] In some embodiments, step S101 is specifically:
[0097] S1011. Calculate the historical volatility of the historical sequence in the historical electricity consumption data;
[0098] It should be noted that when analyzing historical electricity consumption data, since the amount of data may be very large, a part of the historical series can be selected for analysis. However, to ensure the data characteristics, the selected data series should contain at least one complete statistical period, such as a complete day or a complete month, which is not limited here.
[0099] In a specific embodiment, the standard deviation of the electricity consumption time series is calculated from the selected historical series, and the standard deviation is divided by a preset threshold to obtain the historical volatility, which is not limited here.
[0100] S1012, determining the fluctuation classification result of the current load according to the matching result of the preset classification rule and the historical fluctuation rate;
[0101] In a specific embodiment, according to the preset classification rules, the volatility is divided into three levels: "high volatility", "medium volatility" and "low volatility". Each level corresponds to a specific volatility range. The calculated historical volatility is matched with these classification rules. For example, if the volatility exceeds the "medium volatility" threshold but does not reach the "high volatility" threshold, the current load is classified as a "medium volatility" load.
[0102] S1013, calculating the historical average power consumption of the historical sequence in the historical power consumption data;
[0103] Continuing with the above example, if only part of the historical series is selected in the calculation of historical volatility, then in the same data set, the total electricity consumption in that time period is calculated and divided by the length of time to obtain the historical average electricity consumption.
[0104] S1014, determining the average power consumption classification result of the current load according to the matching result of the preset classification rule and the historical average power consumption;
[0105] In a specific embodiment, the historical average power consumption is classified into three different categories of "high consumption", "medium consumption" and "low consumption" according to a preset classification rule. The historical average power consumption is compared with these classifications to determine the average power consumption classification of the current load.
[0106] Continuing with the above example, if the average power consumption exceeds the definition range of the "medium consumption" category, it is classified as a "medium consumption" load.
[0107] S1015: Determine a set of the fluctuation classification result and the average power consumption classification result as the classification result of the current load.
[0108] In a specific embodiment, the volatility classification result is combined with the average power consumption classification result to form a comprehensive load classification result.
[0109] Continuing with the above example, a load is classified as both “medium fluctuation” and “high consumption”.
[0110] It can be seen that by calculating the historical volatility in the historical electricity consumption data, it is possible to identify and distinguish load types with different volatility characteristics. Then, by analyzing the historical average power consumption of the historical series and classifying according to preset rules, it is possible to further distinguish between high-consumption loads and low-consumption loads. Combining the fluctuation classification results and the average power consumption classification results to obtain the comprehensive classification results of the current load can provide a more complex and comprehensive load portrait for the power system and achieve more refined classification.
[0111] S102. Find the current baseline demand model corresponding to the classification result in a preset model library, where the preset model library includes baseline demand models that are pre-set and correspond one-to-one to all classification results.
[0112] The preset model library contains a series of baseline demand models. Each model is pre-defined to match known load classification results (such as "high fluctuation and high consumption", "medium fluctuation and medium consumption", etc.), and there is a dedicated baseline demand model in the model library for each possible load classification combination.
[0113] Each baseline demand model is built based on historical data and predictive analysis, and can reflect the electricity demand patterns and trends under a specific category. In actual application and by inputting historical sequences, predicted future sequences can be obtained.
[0114] In some embodiments, the baseline demand model is a time series forecasting model, such as ARIMA, SARIMA, Holt-Winters, etc., which is not limited here.
[0115] Specifically, historical power consumption data is collected, including timestamps and corresponding power consumption. This data can be recorded hourly, daily, or at other time intervals. The historical data is processed to extract features that are helpful for prediction. These features may include time features (such as the hour of the day, day of the week, whether it is a holiday, etc.), as well as power consumption in the previous period of time. The model is trained using historical data. During the training process, the model will learn patterns and trends in the data and adjust its internal parameters to minimize prediction errors. Of course, in the relevant technology, time series prediction models are already quite mature and are not limited here.
[0116] S103: Optimize the parameters in the current baseline demand model using historical electricity consumption data to obtain a preliminary optimized baseline demand model.
[0117] It should be noted that the present application has two historical sequence data: the first is the historical power consumption data of the current load mentioned in step S101; the second is the data used to train the baseline demand model in step S102. The purpose of optimizing the model parameters is to make the prediction sequence generated inside the model more consistent with the actual observed load historical data. That is, by adjusting the internal parameters of the model, the gap between the historical sequence predicted by the model and the actual load historical sequence is narrowed.
[0118] As for the specific implementation method, the following embodiments have a complete description process and are not limited here.
[0119] S104 , using the preliminary optimized baseline demand model to output a future sequence of the power consumption of the current load over time in a future preset time period.
[0120] The preliminary optimization principle and function of the baseline demand model have been explained in detail in step S102. Please refer to step S102 to obtain relevant information and will not be repeated here.
[0121] S105: Obtain climate data for a preset time period in the future.
[0122] In some embodiments, public data services provided by national or regional meteorological agencies are used. These agencies generally provide weather forecasts for the next few days to weeks, which is not limited here.
[0123] S106. Adjust the future sequence using a preset impact table according to the climate data to obtain an optimized sequence.
[0124] First, a table is created to clarify the impact of climate factors such as temperature and humidity on electricity demand. Use historical data analysis or industry standards to determine the relationship between climate variables and electricity demand. In this table, each climate factor will have one or more correlation coefficients, which represent the change in electricity demand when the factor changes by one unit. In some embodiments, statistical methods such as linear regression models are used to quantify these relationships. Based on historical data, this model will give coefficients for each climate variable, which reflect the expected impact of climate variables on electricity consumption.
[0125] After obtaining the climate data, it is necessary to ensure that it is aligned with the electricity demand forecast series in time, that is, their time resolutions should be consistent, so that each forecast point can correspond to an exact climate data point.
[0126] Next, for each time point in the forecast sequence, an adjustment value is calculated using the climate data and the correlation coefficient in the preset influence table. This adjustment value is determined based on the difference between the current value of the climate variable and the forecast value of the sequence.
[0127] Finally, these adjustments are applied to the original forecast sequence to generate an optimized sequence that takes climate effects into account. This optimized sequence will more accurately reflect electricity demand under future climate conditions.
[0128] S107. Determine a release line and an energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence. The release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
[0129] It should be noted that the scenario of this embodiment is a scenario where the power supply is relatively tight. In this case, each load is connected to an energy storage device and a power source. These energy storage devices adjust their behavior according to a preset energy release line. Specifically: if the energy level of the energy storage device exceeds the release line, the device will discharge and supply energy to the load. Conversely, if the energy is lower than the release line, the device will start to store electricity, however, the energy storage device cannot store energy continuously. This is because if a device accumulates excessive energy, it may cause other loads in the system to not obtain sufficient power.
[0130] In some embodiments, step S107 specifically includes:
[0131] S1071, calculating the total amount of deficit energy above the initial release line in the optimization sequence;
[0132] Specifically, for all time points in the optimization sequence where the power level is lower than the initial release line, the difference between the corresponding power consumption and the initial release line is calculated; all the differences are accumulated to obtain the total amount of deficit energy.
[0133] More specifically, an initial release line is set, which represents the power level threshold at which the energy storage device starts to release electric energy to the load. In the optimization sequence, find all time points where the power level is lower than the initial release line. For each time point below the initial release line, calculate the difference between its power level and the initial release line. This difference represents the energy deficit between the energy storage device and the expected release line at a specific moment. All calculated differences are accumulated to obtain the total energy deficit during the entire optimization sequence.
[0134] S1072, calculating the total amount of abundant energy above the initial energy storage line in the optimization sequence;
[0135] The principle and function of calculating the total amount of abundant energy have been explained in detail in step S1071. Please refer to step S1071 to obtain relevant information, which will not be repeated here.
[0136] S1073. Adjust the initial release line and the initial energy storage line so that the difference between the total amount of surplus energy and the total amount of deficit energy is equal to the current power.
[0137] It can be seen that by measuring the deficit energy and surplus energy in the optimization sequence, the release line and the energy storage line are adjusted to make the difference between the surplus energy and the deficit energy equal to the current power supply strategy to improve the accuracy of the strategy.
[0138] It can be seen that by measuring and accumulating the energy difference when the power consumption is lower than the initial release line at all times, an accurate total amount of deficit energy can be obtained.
[0139] It can be seen that in the case of rapid classification of historical electricity consumption data, by building and maintaining a preset model library, the corresponding baseline demand model can be easily matched. The tedious process of establishing an independent model for each load is avoided, which significantly reduces the time required for data processing, thereby improving overall efficiency. Next, the selected baseline demand model parameters are optimized to ensure that the output of the model is closer to the actual electricity consumption of each load, which not only improves the accuracy of the model, but also increases the flexibility of handling various load conditions. At the same time, by taking future climate data into consideration and carefully adjusting the prediction model, the prediction sequence can more accurately reflect the fluctuations in electricity demand caused by environmental changes, ensuring the reliability of the prediction. At the same time, based on these optimized prediction sequences, more accurate energy storage equipment charging and discharging strategies can be formulated, which improves the accuracy and flexibility of the rules.
[0140] Since the climate data of the future preset time period may not be so accurate, in some other embodiments, after step S107, the following steps are further included:
[0141] S108. After determining that the preset sub-time period has passed, execute step S105.
[0142] It can be seen that real-time access to climate data enables the energy storage system to adapt to real-time climate changes, so the release or storage of electricity can be adjusted in time when climate conditions change, making the strategy more accurate.
[0143] Combine the following Figure 2 Another flow chart of the energy distribution method of the distributed energy storage micro energy grid shown in FIG. 1 is a flow chart of the energy distribution method of the distributed energy storage micro energy grid in the embodiment of the present application, which specifically describes the energy distribution method of the distributed energy storage micro energy grid in the embodiment of the present application:
[0144] like Figure 2 As shown, Figure 2 Another flow chart of the energy distribution method of the distributed energy storage micro energy grid provided by the present application. In some embodiments, step S103 specifically includes:
[0145] S201. intercept the built-in sequence in the current baseline demand model so that the time length of the built-in sequence is consistent with the historical sequence.
[0146] Continuing from the above example, the length of the built-in sequence in the current baseline demand model may be greater than the historical sequence, and the built-in sequence needs to be adjusted to ensure that the two have the same length. This process includes truncating the built-in sequence so that its length matches the historical sequence and aligning it with the historical sequence in time.
[0147] S202: average the power consumption at the same time in the historical sequence and the built-in sequence to obtain an average sequence.
[0148] Specifically, ensure that the historical sequence and the built-in sequence are aligned according to the time point, that is, the data at each time point corresponds to the same actual time. Extract the power consumption value at the corresponding time point from the historical sequence and the built-in sequence respectively. For each time point, add the power consumption value in the historical sequence and the power consumption value at the corresponding time point in the built-in sequence, and then divide by 2 to calculate the average power consumption value at that time point. Arrange the average power consumption values calculated at all time points in chronological order to form a new average sequence
[0149] In some embodiments, after S202 is executed, it can be directly executed to replace the built-in sequence with the average sequence to obtain a preliminary optimized baseline demand model.
[0150] It can be seen that by adjusting the built-in sequence time length of the baseline model to be consistent with the historical electricity consumption data sequence, the time synchronization when comparing data is ensured. At the same time, by averaging the power consumption data at the corresponding time points, the generated average sequence not only reflects the statistical characteristics of the actual load conditions, but also integrates the built-in prediction logic of the model.
[0151] In other embodiments, in order to make the generated average sequence better reflect the statistical characteristics of the actual load situation and more consistent with the prediction logic built into the model, step S203 and steps after step S203 may also be executed.
[0152] S203: Take the square difference of the power consumption at the same time in the historical sequence and the average sequence to obtain the first square difference set.
[0153] Confirm that the time points of the historical sequence and the average sequence are accurately aligned so that the power consumption values can be compared at the same time points. For each matching time point, calculate the difference between the power consumption value in the historical sequence and the power consumption value at the corresponding time point in the average sequence, and square the difference value. The squared difference values calculated at each time point are grouped into a set, which is called the first squared difference set.
[0154] S204: Take the square difference of the power consumption at the same time in the built-in sequence and the average sequence to obtain a second square difference set.
[0155] The principle and function of calculating the second set of square differences have been described in detail in step S203 . Please refer to step S203 to obtain relevant information, which will not be described again here.
[0156] S205 . Use an optimization algorithm to adjust the average sequence so that the sum of all square differences in the first square difference set plus the second square difference set is minimized.
[0157] Optimization algorithms such as gradient descent, genetic algorithm or other applicable numerical optimization methods are already quite mature and will not be described in detail here.
[0158] S206. Replace the built-in sequence with the adjusted average sequence to obtain a preliminary optimized baseline demand model.
[0159] It can be seen that by calculating the square difference between the historical sequence and the average sequence, a first square difference set is obtained to measure the deviation between the historical data and the current model prediction. Similarly, the square difference between the built-in sequence and the average sequence is calculated to form a second square difference set. The optimization algorithm is used to minimize the sum of these two square difference sets, so that the generated average sequence better reflects the statistical characteristics of the actual load situation and is more in line with the built-in prediction logic of the model.
[0160] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0161] refer to Figure 3 The embodiment of the present application provides an energy distribution system for a distributed energy storage micro energy grid, and the energy distribution system for the distributed energy storage micro energy grid includes:
[0162] A classification module, used to classify the historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of changes in power consumption over time;
[0163] A search module is used to find the current baseline demand model corresponding to the classification result in a preset model library, wherein the preset model library includes baseline demand models that are pre-set and correspond to all classification results one by one;
[0164] An optimization module, used to optimize the parameters in the current baseline demand model using historical electricity consumption data to obtain a preliminary optimized baseline demand model;
[0165] An output module, used for outputting a future sequence of power consumption of the current load over time in a future preset time period by using a preliminary optimized baseline demand model;
[0166] An acquisition module is used to obtain climate data for a preset time period in the future;
[0167] An adjustment module is used to adjust the future sequence using a preset impact table according to climate data to obtain an optimized sequence;
[0168] The decision module is used to determine the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence. The release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
[0169] In some embodiments, the decision module specifically includes:
[0170] A first calculation submodule is used to calculate the total amount of deficit energy above the initial release line in the optimization sequence;
[0171] The second calculation submodule is used to calculate the total amount of abundant energy above the initial energy storage line in the optimization sequence;
[0172] The adjustment submodule is used to adjust the initial release line and the initial energy storage line so that the difference between the total amount of surplus energy and the total amount of deficit energy is equal to the current power.
[0173] In some embodiments, the first computing submodule specifically includes:
[0174] a difference unit, for calculating the difference between the corresponding power consumption and the initial release line for all time points in the optimization sequence with a power level lower than the initial release line;
[0175] The accumulation unit is used to accumulate all differences to obtain the total amount of deficit energy.
[0176] In some embodiments, the optimization module specifically includes:
[0177] The interception submodule is used to intercept the built-in sequence in the current baseline demand model so that the time length of the built-in sequence is consistent with the historical sequence;
[0178] The averaging submodule is used to average the power consumption at the same time in the historical sequence and the built-in sequence to obtain an average sequence;
[0179] The replacement submodule is used to replace the built-in sequence with the average sequence to obtain a preliminary optimized baseline demand model.
[0180] In some embodiments, the optimization module specifically further includes:
[0181] The first square difference submodule is used to obtain a square first square difference set by taking the square difference of the power consumption at the same time in the historical sequence and the average sequence;
[0182] The second square difference submodule is used to obtain a square difference set of the power consumption at the same time in the built-in sequence and the average sequence;
[0183] An adjustment submodule, used to adjust the average sequence by using an optimization algorithm so that the sum of all square differences in the first square difference set plus the second square difference set is minimized;
[0184] The replacement submodule is used to replace the built-in sequence with the adjusted average sequence to obtain a preliminary optimized baseline demand model.
[0185] In some embodiments, the classification module specifically includes:
[0186] The first calculation submodule is used to calculate the historical volatility of the historical sequence in the historical electricity consumption data;
[0187] The fluctuation submodule is used to determine the fluctuation classification result of the current load according to the matching result of the preset classification rule and the historical fluctuation rate;
[0188] The second calculation submodule is used to calculate the historical average power consumption of the historical sequence in the historical power consumption data;
[0189] The balancing submodule is used to determine the average power consumption classification result of the current load according to the matching result of the preset classification rule and the historical average power consumption;
[0190] The determination submodule is used to determine the set of the fluctuation classification result and the average power consumption classification result as the classification result of the current load.
[0191] In some embodiments, the system further comprises:
[0192] The loop submodule is used to execute the step of acquiring climate data for a future preset time period after determining that a preset sub-time period has passed, wherein the preset sub-time period is smaller than the future preset time period.
[0193] The present application also discloses an energy distribution system for a distributed energy storage micro energy grid. Figure 4 , which is a schematic diagram of a physical device of an energy distribution system of a distributed energy storage micro energy grid provided in the present application. The computer 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, a memory 405, and at least one communication bus 402.
[0194] The communication bus 402 is used to realize the connection and communication between these components.
[0195] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.
[0196] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0197] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0198] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. Refer to Figure 4 , the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for energy distribution of a distributed energy storage micro energy grid.
[0199] exist Figure 4In the computer 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call the energy distribution application of the distributed energy storage micro-energy grid stored in the memory 405. When executed by one or more processors 401, the computer 400 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0200] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0201] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0202] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0204] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0205] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0206] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for distributing energy in a distributed energy storage micro energy grid, characterized in that: include: Classifying historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of power consumption changes over time; Finding a current baseline demand model corresponding to the classification result in a preset model library, wherein the preset model library includes baseline demand models that are pre-set and correspond one-to-one to all classification results; intercepting the built-in sequence in the current baseline demand model so that the time length of the built-in sequence is consistent with the historical sequence; Taking the average value of the power consumption at the same time in the historical sequence and the built-in sequence to obtain an average sequence; Taking the square difference of the power consumption at the same time in the historical sequence and the average sequence to obtain a square first square difference set; Taking the square difference of the power consumption at the same time in the built-in sequence and the average sequence to obtain a second square difference set; Using an optimization algorithm to adjust the average sequence so that the sum of all square differences in the first square difference set plus the second square difference set is minimized; The adjusted average sequence replaces the built-in sequence to obtain a preliminary optimized baseline demand model; Outputting a future sequence of power consumption of the current load over time in a future preset time period using the preliminary optimized baseline demand model; Obtaining climate data for the future preset time period; According to the climate data, the future sequence is adjusted using a preset impact table to obtain an optimized sequence; The release line and the energy storage line are determined according to the current power of the energy storage device corresponding to the current load and the optimization sequence. The release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
2. The energy distribution method of the distributed energy storage micro energy grid according to claim 1 is characterized in that: The step of determining the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence specifically includes: calculating the total amount of deficit energy above the initial release line in the optimization sequence; Calculating the total amount of abundant energy above the initial energy storage line in the optimization sequence; The initial release line and the initial energy storage line are adjusted so that the difference between the total amount of surplus energy and the total amount of deficit energy is equal to the current power.
3. The energy distribution method of the distributed energy storage micro energy grid according to claim 2 is characterized in that: The step of calculating the total amount of deficit energy above the initial release line in the optimization sequence specifically comprises: For all time points in the optimization sequence with a power level lower than the initial release line, calculating the difference between the corresponding power consumption and the initial release line; All differences are accumulated to obtain the total amount of energy deficit.
4. The energy distribution method of the distributed energy storage micro energy grid according to claim 1 is characterized in that: The step of classifying the historical power consumption data of the current load by using the preset classification rules to obtain the classification result of the current load specifically includes: Calculate the historical volatility of the historical series in the historical electricity consumption data; Determining a fluctuation classification result of the current load according to a matching result between the preset classification rule and the historical fluctuation rate; Calculate the historical average electricity consumption of the historical series in the historical electricity consumption data; Determine the average power consumption classification result of the current load according to the matching result of the preset classification rule and the historical average power consumption; A set of the fluctuation classification result and the average power consumption classification result is determined as the classification result of the current load.
5. The energy distribution method of the distributed energy storage micro energy grid according to claim 1 is characterized in that: After the step of determining the release line and the energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence, the method further includes: After determining that a preset sub-time period has passed, the step of acquiring the climate data for the future preset time period is performed, the preset sub-time period being smaller than the future preset time period.
6. An energy distribution system for a distributed energy storage micro energy grid, characterized in that: include: A classification module, used to classify the historical power consumption data of the current load using a preset classification rule to obtain a classification result of the current load, wherein the historical power consumption data includes a historical sequence of power consumption changes over time; A search module, used to find a current baseline demand model corresponding to the classification result in a preset model library, wherein the preset model library includes baseline demand models that are pre-set and correspond one-to-one to all classification results; The interception submodule is used to intercept the built-in sequence in the current baseline demand model so that the time length of the built-in sequence is consistent with the historical sequence; The averaging submodule is used to average the power consumption at the same time in the historical sequence and the built-in sequence to obtain an average sequence; The first square difference submodule is used to obtain a square first square difference set by taking the square difference of the power consumption at the same time in the historical sequence and the average sequence; The second square difference submodule is used to obtain a square difference set of the power consumption at the same time in the built-in sequence and the average sequence; An adjustment submodule, used to adjust the average sequence by using an optimization algorithm so that the sum of all square differences in the first square difference set plus the second square difference set is minimized; The replacement submodule is used to replace the built-in sequence with the adjusted average sequence to obtain a preliminary optimized baseline demand model; An output module, used to output a future sequence of power consumption of the current load over time in a future preset time period using the preliminary optimized baseline demand model; An acquisition module, used to acquire the climate data for the future preset time period; An adjustment module, used for adjusting the future sequence using a preset impact table according to the climate data to obtain an optimized sequence; A decision module is used to determine a release line and an energy storage line according to the current power of the energy storage device corresponding to the current load and the optimization sequence, wherein the release line is used to guide the energy storage device to release energy when the power consumption is higher than the release line, and the energy storage line is used to guide the energy storage device to store energy when the power consumption is lower than the release line.
7. An energy distribution system for a distributed energy storage micro energy grid, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the energy distribution system of the distributed energy storage micro-energy grid to execute the method described in any one of claims 1-5.
8. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on the energy distribution system of the micro energy grid with distributed energy storage, the energy distribution system of the micro energy grid with distributed energy storage executes the method as described in any one of claims 1-5.
