A battery state of charge estimation method, device, equipment and storage medium
Through the Thevenin equivalent circuit model and extended Kalman filter algorithm combined with the adaptive double-power sliding film observer, the accuracy problem of lithium battery state of charge estimation is solved, and high accuracy and robustness of lithium battery state of charge are achieved. sexual estimation, reducing the impact of external interference.
Patent Information
- Application Number
- CN202410782292.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Lithium batteries are difficult to accurately estimate the state of charge under the influence of factors such as high dynamic load, battery imbalance, self-discharge and aging, and are susceptible to external interference.
The Thevenin equivalent circuit model is used to construct a state space model, and high-order polynomials are used to fit the nonlinear relationship between state of charge and open circuit voltage. The extended Kalman filter algorithm is combined with the extended Kalman filter algorithm for online parameter identification, and an adaptive double-power synovial membrane observer is constructed. to calculate state of charge in real time.
It improves the accuracy of lithium battery state-of-charge estimation and system robustness, suppresses the influence of external interference and noise, and enhances the real-time reflection of the lithium battery state.
Smart Images

Figure CN118362905B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lithium batteries, and in particular to a method, device, equipment and storage medium for estimating the state of charge of a battery. Background Art
[0002] Lithium-ion Battery (LiB) Lithium-ion Battery (LiB) is widely used in consumer electronics, transportation and energy storage due to its advantages such as high energy density, high power density, low self-discharge rate and low cost. To ensure the safe, reliable and effective use of lithium batteries, it is crucial to accurately estimate its state-of-charge (SOC).
[0003] However, in applications such as lithium batteries used as automotive power batteries, many factors need to be considered when estimating their state of charge, such as high dynamic loads, battery imbalance, self-discharge, aging, and hysteresis characteristics. In addition, lithium batteries are also susceptible to nonlinearity between various physical quantities, electrothermal coupling, and uncertain external interference during operation, making it difficult to accurately estimate the state of charge of lithium batteries. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method, device, equipment and storage medium for estimating the state of charge of a battery, which can improve the accuracy of estimating the state of charge of a lithium battery.
[0005] In order to solve the above technical problems, the present invention provides a method for estimating the state of charge of a battery, comprising:
[0006] Based on the Thevenin equivalent circuit model, a Thevenin equivalent circuit state space model of lithium battery is constructed;
[0007] Fitting the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine a nonlinear relationship curve between the state of charge and the open circuit voltage;
[0008] Collecting real-time operating data of the lithium battery, and based on the real-time operating data, using an extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain an estimated value of a state variable;
[0009] An adaptive dual-power sliding film observer is constructed, and the nonlinear relationship curve and the estimated value of the state variable are input into the adaptive dual-power sliding film observer, so that the adaptive dual-power sliding film observer can calculate the estimated value of the state of charge of the lithium battery in real time.
[0010] In a possible implementation, based on the Thevenin equivalent circuit model, a Thevenin equivalent circuit state space model of a lithium battery is constructed, specifically including:
[0011] Determine the state of charge equation of lithium battery based on the Thevenin equivalent circuit model;
[0012] Based on the Thevenin equivalent circuit model, determining a polarization voltage differential equation of the lithium battery;
[0013] Based on the Thevenin equivalent circuit model, determining a terminal voltage equation of the lithium battery, and converting the terminal voltage equation into a terminal voltage differential equation;
[0014] Determining a Thevenin equivalent circuit state space model of the lithium battery based on the state of charge equation, the polarization voltage differential equation and the terminal voltage differential equation;
[0015] The Thevenin equivalent circuit state space model is as follows:
[0016] ;
[0017] In the formula, is the terminal voltage, is the open circuit voltage, is the charge and discharge current, is the polarization voltage, is the polarized capacitance, is the polarization resistance, is the state of charge, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the uncertainty caused by the unknown nonlinear terminal voltage, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance. is the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the battery terminal voltage, is the differential form of the battery state of charge, is the differential form of the battery polarization voltage.
[0018] In a possible implementation, the state of charge and the open circuit voltage of the lithium battery are fitted based on a preset high-order polynomial to determine a nonlinear relationship curve between the state of charge and the open circuit voltage, specifically including:
[0019] Acquire multiple charge states of the lithium battery and the open circuit voltage corresponding to each charge state;
[0020] Based on the preset high-order polynomial, construct the state of charge-open circuit voltage relationship expression;
[0021] Substituting the multiple states of charge and the open circuit voltage into the state of charge-open circuit voltage relationship expression, and performing fitting processing on the state of charge-open circuit voltage relationship expression based on a fitting algorithm to obtain a nonlinear relationship curve between the multiple states of charge and the open circuit voltage;
[0022] The nonlinear relationship curve is as follows:
[0023] ;
[0024] In the formula, is the fitting coefficient, is the battery charge state, is the square of the battery state of charge, is the 11th power of the battery state of charge, It is the 12th power of the battery's state of charge.
[0025] In a possible implementation, based on the real-time operating condition data, an extended Kalman filter algorithm is used to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain a state variable estimation value, specifically including:
[0026] Selecting a state variable to be identified, and establishing a parameter online identification state space equation based on the state variable and the real-time operating condition data;
[0027] Linearizing the parameter online identification state space equation to obtain a state transfer matrix and a system output matrix;
[0028] Setting an initial filtering condition, calculating an initial estimated value of a state variable of the state variable based on the initial filtering condition, and calculating an initial error covariance matrix based on the initial filtering condition;
[0029] The initial estimated values of the state variables are updated according to the state transfer matrix to obtain a priori estimated values of the state variables, and the initial error covariance matrix of the state variables is updated based on the state transfer matrix to obtain an error covariance matrix;
[0030] Calculating a gain matrix according to the system output matrix, calculating a posteriori estimates of the state variables based on the gain matrix, and updating the error covariance matrix according to the gain matrix;
[0031] Based on the a posteriori estimate of the state variable, a state variable estimate is determined.
[0032] In a possible implementation, the step of constructing an adaptive dual-power synovial observer specifically includes:
[0033] Constructing an adaptive dual-power sliding film observer and setting a switching gain for the adaptive dual-power sliding film observer, wherein the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer and a polarization voltage adaptive dual-power sliding film observer;
[0034] Set the terminal voltage observation error, charge state observation error and polarization voltage observation error;
[0035] Determining a terminal voltage sliding mode function based on the terminal voltage observation error, and determining a terminal voltage Lyapunov function based on the terminal voltage sliding mode function;
[0036] Determining a state of charge sliding mode function based on the state of charge observation error, and determining a state of charge Lyapunov function based on the state of charge sliding mode function;
[0037] Determining a polarization voltage sliding mode function based on the polarization voltage observation error, and determining a polarization voltage Lyapunov function based on the polarization voltage sliding mode function;
[0038] Determine, based on the terminal voltage Lyapunov function, the state of charge Lyapunov function, and the polarization voltage Lyapunov function, a first quantitative relationship between the state of charge observation error and a first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and a second quantitative relationship between the polarization voltage observation error and a second equivalent control quantity preset in the adaptive dual-power sliding mode observer;
[0039] Based on the first quantitative relationship, the battery state of charge adaptive dual-power sliding film observer is updated, and based on the second quantitative relationship, the polarization voltage adaptive dual-power sliding film observer is updated.
[0040] In a possible implementation, the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer, and a polarization voltage adaptive dual-power sliding film observer;
[0041] The terminal voltage adaptive dual-power sliding mode observer is as follows:
[0042] ;
[0043] ;
[0044] , , , ;
[0045] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the terminal voltage observation value, is the sliding mode function of the terminal voltage, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, is the rate of change of the terminal voltage observation value over time, is the polarization capacitance, is the polarization resistance, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the charge and discharge current, is the parameter in the power term that controls the adaptive bi-power reaching law, and ;
[0046] The battery charge state adaptive dual-power sliding film observer is as follows:
[0047] ;
[0048] ;
[0049] In the formula, is the observed value of state of charge, is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the rate of change of the state of charge observation value over time, is the observed value of polarization voltage, is the first quantitative relationship;
[0050] The polarization voltage adaptive dual-power sliding film observer is as follows:
[0051] ;
[0052] ;
[0053] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the observed value of polarization voltage, is the rate of change of the polarization voltage observation value over time, It is the second quantitative relationship.
[0054] In a possible implementation, after obtaining the estimated value of the state variable, the following is further included:
[0055] Adopting the forward Euler method, the state of charge differential, the polarization voltage state differential and the terminal voltage differential are updated to obtain updated state of charge differential, updated polarization voltage state differential and updated terminal voltage differential; discretizing the adaptive dual-power sliding mode observer according to the updated state of charge differential, the updated polarization voltage state differential and the updated terminal voltage differential to obtain a discretized adaptive dual-power sliding mode observer;
[0056] Based on the discrete adaptive dual-power sliding mode observer, the state of charge, polarization voltage and terminal voltage are updated to obtain an updated state of charge, an updated polarization voltage and an updated terminal voltage.
[0057] The present invention also provides a battery state of charge estimation device, comprising: a Thevenin equivalent circuit state space model construction module, a nonlinear relationship curve determination module, a parameter online identification module and a state of charge estimation module;
[0058] The Thevenin equivalent circuit state space model construction module is used to construct a Thevenin equivalent circuit state space model of a lithium battery based on the Thevenin equivalent circuit model;
[0059] The nonlinear relationship curve determination module is used to fit the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage;
[0060] The parameter online identification module is used to collect real-time operating data of the lithium battery, and based on the real-time operating data, use the extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain a state variable estimation value;
[0061] The state of charge estimation module is used to construct an adaptive dual-power sliding film observer, and input the nonlinear relationship curve and the state variable estimation value into the adaptive dual-power sliding film observer, so that the adaptive dual-power sliding film observer calculates the estimated value of the state of charge of the lithium battery in real time.
[0062] In a possible implementation, the Thevenin equivalent circuit state space model construction module is used to construct the Thevenin equivalent circuit state space model of the lithium battery based on the Thevenin equivalent circuit model, specifically including:
[0063] Determine the state of charge equation of lithium battery based on the Thevenin equivalent circuit model;
[0064] Based on the Thevenin equivalent circuit model, determining a polarization voltage differential equation of the lithium battery;
[0065] Based on the Thevenin equivalent circuit model, determining a terminal voltage equation of the lithium battery, and converting the terminal voltage equation into a terminal voltage differential equation;
[0066] Determining a Thevenin equivalent circuit state space model of the lithium battery based on the state of charge equation, the polarization voltage differential equation and the terminal voltage differential equation;
[0067] The Thevenin equivalent circuit state space model is as follows:
[0068] ;
[0069] In the formula, is the terminal voltage, is the open circuit voltage, is the charge and discharge current, is the polarization voltage, is the polarized capacitance, is the polarization resistance, is the state of charge, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the uncertainty caused by the unknown nonlinear terminal voltage, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance. is the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the battery terminal voltage, is the differential form of the battery state of charge, is the differential form of the battery polarization voltage.
[0070] In a possible implementation, the nonlinear relationship curve determination module is used to fit the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage, specifically including:
[0071] Acquire multiple charge states of the lithium battery and the open circuit voltage corresponding to each charge state;
[0072] Based on the preset high-order polynomial, construct the state of charge-open circuit voltage relationship expression;
[0073] Substituting the multiple states of charge and the open circuit voltage into the state of charge-open circuit voltage relationship expression, and performing fitting processing on the state of charge-open circuit voltage relationship expression based on a fitting algorithm to obtain a nonlinear relationship curve between the multiple states of charge and the open circuit voltage;
[0074] The nonlinear relationship curve is as follows:
[0075] ;
[0076] In the formula, is the fitting coefficient, is the battery charge state, is the square of the battery state of charge, is the 11th power of the battery state of charge, It is the 12th power of the battery's state of charge.
[0077] In a possible implementation, the parameter online identification module is used to perform online parameter identification on the Thevenin equivalent circuit state space model based on the real-time operating condition data using an extended Kalman filter algorithm to obtain a state variable estimation value, specifically including:
[0078] Selecting a state variable to be identified, and establishing a parameter online identification state space equation based on the state variable and the real-time operating condition data;
[0079] Linearizing the parameter online identification state space equation to obtain a state transfer matrix and a system output matrix;
[0080] Setting an initial filtering condition, calculating an initial estimated value of a state variable of the state variable based on the initial filtering condition, and calculating an initial error covariance matrix based on the initial filtering condition;
[0081] The initial estimated values of the state variables are updated according to the state transfer matrix to obtain a priori estimated values of the state variables, and the initial error covariance matrix of the state variables is updated based on the state transfer matrix to obtain an error covariance matrix;
[0082] Calculating a gain matrix according to the system output matrix, calculating a posteriori estimates of the state variables based on the gain matrix, and updating the error covariance matrix according to the gain matrix;
[0083] Based on the a posteriori estimate of the state variable, a state variable estimate is determined.
[0084] In a possible implementation, the state of charge estimation module is used to construct an adaptive dual-power sliding film observer, specifically including:
[0085] Constructing an adaptive dual-power sliding film observer and setting a switching gain for the adaptive dual-power sliding film observer, wherein the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer and a polarization voltage adaptive dual-power sliding film observer;
[0086] Set the terminal voltage observation error, charge state observation error and polarization voltage observation error;
[0087] Determining a terminal voltage sliding mode function based on the terminal voltage observation error, and determining a terminal voltage Lyapunov function based on the terminal voltage sliding mode function;
[0088] Determining a state of charge sliding mode function based on the state of charge observation error, and determining a state of charge Lyapunov function based on the state of charge sliding mode function;
[0089] Determining a polarization voltage sliding mode function based on the polarization voltage observation error, and determining a polarization voltage Lyapunov function based on the polarization voltage sliding mode function;
[0090] Determine, based on the terminal voltage Lyapunov function, the state of charge Lyapunov function, and the polarization voltage Lyapunov function, a first quantitative relationship between the state of charge observation error and a first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and a second quantitative relationship between the polarization voltage observation error and a second equivalent control quantity preset in the adaptive dual-power sliding mode observer;
[0091] Based on the first quantitative relationship, the battery state of charge adaptive dual-power sliding film observer is updated, and based on the second quantitative relationship, the polarization voltage adaptive dual-power sliding film observer is updated.
[0092] In a possible implementation, the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer, and a polarization voltage adaptive dual-power sliding film observer;
[0093] The terminal voltage adaptive dual-power sliding mode observer is as follows:
[0094] ;
[0095] ;
[0096] , , , ;
[0097] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the terminal voltage observation value, is the sliding mode function of the terminal voltage, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, is the rate of change of the terminal voltage observation value over time, is the polarization capacitance, is the polarization resistance, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the charge and discharge current, is the parameter in the power term that controls the adaptive bi-power reaching law, and ;
[0098] The battery charge state adaptive dual-power sliding film observer is as follows:
[0099] ;
[0100] ;
[0101] In the formula, is the observed value of state of charge, is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the rate of change of the state of charge observation value over time, is the observed value of polarization voltage, is the first quantitative relationship;
[0102] The polarization voltage adaptive dual-power sliding film observer is as follows:
[0103] ;
[0104] ;
[0105] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the observed value of polarization voltage, is the rate of change of the polarization voltage observation value over time, It is the second quantitative relationship.
[0106] In a possible implementation, the state of charge estimation module, after obtaining the estimated value of the state variable, further includes:
[0107] Adopting the forward Euler method, the state of charge differential, the polarization voltage state differential and the terminal voltage differential are updated to obtain updated state of charge differential, updated polarization voltage state differential and updated terminal voltage differential; discretizing the adaptive dual-power sliding mode observer according to the updated state of charge differential, the updated polarization voltage state differential and the updated terminal voltage differential to obtain a discretized adaptive dual-power sliding mode observer;
[0108] Based on the discrete adaptive dual-power sliding mode observer, the state of charge, polarization voltage and terminal voltage are updated to obtain an updated state of charge, an updated polarization voltage and an updated terminal voltage.
[0109] The present invention also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the battery state of charge estimation method as described in any one of the above items is implemented.
[0110] The present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a battery state of charge estimation method as described in any one of the above.
[0111] Compared with the prior art, the method, device, equipment and storage medium for estimating the state of charge of a battery according to the embodiment of the present invention have the following beneficial effects:
[0112] By adopting the Thevenin equivalent circuit model and constructing the Thevenin equivalent circuit state space model of lithium batteries, the requirements for hardware computing power can be reduced in the subsequent state of charge evaluation; at the same time, the nonlinear relationship curve between the state of charge and the open circuit voltage of the lithium battery is fitted by a high-order polynomial to better adapt to the working characteristics and environmental conditions of different lithium batteries, so that the fitting curve can maintain a high accuracy under different conditions, thereby improving the robustness of the system; and in the face of the situation that the characteristic parameters of lithium batteries will change with the changes of time, temperature, load and other factors, the Thevenin equivalent circuit state space model based on the extended Kalman filter algorithm is used to fit the nonlinear relationship curve between the state of charge and the open circuit voltage of the lithium battery. The online parameter identification of the effective circuit state space model can more accurately reflect the actual state of the lithium battery and improve the estimation accuracy of the lithium battery state of charge; finally, based on the characteristics of the sliding mode observer that has strong robustness and is insensitive to external interference and parameter perturbations, an adaptive double-power sliding film observer is constructed, and the nonlinear relationship curve and the estimated value of the state variable are input into the adaptive double-power sliding film observer to calculate the estimated value of the lithium battery state of charge in real time, which can effectively suppress the influence of external interference and system noise on the state of charge estimation, thereby improving the accuracy of the lithium battery system state of charge estimation. BRIEF DESCRIPTION OF THE DRAWINGS
[0113] Figure 1 It is a flow chart of an embodiment of a method for estimating the state of charge of a battery provided by the present invention;
[0114] Figure 2 It is a structural schematic diagram of an embodiment of a battery state of charge estimation device provided by the present invention;
[0115] Figure 3 is a structural schematic diagram of a Thevenin equivalent circuit model of an embodiment provided by the present invention;
[0116] Figure 4 This is a schematic diagram comparing observation situations under different initial charge states of an embodiment provided by the present invention;
[0117] Figure 5 is a schematic diagram comparing observation errors under different initial charge states according to an embodiment of the present invention;
[0118] Figure 6 It is a schematic diagram comparing the tracking of the terminal voltage under different initial charge states according to an embodiment of the present invention;
[0119] Figure 7 It is a schematic diagram comparing the state of charge observation conditions including observation noise according to an embodiment provided by the present invention;
[0120] Figure 8It is a schematic diagram comparing the state of charge observation error including observation noise according to an embodiment of the present invention;
[0121] Fig. 9 It is a schematic diagram comparing the lower end voltage tracking conditions under a charged state with observation noise according to an embodiment of the present invention. DETAILED DESCRIPTION
[0122] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions 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 creative work are within the scope of protection of the present invention.
[0123] Example 1, see Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of a method for estimating the state of charge of a battery provided by the present invention. Figure 1 As shown, the method includes steps 101 to 104, which are specifically as follows:
[0124] Step 101: Based on the Thevenin equivalent circuit model, a Thevenin equivalent circuit state space model of the lithium battery is constructed.
[0125] In one embodiment, the equivalent circuit model is usually used to simplify a complex lithium battery system into an equivalent circuit, using components such as resistance, capacitance and inductance to represent the characteristics of the lithium battery; the equivalent circuit model usually includes parameters such as the open circuit voltage and internal resistance of the battery, which can help predict the voltage and current response of the lithium battery under different operating conditions; compared with the use of electrochemical mechanism models to study the internal dynamics of lithium-ion batteries, it can reduce the requirements for hardware computing power and is more suitable for application in power battery management systems; based on this, in this embodiment, considering the trade-off between model accuracy and computational cost, the Thevenin equivalent circuit model is used to characterize the lithium battery.
[0126] In one embodiment, the Thevenin equivalent circuit model includes an ideal voltage source, namely, an open circuit voltage 、Ohm internal resistance , terminal voltage , Nominal capacity of network and battery ,in, The network is used to describe the polarization characteristics of the battery, including capacitance and diffusion resistance , where the capacitance Reflects the transient response of the battery during charging and discharging. Indicates capacitance The voltage on is called polarization voltage; Figure 3 As shown, Figure 3 It is a structural diagram of the Thevenin equivalent circuit model.
[0127] In one embodiment, based on the Thevenin equivalent circuit model, the external characteristic behavior of the lithium battery during the charging and discharging process can be described as follows:
[0128] ;
[0129] In the formula, is the terminal voltage, is the open circuit voltage, is the charge and discharge current, is the polarization voltage, is the battery polarization capacitance, is the polarization resistance, is the state of charge, is the polarization voltage The differential form of the polarization voltage, that is, the rate of change of the polarization voltage with time, is the open circuit voltage.
[0130] In one embodiment, when constructing a Thevenin equivalent circuit state space model of a lithium battery based on a Thevenin equivalent circuit model, the charge state equation of the lithium battery is determined based on the Thevenin equivalent circuit model; the polarization voltage differential equation of the lithium battery is determined based on the Thevenin equivalent circuit model; the terminal voltage equation of the lithium battery is determined based on the Thevenin equivalent circuit model, and the terminal voltage equation is converted into a terminal voltage differential equation; the Thevenin equivalent circuit state space model of the lithium battery is determined based on the charge state equation, the polarization voltage differential equation and the terminal voltage differential equation.
[0131] Specifically, the state of charge It can be defined as the ratio of the remaining capacity of the battery to the nominal capacity. Under actual operating conditions, the capacity value will vary depending on the temperature T, the state of charge, and the The charge state equation of a lithium battery is:
[0132] ;
[0133] In the formula, is the initial state of charge, is the charge and discharge current (discharge is positive, charge is negative), is the charge and discharge efficiency, is the nominal capacity of the battery.
[0134] The charge state equation of the lithium battery is converted into the corresponding charge state equation, which can be expressed as:
[0135] ;
[0136] ;
[0137] In the formula, is the differential form of the battery state of charge, is the charge and discharge efficiency, is the nominal capacity of the battery, is the charge and discharge current, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance, is the nominal capacity of the battery, is the battery terminal voltage, is the polarization voltage, is the nominal capacity of the battery, is the ohmic internal resistance, is the open circuit voltage.
[0138] Specifically, the polarization voltage differential equation of the lithium battery caused by current can be expressed as:
[0139] ;
[0140] In the formula, represents the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the battery polarization voltage, is the polarization resistance, is the polarization capacitance, is the polarization voltage, is the charge and discharge current, is the additional polarization capacitance.
[0141] Specifically, in the Thevenin equivalent circuit model, according to Kirchhoff's voltage theorem, the terminal voltage equation of the lithium battery is:
[0142] ;
[0143] In the formula, is the terminal voltage.
[0144] From the working characteristics of the RC loop, it can be seen that when the sampling time is small enough, the change in terminal voltage caused by the current can be ignored, that is, , so the terminal voltage differential equation of the terminal voltage is expressed as:
[0145] ;
[0146] In the formula, is the uncertainty caused by the unknown nonlinear terminal voltage, is the differential form of the terminal voltage, is the differential form of the open circuit voltage, is the differential form of the battery polarization voltage, It is the differential form of the charge and discharge current.
[0147] In one embodiment, the Thevenin equivalent circuit state space model is as follows:
[0148] ;
[0149] In the formula, is the terminal voltage, is the open circuit voltage, is the total current, is the polarization voltage, is the polarized capacitance, is the polarization resistance, is the state of charge, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the uncertainty caused by the unknown nonlinear terminal voltage, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance. is the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the terminal voltage, is the differential form of the battery state of charge, is the differential form of the battery polarization voltage.
[0150] In one embodiment, after obtaining the Thevenin equivalent circuit state space model, by setting , , and , the Thevenin equivalent circuit state-space model can be expressed as a lumped parameter model, which can simplify the Thevenin equivalent circuit state-space model, make the parameters more physically meaningful and interpretable, and facilitate subsequent online parameter identification.
[0151] Specifically, the lumped parameter model is expressed as follows:
[0152] .
[0153] In fact, in the process of battery system modeling, modeling errors and measurement noise are difficult to completely avoid. In the model, the parameters , and Closely related to modeling errors and interference; modeling errors are usually due to the battery open circuit voltage State of Charge The nonlinear relationship between the parameters of the equivalent circuit model and the operating conditions of the battery may be caused by the change of the circuit parameters in the equivalent circuit model with the battery operating conditions; therefore, in order to more accurately describe the dynamic characteristics of the lithium battery system, in this embodiment, the parameters are used. , and To represent the bounded uncertainty caused by modeling errors and measurement noise, the model error can be compensated to further improve the simulation accuracy of the model.
[0154] In one embodiment, the Thevenin equivalent circuit state space model is also converted into a Thevenin equivalent circuit model state space equation matrix, wherein the Thevenin equivalent circuit model state space equation matrix is as follows:
[0155] ;
[0156] In the formula, the state variable is the terminal voltage, the state variable is the state of charge, the state variable is the polarization voltage.
[0157] Based on the state space equation matrix of the Thevenin equivalent circuit model, the lithium battery kinetic state equation can be expressed as:
[0158] ;
[0159] In the formula, System Matrix, System input matrix, System output matrix, Model the uncertainty and disturbance coefficients for the system, x represents the state variable, and y represents the system output.
[0160] By converting the state-space equation matrix form of the Thevenin equivalent circuit model, the dynamic characteristics and behavior of the circuit can be further analyzed in depth; the state-space equation matrix form can represent the system as a set of differential equations, which can better understand the mutual influence between the system state variables and how the system evolves over time. It can also more deeply explore the dynamic characteristics of the circuit and provide a more specific mathematical foundation for subsequent control and analysis work.
[0161] In one embodiment, the observability of a linear system can be expressed by the matrix The observability construction is:
[0162]
[0163] In the formula, and are the system state matrix and output matrix respectively.
[0164] .
[0165] Under any operating conditions, the observable matrix of the system is always full rank, so all the states of the model are observable. Therefore, the state of charge of the battery based on the state equation is It can be observed; the observability of a system refers to the property that the state of the system can be inferred or determined through the output of the system; in control theory, a system is observable if any initial state of the system can be uniquely determined by the system output within a finite time.
[0166] Step 102: Fitting the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine a nonlinear relationship curve between the state of charge and the open circuit voltage.
[0167] In one embodiment, multiple states of charge of the lithium battery and the open circuit voltage corresponding to each state of charge are obtained; based on a preset high-order polynomial, a state of charge-open circuit voltage relationship expression is constructed; the multiple states of charge and the open circuit voltage are substituted into the state of charge-open circuit voltage relationship expression, and based on a fitting algorithm, the state of charge-open circuit voltage relationship expression is fitted to obtain a nonlinear relationship curve between the multiple states of charge and the open circuit voltage.
[0168] Specifically, the multiple charge states refer to charge states at different charging stages.
[0169] Specifically, for the open circuit voltage of lithium batteries According to the nonlinear characteristics of the battery, a 12th-order polynomial function is selected as the preset high-order polynomial to fit the multiple charge states of the battery and the experimental data of the open circuit voltage corresponding to each charge state. The fitting results are continuous and differentiable.
[0170] Specifically, the nonlinear relationship curve is as follows:
[0171] ;
[0172] In the formula, is the fitting coefficient, is the battery charge state, is the square of the battery state of charge, is the 11th power of the battery state of charge, It is the 12th power of the battery's state of charge.
[0173] In one embodiment, based on the nonlinear relationship curve, in the entire state of charge of the lithium battery In the range, the derivative expression of open circuit voltage is:
[0174] ;
[0175] In the formula, is the differential form of the nonlinear relationship curve;
[0176] Based on the derivative expression of the open circuit voltage, further derivation can be obtained:
[0177] ;
[0178] In the formula, is the derivative of the open circuit voltage.
[0179] Step 103: Collect the real-time operating data of the lithium battery, and based on the real-time operating data, use the extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain estimated values of state variables.
[0180] In one embodiment, the real-time operating condition data includes current and voltage.
[0181] Specifically, the current of the lithium battery is collected through a current sensor; and the voltage of the lithium battery is collected through a voltage sensor.
[0182] Preferably, the real-time operating condition data also includes temperature; the temperature of the lithium battery is collected by a temperature sensor.
[0183] In one embodiment, a state variable to be identified is selected, and a parameter online identification state space equation is established based on the state variable and the real-time operating condition data.
[0184] Specifically, the state variable to be identified is .
[0185] Specifically, the parameter online identification state space equation is as follows:
[0186] ;
[0187] ;
[0188] In the formula, is the terminal voltage sampled at time k, is the total operating current sampled at time k-1, is the shunt on the polarization resistor obtained by sampling at time k, is the polarization capacitance sampled at time k, is the battery polarization resistance sampled at time k, is the battery ohmic internal resistance sampled at time k, is the simulation step size is the battery ohmic internal resistance sampled at time k-1, is the battery polarization resistance sampled at time k-1, is the polarization capacitance sampled at time k-1, is the state transfer equation, is the observation equation, represents the terminal voltage sampled at time k, is the state variable obtained by sampling at time k-1.
[0189] Preferably, set the simulation step size is 0.1s.
[0190] In one embodiment, the parameter online identification state space equation is linearized to obtain a state transfer matrix and a system output matrix.
[0191] Specifically, the state transfer matrix is as follows:
[0192] ;
[0193] In the formula, is the state transfer matrix.
[0194] Specifically, the system output matrix is as follows:
[0195] ;
[0196] In the formula, is the system output matrix.
[0197] In one embodiment, the initial state is set , state error covariance , and the system noise variance matrix , the observation noise variance matrix ; Setting the initial filtering conditions based on the initial state and the state error covariance, wherein the initial filtering conditions include the state variable filtering initial conditions and the state error covariance matrix filtering initial conditions.
[0198] Specifically, the initial conditions of the state variable filtering are as follows:
[0199]
[0200] In the formula, is the initial state of the system, To express the expected value after estimating or predicting the initial state of the system, is the estimated value of the system state at the initial moment.
[0201] Specifically, the initial conditions of the state variable filtering are as follows:
[0202] ;
[0203] In the formula, is the state error covariance, is the variance of the initial state of the system.
[0204] In one embodiment, the collected real-time operating data is substituted into the initial condition of the state variable filter to calculate the initial estimated value of the state variable; the collected real-time operating data is substituted into the initial condition of the state variable filter to calculate the initial error covariance matrix.
[0205] In one embodiment, the initial estimated value of the state variable is updated according to the state transfer matrix to obtain a priori estimated value of the state variable.
[0206] Specifically, set the state variable The estimated time update formula is to substitute the state transfer matrix into the state variable In the estimated time update formula, the prior estimate of the state variables is obtained.
[0207] Specifically, the state variable Estimated time update formula:
[0208] ;
[0209] In the formula, is the estimated value of the state variable at time k, that is, the prior estimate, is the estimated value of the state variable at time k-1, is the state transfer matrix.
[0210] In one embodiment, an initial error covariance matrix of the state variables is updated based on the state transfer matrix to obtain an error covariance matrix.
[0211] Specifically, a time update formula of the error covariance is set, the state transfer matrix is substituted into the time update formula of the error covariance, and the initial error covariance matrix of the state variables is updated to obtain the error covariance matrix.
[0212] Specifically, the time update formula of the error covariance is:
[0213] ;
[0214] In the formula, is the error covariance estimate at time k-1, is the estimated value of the state transfer matrix, is the process noise covariance matrix, is the actual value of the error covariance at time k-1, is the transpose of the estimate of the state transfer matrix.
[0215] In one embodiment, a gain matrix is calculated according to the system output matrix, and the a posteriori estimate of the state variable is calculated based on the gain matrix.
[0216] Specifically, an Extend-Kalman gain matrix update formula is set, and the system output matrix and the error covariance matrix are input into the Extend-Kalman gain matrix update formula to obtain a gain matrix.
[0217] Specifically, set the state variable The estimated measurement update formula is to substitute the prior estimate of the state variable and the gain matrix into the state variable The estimated measurement update formula obtains the posterior estimate of the state variable.
[0218] Specifically, set the Extend-Kalman gain matrix update formula:
[0219] ;
[0220] In the formula, is the gain matrix at time k, is the transpose of the estimated value of the measurement matrix at time k, is the measurement matrix at time k, is the observation noise covariance matrix.
[0221] Specifically, set the state variable Estimated measurement update formula:
[0222] ;
[0223] In the formula, is the terminal voltage sampled at time k value.
[0224] In one embodiment, the error covariance matrix is updated according to the gain matrix.
[0225] Specifically, a measurement update formula of the error covariance is set, and the gain matrix is input into the measurement update formula of the error covariance to obtain the updated error covariance matrix.
[0226] Specifically, set the measurement update formula of the error covariance:
[0227] ;
[0228] In the formula, is the error covariance estimate at time k.
[0229] In one embodiment, the estimated value of the state variable is determined based on the a posteriori estimated value of the state variable.
[0230] In this embodiment, the process of using the extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain the estimated value of the state variable is illustrated by way of example:
[0231] The Kalman filter performs two estimates in each time period, namely, a priori estimate based on time update and a posteriori estimate based on measurement update. , state error covariance , system noise variance matrix and the observation noise variance matrix , and determine the initial conditions of the filter; after obtaining the real-time operating data of the lithium battery, take the current and voltage as input, and calculate and set the initial conditions of the filter, state variables Estimated time update formula, error covariance time update formula, Extend-Kalman gain matrix update formula, state variables In the measurement update formula of the estimation and the measurement update formula of the error covariance, and in each time period, the state variable Estimated time to update formulas and state variables The estimated measurement update formula and the error covariance measurement update formula are iteratively calculated. During this process, the estimated value of the state variable can be obtained in real time as the simulation progresses. The ohmic internal resistance is included ,capacitance and diffusion resistance The value of , and then the above three parameters can be obtained.
[0232] In one embodiment, for the initial state Setting: Due to the initial state It mainly includes the shunt, ohmic internal resistance, polarization internal resistance and polarization capacitance of the battery polarization internal resistance, which are set according to the actual battery pack model and meet the parameter order of magnitude.
[0233] In one embodiment, for the state error covariance Setting: Initial value of state error covariance , indicating the degree of confidence in the current prediction status, The smaller the value, the higher the confidence in the current prediction state. This value determines the initial convergence speed. Generally, a smaller value is set at the beginning to obtain a faster convergence speed.
[0234] In one embodiment, for the system noise variance matrix Setting: System noise variance matrix The smaller the system, the easier it is to converge, indicating a higher degree of trust in the model prediction value; but if it is too small, it is easy to diverge; the system noise variance matrix The larger the value, the lower the trust in the predicted value and the higher the trust in the measured value.
[0235] In one embodiment, for the observation noise variance matrix Setting: Observation noise variance matrix If it is too large, the Kalman filter will respond more slowly because it has less confidence in the value of the new measurement; the observation noise variance matrix The smaller the system, the faster it converges, but if it is too small, it is prone to oscillation; the observation noise variance matrix Approximately normal distribution, according to Principle, take the normal distribution As the observation noise variance matrix The initialization value of .
[0236] During the simulation debugging process, the system noise variance matrix can be Adjust from small to large, and change the observation noise variance matrix Adjust from large to small; first fix one value and adjust another value, observe the convergence speed and waveform output, and finally obtain the empirical value to achieve the purpose of parameter identification.
[0237] Step 104: construct an adaptive dual-power sliding film observer, input the nonlinear relationship curve and the state variable estimation value into the adaptive dual-power sliding film observer, so that the adaptive dual-power sliding film observer can calculate the estimated value of the lithium battery state of charge in real time.
[0238] In one embodiment, the design of the adaptive dual-power sliding mode observer adopts the dual-power reaching law, which can achieve fast and stable estimation and convergence control of the system state error; this design enables the state variables to converge quickly to the true value during the estimation process, which can improve the real-time and response speed of the charge state estimation.
[0239] In one embodiment, the adaptive bipower reaching law divides the approaching motion into two stages with the sliding mode variable s=1, wherein the first stage is the sliding mode variable s converging from any position to s=1, and the second stage is the sliding mode variable s converging from s=1 to s=0; and the convergence speed of these two stages is accelerated by an adaptive bipower reaching rate function consisting of two parts, thereby achieving rapid adjustment of the sliding mode variable and global rapid convergence performance.
[0240] Furthermore, based on the adaptive bi-power convergence law, the change process of the battery state of charge can be divided into two stages; the first stage is to allow the state of charge to gradually converge to a specific value from any position, and the second stage is to allow the state of charge to further converge from this specific value to another target value.
[0241] Specifically, the two-part adaptive bi-power approach rate function includes a power term based on the state variable and power terms ; Wherein, the expression of the adaptive bi-power approach rate function is as follows:
[0242] ;
[0243] In the formula, the parameters , , and , is the designed linear sliding film variable, which is related to the tracking error A linear relationship To comply with the function, when the input is greater than 0, the output is 1; when the input is less than 0, the output is -1.
[0244] Specifically, at the initial stage, the system state is far away from the sliding surface ( ), its approaching motion is in the first stage. Within the range, The term has an amplifying effect on the error, speeds up the convergence speed, and plays a leading role in the convergence of the sliding mode variable; the system state is close to the sliding surface ( ), its approaching motion is in the second stage. Within the range, The term has an amplifying effect on the error, accelerates the convergence speed, and plays a leading role in the convergence of the sliding mode variable, which will lead to certain advantages of the double power reaching law, thereby obtaining faster convergence rates at different stages, thereby verifying that the double power reaching law has better global fast convergence performance.
[0245] Specifically, by introducing the power term and , so that the sliding mode observer switches the gain Adaptive adjustment ( ), which not only shortens the convergence time, but also makes the sliding mode variable The movement reaches the sliding plane ( ) has a very small convergence speed near, which can effectively reduce the chattering effect of the sliding mode observer; when the system is in a stable state, the system is in a sliding mode, and there is and , indicating that when the sliding mode variable reaches the sliding surface, the approach speed is reduced to zero, a smooth transition is achieved, the observed signal chattering is effectively eliminated, the tracking error is effectively controlled to converge to zero, and an accurate estimation of the internal state of the system is achieved.
[0246] In one embodiment, stability refers to whether the system can maintain near a certain equilibrium state without divergence when subjected to external disturbances or changes in initial conditions; in sliding mode control, stability means that for an adaptive bi-power approaching rate function, the system state Under its action, the system can converge to the equilibrium point within a limited time, ensuring that the system behavior is controllable and stable.
[0247] Specifically, according to the Lyapunov stability theory, the Lyapunov function is defined as follows:
[0248] ;
[0249] In the formula, is the constructed Lyapunov function, is the constructed sliding mode function.
[0250] Specifically, using the double power reaching law function, the time derivative can be obtained:
[0251] ;
[0252] In the formula, is the constructed Lyapunov function, is the differential form of the Lyapunov function, is the constructed sliding mode function, , and is the parameter to be designed, , and The empirical value obtained through simulation experiment debugging is obtained by trial and error method. is the differential form of the sliding mode function, To meet the function.
[0253] Specifically, according to Lyapunov stability theory, the Lyapunov function V is introduced to describe the stability of the system. The derivative of the Lyapunov function V is Represents the rate of change of the system state, through The sign of can be used to determine whether the system converges to the equilibrium point; for any time node ,when When , the system state will converge to the equilibrium point in a finite time, proving that the adaptive double-power sliding mode approach rate satisfies the system stability condition; that is, hour, Satisfying the stability condition, the closed-loop system is asymptotically stable. hour, , if used for sliding mode observer, it means that the observation error of the system converges to zero, the observation value can reflect the dynamic change of the true value, and at different convergence stages, its convergence speed depends on the sliding mode switching coefficient and .
[0254] In one embodiment, an adaptive dual-power sliding film observer is constructed and a switching gain is set for the adaptive dual-power sliding film observer, wherein the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding film observer, a battery charge state adaptive dual-power sliding film observer and a polarization voltage adaptive dual-power sliding film observer.
[0255] Specifically, for the terminal voltage , the terminal voltage adaptive dual-power sliding mode observer is as follows:
[0256] ;
[0257] ;
[0258] In the formula, and is the switching gain of the sliding mode observer, both are positive values, Terminal voltage The observed value of is the terminal voltage linear sliding mode function, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, It is the differential form of the nonlinear relationship curve.
[0259] Specifically, for the charge state , the battery charge state adaptive dual power sliding film observer is as follows:
[0260] ;
[0261] ;
[0262] In the formula, State of charge The estimated value of is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the state of charge sliding mode function.
[0263] Specifically, for the polarization voltage , the polarization voltage adaptive dual-power sliding film observer is as follows:
[0264] ;
[0265] ;
[0266] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the polarization voltage Estimated value, is the sliding mode function of the polarization voltage, is the sliding mode function of the polarization voltage.
[0267] In one embodiment, a terminal voltage observation error, a state of charge observation error and a polarization voltage observation error are set; based on the terminal voltage observation error, a terminal voltage sliding mode function is determined, and based on the terminal voltage sliding mode function, a terminal voltage Lyapunov function is determined; based on the state of charge observation error, a state of charge sliding mode function is determined, and based on the state of charge sliding mode function, a state of charge Lyapunov function is determined; based on the polarization voltage observation error, a polarization voltage sliding mode function is determined, and based on the polarization voltage sliding mode function, a polarization voltage Lyapunov function is determined.
[0268] Specifically, the terminal voltage observation error is defined as , at this time, the terminal voltage linear sliding mode function for: .
[0269] Specifically, the state of charge observation error is defined as , at this time, the linear sliding mode function of the state of charge is taken for: .
[0270] Specifically, the polarization voltage observation error is defined as , at this time, the polarization voltage linear sliding mode function is taken for: .
[0271] Specifically, based on the terminal voltage observation error, the state of charge observation error and the polarization voltage observation error, a dynamic equation of lithium battery system error is constructed as follows:
[0272] ;
[0273] In the formula, is the differential form of the terminal voltage observation error, is the differential form of the state of charge observation error, is the differential form of the polarization voltage observation error.
[0274] By definition , convert the lithium battery system error dynamic equation into:
[0275] .
[0276] Specifically, when the dynamic equation of the lithium battery system error converges to zero, that is, the error between the estimated value and the true value of the adaptive double-power sliding film observer approaches zero, then the estimated value will track the dynamic change process of the true value; that is, the estimated value can reflect the change of the true value.
[0277] However, in lithium battery systems, the terminal voltage can be directly measured by sensors, while the state of charge and internal resistance of the battery cannot be measured directly and can only be estimated indirectly. Since the state of charge and internal resistance cannot be measured directly, their errors cannot be directly obtained. However, there is a quantitative relationship between the state of charge observation error, the polarization voltage observation error and the terminal voltage observation error, and this relationship is crucial for the effective feedback of the battery model. Therefore, in order to verify the stability of the sliding mode observer and obtain the quantitative relationship between the state of charge observation error, the polarization voltage observation error and the terminal voltage observation error, the Lyapunov stability theory can be used. By applying this theory, the stability of the adaptive dual-power sliding film observer can be proved, that is, when the dynamic error system converges to zero, the adaptive dual-power sliding film observer can accurately estimate the quantitative relationship between the state of charge observation error, the polarization voltage observation error and the terminal voltage observation error, thereby achieving effective control and monitoring of the battery system.
[0278] Specifically, based on the terminal voltage sliding mode function, the terminal voltage Lyapunov function of the terminal voltage observation error is determined:
[0279] ;
[0280] In the formula, is the terminal voltage observation error, is the terminal voltage Lyapunov function.
[0281] Specifically, based on the state of charge sliding mode function, the state of charge Lyapunov function of the state of charge observation error is determined:
[0282] ;
[0283] In the formula, is the state-of-charge Lyapunov function, State of charge observation error.
[0284] Specifically, based on the polarization voltage sliding mode function, the polarization voltage Lyapunov function of the polarization voltage observation error is determined:
[0285] ;
[0286] In the formula, is the polarization voltage Lyapunov function, is the polarization voltage observation error.
[0287] In one embodiment, based on the terminal voltage Lyapunov function, the state of charge Lyapunov function and the polarization voltage Lyapunov function, a first quantitative relationship between the state of charge observation error and a first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and a second quantitative relationship between the polarization voltage observation error and a second equivalent control quantity preset in the adaptive dual-power sliding mode observer are determined.
[0288] Specifically, after obtaining the terminal voltage Lyapunov function, in order to ensure the terminal voltage observation error Convergence must ensure that the time derivative of the terminal voltage Lyapunov function Negative determination, so that the terminal voltage observation error can be satisfied The time derivative of the Lyapunov function of the terminal voltage The signs of are always opposite:
[0289] ;
[0290] In the formula, is the differential form of the terminal voltage Lyapunov function.
[0291] Specifically, when selecting When , the sliding mode variable in finite time It converges to zero asymptotically, and the terminal voltage observation error is and Converges to zero, that is, the system is in an ideal sliding mode, at which point the sliding mode motion will be induced to ensure , and bounded uncertainty The influence of is compensated; when the above conditions are met, according to the concept of equivalent control, based on the terminal voltage dynamic error system, the unmeasurable open circuit voltage error can be expressed With the first equivalent control quantity Relationship:
[0292] ;
[0293] In the formula, is the open circuit voltage observation error.
[0294] because and There is a strict correspondence. and The relationship can be expressed by the first-order differential of the polynomial. In order to more accurately describe the continuous time open circuit voltage Difference and The relationship between the differences can be expressed by the first-order differential of the polynomial, and finally the unmeasurable The representation form is used as the first quantitative relationship between the state of charge observation error and the first equivalent control quantity preset in the adaptive dual-power sliding mode observer. The first quantitative relationship is as follows:
[0295] ;
[0296] In the formula, is the battery power state observation error, is the derivative of the open circuit voltage.
[0297] In one embodiment, after obtaining the state of charge Lyapunov function, in order to ensure that the state of charge observation error Convergence must ensure that the time derivative of the Lyapunov function of the state of charge Negative determination, so that it can be satisfied and The signs of are always opposite:
[0298] .
[0299] Specifically, when selecting When , the sliding mode variable in finite time Asymptotically converges to zero, at which point, and Converges to zero, that is, the system is in an ideal sliding mode, at which point the sliding mode motion will be induced to ensure , and bounded uncertainty The influence of is compensated; when the above conditions are met, according to the concept of equivalent control, based on the state of charge dynamic error system, the polarization voltage observation error can be obtained Equivalent control quantity , and use it as the second quantitative relationship between the polarization voltage observation error and the second equivalent control quantity preset in the adaptive dual-power sliding mode observer, the second quantitative relationship is as follows:
[0300] ;
[0301] In the formula, is the polarization voltage observation error.
[0302] Specifically, after obtaining the polarization voltage Lyapunov function, in order to ensure the polarization voltage observation error Convergence must ensure that the time derivative of the polarization voltage Lyapunov function Negative determination, so that it can be satisfied and The signs of are always opposite:
[0303] .
[0304] Specifically, when selecting When , which can be a sliding mode variable in a finite time Asymptotically converges to zero, then and The polarization voltage converges to zero, that is, the ideal sliding mode is reached. At this time, the sliding mode motion will be induced to ensure , and bounded uncertainty The impact is compensated.
[0305] In one embodiment, the battery state of charge adaptive dual-power sliding film observer is updated based on the first quantitative relationship, and the polarization voltage adaptive dual-power sliding film observer is updated based on the second quantitative relationship.
[0306] Specifically, the updated adaptive bi-power sliding mode observer is expressed as follows:
[0307] ;
[0308] ;
[0309] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the terminal voltage observation value, is the sliding mode function of the terminal voltage, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, is the rate of change of the terminal voltage observation value over time, is the polarization capacitance, is the polarization resistance, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the charge and discharge current, is the parameter in the power term that controls the adaptive bi-power reaching law, and ; is the observed value of state of charge, is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the rate of change of the state of charge observation value over time, is the observed value of polarization voltage, is the first quantitative relationship; and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the observed value of polarization voltage, is the rate of change of the polarization voltage observation value over time, It is the second quantitative relationship.
[0310] Specifically, based on the stability of the designed adaptive dual-power sliding mode observer, the nonlinear relationship curve and the state variable estimation value are input into the adaptive dual-power sliding mode observer for real-time calculation of the lithium battery state of charge estimation value, which can ensure that the internal state variables of the lithium battery system can be truly and accurately estimated.
[0311] In one embodiment, since in actual control systems, many systems are continuous, while digital computing devices such as hardware boards perform operations in a discrete manner, the battery management system needs to discretize the continuous system model when performing solution operations on the hardware board, that is, convert the continuous state space mathematical model into an equivalent discrete state space mathematical model.
[0312] The Euler method is a common numerical integration method. Due to its simple structure, small amount of calculation and easy numerical solution on hardware boards, in this embodiment, the explicit Euler method, that is, the forward Euler method, is used to discretize the adaptive dual-power sliding mode observer for lithium battery and state of charge estimation.
[0313] In one embodiment, the forward Euler method is used to update the state of charge differential, the polarization voltage state differential and the terminal voltage differential to obtain an updated state of charge differential, an updated polarization voltage state differential and an updated terminal voltage differential; according to the updated state of charge differential, the updated polarization voltage state differential and the updated terminal voltage differential, the adaptive double-power sliding mode observer is discretized to obtain a discretized adaptive double-power sliding mode observer; based on the discretized adaptive double-power sliding mode observer, the state of charge, the polarization voltage and the terminal voltage are updated to obtain an updated state of charge, an updated polarization voltage and an updated terminal voltage.
[0314] Specifically, at any time in the time domain, the differentials of the terminal voltage, state of charge, and polarization voltage state variables are known, that is, , and , use the forward difference method to replace its differential value, step size Take it as a constant, then the approximate discretization equation corresponding to the adaptive double-power sliding mode observer is:
[0315] ;
[0316] In the formula, is the estimated value of the voltage state variable at time k+1, is the estimated value of the voltage state variable at time k.
[0317] Specifically, the discrete form of the adaptive dual-power sliding mode observer for battery state of charge estimation is obtained based on the approximate discretization equation, that is, the discretized adaptive dual-power sliding mode observer, as shown below:
[0318] ;
[0319] In the formula, , and They are the final discretized estimated values of the battery terminal voltage, state of charge and polarization voltage at time k+1 respectively.
[0320] Specifically, the local truncation error is proportional to the step size, and the error caused by numerical calculation can be ignored when the step size is small enough.
[0321] Preferably, the method for estimating the state of charge of a battery provided in this embodiment is suitable for estimating the state of charge value of an NMC battery, because the state of charge value of an NMC battery is With The relationship between is unique; however, for LFP-based batteries, due to The curve has two plateaus and a hysteresis effect, which makes it difficult to obtain and This shortcoming can be overcome by coordinating the charging and discharging Piecewise linearization is used to overcome the direction of later optimization.
[0322] In one embodiment, an algorithm verification is performed on an adaptive dual-power sliding mode observer in a battery state of charge estimation method provided in this embodiment.
[0323] 1. Considering the SOC with initial error, the SOC estimation results are compared as shown in Figure 4 and Figure 5. Figure 4 This is a schematic diagram for comparing the observations under different initial charge states. Figure 5 The diagram is a comparison diagram of observation errors under different initial charge states. It can be seen that the proposed adaptive dual-power sliding mode observer algorithm can converge to the target value under different initial error conditions, and the smaller the initial error, the faster the convergence speed. Even if the initial SOC error reaches 80%, the adaptive dual-power sliding mode observer algorithm can quickly converge to the critical error range of 3% within 425s. Among them, the tracking of the terminal voltage is shown in Figure 6 As shown; Figure 6 It is a schematic diagram comparing the lower end voltage tracking conditions under different initial charge states.
[0324] 2. In the battery management system of lithium batteries, due to factors such as sensor accuracy limitations and electromagnetic interference, it is difficult for the online system to obtain accurate voltage and current values; in order to evaluate the robustness of the adaptive dual-power sliding mode observer algorithm to the current measurement signal error, random normal distribution noise is added to the measured voltage and current signals, 5mV Gaussian noise is added to the voltage measurement, and 1mA Gaussian noise is added to the current measurement, and the error of the initial state of charge is defined as 20%. The estimated state of charge and battery terminal voltage results are as follows: Figure 7 , Figure 8 and Fig. 9 As shown, Figure 7 It is a schematic diagram comparing the state of charge observation with observation noise. Figure 8 It is a schematic diagram comparing the state of charge observation error with observation noise. Fig. 9 It is a comparative diagram of the terminal voltage tracking under the state of charge containing observation noise; it can be found that the state of charge and terminal voltage of the lithium battery can converge to the true value, which proves that the designed sliding mode observer has a certain anti-interference ability.
[0325] Example 2, see Figure 2 , Figure 2 is a schematic structural diagram of an embodiment of a battery state of charge estimation device provided by the present invention, such as Figure 2 As shown, the device includes a Thevenin equivalent circuit state space model building module 201, a nonlinear relationship curve determination module 202, a parameter online identification module 203 and a charge state estimation module 204, which are specifically as follows:
[0326] The Thevenin equivalent circuit state space model construction module 201 is used to construct the Thevenin equivalent circuit state space model of the lithium battery based on the Thevenin equivalent circuit model.
[0327] The nonlinear relationship curve determination module 202 is used to fit the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage.
[0328] The parameter online identification module 203 is used to collect the real-time operating data of the lithium battery, and based on the real-time operating data, use the extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain state variable estimates.
[0329] The state of charge estimation module 204 is used to construct an adaptive dual-power sliding film observer, and input the nonlinear relationship curve and the state variable estimation value into the adaptive dual-power sliding film observer, so that the adaptive dual-power sliding film observer calculates the lithium battery state of charge estimation value in real time.
[0330] In one embodiment, the Thevenin equivalent circuit state-space model construction module 201 is used to construct a Thevenin equivalent circuit state-space model of a lithium battery based on the Thevenin equivalent circuit model, specifically including: determining a charge state equation of the lithium battery based on the Thevenin equivalent circuit model; determining a polarization voltage differential equation of the lithium battery based on the Thevenin equivalent circuit model; determining a terminal voltage equation of the lithium battery based on the Thevenin equivalent circuit model, and converting the terminal voltage equation into a terminal voltage differential equation; determining the Thevenin equivalent circuit state-space model of the lithium battery based on the charge state equation, the polarization voltage differential equation and the terminal voltage differential equation.
[0331] In one embodiment, the Thevenin equivalent circuit state space model is as follows:
[0332] ;
[0333] In the formula, is the terminal voltage, is the open circuit voltage, is the charge and discharge current, is the polarization voltage, is the polarized capacitance, is the polarization resistance, is the state of charge, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the uncertainty caused by the unknown nonlinear terminal voltage, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance. is the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the battery terminal voltage, is the differential form of the battery state of charge, is the differential form of the battery polarization voltage.
[0334] In one embodiment, the nonlinear relationship curve determination module 202 is used to fit the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage, specifically including: obtaining multiple states of charge of the lithium battery and the open circuit voltage corresponding to each state of charge; constructing a state of charge-open circuit voltage relationship expression based on a preset high-order polynomial; substituting the multiple states of charge and the open circuit voltage into the state of charge-open circuit voltage relationship expression, and fitting the state of charge-open circuit voltage relationship expression based on a fitting algorithm to obtain the nonlinear relationship curve between the multiple states of charge and the open circuit voltage.
[0335] In one embodiment, the nonlinear relationship curve is as follows:
[0336] ;
[0337] In the formula, is the fitting coefficient, is the battery charge state, is the square of the battery state of charge, is the 11th power of the battery state of charge, It is the 12th power of the battery's state of charge.
[0338] In one embodiment, the parameter online identification module 203 is used to perform online parameter identification on the Thevenin equivalent circuit state space model based on the real-time operating data using an extended Kalman filter algorithm to obtain state variable estimates, specifically including: selecting the state variables to be identified, and establishing a parameter online identification state space equation based on the state variables and the real-time operating data; linearizing the parameter online identification state space equation to obtain a state transfer matrix and a system output matrix; setting initial filtering conditions, calculating the initial state variable estimates of the state variables based on the initial filtering conditions, and calculating the initial error covariance matrix based on the initial filtering conditions; updating the initial state variable estimates according to the state transfer matrix to obtain a priori estimates of the state variables, and updating the initial error covariance matrix of the state variables based on the state transfer matrix to obtain an error covariance matrix; calculating a gain matrix according to the system output matrix, calculating the a posteriori estimates of the state variables based on the gain matrix, and updating the error covariance matrix according to the gain matrix; determining the state variable estimates based on the a posteriori estimates of the state variables.
[0339] In one embodiment, the state of charge estimation module 204 is used to construct an adaptive dual-power sliding film observer, specifically including: constructing an adaptive dual-power sliding film observer, and setting a switching gain for the adaptive dual-power sliding film observer, wherein the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer, and a polarization voltage adaptive dual-power sliding film observer; setting a terminal voltage observation error, a state of charge observation error, and a polarization voltage observation error; based on the terminal voltage observation error, determining a terminal voltage sliding mode function, and based on the terminal voltage sliding mode function, determining a terminal voltage Lyapunov function; based on the state of charge observation error, determining a state of charge sliding mode function, and based on the state of charge sliding mode function, determining a state of charge Lyapunov function. Lyapunov function; based on the polarization voltage observation error, determine the polarization voltage sliding mode function, and based on the polarization voltage sliding mode function, determine the polarization voltage Lyapunov function; based on the terminal voltage Lyapunov function, the state of charge Lyapunov function and the polarization voltage Lyapunov function, determine the first quantitative relationship between the state of charge observation error and the first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and the second quantitative relationship between the polarization voltage observation error and the second equivalent control quantity preset in the adaptive dual-power sliding mode observer; based on the first quantitative relationship, update the battery state of charge adaptive dual-power sliding film observer, and based on the second quantitative relationship, update the polarization voltage adaptive dual-power sliding film observer.
[0340] In one embodiment, the adaptive dual-power sliding film observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding film observer and a polarization voltage adaptive dual-power sliding film observer.
[0341] In one embodiment, the terminal voltage adaptive dual-power sliding mode observer is as follows:
[0342] ;
[0343] ;
[0344] , , , ;
[0345] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the terminal voltage observation value, is the sliding mode function of the terminal voltage, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, is the rate of change of the terminal voltage observation value over time, is the polarization capacitance, is the polarization resistance, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the charge and discharge current, is the parameter in the power term that controls the adaptive bi-power reaching law, and .
[0346] In one embodiment, the battery charge state adaptive dual-power sliding film observer is as follows:
[0347] ;
[0348] ;
[0349] In the formula, is the observed value of state of charge, is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the rate of change of the state of charge observation value over time, is the observed value of polarization voltage, It is the first quantitative relationship.
[0350] In one embodiment, the polarization voltage adaptive dual-power sliding film observer is as follows:
[0351] ;
[0352] ;
[0353] In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the observed value of polarization voltage, is the rate of change of the polarization voltage observation value over time, It is the second quantitative relationship.
[0354] In one embodiment, the state of charge estimation module 204, after obtaining the estimated value of the state variable, further includes: using the forward Euler method to update the state of charge differential, the polarization voltage state differential and the terminal voltage differential to obtain an updated state of charge differential, an updated polarization voltage state differential and an updated terminal voltage differential; discretizing the adaptive dual-power sliding mode observer according to the updated state of charge differential, the updated polarization voltage state differential and the updated terminal voltage differential to obtain a discretized adaptive dual-power sliding mode observer; based on the discretized adaptive dual-power sliding mode observer, updating the state of charge, the polarization voltage and the terminal voltage to obtain an updated state of charge, an updated polarization voltage and an updated terminal voltage.
[0355] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0356] It should be noted that the above-mentioned embodiments of the battery state of charge estimation device are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0357] Based on the above-mentioned embodiment of the battery state of charge estimation method, another embodiment of the present invention provides a battery state of charge estimation terminal device, and the battery state of charge estimation terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the battery state of charge estimation method of any embodiment of the present invention is implemented.
[0358] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the battery state of charge estimation terminal device.
[0359] The battery state of charge estimation terminal device may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The battery state of charge estimation terminal device may include, but is not limited to, a processor and a memory.
[0360] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the battery state of charge estimation terminal device, and uses various interfaces and lines to connect various parts of the entire battery state of charge estimation terminal device.
[0361] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the battery state of charge estimation terminal device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0362] Based on the above-mentioned embodiment of the battery state of charge estimation method, another embodiment of the present invention provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the battery state of charge estimation method of any embodiment of the present invention.
[0363] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0364] In summary, the present invention provides a method, device, equipment and storage medium for estimating the state of charge of a battery. The Thevenin equivalent circuit state space model of a lithium battery is constructed through a Thevenin equivalent circuit model; the state of charge and open circuit voltage of the lithium battery are fitted based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage; the real-time operating data of the lithium battery is collected, and based on the real-time operating data, the extended Kalman filter algorithm is used to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain state variable estimates; an adaptive dual-power sliding film observer is constructed, and the nonlinear relationship curve and the state variable estimates are input into the adaptive dual-power sliding film observer, so that the adaptive dual-power sliding film observer can calculate the state of charge estimate of the lithium battery in real time; compared with the prior art, the technical solution of the present invention can improve the accuracy of the state of charge estimation of the lithium battery.
[0365] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.
Claims
1. A method for estimating a battery state of charge, characterized in that: include: Based on the Thevenin equivalent circuit model, a Thevenin equivalent circuit state space model of lithium battery is constructed; Fitting the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine a nonlinear relationship curve between the state of charge and the open circuit voltage; Collecting real-time operating data of the lithium battery, and based on the real-time operating data, using an extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain an estimated value of a state variable; Constructing an adaptive dual-power sliding mode observer, inputting the nonlinear relationship curve and the estimated value of the state variable into the adaptive dual-power sliding mode observer, so that the adaptive dual-power sliding mode observer calculates the estimated value of the state of charge of the lithium battery in real time; Among them, the construction of the adaptive dual-power sliding mode observer specifically includes: constructing an adaptive dual-power sliding mode observer, and setting a switching gain for the adaptive dual-power sliding mode observer, wherein the adaptive dual-power sliding mode observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding mode observer and a polarization voltage adaptive dual-power sliding mode observer; setting a terminal voltage observation error, a state of charge observation error and a polarization voltage observation error; based on the terminal voltage observation error, determining a terminal voltage sliding mode function, and based on the terminal voltage sliding mode function, determining a terminal voltage Lyapunov function; based on the state of charge observation error, determining a state of charge sliding mode function, and based on the state of charge sliding mode function, determining a state of charge Lyapunov function; based The polarization voltage observation error determines the polarization voltage sliding mode function, and based on the polarization voltage sliding mode function, determines the polarization voltage Lyapunov function; based on the terminal voltage Lyapunov function, the state of charge Lyapunov function and the polarization voltage Lyapunov function, determines the first quantitative relationship between the state of charge observation error and the first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and the second quantitative relationship between the polarization voltage observation error and the second equivalent control quantity preset in the adaptive dual-power sliding mode observer; based on the first quantitative relationship, the battery state of charge adaptive dual-power sliding mode observer is updated, and based on the second quantitative relationship, the polarization voltage adaptive dual-power sliding mode observer is updated.
2. A method for estimating a battery state of charge according to claim 1, characterized in that: Based on the Thevenin equivalent circuit model, a Thevenin equivalent circuit state space model of lithium battery is constructed, which includes: Determine the state of charge equation of lithium battery based on the Thevenin equivalent circuit model; Based on the Thevenin equivalent circuit model, determining a polarization voltage differential equation of the lithium battery; Based on the Thevenin equivalent circuit model, determining a terminal voltage equation of the lithium battery, and converting the terminal voltage equation into a terminal voltage differential equation; Determining a Thevenin equivalent circuit state space model of the lithium battery based on the state of charge equation, the polarization voltage differential equation and the terminal voltage differential equation; The Thevenin equivalent circuit state space model is as follows: ; In the formula, is the terminal voltage, is the open circuit voltage, is the charge and discharge current, is the polarization voltage, is the polarized capacitance, is the polarization resistance, is the state of charge, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the uncertainty caused by the unknown nonlinear terminal voltage, is the uncertainty caused by the unknown nonlinear term, where the nonlinear term represents the nominal capacitance deviation, temperature coefficient and unknown uncertain disturbance. is the uncertainty caused by the unknown nonlinear polarization voltage term, is the differential form of the battery terminal voltage, is the differential form of the battery state of charge, is the differential form of the battery polarization voltage.
3. A method for estimating a battery state of charge according to claim 1, characterized in that: Based on a preset high-order polynomial, the state of charge and the open circuit voltage of the lithium battery are fitted to determine a nonlinear relationship curve between the state of charge and the open circuit voltage, specifically including: Acquire multiple charge states of the lithium battery and the open circuit voltage corresponding to each charge state; Based on the preset high-order polynomial, construct the state of charge-open circuit voltage relationship expression; Substituting the multiple states of charge and the open circuit voltage into the state of charge-open circuit voltage relationship expression, and performing fitting processing on the state of charge-open circuit voltage relationship expression based on a fitting algorithm to obtain a nonlinear relationship curve between the multiple states of charge and the open circuit voltage; The nonlinear relationship curve is as follows: ; In the formula, is the fitting coefficient, is the battery charge state, is the square of the battery state of charge, is the 11th power of the battery state of charge, It is the 12th power of the battery's state of charge.
4. A method for estimating a battery state of charge as claimed in claim 1, characterized in that: Based on the real-time operating data, the extended Kalman filter algorithm is used to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain state variable estimation values, specifically including: Selecting a state variable to be identified, and establishing a parameter online identification state space equation based on the state variable and the real-time operating condition data; Linearizing the parameter online identification state space equation to obtain a state transfer matrix and a system output matrix; Setting an initial filtering condition, calculating an initial estimated value of a state variable of the state variable based on the initial filtering condition, and calculating an initial error covariance matrix based on the initial filtering condition; The initial estimated values of the state variables are updated according to the state transfer matrix to obtain a priori estimated values of the state variables, and the initial error covariance matrix of the state variables is updated based on the state transfer matrix to obtain an error covariance matrix; Calculating a gain matrix according to the system output matrix, calculating a posteriori estimates of the state variables based on the gain matrix and the prior estimates, and updating the error covariance matrix according to the gain matrix; Based on the a posteriori estimate of the state variable, a state variable estimate is determined.
5. A method for estimating a battery state of charge as claimed in claim 1, characterized in that: The adaptive dual-power sliding mode observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding mode observer and a polarization voltage adaptive dual-power sliding mode observer; The terminal voltage adaptive dual-power sliding mode observer is as follows: ; ; , , , ; In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the terminal voltage observation value, is the sliding mode function of the terminal voltage, is the first equivalent control quantity of the designed adaptive double-power sliding mode observer, To meet the function, is the rate of change of the terminal voltage observation value over time, is the polarization capacitance, is the polarization resistance, is the nominal capacity of the battery, is the derivative of the open circuit voltage, is the ohmic internal resistance, is the charge and discharge current, is the parameter in the power term that controls the adaptive bi-power reaching law, and ; The battery charge state adaptive dual-power sliding mode observer is as follows: ; ; In the formula, is the observed value of state of charge, is the second equivalent control quantity of the designed adaptive double-power sliding mode observer, and is the switching gain of the sliding mode observer, both are positive values, is the rate of change of the state of charge observation value over time, is the observed value of polarization voltage, is the first quantitative relationship; The polarization voltage adaptive dual-power sliding mode observer is as follows: ; ; In the formula, and is the switching gain of the sliding mode observer, both are positive values, is the third equivalent control quantity of the designed adaptive double-power sliding mode observer, is the observed value of polarization voltage, is the rate of change of the polarization voltage observation value over time, It is the second quantitative relationship.
6. A method for estimating a battery state of charge as claimed in claim 1, characterized in that: After obtaining the estimated value of the state variable, it also includes: Adopting the forward Euler method, the state of charge differential, the polarization voltage state differential and the terminal voltage differential are updated to obtain updated state of charge differential, updated polarization voltage state differential and updated terminal voltage differential; discretizing the adaptive dual-power sliding mode observer according to the updated state of charge differential, the updated polarization voltage state differential and the updated terminal voltage differential to obtain a discretized adaptive dual-power sliding mode observer; Based on the discrete adaptive dual-power sliding mode observer, the state of charge, polarization voltage and terminal voltage are updated to obtain an updated state of charge, an updated polarization voltage and an updated terminal voltage.
7. A battery state of charge estimation device, characterized in that: include: Thevenin equivalent circuit state space model building module, nonlinear relationship curve determination module, parameter online identification module and charge state estimation module; The Thevenin equivalent circuit state space model building module is used to build a Thevenin equivalent circuit state space model of a lithium battery based on the Thevenin equivalent circuit model; The nonlinear relationship curve determination module is used to fit the state of charge and the open circuit voltage of the lithium battery based on a preset high-order polynomial to determine the nonlinear relationship curve between the state of charge and the open circuit voltage; The parameter online identification module is used to collect real-time operating data of the lithium battery, and based on the real-time operating data, use the extended Kalman filter algorithm to perform online parameter identification on the Thevenin equivalent circuit state space model to obtain an estimated value of the state variable; The state of charge estimation module is used to construct an adaptive dual-power sliding mode observer, and input the nonlinear relationship curve and the state variable estimation value into the adaptive dual-power sliding mode observer, so that the adaptive dual-power sliding mode observer calculates the estimated value of the state of charge of the lithium battery in real time; Among them, the state of charge estimation module is used to construct an adaptive dual-power sliding mode observer, specifically including: constructing an adaptive dual-power sliding mode observer, and setting a switching gain for the adaptive dual-power sliding mode observer, wherein the adaptive dual-power sliding mode observer includes a terminal voltage adaptive dual-power sliding mode observer, a battery charge state adaptive dual-power sliding mode observer and a polarization voltage adaptive dual-power sliding mode observer; setting a terminal voltage observation error, a state of charge observation error and a polarization voltage observation error; based on the terminal voltage observation error, determining a terminal voltage sliding mode function, and based on the terminal voltage sliding mode function, determining a terminal voltage Lyapunov function; based on the state of charge observation error, determining a state of charge sliding mode function, and based on the state of charge sliding mode function, determining a state of charge Lyapunov function. function; based on the polarization voltage observation error, determine the polarization voltage sliding mode function, and based on the polarization voltage sliding mode function, determine the polarization voltage Lyapunov function; based on the terminal voltage Lyapunov function, the state of charge Lyapunov function and the polarization voltage Lyapunov function, determine the first quantitative relationship between the state of charge observation error and the first equivalent control quantity preset in the adaptive dual-power sliding mode observer, and the second quantitative relationship between the polarization voltage observation error and the second equivalent control quantity preset in the adaptive dual-power sliding mode observer; based on the first quantitative relationship, update the battery state of charge adaptive dual-power sliding mode observer, and based on the second quantitative relationship, update the polarization voltage adaptive dual-power sliding mode observer.
8. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for estimating the state of charge of a battery as claimed in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for estimating the state of charge of a battery according to any one of claims 1 to 6.
