Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a device for estimating the SOC of a lithium ion battery.
In a first aspect, an embodiment of the present invention provides a method for estimating an SOC of a lithium ion battery, including:
determining the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value;
establishing a battery discrete state space model according to a battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value;
and estimating the SOC value of the battery discrete state space model through an iterative extended Kalman filtering algorithm to determine the SOC value of the lithium ion battery.
Optionally, the establishing a discrete state space model of the battery according to the battery equivalent circuit model and the mapping relationship between the model parameters and the temperature and the SOC value includes:
and (3) running at least two Kalman filters in parallel, establishing a battery discrete state space equation and a system measurement updating equation by combining the battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value, and defining a measurement matrix.
Optionally, the estimating the SOC value of the discrete state space model of the battery by using the iterative extended kalman filter algorithm to determine the SOC value of the lithium ion battery includes:
initializing an iterative extended Kalman filtering algorithm at an initial moment, and determining an initial state estimation value and an initial state error covariance matrix at the initial moment;
and running all Kalman filtering in parallel, circularly executing a plurality of computing operations, executing the iterative extended Kalman filtering algorithm for a plurality of times in each computing operation, updating the time and measuring and updating the iteration when executing the iterative extended Kalman filtering algorithm for each time until the iterative extended Kalman filtering algorithm reaches a cut-off condition, finishing the computing operation and determining the SOC value of the lithium ion battery.
Optionally, the determining a mapping relationship between each model parameter in the battery equivalent circuit model and the temperature and SOC value includes:
establishing a battery equivalent circuit model of a lithium ion battery, and establishing a characteristic equation of the battery equivalent circuit model;
performing pulse discharge operation based on the battery equivalent circuit model, and determining model parameter values under each operation;
establishing an initial mapping relation expression of the model parameters and the temperature and SOC values, determining undetermined coefficients in the mapping relation expression of the model parameters and the temperature and SOC values through a curve fitting method, and determining the mapping relation of the model parameters and the temperature and SOC values according to the undetermined coefficients.
In a second aspect, an embodiment of the present invention provides a lithium ion battery SOC estimation device, including:
the determining module is used for determining the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value;
the building module is used for building a battery discrete state space model according to a battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value;
the estimation module is used for estimating the SOC value of the battery discrete state space model through an iterative extended Kalman filtering algorithm to determine the SOC value of the lithium ion battery,
optionally, the building module is specifically configured to:
and (3) running at least two Kalman filters in parallel, establishing a battery discrete state space equation and a system measurement updating equation by combining the battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value, and defining a measurement matrix.
Optionally, the estimation module is specifically configured to:
initializing an iterative extended Kalman filtering algorithm at an initial moment, and determining an initial state estimation value and an initial state error covariance matrix at the initial moment;
and running all Kalman filtering in parallel, circularly executing a plurality of computing operations, executing the iterative extended Kalman filtering algorithm for a plurality of times in each computing operation, updating the time and measuring and updating the iteration when executing the iterative extended Kalman filtering algorithm for each time until the iterative extended Kalman filtering algorithm reaches a cut-off condition, finishing the computing operation and determining the SOC value of the lithium ion battery.
Optionally, the determining module is specifically configured to:
establishing a battery equivalent circuit model of a lithium ion battery, and establishing a characteristic equation of the battery equivalent circuit model;
performing pulse discharge operation based on the battery equivalent circuit model, and determining model parameter values under each operation;
establishing an initial mapping relation expression of the model parameters and the temperature and SOC values, determining undetermined coefficients in the mapping relation expression of the model parameters and the temperature and SOC values through a curve fitting method, and determining the mapping relation of the model parameters and the temperature and SOC values according to the undetermined coefficients.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for estimating the SOC of the lithium ion battery as described above.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the lithium ion battery SOC estimation method as described above.
According to the method and the device for estimating the SOC of the lithium ion battery, the mapping relation between the battery equivalent circuit model and each model parameter as well as the temperature and the SOC value is established, so that the established battery discrete state space model is widely applicable to the lithium ion battery, then the SOC value of the battery discrete state space model is estimated through the iterative extended Kalman filtering algorithm, the SOC value of the lithium ion battery is determined, multiple iterations are adopted at each time step, the deviation caused by adopting first-order Taylor approximation can be effectively reduced, and the algorithm precision is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a schematic flow chart of a method for estimating SOC of a lithium ion battery according to an embodiment of the present invention, and referring to fig. 1, the method includes:
s11, determining the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value;
s12, establishing a battery discrete state space model according to the battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value;
and S13, estimating the SOC value of the battery discrete state space model through an iterative extended Kalman filtering algorithm, and determining the SOC value of the lithium ion battery.
With respect to step S11-step S13, it should be noted that, in the embodiment of the present invention, lithium ions are addedThe battery performs SOC (remaining battery capacity) estimation, and it is necessary to perform circuit equivalent design on the lithium ion battery so that the estimation of the lithium ion battery is set in the process of detecting the circuit. The battery equivalent circuit model is shown in fig. 2 (two stages are taken as an example, but the order is not limited to two stages), and in fig. 2, the battery equivalent circuit includes an ohmic resistor R connected in series0And two RC units, each RC unit is composed of a resistor and a capacitor which are connected in parallel.
In the circuit detection process, each model parameter in the circuit model can be determined, and the model parameter has a certain interaction relation with the temperature and the SOC value. For this reason, the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value needs to be determined.
In this embodiment, the estimation of the SOC value of the lithium ion battery may be performed by using a certain estimation model. Here, a battery discrete state space model is established according to a battery equivalent circuit model and a mapping relation between each model parameter and a temperature and an SOC value. The battery discrete state space model can realize the estimation of the SOC value of the lithium ion battery.
In the estimation process, the SOC value of the battery discrete state space model is estimated through an iterative extended Kalman filtering algorithm, and the SOC value of the lithium ion battery is determined. Kalman filtering (Kalman filtering) is an algorithm that uses a linear system state equation to optimally estimate the state of a system by inputting and outputting observation data through the system. The optimal estimation can also be seen as a filtering process, since the observed data includes the effects of noise and interference in the system. In the embodiment, the SOC value of the battery discrete state space model is estimated by adopting the Kalman filtering algorithm of iterative expansion, and multiple iterations are adopted at each time step, so that the deviation caused by adopting first-order Taylor approximation can be effectively reduced, and the algorithm precision is improved.
According to the method for estimating the SOC of the lithium ion battery, the built battery discrete state space model is widely applicable to the lithium ion battery by building the mapping relation between the battery equivalent circuit model and each model parameter as well as the temperature and the SOC value, then the SOC value of the battery discrete state space model is estimated by the iterative extended Kalman filtering algorithm to determine the SOC value of the lithium ion battery, so that multiple iterations are adopted at each time step, the deviation caused by adopting first-order Taylor approximation can be effectively reduced, and the algorithm precision is improved.
In a further embodiment of the method according to the above embodiment, a process of establishing a discrete state space model of a battery according to a mapping relationship between a battery equivalent circuit model and each model parameter and a temperature and an SOC value is mainly explained, which is specifically as follows:
and (3) running at least two Kalman filters in parallel, establishing a battery discrete state space equation and a system measurement updating equation by combining the battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value, and defining a measurement matrix.
In contrast, it should be noted that at least two kalman filters are operated in parallel, taking M optimal kalman filters as an example, based on the kalman filter principle, and by combining the battery equivalent circuit model and the mapping relationship between each model parameter and the SOC value, a battery discrete state space equation of lithium ions is established, and parameters are all expressed in a matrixing form:
xk=Fk-1xk-1+Gk-1uk-1 (1)
wherein:
x=[U0,U1,U2,SOC]T (2)
u=[I,I,I,I]T (3)
U0is the ohm internal resistance R in figure 20The voltage at both ends, at, is the sampling interval,Ccapis the rated capacity of the battery.
Besides establishing a battery discrete state space equation of lithium ions, a system measurement update equation needs to be established, and a measurement matrix needs to be defined.
The established system measurement updating equation is as follows:
zk=hk+vk=UOCV(T,SOC)-U0-U1-U2+vk (6)
defining the measurement matrix as:
U0is the ohm internal resistance R in figure 20Voltage across,. DELTA.t, sampling interval, CcapIs the rated capacity of the battery.
Besides establishing a battery discrete state space equation of lithium ions, a system measurement update equation needs to be established, and a measurement matrix needs to be defined.
In a further embodiment of the method according to the above embodiment, explanation is mainly given to a processing procedure of estimating the SOC value of the discrete state space model of the battery by using the iterative extended kalman filter algorithm to determine the SOC value of the lithium ion battery, specifically as follows:
and initializing the iterative extended Kalman filtering algorithm at the initial moment, and determining an initial state estimation value and an initial state error covariance matrix at the initial moment.
And running all Kalman filtering in parallel, circularly executing a plurality of computing operations, executing the iterative extended Kalman filtering algorithm for a plurality of times in each computing operation, updating the time and measuring and updating the iteration when executing the iterative extended Kalman filtering algorithm for each time until the iterative extended Kalman filtering algorithm reaches a cut-off condition, finishing the computing operation and determining the SOC value of the lithium ion battery.
In this regard, it should be noted that, in the embodiment of the present invention, as shown in fig. 3, a schematic flowchart of estimating the SOC value of the discrete state space model of the battery is shown. Referring to fig. 3, at the beginning of the estimation process, the iterative extended kalman filter algorithm at the initial time is initialized, which may be represented by the following relation:
wherein Λ represents the estimate,
in order to be an initial state estimation value,
is an initial state error covariance matrix, x
0Are model parameter values.
When the loop time k is 1, the loop calculation operation is started, and the loop k is continued to be 1,2 and … …, and the following steps are continuously executed: the loop performs a plurality of calculation operations, the number of loops i is 1,2, … …, M, and the specific number of loops may be set according to actual requirements, which is not limited herein. When the loop calculation operation is executed each time, the iterative extended kalman filter algorithm is executed for many times, and each loop calculation is updated in execution time, for example, the time for executing the ith iterative extended kalman filter in fig. 3 is updated as follows:
initializing iterative extended Kalman filtering as follows:
each time a loop calculation operation is performed, a measurement update is performed, such as the measurement update performed the ith kalman algorithm in fig. 3.
The meaning of each parameter in the above equations (10) to (17) is a general meaning commonly used in the kalman filter algorithm.
And ending the calculation operation until the iterative extended Kalman filtering algorithm reaches a cut-off condition, and determining the SOC value of the lithium ion battery.
In a further embodiment of the method according to the above embodiment, a process of determining a mapping relationship between each model parameter and a temperature and an SOC value in a battery equivalent circuit model is mainly explained, specifically as follows:
establishing a battery equivalent circuit model of the lithium ion battery, and establishing a characteristic equation of the battery equivalent circuit model;
performing pulse discharge operation based on the battery equivalent circuit model, and determining model parameter values under each operation;
establishing an initial mapping relation expression of the model parameters and the temperature and SOC values, determining undetermined coefficients in the mapping relation expression of the model parameters and the temperature and SOC values through a curve fitting method, and determining the mapping relation of the model parameters and the temperature and SOC values according to the undetermined coefficients.
In contrast, in the embodiment of the present invention, a battery equivalent circuit model (as shown in fig. 2) of the lithium ion battery is first established, and the equivalent circuit includes the ohmic resistor R connected in series0And two RC units, each RC unit is composed of a resistor and a capacitor which are connected in parallel. Determining terminal voltage U and open circuit voltage U in battery equivalent circuit modelOCVCharacteristic relationship between them. Aiming at the second-order battery equivalent circuit model shown in FIG. 2, a characteristic equation of the lithium ion battery model is established to describe the terminal voltage U and the open-circuit voltage UOCVThe characteristic equation is as follows:
U0=IR0 (20)
U=UOCV-U0-U1-U2 (21)
wherein, U0Is the ohmic internal resistance R0Terminal voltage at both ends, U1~U2Is the voltage across the corresponding two RC cells, I is the current.
Solving equations (18) - (21), the expression of the equivalent circuit terminal voltage can be obtained as:
wherein, U1(0) And U2(0) Are respectively a meterAt the beginning of the time, the voltage across the two RC units is at its initial value.
According to the current equivalent circuit, a pulse discharge test is carried out, the pulse discharge is an existing test method, and the pulse discharge time, the current and the like are all the existing specifications (for example, according to a Freedom battery test manual). Selecting pulse discharge SOC interval, wherein SOC is at least 20 points within the range of 0-1, the temperature range is-10-55 ℃, performing pulse discharge test every 5-10 ℃ when the temperature is lower than 10 ℃, and performing pulse discharge test every 5-15 ℃ when the temperature T is higher than 10 ℃. When the temperature is lower than 10 ℃, the standing balance time after pulse discharge is longer than 3h, and when the temperature is higher than 10 ℃, the standing balance time after pulse discharge is longer than 1 h. When pulse discharge tests at different temperatures are performed, the capacity standard of the SOC is adjusted to be the capacity that can be discharged by the battery at the current temperature, not the rated capacity at normal temperature.
As can be seen from the structure of fig. 2, when the battery is left standing for a sufficiently long time after pulse discharge, the terminal voltage of the battery is an open-circuit voltage Uocv。
As can be seen from the structure of FIG. 2, the voltage change at the end of the pulse discharge is completely determined by the ohmic internal resistance R0And (4) generating. Therefore, ohmic internal resistance R0Obtained using the following formula:
in the formula of ULThe voltage abrupt change at the end of the pulse discharge is denoted as I, and the pulse discharge current value is denoted as I.
As can be seen from the circuit configuration of fig. 2, after the pulse discharge is completed, the voltages at both ends of the ohmic internal resistance become zero, but the voltages at both ends of the three RC units do not become zero. The voltage characteristic equation is therefore:
r at corresponding temperature and SOC can be obtained by nonlinear fitting1,C1,R2,C2Value, buildingAnd (3) establishing a two-dimensional relation of model parameters with temperature and SOC.
f(x,y)=p00+p10x+p01y+p20x2+p11xy+p02y2+p30x3+p21x2y+p12xy2+p03y3+p40x4+p31x3y+p22x2y2+p13xy3+p04y4+p50x5+p41x4y+p32x3y2+p23x2y3+p14xy4+p05y5
(f=Uocv,R0,R1,R2,C1,C2)
(x=T,y=SOC)
Determining undetermined coefficients (e.g., p) in an expression based on a surface fitting method00,p10Etc.).
And if the undetermined system is determined, determining the mapping relation between each model parameter and the temperature and SOC value according to the undetermined coefficient.
According to the method for estimating the SOC of the lithium ion battery, the built battery discrete state space model is widely applicable to the lithium ion battery by building the mapping relation between the battery equivalent circuit model and each model parameter as well as the temperature and the SOC value, then the SOC value of the battery discrete state space model is estimated by the iterative extended Kalman filtering algorithm, and the SOC value of the lithium ion battery is determined, so that multiple iterations are adopted at each time step, the deviation caused by adopting the first-order Taylor approximation can be effectively reduced, and the algorithm precision is improved.
Fig. 4 shows a schematic structural diagram of an SOC estimation apparatus for a lithium ion battery according to an embodiment of the present invention, referring to fig. 4, the apparatus includes a determination module 41, a construction module 42, and an estimation module 43, where:
the determining module 41 is configured to determine a mapping relationship between each model parameter in the battery equivalent circuit model and the temperature and SOC value;
the building module 42 is used for building a battery discrete state space model according to the battery equivalent circuit model and the mapping relation between the model parameters and the temperature and SOC value;
and the estimation module 43 is configured to estimate the SOC value of the discrete state space model of the battery by using an iterative extended kalman filter algorithm, so as to determine the SOC value of the lithium ion battery.
In a further embodiment of the apparatus of the above embodiment, the building module is specifically configured to:
and (3) running at least two Kalman filters in parallel, establishing a battery discrete state space equation and a system measurement updating equation by combining the battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value, and defining a measurement matrix.
In a further embodiment of the apparatus of the above embodiment, the estimating module is specifically configured to:
initializing an iterative extended Kalman filtering algorithm at an initial moment, and determining an initial state estimation value and an initial state error covariance matrix at the initial moment;
and running all Kalman filtering in parallel, circularly executing a plurality of computing operations, executing the iterative extended Kalman filtering algorithm for a plurality of times in each computing operation, updating the time and measuring and updating the iteration when executing the iterative extended Kalman filtering algorithm for each time until the iterative extended Kalman filtering algorithm reaches a cut-off condition, finishing the computing operation and determining the SOC value of the lithium ion battery.
In a further embodiment of the apparatus of the above embodiment, the determining module is specifically configured to:
establishing a battery equivalent circuit model of a lithium ion battery, and establishing a characteristic equation of the battery equivalent circuit model;
performing pulse discharge operation based on the battery equivalent circuit model, and determining model parameter values under each operation;
establishing an initial mapping relation expression of the model parameters and the temperature and SOC values, determining undetermined coefficients in the mapping relation expression of the model parameters and the temperature and SOC values through a curve fitting method, and determining the mapping relation of the model parameters and the temperature and SOC values according to the undetermined coefficients.
Since the principle of the apparatus according to the embodiment of the present invention is the same as that of the method according to the above embodiment, further details are not described herein for further explanation.
It should be noted that, in the embodiment of the present invention, the relevant functional module may be implemented by a hardware processor (hardware processor).
The lithium ion battery SOC estimation device provided in the above embodiment enables the application of the established battery discrete state space model to the lithium ion battery to be wide by establishing the mapping relationship between the battery equivalent circuit model and each model parameter and the temperature and SOC value, and then estimates the SOC value of the battery discrete state space model by the iterative extended kalman filter algorithm to determine the SOC value of the lithium ion battery, so that multiple iterations are adopted at each time step, and the deviation caused by adopting the first-order taylor approximation can be effectively reduced, thereby improving the algorithm precision.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)51, a communication Interface (communication Interface)52, a memory (memory)53 and a communication bus 54, wherein the processor 51, the communication Interface 52 and the memory 53 complete communication with each other through the communication bus 54. The processor 51 may call logic instructions in the memory 53 to perform the following method: determining the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value; establishing a battery discrete state space model according to a battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value; and estimating the SOC value of the battery discrete state space model through an iterative extended Kalman filtering algorithm to determine the SOC value of the lithium ion battery.
In addition, the logic instructions in the memory 53 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: determining the mapping relation between each model parameter in the battery equivalent circuit model and the temperature and SOC value; establishing a battery discrete state space model according to a battery equivalent circuit model and the mapping relation between each model parameter and the temperature and SOC value; and estimating the SOC value of the battery discrete state space model through an iterative extended Kalman filtering algorithm to determine the SOC value of the lithium ion battery.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.