Safety confidence margin calculation method and system for peak load shifting of energy storage power station
Through similarity analysis and optimization of load curve samples of energy storage power stations, a probability density function is constructed to determine the safety confidence margin interval, which solves the problems of stability risks and low resource utilization of energy storage power stations during peak shaving and valley filling. , achieving more efficient resource utilization and grid risk management.
Patent Information
- Application Number
- CN202410633212.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
AI Technical Summary
Energy storage power stations have problems with system stability risks and low resource utilization when participating in peak shaving and valley filling. Existing control methods cannot effectively utilize their capacity for auxiliary services.
By collecting load curve samples and predicted load curve samples, calculate the similarity, optimize the capacity margin range, construct a scatter plot of capacity margin and load standard deviation, generate a probability density function, and filter out the capacity margin within the confidence threshold. interval, and determine the safety confidence margin interval to optimize the peak-shaving and valley-filling operation of the energy storage power station.
It improves the resource utilization rate of energy storage power stations, ensures the effect of peak shaving and valley filling, and at the same time maximizes the risk reserve capacity on the grid side and enhances system stability.
Smart Images

Figure CN118608322A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power analysis, and more specifically, to a method and system for calculating a safety confidence margin for peak shaving and valley filling in an energy storage power station. Background Art
[0002] Electrochemical energy storage is widely used in all sides of the source, grid and load, covering various scenarios such as peak load regulation, optimizing new energy consumption and transmission, improving system AC and DC operation characteristics, alleviating network congestion, supporting the bottom grid, and alleviating overload of power transmission and transformation equipment. For the power grid, the equipment of the power grid built to meet the peak load cannot be fully utilized during the low power consumption period, resulting in low asset utilization and poor economic benefits for the overall power grid. Energy storage power stations can absorb electricity during the low power consumption period and release electricity during the peak power consumption period. Using energy storage power stations to transfer load peaks and valleys can alleviate the pressure caused by peak loads on the power grid, postpone equipment capacity upgrades, improve equipment utilization, and save equipment renewal costs. For users, using battery energy storage systems to shave peaks and fill valleys can obtain economic benefits by taking advantage of the peak-valley electricity price difference.
[0003] The power capacity of energy storage power stations depends on the needs of different application scenarios. For example, on the power generation side, the value of power capacity should be related to the maximum load peak and the existing capacity of the generator; on the transmission and distribution side, the value of power capacity is related to the maximum value of the transmission power and the existing limit transmission power value. For energy storage power stations on the grid side, such as energy storage power stations installed on the substation side, they can be used to shave peaks and fill valleys, delay equipment updates, and save construction costs. There are two modes for traditional energy storage power stations to participate in peak shaving and valley filling control. One is a fixed mode, which operates according to a preset curve. The disadvantage of this mode is that it is not flexible enough and cannot adapt to changes in real-time load curves; the other is a load tracking control mode, which plans the output of energy storage power stations based on the target power calculated by load tracking. However, these two peak shaving and valley filling control methods do not consider how much capacity the energy storage power station can have to participate in other auxiliary services of the power grid at the same time as participating in peak shaving and valley filling, such as frequency regulation, voltage support, and other urgently needed power support for the power grid. That is, when the energy storage power station participates in peak shaving and valley filling, there is a risk of system stability and a problem of low resource utilization. Summary of the invention
[0004] In order to overcome the defects of stability risk and low resource utilization rate in the control of peak shaving and valley filling of energy storage power stations described in the above-mentioned prior art, the present invention provides a method and system for calculating the safety confidence margin of peak shaving and valley filling of energy storage power stations.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows: A method for calculating a safety confidence margin for peak load shifting in an energy storage power station comprises the following steps: S1. Collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; S2. Calculate the similarity between the load curve sample and the load curve sample predicted on the previous day, and take the load curve sample with a similarity less than a preset threshold as the similar daily curve sample; S3. Discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; S4. Optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day. s , and build capacity margin c Load standard deviation s Scatter distribution diagram of S5. Obtain each capacity margin according to the scatter distribution diagram c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of S6. Traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold: If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; the available capacity margin c The composed interval is output as a safety confidence margin interval.
[0006] Furthermore, the present invention also proposes a safety confidence margin calculation system for peak shaving and valley filling of energy storage power stations, which applies the safety confidence margin calculation method for peak shaving and valley filling of energy storage power stations described in the present invention. The system includes: A data acquisition module is used to collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; A similar day curve screening module is used to calculate the similarity between the load curve sample and the load curve sample predicted the day before, and take the load curve sample with a similarity less than a preset threshold as the similar day curve sample; The similar day curve optimization module is used to discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; and used to optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day s , and build capacity margin c Load standard deviation s Scatter distribution diagram of A probability density function building module is used to obtain each capacity margin according to the scatter distribution diagram.c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of Safety confidence margin calculation module, used to traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold? If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; the available capacity margin c The composed interval is output as a safety confidence margin interval.
[0007] Furthermore, the present invention also proposes a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in an energy storage power station as described in the present invention.
[0008] Furthermore, the present invention also proposes a storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in an energy storage power station as described in the present invention.
[0009] Compared with the prior art, the beneficial effects of the technical solution of the present invention are as follows: the present invention finds similar daily load curves by calculating the similarity between load curve samples and day-ahead predicted load curve samples, and calculates the optimization effect of energy storage power stations participating in peak shaving and valley filling under different reserved capacity margins; takes load standard deviation as an evaluation indicator, and generates a probability density function after weighting the load standard deviation, which is used to screen the distribution curves of all expected indicators within the set confidence level, and obtain a safety confidence margin interval. Reserving the safety capacity of the energy storage power station within this interval can not only ensure the peak shaving and valley filling effect, but also maximize the reserved capacity for responding to grid-side risks, and effectively improve the utilization rate of energy storage resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 The present invention is a flow chart of a method for calculating a safety confidence margin for peak shaving and valley filling in an energy storage power station.
[0011] Figure 2 This is an architecture diagram of the safety confidence margin calculation system for peak shaving and valley filling in the energy storage power station of the present invention. DETAILED DESCRIPTION
[0012] The accompanying drawings are only used for illustrative purposes and are not to be construed as limiting the present invention; It is understandable to those skilled in the art that some well-known descriptions may be omitted in the drawings.
[0013] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0014] Example 1 This embodiment proposes a method for calculating the safety confidence margin of peak load shifting in an energy storage power station, such as Figure 1 As shown, it is a flow chart of the method for calculating the safety confidence margin of peak shaving and valley filling in the energy storage power station of this embodiment.
[0015] The method for calculating the safety confidence margin of peak load shifting of the energy storage power station proposed in this embodiment includes the following steps: S1. Collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; S2. Calculate the similarity between the load curve sample and the load curve sample predicted on the previous day, and take the load curve sample with a similarity less than a preset threshold as the similar daily curve sample; S3. Discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; S4. Optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day. s , and build capacity margin c Load standard deviation s Scatter distribution diagram of S5. Obtain each capacity margin according to the scatter distribution diagram c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of S6. Traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold: If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; the available capacity margin c The composed interval is output as a safety confidence margin interval.
[0016] In this embodiment, similar daily load curves are found by calculating the similarity between the load curve samples and the day-ahead predicted load curve samples, and the optimization effect of the energy storage power station participating in peak shaving and valley filling under different reserved capacity margins is calculated. In this embodiment, the load standard deviation is used as the evaluation index. After weighting the load standard deviation, the sample distribution of the load standard deviation under different capacity margins is formulated to construct a probability density function, that is, a probability distribution curve. Further, by screening the distribution curves of all expected indicators within the set confidence level, the corresponding safety confidence margin interval is output. Reserving the safety capacity of the energy storage power station within this interval can not only ensure the peak shaving and valley filling effect, but also maximize the reserved capacity to deal with grid-side risks, effectively improving the utilization rate of energy storage resources.
[0017] In an optional embodiment, in step S2, the calculating the similarity between the load curve sample and the day-ahead predicted load curve sample includes: The Euclidean distance is used to calculate the similarity between the load curve sample and the day-ahead forecast load curve sample. d , whose expression is:
[0018] in, m is the total number of load curve samples; x i Indicates i Sample of the day-ahead forecast load curve, X i Indicates i A sample load curve.
[0019] In this embodiment, the similarity is less than the preset threshold. d 1 The load curve samples are used as similar daily curve samples X 1 , X 2 ,..., X n ,common n An array of similar daily curve samples.
[0020] In an optional embodiment, in step S4, the optimization of all similar daily curves includes the following steps: All similar daily curves are optimized based on the constraints of the energy storage power station; the optimization model is expressed as:
[0021] in, for t The charging and discharging power of the energy storage power station at the moment, for t Load curve sample at time, is the average load after adding the energy storage power station, T It is the daily time scale, usually 24 hours; and are discrete sampling points.
[0022] Furthermore, the constraints of the energy storage power station include power constraints, discharge depth constraints, capacity constraints, and daily heavy discharge cycle times constraints.
[0023] Wherein, the power constraint is expressed as: ; The discharge depth constraint is expressed as: ; The capacity constraint is expressed as: ; The daily re-discharge cycle number is constrained to the number of charge and discharge cycles ; in, is the maximum power of the energy storage station when discharging, Maximum power when charging the energy storage station; and is the discharge depth constraint coefficient of the energy storage power station capacity, is the capacity of the energy storage power station (MW∙h), For energy storage power stations t The remaining capacity at the moment; is the charge and discharge efficiency; n It is the preset charge and discharge cycle number threshold.
[0024] It should be noted that if the charge and discharge depth of the energy storage power station is too high or the cycles are too many, its service life will be affected. Optionally, the calculation of the number of charge and discharge cycles uses the projection superposition of each monotonous energy curve trajectory of the energy storage on the horizontal axis.
[0025] Further optionally, step S4 also includes the following steps: establishing a quadratic programming model for solving the optimization model, using the solver GUROBI in Matlab to perform mixed integer programming, and obtaining the peak shaving and valley filling effect of the energy storage power station under different reserved capacities.
[0026] In an optional embodiment, in step S5, the weights assigned w According to the similarity of the corresponding similar daily curve samples d The setting expression is: ;in is the weight coefficient that satisfies the inverse proportional relationship.
[0027] Exemplarily, the weight coefficient is set to 1.
[0028] In this embodiment, the effect of weight allocation is that the load standard deviation of the similar daily curve that is closer to the predicted daily load has a greater reference value, and the reference value decreases with the similar distance. s , the vertical axis is weight w .
[0029] Further, in an optional embodiment, each capacity margin is constructed in step S5 c The corresponding load standard deviation s The steps of the probability density function include: Perform polynomial fitting on the sample points in the weighted scatter distribution diagram; plot the load standard deviation by adjusting the polynomial degree s The distribution curve of s , the vertical axis is probability; The standard deviation of the load s The distribution curve is normalized so that the area enclosed by the distribution curve and the horizontal axis is 1; the load standard deviation is obtained according to the distribution curve s The probability density function of .
[0030] In this embodiment, the load standard deviation is used as the evaluation index, and the probability weight is assigned inversely according to the similarity distance. The sample distribution of the load standard deviation under different capacity margins is plotted, and a polynomial fitting is performed on the sample points to form a distribution curve. The distribution curve and the area enclosed by the horizontal axis are then normalized to obtain the probability distribution curve. The distribution curves of all expected indicators within the set confidence level are screened to output the corresponding capacity margin range.
[0031] Exemplarily, the polynomial fitting uses the command cftool in Matlab to call a curve fitting tool.
[0032] Furthermore, in step S6, the expected standard deviation is set S and confidence threshold β , during the traversal process, determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold? β ,Right now , then determine the corresponding capacity margin c is available. Finally, the available capacity margin interval is obtained[ c 1 , c 2 ], which is the safety confidence margin interval.
[0033] Example 2 This embodiment proposes a safety confidence margin calculation system for peak load shifting of energy storage power stations, and applies the safety confidence margin calculation method for peak load shifting of energy storage power stations proposed in Embodiment 1. Figure 2 As shown, it is an architecture diagram of the safety confidence margin calculation system for peak shaving and valley filling of the energy storage power station of this embodiment.
[0034] The safety confidence margin calculation system for peak load shifting of energy storage power station proposed in this embodiment includes: A data acquisition module is used to collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; A similar day curve screening module is used to calculate the similarity between the load curve sample and the load curve sample predicted the day before, and take the load curve sample with a similarity less than a preset threshold as the similar day curve sample; The similar day curve optimization module is used to discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; and used to optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day s , and build capacity margin c Load standard deviation s Scatter distribution diagram of A probability density function building module is used to obtain each capacity margin according to the scatter distribution diagram. c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of Safety confidence margin calculation module, used to traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold? If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; the available capacity margin c The composed interval is output as a safety confidence margin interval.
[0035] It can be understood that the system of this embodiment corresponds to the method of the above-mentioned embodiment 1, and the options in the above-mentioned embodiment 1 are also applicable to this embodiment, so they will not be described repeatedly here.
[0036] Example 3 This embodiment proposes a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for calculating the safety confidence margin of peak shaving and valley filling of an energy storage power station as proposed in Embodiment 1.
[0037] Example 4 This embodiment proposes a storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in an energy storage power station proposed in Embodiment 1.
[0038] Exemplarily, the storage medium includes, but is not limited to, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0039] Exemplarily, the instructions, programs, code sets or instruction sets may be implemented using conventional programming languages.
[0040] Exemplarily, the processor includes but is not limited to a smart phone, a personal computer, a server, a network device, etc., and is used to execute all or part of the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in the energy storage power station described in Example 1.
[0041] The terms in the drawings are only used for illustrative purposes and are not to be construed as limiting the present invention; Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for calculating the safety confidence margin of peak load shaving in energy storage power stations, characterized in that: The following steps are involved: S1. Collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; S2. Calculate the similarity between the load curve sample and the load curve sample predicted on the previous day, and take the load curve sample with a similarity less than a preset threshold as the similar daily curve sample; S3. Discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; S4. Optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day. s , and build capacity margin c Load standard deviation s Scatter distribution diagram of S5. Obtain each capacity margin according to the scatter distribution diagram c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of S6. Traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold: If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; The available capacity margin c The composed interval is output as a safety confidence margin interval.
2. The method for calculating the safety confidence margin of peak load shifting in an energy storage power station according to claim 1 is characterized in that: The similarity between the calculated load curve sample and the day-ahead predicted load curve sample includes: The Euclidean distance is used to calculate the similarity between the load curve sample and the day-ahead forecast load curve sample. d , whose expression is: in, m is the total number of load curve samples; x i Indicates i Sample of the day-ahead forecast load curve, X i Indicates i A sample load curve.
3. The method for calculating the safety confidence margin of peak load shifting in energy storage power stations according to claim 1 is characterized in that: The optimization of all similar daily curves comprises the following steps: All similar daily curves are optimized based on the constraints of the energy storage power station; the optimization model is expressed as: in, for t The charging and discharging power of the energy storage power station at the moment, for t Load curve sample at time, is the average load after adding the energy storage power station, T is the daily time scale; and are discrete sampling points.
4. The method for calculating the safety confidence margin of peak load shifting in energy storage power stations according to claim 3 is characterized in that: The constraints of the energy storage power station include power constraints, discharge depth constraints, capacity constraints, and daily heavy discharge cycle constraints; among which: The power constraint is expressed as: ; The discharge depth constraint is expressed as: ; The capacity constraint is expressed as: ; The daily re-discharge cycle number is constrained to the number of charge and discharge cycles ; in, is the maximum power of the energy storage station when discharging, Maximum power when charging the energy storage station; and is the discharge depth constraint coefficient of the energy storage power station capacity, is the capacity of the energy storage power station, For energy storage power stations t The remaining capacity at the moment; is the charge and discharge efficiency; n It is the preset charge and discharge cycle number threshold.
5. The method for calculating the safety confidence margin of peak load shifting in energy storage power stations according to claim 3 is characterized in that: The method further comprises the following steps: establishing a quadratic programming model for solving the optimization model, performing mixed integer programming using the solver GUROBI in Matlab, and obtaining the peak shaving and valley filling effect of the energy storage power station under different reserved capacities.
6. The method for calculating the safety confidence margin of peak load shifting in energy storage power stations according to claim 1 is characterized in that: In step S5, the weights assigned w According to the similarity of the corresponding similar daily curve samples d The setting expression is: ;in is the weight coefficient that satisfies the inverse proportional relationship.
7. The method for calculating the safety confidence margin of peak load shifting in an energy storage power station according to claim 6 is characterized in that: In step S5, each capacity margin is constructed c The corresponding load standard deviation s The steps of the probability density function include: Perform polynomial fitting on the sample points in the weighted scatter distribution diagram; plot the load standard deviation by adjusting the polynomial degree s The distribution curve of s , the vertical axis is probability; The standard deviation of the load s The distribution curve is normalized so that the area enclosed by the distribution curve and the horizontal axis is 1; the load standard deviation is obtained according to the distribution curve s The probability density function of .
8. A safety confidence margin calculation system for peak shaving and valley filling of an energy storage power station, using the safety confidence margin calculation method for peak shaving and valley filling of an energy storage power station as claimed in any one of claims 1 to 7, characterized in that: include: A data acquisition module is used to collect load curve samples of the energy storage power station and day-ahead predicted load curve samples; A similar day curve screening module is used to calculate the similarity between the load curve sample and the load curve sample predicted the day before, and take the load curve sample with a similarity less than a preset threshold as the similar day curve sample; The similar day curve optimization module is used to discretely divide the reserved capacity margin range of the energy storage power station according to a certain accuracy to obtain different capacity margins. c ; And it is used to optimize all similar daily curves to obtain the load standard deviation after optimization on the previous day s , and build capacity margin c Load standard deviation s Scatter distribution diagram of A probability density function building module is used to obtain each capacity margin according to the scatter distribution diagram. c The corresponding load standard deviation s is weighted and constructed to construct each capacity margin c The corresponding load standard deviation s The probability density function of Safety confidence margin calculation module, used to traverse all probability density functions and determine the load standard deviation s Smaller than expected standard deviation S Is the probability greater than the preset confidence threshold: If so, determine the corresponding capacity margin c is available, otherwise determine the corresponding capacity margin c is unavailable; The available capacity margin c The composed interval is output as a safety confidence margin interval.
9. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, characterized in that: When the computer-readable instructions are executed by the processor, the processor executes the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in an energy storage power station as described in any one of claims 1 to 7.
10. A storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by the processor, the steps of the method for calculating the safety confidence margin of peak shaving and valley filling in an energy storage power station as described in any one of claims 1 to 7 are implemented.
