Photovoltaic energy storage system charging and discharging control method
By combining machine learning algorithms and filtering algorithms to measure and control battery charge and discharge data in photovoltaic energy storage systems in real time, it solves the problem of inability to achieve accurate battery charge and discharge control in the existing technology, and improves charge estimation and charge and discharge control. Accuracy improves the reliability of photovoltaic energy storage systems.
Patent Information
- Application Number
- CN202311190476.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-09-14
AI Technical Summary
Existing photovoltaic energy storage systems cannot achieve real-time, flexible, and precise charge and discharge control of a single energy storage battery, resulting in poor reliability of photovoltaic power generation.
It uses a combination of machine learning algorithms and filtering algorithms to achieve flexible and precise control of each battery by measuring and storing the charge and discharge data of battery components in real time, estimating the charge amount and controlling the battery charge and discharge in real time.
The charge estimation accuracy and charge and discharge control accuracy are improved, ensuring the flexibility and reliability of the photovoltaic energy storage system.
Smart Images

Figure CN117239868B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic energy storage, and in particular to a method for controlling charging and discharging of a photovoltaic energy storage system. Background Art
[0002] Photovoltaic power generation is a power generation method that converts solar energy into electrical energy. The electrical energy generated by the photovoltaic power generation system is stored in a battery module, and then the battery module is used to charge the load. Due to factors such as weather and the characteristics of sunlight itself, photovoltaic power generation has strong volatility and randomness, resulting in poor reliability of photovoltaic power generation. This puts high demands on the control accuracy of the charge and discharge of energy storage battery modules. In the prior art, manual unified charge and discharge control of battery modules is generally adopted, which cannot achieve real-time, flexible and targeted charge and discharge control of individual energy storage batteries. Summary of the invention
[0003] The purpose of the present invention is to provide a photovoltaic energy storage system charge and discharge control method to solve the problems raised in the background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A photovoltaic energy storage system charge and discharge control method, comprising the steps of:
[0006] S10: The charge and discharge detection unit measures the charge and discharge data of each battery in the battery assembly in real time;
[0007] S20: storing the charge and discharge data in a data storage unit;
[0008] S30: The analysis control unit extracts the historical charge and discharge data from the data storage unit, and estimates the charge of each battery in the battery assembly within a preset time period by combining a machine learning algorithm model with a filtering algorithm based on the historical charge and discharge data, and controls the charge and discharge of each battery in real time.
[0009] Optionally, the step of extracting the historical charge and discharge data from the data storage unit by the analysis control unit, analyzing the historical charge and discharge data, and controlling the charging of the battery assembly in real time includes:
[0010] S311: estimating a first charge amount and a first charge amount difference of each battery in the battery assembly within a first preset time period, wherein the first charge amount difference is equal to a difference between a maximum first charge amount and a minimum first charge amount within the first preset time period;
[0011] S312: Obtaining a first charge difference of each battery, and estimating a single battery charging time of each battery according to a difference between the first charge difference and a charge fluctuation threshold;
[0012] S313: estimating a first charge fluctuation value of each battery in the battery assembly within a first preset time period, wherein the first charge fluctuation value is equal to a variance of the first charge within the first preset time period;
[0013] S314: Select batteries whose first charge amount difference is greater than the charge amount fluctuation threshold, sort them in reverse order according to the first charge amount fluctuation value of each battery, and charge the selected batteries separately in sequence according to the single battery charging time of each battery.
[0014] Optionally, the analysis control unit extracts the historical charge and discharge data from the data storage unit, analyzes the historical charge and discharge data, and controls the charging of the battery assembly in real time, further comprising:
[0015] S315: charging all batteries;
[0016] S316: estimating a second charge amount and a second charge difference of each battery in the battery assembly within a second preset time period, wherein the second charge difference is equal to a difference between a maximum second charge amount and a minimum second charge amount within the second preset time period;
[0017] S317: Obtain a second charge difference of each battery, calculate a second charge difference representative value, and estimate the charging time of all batteries according to the second charge difference representative value to obtain an estimated charging time of all batteries, wherein the second charge difference representative value includes at least one of the following: a second charge difference median, a second charge difference 75% digit, a second charge difference 80% digit, or a second charge difference 90% digit;
[0018] S318: If the total battery charging time reaches the estimated total battery charging time, stop charging.
[0019] Optionally, the step of extracting the historical charge and discharge data from the data storage unit by the analysis control unit, analyzing the historical charge and discharge data, and controlling the discharge of the battery assembly in real time includes:
[0020] S321: estimating a third charge amount and a third charge amount difference of each battery in the battery assembly within a third preset time period, wherein the third charge amount difference is equal to a difference between a maximum third charge amount and a minimum third charge amount within the third preset time period;
[0021] S322: Obtain a third charge amount difference of each battery, and estimate a single battery discharge time of each battery according to a difference between the third charge amount difference and a charge amount fluctuation threshold;
[0022] S323: estimating a third charge quantity fluctuation value of each battery in the battery assembly within a third preset time period, wherein the third charge quantity fluctuation value is equal to a variance of the third charge quantity within the third preset time period;
[0023] S324: Select batteries whose third charge amount difference is greater than the charge amount fluctuation threshold, sort them in order according to the third charge amount fluctuation value of each battery, and discharge the selected batteries separately in order according to the single battery discharge time of each battery.
[0024] Optionally, the step of extracting the historical charge and discharge data from the data storage unit by the analysis control unit, analyzing the historical charge and discharge data, and controlling the discharge of the battery assembly in real time further includes:
[0025] S325: Discharge all batteries;
[0026] S326: estimating a fourth charge amount and a fourth charge difference of each battery in the battery assembly within a fourth preset time period, wherein the fourth charge difference is equal to a difference between a maximum fourth charge amount and a minimum fourth charge amount within the fourth preset time period.
[0027] S327: obtaining a fourth charge difference of each battery, obtaining a fourth charge difference representative value, estimating the discharge duration of all batteries according to the fourth charge difference representative value to obtain an estimated discharge duration of all batteries, wherein the fourth charge difference representative value includes at least one of the following: a fourth charge difference median, a fourth charge difference 75% digit, a fourth charge difference 80% digit, or a fourth charge difference 90% digit;
[0028] S328: If the total battery discharge time reaches the estimated total battery discharge time, stop discharging.
[0029] In order to improve the estimation accuracy of the charge amount, the present invention adopts a machine learning algorithm model combined with a filtering algorithm to realize the estimation of the charge amount; preferably, the method steps of estimating the charge amount of each battery in the battery assembly within a time period include:
[0030] Acquire the historical charge and discharge data stored in the data storage unit;
[0031] Extract characteristic parameters from historical charge and discharge data as input parameters, and charge quantity as output parameters to generate a machine learning algorithm model;
[0032] The charge quantity estimation value is filtered by a filtering algorithm to obtain a high-precision charge quantity estimation value.
[0033] Among them, the charge value output by the machine learning algorithm model is used as the measurement equation in the filtering algorithm, and the charge estimation value obtained by the traditional method is used as the state equation in the filtering algorithm.
[0034] Optionally, the machine learning algorithm includes: one or more of artificial neural network, deep learning, and decision tree.
[0035] Optionally, the historical charge and discharge data include real-time charge values, voltages, and currents of the multiple batteries; and the input parameters are the historical voltages and currents of the batteries.
[0036] Compared with the prior art, the beneficial effects of the present invention include at least:
[0037] The present invention provides a method for controlling charging and discharging of a photovoltaic energy storage system. The method estimates the charge of each battery by analyzing the charge and discharge data of each battery in a battery assembly, and performs flexible, real-time, and precise control on the charging and discharging of each battery according to the charge. At the same time, a machine learning algorithm is combined with a filtering algorithm, and the charge value output by the machine learning algorithm model is used as the measurement equation in the filtering algorithm, and the charge estimation value obtained by a traditional method is used as the state equation in the filtering algorithm, thereby further improving the charge estimation accuracy and the charge and discharge control accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 It is a flow chart of a photovoltaic energy storage system charging and discharging control method provided by the present invention;
[0040] Figure 2 It is a flowchart of the specific steps of a charging control method for a photovoltaic energy storage system provided by the present invention;
[0041] Figure 3 It is a flowchart of the specific steps of a charging control method for a photovoltaic energy storage system provided by the present invention;
[0042] Figure 4 It is a flow chart of specific steps of a discharge control method of a photovoltaic energy storage system provided by the present invention;
[0043] Figure 5 It is a flow chart of specific steps of a discharge control method of a photovoltaic energy storage system provided by the present invention;
[0044] Figure 6 The present invention provides a flow chart of a charge estimation method. DETAILED DESCRIPTION
[0045] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0046] The present invention provides a photovoltaic energy storage system charging and discharging control method, such as Figure 1 As shown, the method comprises the following steps:
[0047] S10: The charge and discharge detection unit measures the charge and discharge data of each battery in the battery assembly in real time;
[0048] The charge and discharge data of each battery is the charge and discharge data of each battery within one minute, including the voltage value Vt i, the current value It i and the charge value Ct i of each battery per minute, ti is the corresponding moment, preferably, the unit of ti is min.
[0049] S20: storing the charge and discharge data in a data storage unit;
[0050] The historical charge and discharge data of the battery stored in the data storage unit is used by the analysis control unit to extract and analyze the historical charge and discharge data in real time.
[0051] S30: The analysis control unit extracts the historical charge and discharge data from the data storage unit, and estimates the charge of each battery in the battery assembly within a preset time period by combining a machine learning algorithm model with a filtering algorithm based on the historical charge and discharge data, and controls the charge and discharge of each battery in real time.
[0052] In order to further improve the estimated value of the charge amount and thereby ensure the accuracy of the control of the charging and discharging of each battery, the present application adopts a combination of a machine learning algorithm model and a filtering algorithm to estimate and predict the charge amount of each battery; by estimating and predicting the charge amount of each battery, precise control of the charging and discharging of each battery is achieved with strong flexibility.
[0053] Optionally, the step S30 includes:
[0054] The analysis control unit extracts the historical charge and discharge data from the data storage unit, analyzes the historical charge and discharge data, and controls the charging of the battery assembly in real time, such as Figure 2 As shown, including:
[0055] S311: estimating a first charge amount and a first charge amount difference of each battery in the battery assembly within a first preset time period, wherein the first charge amount difference is equal to a difference between a maximum first charge amount and a minimum first charge amount within the first preset time period;
[0056] For example, estimate the charge Ct i,ti∈(t0,t1) in the time period Δt (Δt=t1-t0),
[0057] For example, the difference in the first charge amount is: ΔC=maxCt i-minCt i, ti∈(t0, t1).
[0058] S312: Obtain a first charge quantity difference of each battery, and estimate a single battery charging time of each battery according to a difference between the first charge quantity difference and a charge quantity fluctuation threshold.
[0059] S313: estimating a first charge quantity fluctuation value of each battery in the battery assembly within a first preset time period, wherein the first charge quantity fluctuation value is equal to a variance of the first charge quantity within the first preset time period.
[0060] S314: Select batteries whose first charge amount difference is greater than the charge amount fluctuation threshold, sort them in reverse order according to the first charge amount fluctuation value of each battery, and charge the selected batteries separately in sequence according to the single battery charging time of each battery.
[0061] Optionally, the step S30 includes:
[0062] The analysis control unit extracts the historical charge and discharge data from the data storage unit, analyzes the historical charge and discharge data, and controls the charging of the battery assembly in real time, such as Figure 3 As shown, it also includes:
[0063] S315: charging all batteries;
[0064] S316: estimating a second charge amount and a second charge difference of each battery in the battery assembly within a second preset time period, wherein the second charge difference is equal to a difference between a maximum second charge amount and a minimum second charge amount within the second preset time period;
[0065] S317: Obtain a second charge difference of each battery, calculate a second charge difference representative value, and estimate the charging time of all batteries according to the second charge difference representative value to obtain an estimated charging time of all batteries, wherein the second charge difference representative value includes at least one of the following: a second charge difference median, a second charge difference 75% digit, a second charge difference 80% digit, or a second charge difference 90% digit;
[0066] S318: If the total battery charging time reaches the estimated total battery charging time, stop charging.
[0067] Among them, the calculation method of the difference in the second charge quantity is the same as the calculation method of the difference in the second charge quantity, and will not be repeated here.
[0068] S316: If the second charge fluctuation value is greater than the charging depth of the battery, stop charging.
[0069] The depth of charge is a reference value of the depth of charge corresponding to each battery in the battery assembly, which is determined by the actual battery specification parameters.
[0070] Optionally, the step S30 includes:
[0071] The analysis control unit extracts the historical charge and discharge data from the data storage unit, analyzes the historical charge and discharge data, and controls the charging of the battery assembly in real time, such as Figure 4 As shown, including:
[0072] S321: estimating a third charge amount and a third charge amount difference of each battery in the battery assembly within a third preset time period, wherein the third charge amount difference is equal to a difference between a maximum third charge amount and a minimum third charge amount within the third preset time period;
[0073] S322: Obtain a third charge amount difference of each battery, and estimate a single battery discharge time of each battery according to a difference between the third charge amount difference and a charge amount fluctuation threshold;
[0074] S323: estimating a third charge quantity fluctuation value of each battery in the battery assembly within a third preset time period, wherein the third charge quantity fluctuation value is equal to a variance of the third charge quantity within the third preset time period;
[0075] S324: Select batteries whose third charge amount difference is greater than the charge amount fluctuation threshold, sort them in order according to the third charge amount fluctuation value of each battery, and discharge the selected batteries separately in order according to the single battery discharge time of each battery.
[0076] The calculation method of the charge difference of the third charge quantity is the same as the calculation method of the charge difference of the first and second charge quantities, which will not be described again here.
[0077] Optionally, the step S30 is as follows: Figure 5 As shown, it also includes:
[0078] S325: Discharge all batteries;
[0079] S326: estimating a fourth charge amount and a fourth charge difference of each battery in the battery assembly within a fourth preset time period, wherein the fourth charge difference is equal to a difference between a maximum fourth charge amount and a minimum fourth charge amount within the fourth preset time period.
[0080] S327: obtaining a fourth charge difference of each battery, obtaining a fourth charge difference representative value, estimating the discharge duration of all batteries according to the fourth charge difference representative value to obtain an estimated discharge duration of all batteries, wherein the fourth charge difference representative value includes at least one of the following: a fourth charge difference median, a fourth charge difference 75% digit, a fourth charge difference 80% digit, or a fourth charge difference 90% digit;
[0081] S328: If the total battery discharge time reaches the estimated total battery discharge time, stop discharging.
[0082] The calculation method of the charge quantity difference of the fourth charge quantity is the same as the calculation method of the charge quantity difference of the first, second and third charge quantities mentioned above, and will not be repeated here.
[0083] As the key energy storage structure of the photovoltaic energy storage system, the battery assembly plays a vital role in the working efficiency of the entire photovoltaic energy storage system. Therefore, the more accurate the estimation of the battery charge, the more accurate the corresponding charging and discharging control will be. The traditional charge estimation method is single and inaccurate.
[0084] In order to improve the accuracy of the charge quantity, the present invention proposes an estimation method based on the combination of a machine learning algorithm model and a filtering algorithm, which further improves the estimation accuracy. Figure 6 The steps include:
[0085] Acquire the historical charge and discharge data stored in the data storage unit;
[0086] Extract characteristic parameters from historical charge and discharge data as input parameters, use charge as output parameters, generate a machine learning algorithm model through training; use the trained machine learning algorithm model to estimate the charge value;
[0087] The charge value is filtered by a filtering algorithm to obtain a high-precision charge value estimation value.
[0088] Among them, the measurement equation in the filtering algorithm is the charge value output by the machine learning algorithm model, and the state equation in the filtering algorithm is the charge value estimated by the traditional method (such as the voltage method);
[0089] The machine learning algorithm may be selected from one or more of artificial neural networks, deep learning, and decision trees. The input parameters of the machine learning algorithm model are the current and voltage values corresponding to each battery in the battery assembly at time ti.
[0090] Among them, the filtering algorithm is an estimation algorithm that combines prior experience and measurement updates. It estimates the state of the system to predict the future state of the system. The algorithm calculates the estimated value of the system state by processing the observed value and control input of the system, and then improves the estimation accuracy of the system state by updating the estimated value of the system state. It mainly includes:
[0091] The charge value output by the machine learning algorithm model is used as the measurement equation in the filtering algorithm, and the charge value estimated by the traditional method is used as the state equation in the filtering algorithm. First, perform state estimation:
[0092] X(k|k-1)=AX(k-1|k-1)+α
[0093] Where X(k|k-1) is the result corresponding to the current state (K state) predicted by the previous state (K-1 state), X(k-1|k-1) is the optimal result of the previous state, and α is the correction parameter of the current state.
[0094] Then, calculate the filter gain:
[0095] First calculate the covariance of the estimates,
[0096] P(k|k-1)=AP(k-1|k-1)A T +Q
[0097] Among them, P(k|k-1) and P(k-1|k-1) are the covariances corresponding to X(k|k-1) and X(k-1|k-1), respectively. T represents the transposed matrix of A, and Q is the covariance of the system process.
[0098] Then, the estimate is revised.
[0099] X(k|k)=X(k|k-1)+Kg(k)(Z(k)-HX(k|k-1))
[0100] Among them, X(k|k) is the best estimate of the current state (K state);
[0101] Then, update the corrected covariance,
[0102] P(k|k)=(I-Kg(k)H)P(k|k-1)
[0103] Where P(k|k) is the covariance of X(k|k) in state k, and I is the identity matrix. When the system enters state k+1, P(k|k) is the above P(k-1|k-1);
[0104] Finally, gain,
[0105] Kg(k)=P(k|k-1)HT / (HP(k|k-1)HT+R)
[0106] The above calculation steps are continuously repeated to update the filter state estimation value X(k|k) in real time.
[0107] The charge estimation value obtained by the above-mentioned machine learning algorithm model is filtered by a filtering algorithm, which further improves the charge estimation value of each battery in the battery assembly and provides accurate reference data for the subsequent charge and discharge control judgment accuracy.
[0108] In this way, according to a photovoltaic energy storage system charge and discharge control method provided by the present invention, by analyzing the charge and discharge data of each battery in the battery assembly, the real-time charge of each battery is estimated, and the charge and discharge of each battery is flexibly, in real time, and accurately controlled according to the charge. At the same time, a machine learning algorithm is combined with a filtering algorithm, and the charge value output by the machine learning algorithm model is used as the measurement equation in the filtering algorithm, and the charge estimation value obtained by the traditional method is used as the state equation in the filtering algorithm. The estimation accuracy of the charge is further improved, and the accuracy of the charge and discharge control is improved.
[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A photovoltaic energy storage system charge and discharge control method, characterized in that: The following steps are involved: S10: The charge and discharge detection unit measures the charge and discharge data of each battery in the battery assembly in real time; S20: storing the charge and discharge data in a data storage unit; S30: the analysis control unit extracts historical charge and discharge data from the data storage unit, and estimates the charge amount and charge amount fluctuation value of each battery in the battery assembly within a preset time period by combining a machine learning algorithm model with a filtering algorithm according to the historical charge and discharge data, and controls the charge and discharge of each battery in real time; Wherein, in step S30, the step of controlling the charging of the battery assembly in real time includes: S311: estimating a first charge amount and a first charge amount difference of each battery in the battery assembly within a first preset time period, wherein the first charge amount difference is equal to a difference between a maximum first charge amount and a minimum first charge amount within the first preset time period; S312: Obtaining a first charge difference of each battery, and estimating a single battery charging time of each battery according to a difference between the first charge difference and a charge fluctuation threshold; S313: estimating a first charge fluctuation value of each battery in the battery assembly within a first preset time period, wherein the first charge fluctuation value is equal to a variance of the first charge within the first preset time period; S314: selecting batteries whose first charge amount difference is greater than the charge amount fluctuation threshold, sorting them in reverse order according to the first charge amount fluctuation value of each battery, and charging the selected batteries separately in order according to the single battery charging time of each battery; Wherein, the step S30 further includes: S315: charging all batteries; S316: estimating a second charge amount and a second charge difference of each battery in the battery assembly within a second preset time period, wherein the second charge difference is equal to a difference between a maximum second charge amount and a minimum second charge amount within the second preset time period; S317: Obtain a second charge difference of each battery, calculate a second charge difference representative value, and estimate the charging time of all batteries according to the second charge difference representative value to obtain an estimated charging time of all batteries, wherein the second charge difference representative value includes at least one of the following: a second charge difference median, a second charge difference 75% digit, a second charge difference 80% digit, or a second charge difference 90% digit; S318: If the total battery charging time reaches the estimated total battery charging time, stop charging; Wherein, in step S30, the step of controlling the discharge of the battery assembly in real time includes: S321: estimating a third charge amount and a third charge amount difference of each battery in the battery assembly within a third preset time period, wherein the third charge amount difference is equal to a difference between a maximum third charge amount and a minimum third charge amount within the third preset time period; S322: Obtain a third charge amount difference of each battery, and estimate a single battery discharge time of each battery according to a difference between the third charge amount difference and a charge amount fluctuation threshold; S323: estimating a third charge quantity fluctuation value of each battery in the battery assembly within a third preset time period, wherein the third charge quantity fluctuation value is equal to a variance of the third charge quantity within the third preset time period; S324: selecting batteries whose third charge amount difference is greater than the charge amount fluctuation threshold, sorting the batteries in order according to the third charge amount fluctuation value of each battery, and discharging the selected batteries separately in order according to the single battery discharge time of each battery; Wherein, the step S30 further includes: S325: Discharge all batteries; S326: estimating a fourth charge amount and a fourth charge difference of each battery in the battery assembly within a fourth preset time period, wherein the fourth charge difference is equal to a difference between a maximum fourth charge amount and a minimum fourth charge amount within the fourth preset time period; S327: obtaining a fourth charge difference of each battery, calculating a fourth charge difference representative value, estimating the discharge duration of all batteries according to the fourth charge difference representative value to obtain an estimated discharge duration of all batteries, wherein the fourth charge difference representative value includes at least one of the following: a fourth charge difference median, a fourth charge difference 75% digit, a fourth charge difference 80% digit, or a fourth charge difference 90% digit; S328: If the total battery discharge time reaches the estimated total battery discharge time, stop discharging; The charging and discharging data include the real-time charge value, voltage and current of each battery; The machine learning algorithm model is combined with the filtering algorithm to estimate the charge of each battery in the battery assembly within a preset time period, including: Acquire the historical charge and discharge data stored in the data storage unit; Extract characteristic parameters from historical charge and discharge data as input parameters, and charge quantity as output parameters to generate a machine learning algorithm model; The machine learning algorithm model outputs a charge estimation value according to the input parameters; the charge estimation value is then filtered by a filtering algorithm to obtain a high-precision charge estimation value; Among them, the charge value output by the machine learning algorithm model is used as the measurement equation in the filtering algorithm, and the charge estimation value obtained by the traditional method is used as the state equation in the filtering algorithm.
2. The photovoltaic energy storage system charge and discharge control method according to claim 1, characterized in that: The machine learning algorithm includes: one or more of artificial neural network, deep learning, and decision tree.
3. The photovoltaic energy storage system charge and discharge control method according to claim 1, characterized in that: The input parameters are the historical voltage and current of each battery.
Citation Information
Cited By
Photovoltaic energy storage system charging and discharging control method based on dynamic threshold value
CN120855623A
Photovoltaic energy storage system charge-discharge control method based on dynamic threshold
CN120855623B
