Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
As shown in fig. 1, an on-line detection method for a battery cell short-circuit resistance with disturbance rejection characteristics includes the following steps:
s1, establishing a battery fractional order model and a state space equation thereof, and determining parameters of the model to be identified;
s101, establishing a battery fractional order equivalent circuit model:
on the basis of a first-order equivalent circuit model, a capacitance element is replaced by a constant phase angle element (CPE), then modeling is carried out by utilizing Grunnwald-Letnikov (G-L) definition in fractional calculus to obtain a fractional order model, and a circuit schematic diagram of the fractional order equivalent circuit model is shown in FIG. 2.
The mathematical expression for the impedance of the CPE is:
wherein C ispA constant representing a capacitive effect, n represents a fractional order, and-1<n<1, w represents the angular frequency of the alternating current signal; the fractional order mathematical model of the battery is:
Ul(t)=Uoc(t)+IL(t)R0+Up(t)
wherein t is time, ILIs the load current (during discharge I)LIs negative, when charging ILIs a positive number), corresponding toL(t) is the load current at time t, UpTo polarize the voltage, UlIs terminal voltage, where UocLet OCV, η be the coulombic efficiency of the battery, z be SOC, and the parameters to be identified in the model are: battery capacity Q0d.C. resistance R0Polarization resistance RpConstant of capacitance effect Cp。
S102, establishing a discrete state space expression of the fractional order model:
discretizing the fractional order mathematical model according to the G-L definition of the fractional order calculus to obtain the following state space expression:
in the formula
Is the state variable at time k, y (k) ═ U
l(k) For the system output at time k, the remaining correlation matrices are defined as:
where Δ t is the sampling period and L is a finite length variable, taking values greater than 64.
S2, performing an intermittent discharge-standing experiment and an EIS experiment, further determining a functional relation between SOC and OCV, and identifying model parameters according to EIS experiment data;
s201, testing the battery capacity, and fully charging the battery by adopting a constant current-constant voltage method under the constant temperature condition, wherein the constant current charging current, the end voltage and the end current adopted in the embodiment are respectively 0.5C, 4.2V and 0.05C. The discharge is then carried out using a nominal current to a discharge cutoff voltage, and the cell capacity is expressed as:
in the formula, t0To the discharge start time, t1Is the discharge termination time.
S202, charging the lithium ion battery until the SOC reaches 100%, performing an intermittent discharge-standing experiment, and fitting to determine that the SOC-OCV relational expression is as follows:
wherein n ispTo fit the polynomial order, ciAre fitting parameters.
The intermittent discharge-standing experiment means that in the discharge process, the SOC is reduced by 10% every time, the battery is placed for two hours to eliminate the polarization phenomenon of the battery, and then the OCV of the battery is measured to improve the measurement accuracy. OCV corresponding to different SOC can be obtained through experiments, and a functional relation between SOC and OCV can be obtained through fitting. Specifically, the fitting result of the SOC-OCV function relationship in this embodiment is shown in fig. 5.
S203, performing EIS experiments on the target battery, identifying battery model parameters in an off-line mode according to EIS experimental data, wherein the available off-line identification methods comprise a batch least square method, a genetic algorithm, a particle swarm algorithm and the like, but are not limited to the methods; fractional order model parametersThe number identification process is shown in FIG. 3; specifically, in this embodiment, the batch least square method is used to identify the dc internal resistance R of the battery model offline0Internal polarization resistance RpAnd a polarization capacitor Cp。
The EIS experimental method comprises the steps of loading sine wave current signals with specific frequency and small enough amplitude at two ends of a stable battery system, enabling electrode potentials of the battery to generate sine wave response voltage signals with the same frequency, recording the current and voltage signals by using high-precision measuring equipment, enabling a frequency response function of the battery to be electrochemical impedance, measuring a group of frequency response function values under a series of different frequencies to obtain an electrochemical impedance spectrum of the battery, and then carrying out off-line identification on model parameters according to an impedance spectrum characteristic curve.
Specifically, a nonlinear batch least square optimization algorithm is adopted to optimize a target vector to obtain characteristic parameters of a fractional order model, and a target function of the method is as follows:
wherein N is the number of data points obtained by EIS test, wiAngular frequency, Z, corresponding to the ith data pointiIs a frequency wiImpedance of fractional order equivalent Circuit model of'iIs ZiReal part of, Z "iIs ZiImaginary part of, Z'i side testReal part of the impedance, Z', obtained for EIS testing "i side testThe imaginary part of the resulting impedance is tested for EIS.
S3, measuring load current I of battery in real timeL(k) And terminal voltage Ul(k)。
S4, estimating the SOC of the battery in real time by adopting a common closed-loop observer:
and (3) estimating the SOC in real time by adopting a state observer based on error feedback correction based on a discrete state space equation of the fractional order model. The closed-loop observer that can be used includes closed-loop observers including a variety of commonly used state estimation methods, such as a Luneberg observer, extended Kalman filter, unscented Kalman filter, particle filter, synovial observer, H∞Observers, etc., but are not limited to the above; the schematic diagram of the closed loop observer is shown in fig. 4; specifically, the embodiment adopts an Adaptive Extended Kalman Filter (AEKF) algorithm to estimate the SOC in real time, the AEKF algorithm is an improved form based on the Extended Kalman Filter (EKF) algorithm, the EKF algorithm assumes that the input and output noises of the system are all white gaussian noises, and the vehicle-mounted environment actually has various noises, so the AEKF algorithm corrects the process noise and the measurement noise when updating the measurement data of each step in order to cope with the influence of noise uncertainty on the estimation result, and the uncertainty of the estimation result caused by unknown noise to the system is reduced. The flow of the AEKF algorithm is as follows:
discretizing the state space equation of the linear system as:
xk+1=f(xk,uk)+ek
yk=g(xk,uk)+vk
wherein xkIs the state vector at time k, ykIs the system output at time k, ukFor the input of the system at time k, ekRandom process noise reflects some unmeasured interference inputs that affect the system state; v. ofkFor measuring noise, reflecting the system output ykThe measurement error of (2).
Initializing AEKF filtering:
E[·]period representing random variableInspection is performed.
Iterative calculations are performed at each measurement interval:
and (3) AEKF filtering prior estimation, namely updating the state parameter value and the error covariance matrix at the k moment in real time by the state parameter value and the error covariance matrix at the k-1 moment:
error covariance matrix prior estimation:
wherein
And
and respectively representing the state parameter value and the prior estimated value of the state error covariance at the moment k, wherein Q is a covariance matrix of input measurement noise.
The kalman gain matrix is:
wherein
A covariance matrix of the noise is measured for the output.
Estimation of AEKF filtered posterior parameters, i.e. using measured output values at time K and the above Kalman gain matrix KkAnd updating the state parameters and the error covariance matrix at the moment k in real time to obtain a more accurate estimation result:
updating an estimation error:
updating the state posterior:
updating the error covariance matrix posteriori:
wherein I is an identity matrix;
process noise variance update:
and (3) updating the measurement noise variance:
in the formula dk=(1-ρ)/(1-ρk+1) ρ is a forgetting factor, and is generally a decimal between 0.9 and 1.
The AEKF can estimate the noise variance in real time on line
And
the estimation result is more accurate, and the alternating cycle updating of the state parameter value and the noise characteristic is realized.
According to the state space equation established in S102, the system state, input, and output are respectively defined as:
correspondingly, the correlation matrix in the adaptive extended kalman filter algorithm is:
estimating the SOC of the battery on line according to the algorithm flow of the AEKF, and recording the optimal estimated value of the SOC of the battery at the k moment as Ze(k)。
S5, calculating the difference of SOC increment, and identifying the short-circuit resistance of the battery on line by adopting a recursive total least square method (RTLS);
s501, calculating SOC increment difference
And calculating the SOC increment from the k-1 moment to the k moment by using the load current value at the k-1 moment:
then the difference between the SOC increment zo (k) directly calculated by using the load current measurement value and the SOC increment estimated by using the AEKF algorithm between the time k-1 and the time k is:
ΔZ(k)=ZO(k)-[Ze(k)-Ze(k-1)]
s502, establishing a regression equation:
the theoretical function relationship of the terminal voltage, the SOC increment difference and the short-circuit resistance is as follows:
order to
And establishing a regression equation according to a theoretical functional relation:
Ul(k)=ω(k)·θ(k)
terminal voltage measurement U in regression equationl(k) As an output, ω (k) related to the difference of the SOC increment is used as an input, and θ (k) is a parameter R to be identifiedISC。
S503, short-circuit resistance is identified on line by adopting recursive overall least square algorithm
Exist for solving both input and outputRegression of interference, the embodiment of the invention adopts a recursive total least square method to carry out short-circuit resistance RISCAnd performing online identification.
Referring to the regression description method, the recursive least squares algorithm flow is as follows:
firstly, algorithm parameters are initialized according to existing information and experience, specifically, the following initialization parameters are adopted in the embodiment: g (0) ═ 0, pi (0) ═ 0, λ0(0)=0,θ(0)=0,φ(0)=0,β=0.5,μ=0.998;
Iterative calculations are performed at each predetermined calculation point:
g(k)=μg(k-1)+ω(k-1)ω(k)
π(k)=μπ(k-1)+ω2(k)
λ0(k)=μλ(k-1)(β+θ2(k-1))+(θ(k-1)ω(k)-Ul(k))2
φ(k)=μφ(k-1)+ω(k)Ul(k)
a(k)=ω3(k)φ(k)
θ(k)=θ(k-1)+α(k)ω(k)
wherein theta (k) represents the parameter to be identified at the moment kRISCThe estimated value of (1), mu, is a forgetting factor, and other intermediate variables can be obtained according to initialization and iterative calculation.
In conclusion, the invention establishes a state space equation according to the established fractional order equivalent circuit model of the battery, calculates the SOC increment difference of the battery by using the load current and the terminal voltage measurement value of the battery through the ampere-hour accumulation characteristic and a closed-loop SOC observer with error feedback correction, and identifies the short-circuit resistance of the battery on line by adopting a recursive total least square method. Compared with the traditional short-circuit resistance detection method based on a simple equivalent circuit model, the method is independent of other monomers in the battery pack, and has wider application range; the adopted fractional order equivalent circuit model has higher precision and can better simulate the nonlinear dynamic characteristics of the battery; the recursive total least square method used by the invention has stronger resistance to input and output interference, can effectively overcome uncertainty caused by measurement noise and calculation errors, and improves the robustness and precision of short circuit resistance estimation.
Finally, it is to be understood that the foregoing is illustrative of the preferred embodiments of the present invention and is not to be construed as limited to the forms disclosed herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein and other features and advantages disclosed herein as well as those skilled in the relevant art and equivalents thereof. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.