Building energy storage day-ahead optimization scheduling method, system and device and storage medium
The uncertainty scenario was generated through Monte Carlo simulation and K-medoids method, combined with the conditional risk value indicators, and the recent scheduling of building energy storage was optimized, and the problem of uncertainty in electricity prices, photovoltaic output and load demand in the existing technology was solved. Improve the accuracy and efficiency of energy storage scheduling.
Patent Information
- Application Number
- CN202410968092.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-19
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing optimization scheduling methods for building energy storage recently failed to effectively consider the multiple uncertainties of electricity prices, photovoltaic output and load demand, which affected the effectiveness of energy storage scheduling strategies.
The Monte Carlo simulation method generates uncertain scenarios of electricity price, photovoltaic output and load demand, and uses the K-medoids method to reduce the scenario, establish an optimal scheduling model, and introduces conditional risk value indicators into the model to optimize the generation of building energy storage The best day-to-day scheduling plan.
Effectively responding to the multiple uncertainties of electricity prices, photovoltaic output and load demand, improving the accuracy and efficiency of energy storage optimization scheduling, and providing a balance strategy between risk and benefit.
Smart Images

Figure CN118983831A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent electricity utilization technology, and more specifically to a method, system, device and storage medium for optimizing the scheduling of building energy storage. Background Art
[0002] In order to increase the utilization rate of renewable energy and reduce the dependence of residents on traditional energy, the current common measure is to install energy storage and photovoltaic equipment for residential users. This will not only help alleviate energy pressure, but also reduce environmental pollution and promote sustainable development.
[0003] At the same time, with the maturity of photovoltaic and energy storage technologies, it also provides residential users with economically feasible electricity options. Among them, the rational optimization and scheduling of building energy storage is an important prerequisite for reducing users' electricity costs. The existing day-ahead optimization scheduling of building energy storage mainly includes the following two modes:
[0004] 1. Traditional low-charge and high-discharge mode: charging during periods of low electricity prices and discharging during periods of high electricity prices for arbitrage.
[0005] 2. Photovoltaic, energy storage and load integrated dispatching mode: Establish an optimized operation model that takes into account photovoltaic, energy storage and load to obtain the optimal charging and discharging strategy for energy storage.
[0006] With the reform of the power market, the traditional peak-valley electricity price model will be replaced by the spot market. The electricity price at different times will be highly uncertain. At the same time, the photovoltaic output and load demand of the building will also be highly uncertain. However, the existing day-ahead optimization scheduling method of building energy storage fails to take into account the impact of multiple uncertainties of electricity price, photovoltaic output and load demand at the same time, which is bound to affect the effect of the day-ahead optimization scheduling strategy of energy storage. Summary of the invention
[0007] In view of the above problems, the purpose of the present invention is to provide a method, system, device and storage medium for optimizing the scheduling of building energy storage on the day before. The optimal scheduling model is established according to the parameters of electricity price, photovoltaic output and load demand in the optimal scheduling of building energy storage, and the model is optimized by considering the conditional risk value. Finally, the optimized model is used to generate the optimal day-ahead scheduling plan of building energy storage.
[0008] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0009] In a first aspect, the present invention discloses a method for optimizing the day-ahead scheduling of building energy storage, comprising:
[0010] Conduct statistical analysis on electricity prices, PV generation and load data, and use Monte Carlo simulation methods to generate uncertainty scenarios for electricity prices, PV output and load demand;
[0011] The generated uncertainty scenarios are reduced using the K-medoids method;
[0012] Based on the uncertainty scenario after reduction processing, the optimal dispatch model is established according to the parameters of electricity price, PV output and load demand;
[0013] By introducing a conditional risk measurement item into the optimal scheduling model, the optimal scheduling model is optimized;
[0014] By solving the optimal scheduling model, the optimal day-ahead scheduling plan for building energy storage is generated.
[0015] Furthermore, the statistical analysis of electricity price, photovoltaic power generation and load data and the use of Monte Carlo simulation method to generate uncertainty scenarios of electricity price, photovoltaic output and load demand include:
[0016] Conduct statistical analysis on electricity prices, photovoltaic power generation and load data, establish a forecast error distribution function based on the probability distribution model, and generate a forecast error distribution model for electricity prices, photovoltaic output and load demand;
[0017] Based on the forecast error distribution model of electricity price, PV output and load demand, a preset number of sample points are randomly selected using the Monte Carlo method;
[0018] According to the value of each sample point and the predicted value generated by the prediction error distribution model, the curves of electricity price, photovoltaic output and load demand on the next day are obtained as the scenario of electricity price, photovoltaic output and load demand considering the prediction error;
[0019] The above steps are repeated until n scenarios of electricity price, PV output and load demand considering prediction errors are generated.
[0020] Furthermore, the reduction process of the generated uncertainty scenario using the K-medoids method includes:
[0021] Consider n scenarios of electricity price, PV output and load demand with prediction error as n data objects, and randomly select k points from the n data objects as the initial center set;
[0022] Calculate the distance between each non-representative object and each center point, and assign it to the cluster closest to it;
[0023] For each non-central object, replace one of the central points with the current point and calculate the cost function generated by the replacement; if the value of the cost function is negative, replace the central point, otherwise do not replace and restore the central point; after the replacement is completed, a set of k central points is obtained, and all objects are re-divided into the clusters closest to them according to the minimum distance principle, generating k representative scenarios of electricity price, photovoltaic output and load demand considering prediction errors.
[0024] Furthermore, the objective function of the optimal scheduling model is as follows:
[0025]
[0026] Among them, N q is the number of representative scenarios of electricity price, PV output and load demand considering prediction error, q is the qth scenario, is the probability of the qth scene, C buy,q,t is the electricity purchase price, C sell,q,t is the electricity selling price, t is the time index, T is the dispatching period, P buy,q,t is the purchased power in the qth scenario, P sell,q,t is the electricity sales power of the qth scenario, L ess is the unit cost of energy storage charging and discharging loss, P dis,t is the discharge power of energy storage, P ch,t The charging power of the energy storage;
[0027] The constraints of the optimal scheduling model include: power balance constraints of buildings, continuous energy constraints of energy storage, maximum and minimum energy range constraints of energy storage, energy balance constraints at the beginning and end of the scheduling period of energy storage, charging power constraints of energy storage, discharging power constraints of energy storage and mutual exclusion constraints of charging and discharging of energy storage.
[0028] Furthermore, the power balance constraint of the building is:
[0029]
[0030] The continuous energy constraint of energy storage is:
[0031]
[0032] The maximum and minimum energy range constraints of energy storage are:
[0033]
[0034] The energy balance constraint of the first and last cycles of energy storage scheduling is: The charging power constraint of energy storage is: The discharge power constraint of energy storage is: The mutually exclusive constraints of energy storage charging and discharging are: Among them, P PV,q,t is the photovoltaic output in the qth scenario, P load,q,t is the load demand in the qth scenario, E e,t is the energy stored in period t, P ch,t and P dis,t are the charging and discharging power of energy storage, P ch,max and P dis,max are the maximum charging and discharging power of energy storage, η ch,e and η dis,e are the charging and discharging efficiency of energy storage, σ ch,t and σ dis,t The binary variable corresponding to charging and discharging, E e,rate is the rated capacity of energy storage, λ e,min and λ e,max are the minimum and maximum states of stored energy, respectively.
[0035] Further, the optimal scheduling model is optimized by introducing a conditional risk measurement item into the optimal scheduling model, including:
[0036] Introducing the conditional value-at-risk indicator into the optimal scheduling model;
[0037] The conditional value at risk indicator CVaR is as follows:
[0038]
[0039] Among them, ζ is the risk value, α is the confidence level, and f q is the loss function of the qth scene, [x] + =max{0,x}; After introducing the conditional risk value indicator CVaR, the objective function of the optimal scheduling model is corrected as follows:
[0040] ρ q ≥C buy,q,t P buy,q,t -C sell,q,t P sell,q,t -ζ;
[0041] ρ q ≥0;
[0042] Among them, ρ q is an auxiliary variable introduced, κ is the trade-off coefficient between risk and return of investors, κ∈[0,1], κ=0 means complete risk aversion, κ=1 means full acceptance of risk.
[0043] Furthermore, the optimal day-ahead scheduling scheme for building energy storage is generated by solving the optimal scheduling model, including:
[0044] The optimal scheduling model is regarded as a mixed integer linear programming problem and solved directly by the Cplex solver to generate the optimal day-ahead scheduling plan for building energy storage.
[0045] In a second aspect, the present invention further discloses a day-ahead optimization and dispatching system for building energy storage, comprising:
[0046] A scenario generation module is configured to perform statistical analysis on electricity prices, PV power generation and load data, and to generate uncertainty scenarios of electricity prices, PV output and load demand using Monte Carlo simulation methods;
[0047] A scenario reduction module is configured to reduce the generated uncertainty scenarios using a K-medoids method;
[0048] A model building module configured to establish an optimal dispatch model based on the parameters of electricity price, PV output and load demand based on the uncertainty scenario after reduction processing;
[0049] A model optimization module configured to optimize the optimal scheduling model by introducing a conditional risk measurement item into the optimal scheduling model;
[0050] The scheme generation module is configured to generate an optimal day-ahead scheduling scheme for building energy storage by solving an optimal scheduling model.
[0051] In a third aspect, the present invention further discloses a building energy storage day-ahead optimization scheduling device, comprising:
[0052] A memory, used for storing a day-ahead optimization scheduling program for building energy storage;
[0053] A processor is used to implement the steps of the building energy storage day-ahead optimization scheduling method as described in any one of the above items when executing the building energy storage day-ahead optimization scheduling program.
[0054] In a fourth aspect, the present invention further discloses a readable storage medium, on which is stored a building energy storage day-ahead optimization scheduling program, which, when executed by a processor, implements the steps of the building energy storage day-ahead optimization scheduling method as described in any one of the above items.
[0055] Compared with the prior art, the beneficial effect of the present invention lies in: the present invention discloses a method, system, device and storage medium for optimizing the scheduling of building energy storage on the day before. In order to cope with the multiple uncertainties of electricity price, photovoltaic output and load demand, a large number of uncertainty scenarios of electricity price, photovoltaic and load are first generated, and then K-medoids is used to reduce the scenarios. Then, a day-ahead optimization scheduling strategy for building energy storage is constructed, and finally an optimization scheduling model considering conditional risk value is obtained. The final model is a mixed integer linear programming problem. By solving it, the optimal day-ahead scheduling plan for building energy storage is finally obtained.
[0056] The present invention uses a scenario-based random optimization to deal with the uncertainty of electricity prices, photovoltaic output and load demand, which can reduce the impact of uncertainty. In addition, the introduction of the conditional risk value indicator allows dispatchers to select the optimal dispatch strategy based on the risk acceptance level and balance the conflict between benefits and risks. The final model established is a mixed integer linear programming model, which is convenient for existing commercial solvers to directly solve and obtain the optimal dispatch plan for building energy storage.
[0057] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0059] Figure 1 It is a method flow chart of a specific implementation mode of the present invention.
[0060] Figure 2 It is a system structure diagram of a specific implementation mode of the present invention.
[0061] In the figure, 1. Scenario generation module; 2. Scenario reduction module; 3. Model construction module; 4. Model optimization module; 5. Solution generation module. DETAILED DESCRIPTION
[0062] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0063] Since the optimal dispatch of building energy storage the day before is based on the power price information, photovoltaic output and load demand of the next day of the power grid, it determines its own charging and discharging power in the long-term perspective, thereby minimizing the electricity cost of the entire building. In order to cope with the multiple uncertainties of electricity prices, photovoltaic output and load demand, see Figure 1 As shown, this embodiment provides a method for optimizing the day-ahead scheduling of building energy storage, including the following steps:
[0064] S1: Statistical analysis of electricity price, PV power generation and load data is performed, and the Monte Carlo simulation method is used to generate uncertainty scenarios of electricity price, PV output and load demand.
[0065] In a specific implementation, this step uses the Monte Carlo simulation method to generate uncertainty scenarios of electricity prices, photovoltaic output and load demand. On the basis of obtaining the predicted values of electricity prices, photovoltaic output and load demand, the specific steps are as follows:
[0066] Step 1: Obtain electricity price, photovoltaic power generation and load data, perform statistical analysis on the electricity price, photovoltaic power generation and load data, establish a prediction error distribution function based on the probability distribution model, and generate a prediction error distribution model for electricity price, photovoltaic output and load demand.
[0067] Step 2: Based on the prediction error distribution model of electricity price, PV output and load demand, a preset number of sample points are randomly selected using the Monte Carlo method.
[0068] It should be noted that the Monte Carlo method is a numerical calculation method based on probability statistics theory, which uses random numbers (or more commonly pseudo-random numbers) to estimate the solution of complex problems. The basic idea of the Monte Carlo method is to estimate the probability of an event or the expected value of a quantity through a large number of random experiments.
[0069] Step 3: According to the value of each sample point and the predicted value generated by the prediction error distribution model, the curves of electricity price, photovoltaic output and load demand for the next day are obtained as the scenario of electricity price, photovoltaic output and load demand considering the prediction error.
[0070] Before executing the above steps, it is necessary to set a required number of scenes n according to the requirements. Therefore, the above steps are repeated n times to ensure that the number of scenes obtained meets the requirements.
[0071] S2: The generated uncertainty scenarios are reduced using the K-medoids method.
[0072] In a specific implementation, since a large number of scenes will be generated in step S1, it will bring a great burden to the calculation because representative scenes need to be selected. Based on the above reasons, this step adopts a scene reduction method based on the K-medoids method, which is as follows:
[0073] Firstly, n scenarios of electricity price, PV output and load demand considering prediction errors are regarded as n data objects, and k points are randomly selected from all n data objects as the initial center set.
[0074] Then, the distance between each non-representative object and each center point is calculated and assigned to the cluster closest to it.
[0075] At this time, for each non-central object, the following process is performed in sequence: one of the central points is replaced with the current point, and the cost function generated by the replacement is calculated. If it is negative, it is replaced, otherwise it is not replaced and the central point is restored.
[0076] Finally, a final set of k optimal center points is obtained, and all objects are re-divided into the clusters closest to them according to the minimum distance principle, and finally k representative scenarios of electricity prices, photovoltaic output and load demand are obtained.
[0077] S3: Based on the uncertainty scenario after the reduction process, the optimal dispatch model is established according to the parameters of electricity price, PV output and load demand.
[0078] In a specific implementation, the optimal scheduling model is established according to the parameters of electricity price, photovoltaic output and load demand in the building energy storage optimization scheduling. Its objective function is as follows:
[0079]
[0080] Among them, N q is the number of representative scenarios of electricity price, PV output and load demand considering prediction error, q is the qth scenario, is the probability of the qth scene, C buy,q,t is the electricity purchase price, C sell,q,t is the electricity selling price, t is the time index, T is the dispatching period, P buy,q,t is the purchased power in the qth scenario, P sell,q,t is the electricity sales power of the qth scenario, L ess is the unit cost of energy storage charging and discharging loss, P dis,t is the discharge power of energy storage, P ch,t is the charging power of the energy storage.
[0081] The constraints are as follows:
[0082] Power balance constraints for buildings:
[0083]
[0084] Continuous energy constraints for energy storage:
[0085]
[0086] Maximum and minimum energy range constraints for energy storage:
[0087]
[0088] Energy balance constraints for the first and last cycles of energy storage scheduling:
[0089]
[0090] Charging power constraints for energy storage:
[0091]
[0092] The discharge power constraint of energy storage is:
[0093]
[0094] The mutually exclusive constraints of energy storage charging and discharging are:
[0095]
[0096] In the above formula, P PV,q,t is the photovoltaic output in the qth scenario, P load,q,t is the load demand in the qth scenario, E e,t is the energy stored in period t, P ch,t and P dis,t are the charging and discharging power of energy storage, P ch,max and P dis,max are the maximum charging and discharging power of energy storage, η ch,e and η dis,e are the charging and discharging efficiency of energy storage, σ ch,t and σ dis,t The binary variable corresponding to charging and discharging, E e,rate is the rated capacity of energy storage, λ e,min and λ e,max are the minimum and maximum states of stored energy, respectively.
[0097] S4: Optimizing the optimal scheduling model by introducing a conditional risk measurement item into the optimal scheduling model.
[0098] In a specific implementation, in order to deal with excessive economic losses caused by uncertain factors, a conditional risk measurement item is introduced into the above optimal scheduling model. The definition of the conditional risk value indicator is as follows:
[0099]
[0100] Among them, ζ is the risk value, α is the confidence level, and f q is the loss function of the qth scene, [x] + =max{0,x};
[0101] After the introduction of the conditional value at risk indicator CVaR, the objective function of the optimal scheduling model is modified as follows:
[0102]
[0103] ρ q ≥C buy,q,t P buy,q,t -C sell,q,t P sell,q,t -ζ;
[0104] ρ q ≥0;
[0105] In the above formula, ρ q is an auxiliary variable introduced, κ is the trade-off coefficient between risk and return of investors, κ∈[0,1], κ=0 means complete risk aversion, κ=1 means full acceptance of risk, and the operation and dispatching personnel can choose the appropriate trade-off coefficient according to their risk acceptance ability.
[0106] Among them, ρ q ≥C buy,q,t P buy,q,t -C sell,q,t P sell,q, t-ζ and ρ q ≥0 are two inequalities that introduce replacement nonlinear terms.
[0107] S5: Generate the optimal day-ahead scheduling plan for building energy storage by solving the optimal scheduling model.
[0108] In a specific implementation, the optimized optimal scheduling model is a mixed integer linear programming problem, which can be directly solved using an existing commercial solver such as Cplex, and ultimately the optimal day-ahead scheduling solution for building energy storage is obtained.
[0109] The present invention provides a method for optimizing the day-ahead scheduling of building energy storage. First, a Monte Carlo simulation method is used to generate a large number of uncertain scenarios of electricity prices, photovoltaic output and load demand. Then, in order to reduce the computational burden, the K-medoids method is used to reduce the scenarios and obtain representative scenarios. Next, a day-ahead optimization scheduling model for building energy storage is established under multiple scenarios. At this time, in order to further control potential excessive losses, the conditional risk value indicator is introduced into the optimization scheduling model. Finally, the existing commercial solver is used to directly solve the problem to obtain the optimal scheduling solution for building energy storage.
[0110] See also Figure 2 As shown, the present invention also discloses a building energy storage day-ahead optimization scheduling system, including: a scenario generation module 1, a scenario reduction module 2, a model construction module 3, a model optimization module 4 and a solution generation module 5.
[0111] The scenario generation module 1 is configured to perform statistical analysis on electricity price, photovoltaic power generation and load data, and to generate uncertainty scenarios of electricity price, photovoltaic output and load demand using a Monte Carlo simulation method.
[0112] The scenario reduction module 2 is configured to reduce the generated uncertainty scenarios using a K-medoids method.
[0113] The model building module 3 is configured to establish an optimal dispatching model according to the parameters of electricity price, photovoltaic output and load demand based on the uncertainty scenario after the reduction processing.
[0114] The model optimization module 4 is configured to optimize the optimal scheduling model by introducing a conditional risk measurement item into the optimal scheduling model.
[0115] The scheme generation module 5 is configured to generate an optimal day-ahead scheduling scheme for building energy storage by solving the optimal scheduling model.
[0116] The specific implementation of the building energy storage day-ahead optimization scheduling system of this embodiment is basically the same as the specific implementation of the building energy storage day-ahead optimization scheduling method described above, and will not be repeated here.
[0117] The present invention also discloses a building energy storage day-ahead optimization scheduling device, comprising a processor and a memory; wherein, when the processor executes the building energy storage day-ahead optimization scheduling program stored in the memory, the steps of the building energy storage day-ahead optimization scheduling method as described in any one of the above items are implemented.
[0118] Furthermore, the building energy storage day-ahead optimization scheduling device in this embodiment may also include:
[0119] The input interface is used to obtain the building energy storage day-ahead optimization scheduling program imported from the outside, and save the obtained building energy storage day-ahead optimization scheduling program to the memory, and can also be used to obtain various instructions and parameters transmitted by external terminal devices, and transmit them to the processor, so that the processor can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.
[0120] The output interface is used to output various data generated by the processor to the terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but is not limited to a USB interface, a serial interface, etc.
[0121] The communication unit is used to establish a remote communication connection between the building energy storage day-ahead optimization scheduling device and the external server, so that the building energy storage day-ahead optimization scheduling device can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.
[0122] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.
[0123] The display is used to display the relevant information of the day-ahead optimization scheduling process of the running building energy storage in real time.
[0124] The mouse can be used to assist users in inputting data and simplify user operations.
[0125] The present invention also discloses a readable storage medium, wherein the readable storage medium includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable hard disk, a CD-ROM or any other form of storage medium known in the technical field. The readable storage medium stores a day-ahead optimization scheduling program for building energy storage, and when the day-ahead optimization scheduling program for building energy storage is executed by a processor, the steps of the day-ahead optimization scheduling method for building energy storage as described in any one of the above items are implemented.
[0126] In summary, the present invention establishes an optimal scheduling model according to the parameters of electricity price, photovoltaic output and load demand in the building energy storage optimization scheduling, and optimizes the model by considering the conditional risk value. Finally, the optimized model is used to generate the optimal day-ahead scheduling plan for building energy storage, which can cope with the multiple uncertainties of electricity price, photovoltaic output and load demand, and effectively improves the accuracy and efficiency of building energy storage optimization scheduling.
[0127] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0128] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0129] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units 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 interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0130] 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.
[0131] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.
[0132] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.
[0133] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0134] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0135] The above is a detailed introduction to the building energy storage day-ahead optimization scheduling method, system, device and readable storage medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A day-ahead optimization scheduling method for building energy storage, characterized in that: include: Conduct statistical analysis on electricity prices, PV generation and load data, and use Monte Carlo simulation methods to generate uncertainty scenarios for electricity prices, PV output and load demand; The generated uncertainty scenarios are reduced using the K-medoids method; Based on the uncertainty scenario after reduction processing, the optimal dispatch model is established according to the parameters of electricity price, PV output and load demand; By introducing a conditional risk measurement item into the optimal scheduling model, the optimal scheduling model is optimized; By solving the optimal scheduling model, the optimal day-ahead scheduling plan for building energy storage is generated.
2. The method for optimizing the day-ahead scheduling of building energy storage according to claim 1 is characterized in that: The statistical analysis of electricity price, photovoltaic power generation and load data and the use of Monte Carlo simulation method to generate uncertainty scenarios of electricity price, photovoltaic output and load demand include the following steps: Step 1: Perform statistical analysis on electricity price, PV power generation and load data, establish a prediction error distribution function based on the probability distribution model, and generate a prediction error distribution model for electricity price, PV output and load demand; Step 2: Based on the prediction error distribution model of electricity price, PV output and load demand, a preset number of sample points are randomly selected using the Monte Carlo method; Step 3: According to the value of each sample point and the predicted value generated by the prediction error distribution model, the curves of electricity price, photovoltaic output and load demand on the next day are obtained as the scenario of electricity price, photovoltaic output and load demand considering the prediction error; Repeat steps 1 to 3 above until n scenarios of electricity price, PV output and load demand taking into account prediction errors are generated.
3. The method for optimizing the day-ahead scheduling of building energy storage according to claim 2 is characterized in that: The method of reducing the generated uncertainty scenario based on K-medoids includes: Consider n scenarios of electricity price, PV output and load demand with prediction error as n data objects, and randomly select k points from the n data objects as the initial center set; Calculate the distance between each non-representative object and each center point, and assign it to the cluster closest to it; For each non-central object, replace one of the central points with the current point and calculate the cost function generated by the replacement; if the value of the cost function is negative, replace the central point, otherwise do not replace and restore the central point; after the replacement is completed, a set of k central points is obtained, and all objects are re-divided into the clusters closest to them according to the minimum distance principle, generating k representative scenarios of electricity price, photovoltaic output and load demand considering prediction errors.
4. The method for optimizing the day-ahead scheduling of building energy storage according to claim 3 is characterized in that: The objective function of the optimal scheduling model is as follows: Among them, N q is the number of representative scenarios of electricity price, PV output and load demand considering prediction error, q is the qth scenario, is the probability of the qth scene, C buy,q,t is the electricity purchase price, C sell,q, t is the electricity selling price, t is the time index, T is the dispatching period, P buy,q,t is the purchased power in the qth scenario, P sell,q,t is the electricity sales power of the qth scenario, L ess is the unit cost of energy storage charging and discharging loss, P dis,t is the discharge power of energy storage, P ch,t is the charging power of the energy storage; The constraints of the optimal scheduling model include: power balance constraints of buildings, continuous energy constraints of energy storage, maximum and minimum energy range constraints of energy storage, energy balance constraints at the beginning and end of the scheduling period of energy storage, charging power constraints of energy storage, discharging power constraints of energy storage and mutual exclusion constraints of charging and discharging of energy storage.
5. The method for optimizing the day-ahead scheduling of building energy storage according to claim 4 is characterized in that: The power balance constraint of the building is: The continuous energy constraint of energy storage is: The maximum and minimum energy range constraints of energy storage are: The energy balance constraint of the first and last cycles of energy storage scheduling is: The charging power constraint of energy storage is: The discharge power constraint of energy storage is: The mutually exclusive constraints of energy storage charging and discharging are: Among them, P PV,q,t is the photovoltaic output in the qth scenario, P load,q,t is the load demand in the qth scenario, E e,t is the energy stored in period t, P ch,t and P dis,t are the charging and discharging power of energy storage, P ch,max and P dis,max are the maximum charging and discharging power of energy storage, η ch,e and η dis,e are the charging and discharging efficiency of energy storage, σ ch,t and σ dis,t The binary variable corresponding to charging and discharging, E e,rate is the rated capacity of energy storage, λ e,min and λ e,max are the minimum and maximum states of stored energy, respectively.
6. The method for optimizing the day-ahead scheduling of building energy storage according to claim 5 is characterized in that: The optimizing the optimal scheduling model by introducing a conditional risk measurement item into the optimal scheduling model comprises: Introducing the conditional value-at-risk indicator into the optimal scheduling model; The conditional value at risk indicator CVaR is as follows: Among them, ζ is the risk value, α is the confidence level, and f q is the loss function of the qth scene, [x] + =max{0,x}; After introducing the conditional risk value indicator CVaR, the objective function of the optimal scheduling model is modified as follows: r q ≥C buy,q,t P buy,q,t -C sell,q,t P sell,q,t -g; r q ≥0; Among them, ρ q is an auxiliary variable introduced, κ is the trade-off coefficient between risk and return of investors, κ∈[0,1], κ=0 means complete risk aversion, κ=1 means full acceptance of risk.
7. The method for optimizing the day-ahead scheduling of building energy storage according to claim 6 is characterized in that: The optimal day-ahead scheduling scheme for building energy storage is generated by solving the optimal scheduling model, including: The optimal scheduling model is regarded as a mixed integer linear programming problem and solved directly by the Cplex solver to generate the optimal day-ahead scheduling plan for building energy storage.
8. A building energy storage day-ahead optimization scheduling system, characterized in that: include: A scenario generation module is configured to perform statistical analysis on electricity prices, PV power generation and load data, and to generate uncertainty scenarios of electricity prices, PV output and load demand using Monte Carlo simulation methods; A scenario reduction module is configured to reduce the generated uncertainty scenarios using a K-medoids method; A model building module configured to establish an optimal dispatch model based on the parameters of electricity price, PV output and load demand based on the uncertainty scenario after reduction processing; A model optimization module configured to optimize the optimal scheduling model by introducing a conditional risk measurement item into the optimal scheduling model; The scheme generation module is configured to generate an optimal day-ahead scheduling scheme for building energy storage by solving an optimal scheduling model.
9. A building energy storage day-ahead optimization scheduling device, characterized in that: include: A memory, used for storing a day-ahead optimization scheduling program for building energy storage; A processor is used to implement the steps of the building energy storage day-ahead optimization scheduling method as described in any one of claims 1 to 7 when executing the building energy storage day-ahead optimization scheduling program.
10. A readable storage medium, characterized in that: The readable storage medium stores a building energy storage day-ahead optimization scheduling program, and when the building energy storage day-ahead optimization scheduling program is executed by the processor, the steps of the building energy storage day-ahead optimization scheduling method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Building energy consumption optimization method based on photovoltaic output uncertainty
CN113298164A
Multi-microgrid collaborative optimization economic dispatching method considering wind and light uncertainty
CN114626639A
Comprehensive energy system optimization scheduling method based on conditional value-at-risk
CN115936357A
Multi-time scale stochastic optimization method and device for photovoltaic charging station containing energy storage system
CN116151486A
Micro-grid scheduling method and device based on block chain system, and electronic equipment
CN118074133A
Cited By
Optical storage load collaborative optimization scheduling system and method based on multi-source data fusion
CN120087726A
Optimal Scheduling System and Method for Photovoltaic-Storage-Charge Collaboration Based on Multi-Source Data Fusion
CN120087726B
Charging and discharging optimization scheduling method and device
CN122118849A
