Photovoltaic power generation energy storage control method and system
By determining the energy storage and grid-connected loss functions and adjusting the proportion of electric energy generated by photovoltaic power generation used for power supply and storage, the problem of low photovoltaic power generation utilization is solved, the continuous operation of power supply and energy storage equipment at night is achieved, and losses are reduced. Improved energy efficiency.
Patent Information
- Application Number
- CN202410846912.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing technology makes it difficult to accurately control the proportion of electric energy generated by photovoltaic power generation used for power supply and storage, resulting in energy storage equipment being unable to continuously supply power or storing too much electric energy in scenes such as at night where there is insufficient light energy, resulting in low utilization.
By detecting the photovoltaic power generation power, grid power supply power, load power consumption and power data of energy storage equipment within the period, the energy storage loss function and grid connection loss function are determined, and the power ratio is adjusted based on the predicted photovoltaic power generation power and load power consumption. To reasonably control the storage and power supply of electrical energy.
It achieves continuous power supply in scenes with insufficient light energy such as at night, improves the utilization rate of photovoltaic power generation, reduces losses during grid connection and energy storage, and improves energy utilization rate.
Smart Images

Figure CN118399461B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic energy storage technology, and in particular to a photovoltaic power generation energy storage control method and system. Background Art
[0002] Photovoltaic power generation has been widely used. It can effectively use light energy to generate electricity, reduce environmental pollution, and use photovoltaic power generation to make up for the shortcomings of traditional power generation methods. In addition to using the electricity generated by photovoltaic power generation for power supply, a portion of the electricity can be stored in energy storage devices, allowing the stored energy to be used in scenes with insufficient light energy, such as at night, thereby improving energy utilization. However, in related technologies, it is difficult to accurately control the ratio of photovoltaic power generation used for power supply and storage. This results in the energy storage device being unable to continuously supply power in scenes with insufficient light energy, such as at night, or the energy storage device storing too much electricity and too little electricity for power supply, resulting in a low utilization rate of photovoltaic power generation.
[0003] The information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to those skilled in the art. Summary of the Invention
[0004] The present invention provides a photovoltaic power generation and energy storage control method and system, which can solve the technical problem that related technologies are difficult to accurately control the ratio of photovoltaic power generation used for power supply and used for storage.
[0005] According to a first aspect of the present invention, there is provided a photovoltaic power generation energy storage control method, comprising:
[0006] At the end of the current detection cycle, the photovoltaic power generation power, grid power supply power, load power consumption, energy storage device power data at multiple moments in the current detection cycle, and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle are obtained;
[0007] Determining an energy storage loss function based on the photovoltaic power generation power, the power data of the energy storage device, and the power ratio;
[0008] Determining a grid-connected loss function according to the photovoltaic power generation power, the grid power supply power, the load power consumption, and the power ratio;
[0009] Based on the photovoltaic power generation and light data at multiple moments in the current detection cycle, as well as the weather forecast data, the predicted photovoltaic power generation at multiple moments in the next detection cycle is obtained;
[0010] Determine the predicted load power consumption at multiple moments in the next detection cycle based on the load power consumption at multiple moments in the current detection cycle and the end time of the current detection cycle;
[0011] Obtain the expected power data of the energy storage device at the end of the next detection cycle;
[0012] Determining a predicted power ratio of photovoltaic grid connection and energy storage based on the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption, and the power data of the energy storage device;
[0013] At the beginning of the next detection cycle, the power ratio of the photovoltaic grid connection and the energy storage is adjusted according to the predicted power ratio.
[0014] According to a second aspect of the present invention, there is provided a photovoltaic power generation energy storage control system, comprising:
[0015] The acquisition module is used to obtain the photovoltaic power generation power, grid power supply power, load power consumption, energy storage device power data at multiple moments in the current detection cycle, and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle at the end of the current detection cycle;
[0016] An energy storage loss function module is used to determine an energy storage loss function based on the photovoltaic power generation power, the power data of the energy storage device and the power ratio;
[0017] A grid-connected loss function module, configured to determine a grid-connected loss function based on the photovoltaic power generation power, the grid power supply power, the load power consumption, and the power ratio;
[0018] The photovoltaic power generation prediction module is used to obtain the predicted photovoltaic power generation at multiple moments in the next detection cycle based on the photovoltaic power generation and light data at multiple moments in the current detection cycle, as well as the weather forecast data;
[0019] A load power prediction module is used to determine the predicted load power at multiple moments in the next detection cycle based on the load power at multiple moments in the current detection cycle and the end time of the current detection cycle;
[0020] The expected power data module is used to obtain the expected power data of the energy storage device at the end of the next detection cycle;
[0021] A predicted power ratio module is used to determine the predicted power ratio of photovoltaic grid connection and energy storage based on the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device;
[0022] The adjustment module is used to adjust the power ratio of the photovoltaic grid connection and energy storage according to the predicted power ratio at the beginning of the next detection cycle.
[0023] Technical Effect: According to the present invention, the grid connection loss function and the energy storage loss function can be determined based on the various data measured in the current detection cycle. Therefore, based on the data prediction of the next detection cycle, as well as the grid connection loss function and the energy storage loss function, the ratio between the use of photovoltaic power generation for power supply and storage in the next detection cycle can be reasonably adjusted to reasonably control the amount of stored electricity. This not only allows for the storage of appropriate electricity, but also allows for the use of electricity in energy storage devices for continuous power supply in scenarios where light is insufficient, such as at night. It also increases the amount of photovoltaic power generation and the utilization rate of photovoltaic power generation. Furthermore, it can reduce the loss during the grid connection and energy storage process, thereby increasing the utilization rate of electricity. When determining the energy storage loss function, the power ratio can be used to determine the amount of photovoltaic power generation used for energy storage, and the average power used to charge the energy storage device using the electricity generated by photovoltaic power generation. This average power can be used to accurately describe the loss during the charging process, thereby obtaining the first undetermined coefficient equation. After solving the equation, an energy storage loss function that can accurately describe the loss during the energy storage process can be obtained, providing an accurate data basis for subsequently determining the appropriate predicted power ratio. When determining the grid-connected loss function, a second undetermined coefficient can be set separately for the photovoltaic power grid-connected power to accurately indicate that the power loss experienced by photovoltaic power grid-connected power supply is different from the power loss experienced by grid power supply. Then, based on the relationship between power and loss, a second undetermined coefficient equation is set. After solving, a grid-connected loss function that can accurately describe the loss during the grid-connected process can be obtained, providing an accurate data basis for the subsequent determination of an appropriate predicted power ratio. When determining the constraints of the optimization model, constraints can be set by using the energy storage loss function and the grid-connected loss function so that the storage capacity of the energy storage device can reach a predetermined level. Constraints can also be set by using the deviation between the predicted power ratio and the power ratio to reduce the probability of damage to the energy storage device due to a sudden and significant change in the charging power of the energy storage device. Furthermore, multiple constraints can be set based on the light intensity, so that the predicted power ratio can be reasonably adjusted according to the actual light conditions, thereby improving the accuracy of the predicted power ratio and its adaptability to the environment. When determining the objective function of the optimization model, the average value of power loss during the grid connection process of the next detection cycle can be minimized, the total power loss during the charging of the energy storage device in the next detection cycle can be minimized, and the total power supply of the grid in the next detection cycle can be minimized as the objective function. In this way, by adjusting the predicted power ratio during the optimization process, the goal described by the objective function can be achieved to the greatest extent, thereby minimizing the loss of electric energy and maximizing energy utilization.
[0024] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and not limiting of the present invention. Other features and aspects of the present invention will become more apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. Those skilled in the art can derive other embodiments based on these drawings without inventive efforts.
[0026] Figure 1 A schematic diagram exemplarily illustrates a flow chart of a photovoltaic power generation energy storage control method according to an embodiment of the present invention;
[0027] Figure 2 The block diagram of a photovoltaic power generation and energy storage control system according to an embodiment of the present invention is exemplarily shown. DETAILED DESCRIPTION
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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 efforts shall fall within the scope of protection of the present invention.
[0029] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0030] Figure 1 A schematic flow chart of a photovoltaic power generation energy storage control method according to an embodiment of the present invention is exemplarily shown, wherein the method includes:
[0031] Step S101, at the end of the current detection cycle, obtain the photovoltaic power generation power, grid power supply power, load power consumption, energy storage device power data at multiple moments in the current detection cycle, and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle;
[0032] Step S102, determining an energy storage loss function based on the photovoltaic power generation power, the power data of the energy storage device, and the power ratio;
[0033] Step S103, determining a grid-connected loss function according to the photovoltaic power generation power, the grid power supply power, the load power consumption, and the power ratio;
[0034] Step S104, obtaining predicted photovoltaic power generation at multiple moments in the next detection cycle based on the photovoltaic power generation and illumination data at multiple moments in the current detection cycle and weather forecast data;
[0035] Step S105, determining the predicted load power at multiple moments in the next detection cycle based on the load power at multiple moments in the current detection cycle and the end time of the current detection cycle;
[0036] Step S106, obtaining expected power data of the energy storage device at the end of the next detection cycle;
[0037] Step S107, determining a predicted power ratio of photovoltaic grid connection and energy storage based on the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption, and the power data of the energy storage device;
[0038] Step S108: At the beginning of the next detection cycle, the power ratio of the photovoltaic grid connection and the energy storage is adjusted according to the predicted power ratio.
[0039] According to the photovoltaic power generation and energy storage control method of an embodiment of the present invention, the grid-connected loss function and the energy storage loss function can be determined based on various data measured in the current detection cycle, so as to reasonably adjust the proportional relationship between the use of photovoltaic power generation for power supply and storage in the next detection cycle based on the data prediction of the next detection cycle, as well as the grid-connected loss function and the energy storage loss function, so as to reasonably control the storage amount of electric energy. Not only can appropriate electricity be stored, the electric energy in the energy storage device can be used for continuous power supply in scenes with insufficient light energy such as at night, and the power supply of photovoltaic power generation can be increased, and the utilization rate of photovoltaic power generation can be improved. Furthermore, the losses in the grid-connected and energy storage processes can be reduced, and the utilization rate of electric energy can be improved.
[0040] According to one embodiment of the present invention, in step S101, each detection cycle can be set to 1 hour, 2 hours, etc., and the present invention does not limit the duration of the detection cycle. Within the detection cycle, data such as photovoltaic power generation power, grid power supply power, load power consumption, and energy storage equipment power data can be detected at regular time intervals, so that data such as photovoltaic power generation power, grid power supply power, load power consumption, and energy storage equipment power data at multiple moments can be obtained. The time period between adjacent moments can be 1 minute, 2 minutes, etc., and the present invention does not limit the duration of the time period between adjacent moments. Within each detection cycle, the power ratio of photovoltaic grid connection and energy storage can be set once, and within a detection cycle, the electricity generated by photovoltaic power generation is distributed according to the power ratio of photovoltaic grid connection and energy storage, that is, part is used for grid connection power supply, and part is used for energy storage.
[0041] According to one embodiment of the present invention, in step S102, based on the photovoltaic power generation power and the power data of the energy storage device detected at multiple moments in the current detection cycle, as well as the power ratio, the loss of a portion of the electricity generated by photovoltaic power generation and used for energy storage during the energy storage process can be determined, and the functional relationship between the loss and the photovoltaic power generation power can be determined.
[0042] According to one embodiment of the present invention, step S102 includes: determining the photovoltaic power generation and energy storage power between multiple moments in the current detection cycle based on the photovoltaic power generation power and the power ratio; determining the power change data between multiple moments in the current detection cycle based on the power data of the energy storage device; and determining the energy storage loss function based on the photovoltaic power generation and energy storage power and the power change data.
[0043] According to one embodiment of the present invention, the power ratio is the ratio of the amount of electricity generated by photovoltaic power generation that is used for grid-connected power supply to the amount of electricity used for storage. Therefore, based on this ratio, the amount of electricity generated by photovoltaic power generation between adjacent moments that is used for grid-connected power supply and the amount of photovoltaic power generation and storage used for energy storage can be determined. In this example, the average value of the photovoltaic power generation power at two adjacent moments can be calculated, and this average value can be multiplied by the time interval between adjacent moments to obtain the amount of electricity generated by photovoltaic power generation between adjacent moments. This electricity can then be allocated according to the power ratio to determine the amount of electricity used for grid-connected power supply and the amount of photovoltaic power generation and storage used for energy storage.
[0044] According to one embodiment of the present invention, the power data of the energy storage device is a state quantity. In the process of charging the energy storage device using the above-mentioned photovoltaic power generation and energy storage power, the power of the energy storage device will change. The power change data between adjacent moments is the change in the power of the energy storage device between adjacent moments, and is also the actual power increased by the energy storage device after deducting the loss in the energy storage process from the photovoltaic power generation and energy storage power between adjacent moments.
[0045] According to one embodiment of the present invention, the energy storage loss function is determined based on the photovoltaic power generation energy storage quantity and the energy change data, including: determining a first undetermined coefficient equation of the energy storage loss function according to formula (1),
[0046] (1)
[0047] in, is the power change data between the i-th moment and the i+1-th moment in the current detection cycle, is the photovoltaic power generation power at the i-th moment in the current detection cycle, is the photovoltaic power generation power at the i+1th moment in the current detection cycle, is the time interval between adjacent moments, is the power ratio of photovoltaic grid connection and energy storage in the current detection cycle, and is the first undetermined coefficient, is the photovoltaic power generation and energy storage quantity between the i-th moment and the i+1-th moment in the current detection cycle; according to the photovoltaic power generation power, the photovoltaic power generation and energy storage quantity and the quantity change data, the first undetermined coefficient is solved to obtain the solution value of the first undetermined coefficient; according to the solution value of the first undetermined coefficient and the first undetermined coefficient equation, the energy storage loss function is obtained.
[0048] According to one embodiment of the present invention, in formula (1), represents the average power of photovoltaic power generation between the i-th moment and the i+1-th moment, is the total amount of photovoltaic power generated between the i-th moment and the i+1-th moment, is the ratio between the amount of electricity stored and the total amount of photovoltaic power generation, so, is the photovoltaic power storage capacity between the i-th moment and the i+1-th moment in the current detection cycle, and It is the average power used to charge the energy storage device using electricity generated by photovoltaic power generation between the i-th moment and the i+1-th moment in the current detection cycle.
[0049] According to one embodiment of the present invention, since the loss during the charging process is mainly caused by the heat generated by the current, and when the charging voltage is constant, the heat generated by the current is positively correlated with the square of the current value, and the current is positively correlated with the power used to charge the energy storage device, the heat generated by the current is positively correlated with the square of the power used to charge the energy storage device. Based on the above analysis, the loss during the charging process is positively correlated with the square of the average power used to charge the energy storage device using electricity generated by photovoltaic power generation. Therefore, the loss power can be set to That is, a first undetermined coefficient is set for the square value of the average power of charging the energy storage device using the electricity generated by photovoltaic power generation, where one first undetermined coefficient is used as its multiplier and the other first undetermined coefficient is used as a constant term, thereby expressing the above-mentioned positive correlation. = represents the amount of electricity lost during the charging process between the i-th moment and the i+1-th moment in the current detection cycle. Therefore, the above-mentioned photovoltaic power generation and storage power minus the power loss can be equal to the above-mentioned power change data.
[0050] According to one embodiment of the present invention, in formula (1), there are two first undetermined coefficients as unknown quantities. The photovoltaic power generation power, photovoltaic power generation energy storage capacity and power change data at multiple moments can be substituted into formula (1), and the two first undetermined coefficients are solved to obtain the solution values of the first undetermined coefficients. Then, the first undetermined coefficients are substituted into formula (1) to obtain the energy storage loss function.
[0051] In this way, the power ratio can be used to determine the amount of photovoltaic power generation and storage used for energy storage in the amount of electricity generated by photovoltaic power generation, as well as the average power used to charge the energy storage device using the electricity generated by photovoltaic power generation. The average power can be used to accurately describe the loss in the charging process, and then the first undetermined coefficient equation can be obtained. After solving it, an energy storage loss function that can accurately describe the loss in the energy storage process can be obtained, providing an accurate data basis for the subsequent determination of the appropriate predicted power ratio.
[0052] According to one embodiment of the present invention, in step S103, the electricity generated by photovoltaic power generation and the electricity provided by the power grid will also generate losses when supplying power to electrical loads. For example, the losses generated during the transformation of the direct current generated by photovoltaic power generation, the losses generated by the transformer, the losses generated by the transmission line, etc., can determine a grid loss function for describing the losses in the grid-connected power supply process.
[0053] According to one embodiment of the present invention, step S103 may include: determining the photovoltaic power generation grid-connected power at multiple moments in the current detection cycle based on the photovoltaic power generation power and the power ratio; and determining the grid-connected loss function based on the photovoltaic power generation grid-connected power, the grid power supply power and the load power consumption.
[0054] According to one embodiment of the present invention, determining a grid-connected loss function based on the photovoltaic power generation grid-connected power, the grid power supply power, and the load power consumption includes: determining a second undetermined coefficient equation of the photovoltaic grid-connected loss function according to formula (2),
[0055] (2)
[0056] in, is the grid power supply at the i-th moment in the current detection cycle, is the load power consumption at the i-th moment in the current detection cycle, is the photovoltaic power generation grid-connected power at the i-th moment in the current detection cycle, 、 and is the second undetermined coefficient; according to the photovoltaic power generation grid-connected power, the grid power supply power and the load power consumption, the second undetermined coefficient is solved to obtain the solution value of the second undetermined coefficient; according to the solution value of the second undetermined coefficient and the second undetermined coefficient equation, the photovoltaic grid-connected loss function is determined.
[0057] According to one embodiment of the present invention, in formula (2), The proportion of the total electricity generated by photovoltaic power generation that is allocated to grid-connected power supply in the total electricity generated by photovoltaic power generation. Therefore, It is the power of photovoltaic power generation that is connected to the grid for power supply, that is, photovoltaic power generation grid-connected power. It is the total power supply power, that is, the sum of the power supplied by the grid and the power of photovoltaic power generation connected to the grid. It is the power loss of the grid-connected power supply, that is, the difference between the total power supply and the power consumed by the load.
[0058] According to one embodiment of the present invention, similar to the loss in the charging process, the loss in the power supply process is mainly caused by the heat generated by the current. When the supply voltage is constant, the heat generated by the current is positively correlated with the square of the current value, and the current is positively correlated with the power supplied. Therefore, the loss in the power supply process is positively correlated with the power supplied. Compared with the power supply from the power grid, when photovoltaic power generation is used for grid-connected power supply, the direct current generated by photovoltaic power generation needs to be converted into alternating current. Therefore, certain losses will also be generated during the conversion process. Therefore, a second unknown coefficient can be set separately for the photovoltaic power generation grid-connected power. , to indicate that not all the photovoltaic power connected to the grid is used for power supply, but a certain amount of loss occurs during the conversion process. Therefore, the power connected to the grid after the conversion process is Furthermore, the sum of the grid-connected power after the conversion process and the grid power supply power can be used as the actual power supply power. The two experience the loss of the transformer and the transmission process together. Therefore, the loss is positively correlated with the square of the sum of the two. Therefore, the other two second unknown coefficients can be set and used Represents the power loss of the grid-connected power supply.
[0059] According to one embodiment of the present invention, in formula (2), there are three second undetermined coefficients as unknown quantities. The photovoltaic power generation grid-connected power, grid power supply power and load power consumption at multiple moments can be substituted into formula (2), and the three second undetermined coefficients can be solved to obtain the solution values of the second undetermined coefficients. Then, the second undetermined coefficients can be substituted into formula (2) to obtain the grid-connected loss function.
[0060] In this way, a second undetermined coefficient can be set separately for the photovoltaic power generation grid-connected power to accurately indicate that the power loss experienced by photovoltaic power generation grid-connected power supply is different from the power loss experienced by the power grid power supply. Then, based on the relationship between power and loss, the second undetermined coefficient equation is set. After solving it, a grid-connected loss function that can accurately describe the loss in the grid-connected process can be obtained, providing an accurate data basis for the subsequent determination of the appropriate predicted power ratio.
[0061] According to one embodiment of the present invention, in step S104, the relationship between the photovoltaic power generation power and the illumination data at multiple moments in the current detection cycle can be determined, and the illumination data in the next detection cycle can be predicted based on the weather forecast data, so that the predicted photovoltaic power generation power at multiple moments in the next detection cycle can be obtained based on the relationship between the photovoltaic power generation power and the illumination data, and the predicted illumination data in the next detection cycle.
[0062] In the example, the photovoltaic power generation power and illumination data at multiple moments in the current detection cycle can be fitted to obtain a relationship function between the photovoltaic power generation power and the illumination data, and then the illumination data at multiple moments in the predicted next detection cycle can be substituted into the relationship function to obtain the predicted photovoltaic power generation power at multiple moments in the next detection cycle.
[0063] According to one embodiment of the present invention, in step S105, the predicted load power consumption at multiple moments in the next detection cycle can be determined based on the load power consumption at multiple moments in the current detection cycle and the end time of the current detection cycle. For example, the end time of the current detection cycle can be used as the start time of the next detection cycle, and the predicted load power consumption for the next detection cycle can be predicted based on the power consumption pattern within the substation. For example, based on the patterns of multiple past historical dates, it can be determined that the load power consumption in the next detection cycle is 10% higher than that of the current detection cycle. Based on the load power consumption at multiple moments in the current detection cycle and this pattern, the predicted load power consumption at multiple moments in the next detection cycle can be obtained. Of course, a load power prediction model can also be trained based on the patterns of multiple past historical dates. The model can be a neural network model, a time series model, etc. After training is completed, the load power consumption at multiple moments in the current detection cycle can be input into the trained load power prediction model to obtain the predicted load power consumption at multiple moments in the next detection cycle.
[0064] According to one embodiment of the present invention, in step S106, the expected power data of the energy storage device at the end of the next detection cycle can be obtained. For example, the sunset time of the current date can be first determined. The sunset time can be queried through weather forecast data. Then, the end time of the current detection cycle is determined, and then the interval between the sunset time and the current detection cycle and the light data at each moment within the interval are determined. In addition, the amount of power that needs to be stored for the energy storage device at sunset can be determined. For example, before sunset, the power needs to be increased to 60% of the total capacity of the energy storage device. This power is subtracted from the power data of the energy storage device at the end of the current detection cycle to obtain the amount of power that needs to be charged for the energy storage device before sunset. Furthermore, the power to be charged for the energy storage device in each detection cycle within the interval can be allocated according to the light data at each moment within the interval, thereby determining the expected power data of the energy storage device at the end of the next detection cycle. In this example, the interval between the end of the current detection cycle and sunset is six hours, meaning that over six detection cycles, the energy storage device's power level is 39% of its total capacity. Before sunset, the power level needs to be increased to 60% of its total capacity. Therefore, the energy storage device's power level needs to be increased by 21% within this interval. Over the six detection cycles, the average values of the predicted sunlight data for each cycle have a ratio of 6:5:4:3:2:1. Therefore, the energy storage device's power level needs to be increased by 6%, 5%, 4%, 3%, 2%, and 1% for each of the six detection cycles, respectively. Therefore, the expected power level at the end of the next detection cycle is 45% of its total capacity.
[0065] According to one embodiment of the present invention, in step S107, the predicted power ratio of photovoltaic grid connection and energy storage in the next detection cycle can be determined, so that while the power data of the energy storage device at the end of the next detection cycle can reach the expected power data, photovoltaic power generation can be used as much as possible to power the electrical load, thereby improving energy utilization. Furthermore, the losses in energy storage and grid-connected power supply can be minimized.
[0066] According to one embodiment of the present invention, the predicted power ratio of photovoltaic grid connection and energy storage is determined based on the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device, including: obtaining the expected change data of the power of the energy storage device based on the expected power data and the power data of the energy storage device at the end of the current detection cycle; determining the constraints of the optimization model based on the expected change data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power and the predicted load power consumption; determining the objective function of the optimization model based on the energy storage loss function and the grid connection loss function; solving the optimal solution of the optimization model based on the constraints and objective function of the optimization model to obtain the predicted power ratio of photovoltaic grid connection and energy storage.
[0067] According to one embodiment of the present invention, the expected change data is the difference between the expected power data and the power data of the energy storage device at the end of the current detection cycle. This difference can be used as a constraint in the optimization process. The optimization model can be a nonlinear programming model, a genetic algorithm model, etc., and the present invention does not limit this. The constraints and objective function of the optimization model can be set to obtain an optimal solution that can maximize the achievement of the goal described by the objective function under the constraints, as the predicted power ratio.
[0068] According to one embodiment of the present invention, the constraints of the optimization model are determined based on the expected change data, the energy storage loss function, the grid-connected loss function, the predicted photovoltaic power generation power, and the predicted load power consumption, including: determining the constraints of the optimization model according to formulas (3), (4), (5), and (6),
[0069] (3)
[0070] (4)
[0071] (5)
[0072] (6)
[0073] in, is the predicted photovoltaic power generation power at the i-th moment of the next detection cycle, is the predicted photovoltaic power generation power at the i+1th moment in the next detection cycle, is the predicted power ratio of photovoltaic grid connection and energy storage, is the expected change data of the power of the energy storage device, is the predicted load power at the i-th moment of the next detection cycle, is the predicted grid power supply power at the i-th moment of the next detection cycle, is the photovoltaic power threshold, is the ratio threshold, n is the number of moments in the current detection cycle, for The solution value of for The solution value of for The solution value of for The solution value of for The solution value of .
[0074] According to one embodiment of the present invention, in formula (3), the constraint condition can be set by the energy storage loss function, and the predicted photovoltaic power generation power of the next detection cycle can be substituted into the energy storage loss function. The portion of photovoltaic power generation used to charge the energy storage device during the time period between the i-th and i+1-th moments of the next detection cycle, minus any lost power, represents the estimated amount of power the energy storage device can increase during the time period between the i-th and i+1-th moments of the next detection cycle. The total amount of power the energy storage device can increase during the next detection cycle is calculated by summing the estimated amount of power the energy storage device can increase during each adjacent time period of the next detection cycle. This total power increase should be greater than or equal to the expected change data, ensuring that the energy storage device's stored energy reaches a predetermined level, thereby meeting electricity demand during periods of insufficient sunlight, such as at night.
[0075] According to one embodiment of the present invention, in formula (4), a constraint condition can be set by a grid-connected loss function, and the predicted photovoltaic power generation power and the predicted load power consumption of the next detection cycle can be substituted into the grid-connected loss function to obtain formula (4). Based on formula (4), not only can the predicted power ratio to be solved be constrained, but the predicted grid power supply power at each moment of the next detection cycle can also be solved based on the constraint relationship.
[0076] According to one embodiment of the present invention, in formula (5), Indicates the deviation between the predicted power ratio of the next detection cycle and the power ratio of the current detection cycle. If this deviation is less than or equal to the ratio threshold, the adjustment range of the power ratio will not be too large, thereby reducing the probability of damage to the energy storage device due to a sudden and large change in the charging power of the energy storage device.
[0077] According to one embodiment of the present invention, in formula (6), constraints under multiple conditions are described. In formula (6), the first condition is ,in, It represents the ratio of the predicted photovoltaic power generation power in the next detection cycle to the photovoltaic power generation power in the current detection cycle. is the average value of the ratio. If the average value is greater than or equal to 1, it means that the average value of the predicted photovoltaic power generation in the next detection cycle is greater than the average value of the photovoltaic power generation in the current monitoring cycle, which also means that the light intensity is increasing. This means that the average value of the predicted photovoltaic power generation in the next detection cycle is greater than or equal to the photovoltaic power generation threshold, which can also mean that the light intensity is strong. If both aspects of the first condition are met at the same time, it can mean that the next detection cycle is in a period of strong light intensity and is still increasing, for example, in the morning during the day. In this case, the constraint condition is This condition can be written as ,in, is the average value of the power used for grid-connected power supply in the predicted photovoltaic power generation power of the next detection cycle, = is the average value of the photovoltaic power generation power used for grid-connected power supply in the current detection cycle. Therefore, if the first condition is met, the constraint condition is that the average value of the grid-connected power supply in the next detection cycle is greater than or equal to the average value of the grid-connected power supply in the current detection cycle. That is, more electricity is used for power supply and less electricity is used for charging energy storage devices. In this case, the light intensity is strong, and even if the proportion of electricity used to charge energy storage devices is low, a certain amount of electricity can still be stored in the energy storage devices. In addition, the light intensity is still increasing, and the interval between the time of low light intensity (for example, sunset) is long, which provides ample time to charge the energy storage devices. Therefore, in this case, grid-connected power supply is given priority to improve the utilization rate of the electricity generated by photovoltaic power generation.
[0078] According to one embodiment of the present invention, the second condition of formula (6) is , the second condition can mean that the next detection cycle is in a period of time when the light intensity is still strong but gradually weakening, for example, in the afternoon during the day. In this case, the constraint condition is , meaning the average grid-connected power supply in the next detection cycle is less than the average grid-connected power supply in the current detection cycle. This means less power is used for power supply and more power is used to charge the energy storage device. In this case, although the light intensity is strong, it is gradually decreasing. The interval between times of lower light intensity (for example, sunset) is shorter, and the duration of charging the energy storage device is shorter. Therefore, to ensure that the energy storage device stores sufficient power, charging the energy storage device is prioritized in this case.
[0079] According to one embodiment of the present invention, the third condition of formula (6) is , that is, the next detection cycle is in a period of time with weak light intensity, such as night. In this case, the constraint condition is , that is, the electricity generated by photovoltaic power generation is used first for grid-connected power supply. In this case, the amount of electricity generated by photovoltaic power generation is less, and the energy storage device will also start to supply power. Therefore, if the photovoltaic device can still generate electricity, it will be mainly used for power supply.
[0080] In this way, constraints can be set through the energy storage loss function and the grid connection loss function, so that the storage energy of the energy storage device can reach a predetermined level. Constraints can also be set by the deviation between the predicted power ratio and the power ratio to reduce the probability of damage to the energy storage device due to sudden and significant changes in the charging power of the energy storage device. Furthermore, multiple constraints can be set based on the light intensity, so that the predicted power ratio can be reasonably adjusted according to the actual light conditions, thereby improving the accuracy of the predicted power ratio and its adaptability to the environment.
[0081] According to one embodiment of the present invention, determining the objective function of the optimization model according to the energy storage loss function and the grid connection loss function includes: determining the objective function of the optimization model according to formulas (7), (8), and (9),
[0082] (7)
[0083] (8)
[0084] (9)
[0085] in, It is the predicted grid power supply power at the i+1th moment in the next detection cycle.
[0086] According to one embodiment of the present invention, in formula (7), It represents the power loss during the grid connection process calculated based on the predicted photovoltaic power generation power and the predicted power ratio of the next detection cycle. Then it is the average value of the power loss during the grid connection process of the next detection cycle. Therefore, the objective function expressed by formula (7) represents minimizing the average value of the power loss during the grid connection process of the next detection cycle.
[0087] According to one embodiment of the present invention, in formula (8), The power loss during charging of the energy storage device is calculated based on the predicted photovoltaic power generation power and the predicted power ratio of the next detection cycle. It represents the total power loss in the process of charging the energy storage device in the next detection cycle. The objective function represented by formula (7) represents minimizing the total power loss in the process of charging the energy storage device in the next detection cycle.
[0088] According to one embodiment of the present invention, in formula (9), is the average value of the predicted grid power supply power from the i-th moment to the i+1-th moment in the next detection cycle. Therefore, represents the power supply of the power grid from the i-th moment to the i+1-th moment in the next detection cycle, It represents the total power supply of the grid in the next detection cycle. The objective function expressed by formula (9) is to minimize the total power supply of the grid in the next detection cycle to increase the power supply of photovoltaic power generation and improve energy utilization.
[0089] In this way, the average value of power loss during the grid connection process of the next detection cycle can be minimized, the total power loss during the charging of the energy storage device in the next detection cycle can be minimized, and the total power supply of the grid in the next detection cycle can be minimized as the objective function. Therefore, by adjusting the predicted power ratio during the optimization process, the goal described by the objective function can be achieved to the greatest extent, thereby minimizing the loss of electric energy and maximizing energy utilization.
[0090] According to one embodiment of the present invention, based on the objective function and constraints set above, the optimal solution of the predicted power ratio can be solved, and the optimal solution of the predicted power ratio that can achieve the target described by the objective function to the greatest extent under the constraints of the constraints is obtained as the predicted power ratio of the next detection cycle.
[0091] According to one embodiment of the present invention, in step S108, at the start of the next detection cycle, the power ratio of photovoltaic grid connection and energy storage can be set to the above-mentioned predicted power ratio. This minimizes losses during the grid connection process and energy storage process during the next detection cycle, and improves energy utilization.
[0092] According to the photovoltaic power generation and energy storage control method of the embodiment of the present invention, the grid loss function and the energy storage loss function can be determined based on the various data measured in the current detection cycle. Based on the data prediction of the next detection cycle, as well as the grid loss function and the energy storage loss function, the ratio between the use of photovoltaic power generation for power supply and storage in the next detection cycle can be reasonably adjusted to reasonably control the amount of stored energy. This not only allows for the storage of appropriate power, but also allows the use of the energy storage device for continuous power supply in scenes where light is insufficient, such as at night. It also increases the amount of power supplied by photovoltaic power generation and improves the utilization rate of photovoltaic power generation. Furthermore, it can also reduce the loss during the grid connection and energy storage process, thereby improving the utilization rate of power. When determining the energy storage loss function, the power ratio can be used to determine the amount of photovoltaic power generation and storage energy used for energy storage, as well as the average power used to charge the energy storage device using the photovoltaic power generation. The average power is used to accurately describe the loss during the charging process, thereby obtaining the first undetermined coefficient equation. After solving it, an energy storage loss function that can accurately describe the loss during the energy storage process can be obtained, providing an accurate data basis for subsequently determining the appropriate predicted power ratio. When determining the grid-connected loss function, a second undetermined coefficient can be set separately for the photovoltaic power grid-connected power to accurately indicate that the power loss experienced by photovoltaic power grid-connected power supply is different from the power loss experienced by grid power supply. Then, based on the relationship between power and loss, a second undetermined coefficient equation is set. After solving, a grid-connected loss function that can accurately describe the loss during the grid-connected process can be obtained, providing an accurate data basis for the subsequent determination of an appropriate predicted power ratio. When determining the constraints of the optimization model, constraints can be set by using the energy storage loss function and the grid-connected loss function so that the storage capacity of the energy storage device can reach a predetermined level. Constraints can also be set by using the deviation between the predicted power ratio and the power ratio to reduce the probability of damage to the energy storage device due to a sudden and significant change in the charging power of the energy storage device. Furthermore, multiple constraints can be set based on the light intensity, so that the predicted power ratio can be reasonably adjusted according to the actual light conditions, thereby improving the accuracy of the predicted power ratio and its adaptability to the environment. When determining the objective function of the optimization model, the average value of power loss during the grid connection process of the next detection cycle can be minimized, the total power loss during the charging of the energy storage device in the next detection cycle can be minimized, and the total power supply of the grid in the next detection cycle can be minimized as the objective function. In this way, by adjusting the predicted power ratio during the optimization process, the goal described by the objective function can be achieved to the greatest extent, thereby minimizing the loss of electric energy and maximizing energy utilization.
[0093] Figure 2 A block diagram of a photovoltaic power generation and energy storage control system according to an embodiment of the present invention is exemplarily shown. The system includes:
[0094] The acquisition module is used to obtain the photovoltaic power generation power, grid power supply power, load power consumption, energy storage device power data at multiple moments in the current detection cycle, and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle at the end of the current detection cycle;
[0095] An energy storage loss function module is used to determine an energy storage loss function based on the photovoltaic power generation power, the power data of the energy storage device and the power ratio;
[0096] A grid-connected loss function module, configured to determine a grid-connected loss function based on the photovoltaic power generation power, the grid power supply power, the load power consumption, and the power ratio;
[0097] The photovoltaic power generation prediction module is used to obtain the predicted photovoltaic power generation at multiple moments in the next detection cycle based on the photovoltaic power generation and light data at multiple moments in the current detection cycle, as well as the weather forecast data;
[0098] A load power prediction module is used to determine the predicted load power at multiple moments in the next detection cycle based on the load power at multiple moments in the current detection cycle and the end time of the current detection cycle;
[0099] The expected power data module is used to obtain the expected power data of the energy storage device at the end of the next detection cycle;
[0100] A predicted power ratio module is used to determine the predicted power ratio of photovoltaic grid connection and energy storage based on the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device;
[0101] The adjustment module is used to adjust the power ratio of the photovoltaic grid connection and energy storage according to the predicted power ratio at the beginning of the next detection cycle.
[0102] Those skilled in the art will appreciate that the embodiments of the present invention described above and shown in the accompanying drawings are intended to be illustrative only and are not intended to limit the present invention. The objectives of the present invention have been fully and effectively achieved. The functional and structural principles of the present invention have been demonstrated and illustrated in the embodiments. Any variations or modifications may be made to the embodiments of the present invention without departing from the principles described.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A photovoltaic power generation energy storage control method, characterized in that: include: At the end of the current detection cycle, the photovoltaic power generation power, grid power supply power, load power consumption, energy storage equipment power data at multiple moments in the current detection cycle and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle are obtained; Determining an energy storage loss function according to the photovoltaic power generation power, the power data of the energy storage device and the power ratio; Determining a grid-connected loss function according to the photovoltaic power generation power, the grid power supply power, the load power consumption and the power ratio; According to the photovoltaic power generation and light data at multiple moments in the current detection cycle, as well as the weather forecast data, the predicted photovoltaic power generation at multiple moments in the next detection cycle is obtained; Determine the predicted load power consumption at multiple moments in the next detection cycle according to the load power consumption at multiple moments in the current detection cycle and the end time of the current detection cycle; Obtain the expected power data of the energy storage device at the end of the next detection cycle; Determine the predicted power ratio of photovoltaic grid connection and energy storage according to the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device; At the beginning of the next detection cycle, adjusting the power ratio of the photovoltaic grid connection and the energy storage according to the predicted power ratio; Determining an energy storage loss function according to the photovoltaic power generation power, the power data of the energy storage device and the power ratio includes: Determine the photovoltaic power generation energy storage quantity between multiple moments in the current detection cycle according to the photovoltaic power generation power and the power ratio; Determine the power change data between multiple moments in the current detection cycle according to the power data of the energy storage device; Determining the energy storage loss function according to the photovoltaic power generation energy storage quantity and the energy change data; Determining the energy storage loss function according to the photovoltaic power generation energy storage quantity and the energy change data includes: According to the formula ; Determine the first undetermined coefficient equation of the energy storage loss function, where: is the power change data between the i-th moment and the i+1-th moment in the current detection cycle, is the photovoltaic power generation at the i-th moment in the current detection cycle, is the photovoltaic power generation at the i+1th moment in the current detection cycle, is the time interval between adjacent moments, is the power ratio of photovoltaic grid connection and energy storage in the current detection cycle, and is the first undetermined coefficient, The photovoltaic power generation and storage capacity between the i-th moment and the i+1-th moment in the current detection cycle; Solving the first undetermined coefficient according to the photovoltaic power generation power, photovoltaic power generation energy storage power and power change data to obtain a solution value of the first undetermined coefficient; Obtaining the energy storage loss function according to the solved value of the first undetermined coefficient and the first undetermined coefficient equation; Determining a grid-connected loss function according to the photovoltaic power generation power, the grid power supply power, the load power consumption and the power ratio includes: Determining the photovoltaic power generation grid-connected power at multiple moments in the current detection cycle according to the photovoltaic power generation power and the power ratio; Determining a grid-connected loss function according to the photovoltaic power generation grid-connected power, the grid power supply power and the load power consumption; Determining a grid-connected loss function according to the photovoltaic power generation grid-connected power, the grid power supply power and the load power consumption includes: According to the formula ; Determine the second undetermined coefficient equation of the photovoltaic grid-connected loss function, where: is the grid power supply power at the i-th moment in the current detection cycle, is the load power consumption at the i-th moment in the current detection cycle, is the photovoltaic power generation grid-connected power at the i-th moment in the current detection cycle, , and is the second unknown coefficient; Solving the second undetermined coefficient according to the photovoltaic power generation grid-connected power, the power supply power of the power grid and the power consumption of the load to obtain a solution value of the second undetermined coefficient; Determine a photovoltaic grid-connected loss function according to the solved value of the second undetermined coefficient and the second undetermined coefficient equation; Determining the predicted power ratio of photovoltaic grid connection and energy storage according to the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device, including: Obtaining expected change data of the power of the energy storage device according to the expected power data and the power data of the energy storage device at the end of the current detection cycle; Determining the constraint conditions of the optimization model according to the expected change data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power and the predicted load power consumption; Determining an objective function of an optimization model according to the energy storage loss function and the grid connection loss function; According to the constraints and objective function of the optimization model, solving the optimal solution of the optimization model to obtain the predicted power ratio of photovoltaic grid connection and energy storage; According to the expected change data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation and the predicted load power consumption, the constraint conditions of the optimization model are determined, including: According to the formula ; ; ; ; Determine the constraints of the optimization model, where is the predicted photovoltaic power generation at the i-th moment of the next detection cycle, is the predicted photovoltaic power generation power at the i+1th moment of the next detection cycle, is the predicted power ratio of photovoltaic grid connection and energy storage, is the expected change data of the power of the energy storage device, is the predicted load power consumption at the i-th moment of the next detection cycle, is the predicted grid power supply power at the i-th moment of the next detection cycle, is the photovoltaic power generation power threshold, is the ratio threshold, n is the number of moments in the current detection cycle, for The solution value of for The solution value of for The solution value of for The solution value of for The solution value of ; According to the energy storage loss function and the grid connection loss function, determining the objective function of the optimization model includes: According to the formula ; ; ; Determine the objective function of the optimization model, where It is the predicted grid power supply power at the i+1th moment in the next detection cycle.
2. A photovoltaic power generation energy storage control system for executing the method according to claim 1, characterized in that: include: The acquisition module is used to obtain the photovoltaic power generation power, grid power supply power, load power consumption, energy storage equipment power data at multiple moments in the current detection cycle and the power ratio of photovoltaic grid connection and energy storage in the current detection cycle at the end of the current detection cycle; An energy storage loss function module is used to determine an energy storage loss function according to the photovoltaic power generation power, the electric quantity data of the energy storage device and the power ratio; A grid-connected loss function module, used to determine a grid-connected loss function according to the photovoltaic power generation power, the grid power supply power, the load power consumption and the power ratio; The photovoltaic power generation prediction module is used to obtain the predicted photovoltaic power generation at multiple moments in the next detection cycle based on the photovoltaic power generation and light data at multiple moments in the current detection cycle and the weather forecast data; A load power prediction module is used to determine the predicted load power at multiple moments in the next detection cycle based on the load power at multiple moments in the current detection cycle and the end time of the current detection cycle; An expected power data module is used to obtain the expected power data of the energy storage device at the end of the next detection cycle; A predicted power ratio module, used to determine the predicted power ratio of photovoltaic grid connection and energy storage according to the expected power data, the energy storage loss function, the grid connection loss function, the predicted photovoltaic power generation power, the predicted load power consumption and the power data of the energy storage device; The adjustment module is used to adjust the power ratio of the photovoltaic grid connection and energy storage according to the predicted power ratio at the beginning of the next detection cycle.
