CN114217234B - IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method - Google Patents

IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method Download PDF

Info

Publication number
CN114217234B
CN114217234B CN202111654358.2A CN202111654358A CN114217234B CN 114217234 B CN114217234 B CN 114217234B CN 202111654358 A CN202111654358 A CN 202111654358A CN 114217234 B CN114217234 B CN 114217234B
Authority
CN
China
Prior art keywords
algorithm
soc
lithium
battery
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111654358.2A
Other languages
Chinese (zh)
Other versions
CN114217234A (en
Inventor
李俊红
褚云琨
杨奕
袁银龙
宗天成
李磊
芮佳丽
蒋泽宇
蒋一哲
宋伟成
储杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nantong University
Original Assignee
Nantong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nantong University filed Critical Nantong University
Priority to CN202111654358.2A priority Critical patent/CN114217234B/en
Publication of CN114217234A publication Critical patent/CN114217234A/en
Application granted granted Critical
Publication of CN114217234B publication Critical patent/CN114217234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electric Status Of Batteries (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The invention provides a lithium ion battery parameter identification and SOC estimation method based on IDE-ASRCKF, which belongs to the technical field of lithium ion batteries and comprises the following technical scheme: the method comprises the following steps: step 1), determining an OCV-SOC relation through intermittent constant current discharging measurement of load current and terminal voltage data of a battery; step 2) establishing a second-order RC model of the lithium ion battery; step 3) constructing an identification flow of an IDE algorithm, and identifying parameters of a battery model; step 4) constructing an estimation flow of an ASRCKF algorithm; and 5) determining each parameter in the lithium battery model by utilizing an IDE algorithm, and estimating the battery SOC by utilizing ASRCKF. The beneficial effects of the invention are as follows: the invention improves the convergence speed and precision of the algorithm; and the SOC estimation is carried out by combining the parameter result obtained by identification with an ASRCKF algorithm, so that the accuracy is high, the robustness is good, and the effect is better than CKF.

Description

一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法A lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF

技术领域Technical Field

本发明涉及锂离子电池技术领域,尤其涉及一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法。The present invention relates to the technical field of lithium-ion batteries, and in particular to a lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF.

背景技术Background Art

锂离子电池荷电状态(State Of Charge,SOC)是电池管理系统(BatteryManagement System,BMS)中的重要参数之一,为汽车电池组的控制策略提供判断依据。通常情况下,通过对锂离子电池的端电压、负载电流以及环境温度进行实时监测来进行SOC估计,进而完成对电池组的控制,精确的SOC估计结果可以保障电池系统安全可靠地运行。The state of charge (SOC) of lithium-ion batteries is one of the important parameters in the battery management system (BMS), which provides a basis for the control strategy of the vehicle battery pack. Usually, the SOC is estimated by real-time monitoring of the terminal voltage, load current and ambient temperature of the lithium-ion battery, and then the battery pack is controlled. Accurate SOC estimation results can ensure the safe and reliable operation of the battery system.

建立恰当、精准的电池模型对SOC估计效果至关重要。根据电池模型中参数处理方法的不同,锂离子电池模型可以分为电化学模型、神经网络模型和等效电路模型,其中等效电路模型是研究较为广泛的一种模型。模型辨识方法主要分为在线辨识与离线辨识,传统在线辨识方法可以根据电池所处环境和当前电池状态对参数进行实施修正,但在某些情况下参数误差较大,相比之下,离线辨识可以调用大量数据,参数精度更高,有一定的优势。离线辨识领域各类群智能优化算法被广泛运用,如何保证算法精度高、收敛速度快是研究的重要课题。Establishing an appropriate and accurate battery model is crucial to the SOC estimation effect. According to the different parameter processing methods in the battery model, the lithium-ion battery model can be divided into an electrochemical model, a neural network model and an equivalent circuit model, among which the equivalent circuit model is a more widely studied model. Model identification methods are mainly divided into online identification and offline identification. Traditional online identification methods can modify parameters according to the battery environment and the current battery status, but in some cases the parameter error is large. In contrast, offline identification can call a large amount of data, and the parameter accuracy is higher, which has certain advantages. Various types of group intelligent optimization algorithms are widely used in the field of offline identification. How to ensure high algorithm accuracy and fast convergence speed is an important research topic.

在高精度的电池模型基础上,选用何种SOC估计方法同样重要,目前常用的估计方法分为2种:一是利用安时积分法直接计算得出,但该类方法过度依赖SOC初始值,在初值误差较大的情况下,估计误差较大,不符合实际需求;二是基于电池模型与状态量预测结果进行估计,如支持向量机、神经网络、卡尔曼滤波算法,前两种方法对数据量以及数据质量有着较大地要求,应用受限,而卡尔曼滤波算法研究较为成熟,能够很好的解决SOC估计问题,但仍面临精度不高、鲁棒性差等问题。On the basis of a high-precision battery model, it is equally important to choose the SOC estimation method. Currently, there are two commonly used estimation methods: one is to directly calculate using the ampere-hour integration method, but this type of method is overly dependent on the initial SOC value. When the initial value error is large, the estimation error is large and does not meet actual needs; the other is to estimate based on the battery model and state quantity prediction results, such as support vector machines, neural networks, and Kalman filtering algorithms. The first two methods have high requirements on data volume and data quality, and their applications are limited. The Kalman filtering algorithm is relatively mature and can solve the SOC estimation problem well, but it still faces problems such as low accuracy and poor robustness.

如何解决上述技术问题为本发明面临的课题。How to solve the above technical problems is the subject faced by the present invention.

发明内容Summary of the invention

本发明的目的在于提供一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法,在原差分进化算法(DE)基础上加入自适应因子,改进变异和交叉过程,提出一种改进差分进化算法(IDE),有效解决了传统启发式辨识算法容易陷入局部最优、收敛速度慢等问题,且辨识参数精度高,考虑传统容积卡尔曼滤波(CKF)算法误差协方差矩阵的正定性难以保证,引入平方根滤波,直接计算状态量误差协方差预测值与状态量误差协方差估计值的平方根因子,避免对矩阵求平方根;同时引入残差序列与自适应因子,对过程噪声与测量噪声进行自适应更新,从而提高过程噪声与测量噪声的准确性。两种改进结合,提出自适应容积卡尔曼滤波(ASRCKF)算法并用于估计锂离子电池SOC,估计结果准确,且算法鲁棒性高。The purpose of the present invention is to provide a lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF. An adaptive factor is added to the original differential evolution algorithm (DE), and the mutation and crossover process is improved. An improved differential evolution algorithm (IDE) is proposed, which effectively solves the problems that the traditional heuristic identification algorithm is easy to fall into the local optimum and the convergence speed is slow, and the identification parameter accuracy is high. Considering that the positive definiteness of the error covariance matrix of the traditional cubature Kalman filter (CKF) algorithm is difficult to guarantee, a square root filter is introduced to directly calculate the square root factor of the state quantity error covariance prediction value and the state quantity error covariance estimation value, avoiding the square root of the matrix; at the same time, a residual sequence and an adaptive factor are introduced to adaptively update the process noise and the measurement noise, thereby improving the accuracy of the process noise and the measurement noise. The two improvements are combined to propose an adaptive cubature Kalman filter (ASRCKF) algorithm and used to estimate the SOC of lithium-ion batteries. The estimation result is accurate and the algorithm has high robustness.

本发明是通过如下措施实现的:一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法,其中,具体包括以下步骤:The present invention is achieved by the following measures: a lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF, which specifically includes the following steps:

步骤1)通过间歇恒流放电测取电池的负载电流和端电压数据,确定OCV-SOC关系;Step 1) measuring the load current and terminal voltage data of the battery by intermittent constant current discharge to determine the OCV-SOC relationship;

步骤2)建立锂离子电池的二阶RC模型;Step 2) establishing a second-order RC model of a lithium-ion battery;

步骤3)构建IDE算法的辨识流程,对电池模型参数进行辨识;Step 3) constructing an identification process of the IDE algorithm to identify the battery model parameters;

步骤4)构架ASRCKF算法的估计流程;Step 4) Construct the estimation process of ASRCKF algorithm;

步骤5)利用IDE算法确定锂电池模型中的各个参数,并利用ASRCKF对电池SOC进行估计;Step 5) Using the IDE algorithm to determine the parameters in the lithium battery model, and using ASRCKF to estimate the battery SOC;

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤2)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 2) specifically includes the following steps:

考虑锂离子电池的双极化特性,建立锂离子电池二阶RC模型:Considering the dual polarization characteristics of lithium-ion batteries, a second-order RC model of lithium-ion batteries is established:

Uoc、U对应电池开路电压与端电压,电容C1、C2两端的电压分别用U1、U2表示,R0表示欧姆内阻。锂离子电池模型存在两个RC并联环节,分别表示电池内部存在的两种极化效应:由R1、C1表示的电化学极化效应与R2、C2表示的浓度差极化效应;U oc and U correspond to the open circuit voltage and terminal voltage of the battery. The voltages across capacitors C 1 and C 2 are represented by U 1 and U 2, respectively, and R 0 represents the ohmic internal resistance. The lithium-ion battery model has two RC parallel links, which represent the two polarization effects inside the battery: the electrochemical polarization effect represented by R 1 and C 1 and the concentration difference polarization effect represented by R 2 and C 2 ;

SOC表示锂离子电池的荷电状态,其表示为:SOC represents the state of charge of a lithium-ion battery, which is expressed as:

其中Qn是额定容量,SOC(t0)表示t时刻SOC值。Where Qn is the rated capacity, and SOC( t0 ) represents the SOC value at time t.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤3)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 3) specifically includes the following steps:

步骤3-1)差分进化算法:Step 3-1) Differential evolution algorithm:

差分进化算法以遗传进化算法为基础,用于求解多维空间中的整体最优解,其核心步骤包括变异、交叉以及选择;The differential evolution algorithm is based on the genetic evolution algorithm and is used to solve the overall optimal solution in multidimensional space. Its core steps include mutation, crossover and selection;

差分进化算法步骤包括:The steps of differential evolution algorithm include:

a.初始化a. Initialization

设置种群个数为M、个体的维度数为N、最大迭代次数Gm和交叉因子w,随机生成种群个体:Set the population size to M, the individual dimension to N, the maximum number of iterations to G m and the crossover factor to w, and randomly generate individuals in the population:

式中:randi,j(0,1)表示[0,1]内的随机小数,表示第i个个体的第j维的上下限;Where: rand i,j (0,1) represents a random decimal in [0,1], represents the upper and lower limits of the jth dimension of the ith individual;

b.个体变异b. Individual variation

式中:是在种群中随机选择的三个个体,是两个体的差分向量,F是变异因子,G是当前迭代次数,个体变异是指通过任选两个个体的向量差加权后按照规则与第三个个体进行求和,从而产生变异个体;Where: and are three individuals randomly selected from the population, is the difference vector of two individuals, F is the mutation factor, G is the current iteration number, and individual mutation refers to the generation of mutant individuals by weighting the vector difference of any two individuals and summing them with the third individual according to the rules;

c.交叉操作c. Crossover operation

交叉操作可以有效增加种群的多样性,对变异个体与某个预先决定的目标进行比较,得到变异个体,具体公式如下:The crossover operation can effectively increase the diversity of the population. By comparing the variant individuals with a predetermined target, the variant individuals are obtained. The specific formula is as follows:

式中:randli,j是[0,1]之间的随机小数,是变异个体的第j维向量,是个体的第j维向量,交叉因子ω可以控制个体参数的各个维度对交叉的参与程度以及全局与局部搜索能力的平衡,在[0,1]之间;Where: randl i,j is a random decimal between [0,1], A mutant individual The j-th dimension vector of Is an individual The j-th dimension vector of , the crossover factor ω can control the degree of participation of each dimension of the individual parameter in the crossover and the balance between global and local search capabilities, between [0,1];

d.选择操作d. Select an operation

对目标个体与试验个体的适应度值进行判断,利用贪婪法选择适应性好的个体:The fitness values of the target individual and the test individual are judged, and the individual with good fitness is selected using the greedy method:

步骤3-1)改进差分进化算法:Step 3-1) Improve the differential evolution algorithm:

基本DE算法中变异因子F与交叉因子w决定种群的多样性,从而影响算法的收敛性,通过对基本DE算法中的变异、交叉过程进行改进,提出一种改进的差分进化算法,提升算法寻优过程,加快收敛速度;具体步骤如下:The mutation factor F and crossover factor w in the basic DE algorithm determine the diversity of the population, thus affecting the convergence of the algorithm. By improving the mutation and crossover process in the basic DE algorithm, an improved differential evolution algorithm is proposed to enhance the algorithm optimization process and accelerate the convergence speed. The specific steps are as follows:

a.自适应变异因子a. Adaptive mutation factor

变异作为DE算法中的一个步骤,增加种群的多样性,实现算法的寻优性能,原算法中变异因子为常数,在变异过程中随机性较大,难以确定最优值,通过引入自适应算子,使变异因子变为一周期性变化的动态值,使得变异因子搜索范围处于一个合理的范围,随着迭代次数的增加,变异因子也在寻找最优值,从而算法有效地逼近最优解,并保证了种群的多样性,具体改进策略如下:Mutation is a step in the DE algorithm to increase the diversity of the population and achieve the optimization performance of the algorithm. The mutation factor in the original algorithm is a constant. The randomness is large during the mutation process, and it is difficult to determine the optimal value. By introducing an adaptive operator, the mutation factor becomes a dynamic value that changes periodically, so that the search range of the mutation factor is within a reasonable range. With the increase in the number of iterations, the mutation factor is also looking for the optimal value, so that the algorithm effectively approaches the optimal solution and ensures the diversity of the population. The specific improvement strategies are as follows:

F=F0×2α (8)F=F 0 ×2 α (8)

b.改进的交叉策略b. Improved crossover strategy

基于自适应原理对原算法交叉操作中的交叉因子进行改进:Based on the adaptive principle, the crossover factor in the crossover operation of the original algorithm is improved:

ω=0.6×(1+rand()) (10)ω=0.6×(1+rand()) (10)

通过交叉因子的自适应调整,平衡算法全局和局部的搜索能力,快速得出最优解。Through adaptive adjustment of cross factors, the global and local search capabilities of the algorithm are balanced to quickly obtain the optimal solution.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤4)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 4) specifically includes the following steps:

在容积卡尔曼滤波算法的基础上,为保证误差协方差矩阵在迭代过程中的对称性与正定性,引入平方根滤波,直接计算状态量误差协方差预测值与状态量误差协方差估计值的平方根因子,避免对矩阵求平方根;并考虑CKF中过程噪声与测量噪声是恒定的,而在实际情况下锂离子电池充放电过程中两者是不断变化的,为提高两种误差的准确性,引入残差序列并结合群智能算法中的迭代思想,对过程和测量噪声协方差进行自适应更新,提出自适应平方根容积卡尔曼滤波算法;On the basis of the cubature Kalman filter algorithm, in order to ensure the symmetry and positive definiteness of the error covariance matrix in the iterative process, the square root filter is introduced to directly calculate the square root factors of the state quantity error covariance prediction value and the state quantity error covariance estimation value to avoid taking the square root of the matrix; and considering that the process noise and measurement noise in CKF are constant, while in actual situations, both are constantly changing during the charging and discharging process of lithium-ion batteries, in order to improve the accuracy of the two errors, the residual sequence is introduced and combined with the iterative idea in the swarm intelligence algorithm, the process and measurement noise covariances are adaptively updated, and an adaptive square root cubature Kalman filter algorithm is proposed;

非线性系统的状态方程和观测方程为:The state equation and observation equation of the nonlinear system are:

x(k)=f(x(k-1),u(k-1))+w(k-1) (11)x(k)=f(x(k-1),u(k-1))+w(k-1) (11)

y(k)=g(x(k),u(k))+v(k) (12)y(k)=g(x(k),u(k))+v(k) (12)

式中:x(k)是k时刻的系统状态变量,u(k)是输入数据,y(k)是输出数据,g是观测方程的非线性函数,f是状态方程的非线性函数,w(k)是输入噪声,v(k)是观测噪声;Where: x(k) is the system state variable at time k, u(k) is the input data, y(k) is the output data, g is the nonlinear function of the observation equation, f is the nonlinear function of the state equation, w(k) is the input noise, and v(k) is the observation noise;

算法步骤如下:The algorithm steps are as follows:

步骤4-1)参数初始化:Step 4-1) Parameter initialization:

初始化状态变量初始值状态误差协方差P0、过程噪声Q和测量噪声R;Initialize the state variable to its initial value State error covariance P 0 , process noise Q and measurement noise R;

步骤4-2)时间更新:Step 4-2) Time update:

a.计算容积点a. Calculate volume points

通过Cholesky分解误差协方差矩阵并计算容积点:Decompose the error covariance matrix through Cholesky and calculate the volume points:

Pk-1=Sk-1Sk-1 T (13)P k-1 =S k-1 S k-1 T (13)

式中i=1,2,3,…,2n,n为状态量的维数,ξi为容积点集,如下所示:Where i = 1, 2, 3, ..., 2n, n is the dimension of the state quantity, ξ i is the volume point set, as shown below:

式中[1]为单位矩阵;Where [1] is the unit matrix;

b.传播容积点b. Propagation volume point

c.估计k时刻状态预测值c. Estimate the state prediction value at time k

d.计算k时刻状态误差协方差预测值的平方根d. Calculate the square root of the predicted value of the state error covariance at time k

式中SQ=Chol(Qk),Tria(…)表示对矩阵进行三角化处理,矩阵定义如下:Where S Q = Chol(Q k ), Tria(…) represents the triangularization of the matrix. The definition is as follows:

步骤4-3)量测更新:Step 4-3) Measurement update:

a.利用k时刻的状态预测值和状态误差协方差平方根预测值更新容积点a. Using the state prediction value at time k and the square root of the state error covariance prediction Update Volume Points

b.计算观测量预测值 b. Calculate the predicted value of the observed value

式中:Where:

c.计算新息协方差矩阵平方根和误差协方差矩阵的平方根 c. Calculate the square root of the innovation covariance matrix and the square root of the error covariance matrix

式中:Where:

SR=chol(Rk-1) (25)S R = chol(R k-1 ) (25)

Rk-1为k-1时刻量测噪声协方差;R k-1 is the measurement noise covariance at time k-1;

d.更新卡尔曼增益d. Update Kalman gain

e.计算系统状态量估计值e. Calculate the estimated value of the system state quantity

f.计算系统状态量误差协方差矩阵平方根f. Calculate the square root of the system state error covariance matrix

Sk=Tria([μk-Kkrk KkSR]) (30)S k =Tria([μ k -K k r k K k S R ]) (30)

g.更新量测噪声协方差Rk与系统噪声协方差Qk g. Update the measurement noise covariance Rk and system noise covariance Qk

K时刻电压残差协方差的近似值为:The approximate value of the voltage residual covariance at time K is:

式中表示k时刻测量值与估计值的偏差;L为新息长度,引入自适应算子α并定义权重n,如下所示:In the formula represents the deviation between the measured value and the estimated value at time k; L is the new information length, the adaptive operator α is introduced and the weight n is defined as follows:

n=n0×2α (33)n=n 0 ×2 α (33)

其中G为数据集总长度,H为当前数据位置,建立k时刻量测噪声协方差Rk与系统噪声协方差Qk表达式,如下所示:Where G is the total length of the data set, H is the current data position, and the expression of the measurement noise covariance R k and the system noise covariance Q k at time k is established as follows:

Rk=(1-nk)Rk-1+nkFk (34)R k =(1-n k )R k-1 +n k F k (34)

步骤4-4)ASRCKF算法估计SOC:Step 4-4) ASRCKF algorithm estimates SOC:

根据式(11)和式(12),将[SOC,U1,U2]作为系统状态量,建立锂离子电池二阶RC模型的离散状态空间表达式:According to equations (11) and (12), [SOC, U 1 , U 2 ] is used as the system state quantity to establish the discrete state space expression of the second-order RC model of lithium-ion battery:

其中电流I为输入,端电压U为输出,[SOC,U1,U2]为状态变量,Δt为系统采样时间,为1s,在ASRCKF算法中,设置观测量y(k)=U(k),状态量xk=[SOC(k),U1(k),U2(k)],输入量u(k)=I(k),锂离子电池作为一非线性系统,其状态方程和观测方程如下:Wherein the current I is the input, the terminal voltage U is the output, [SOC, U 1 , U 2 ] is the state variable, Δt is the system sampling time, which is 1s. In the ASRCKF algorithm, the observation quantity y(k)=U(k), the state quantity x k =[SOC(k),U 1 (k),U 2 (k)], and the input quantity u(k)=I(k) are set. The lithium-ion battery is a nonlinear system, and its state equation and observation equation are as follows:

通过迭代,算法可以估算出锂离子电池各个时刻的SOC值。Through iteration, the algorithm can estimate the SOC value of the lithium-ion battery at each moment.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤5)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 5) specifically includes the following steps:

步骤5-1)参数辨识:Step 5-1) Parameter identification:

在不同SOC情况下,锂离子电池参数辨识结果会有偏差,故将整个放电过程分10段进行辨识,每个阶段电池都经历静置、脉冲放电、再静置。放电前的SOC定为初始SOC。利用IDE算法对每段电池放电过程进行辨识,再将每段辨识得到的结果与对应的初始SOC进行多项式拟合,可以得到电池模型参数在不同SOC下的变化曲线。Under different SOC conditions, the identification results of lithium-ion battery parameters will be biased, so the entire discharge process is divided into 10 stages for identification. In each stage, the battery undergoes static, pulse discharge, and static again. The SOC before discharge is defined as the initial SOC. The IDE algorithm is used to identify each battery discharge process, and then the results of each identification are polynomially fitted with the corresponding initial SOC to obtain the change curve of the battery model parameters under different SOCs.

步骤5-2)SOC估计:Step 5-2) SOC estimation:

将辨识得到的参数代入状态方程与观测方程,并结合实验测得的端电压、电流数据,利用ASRCKF算法进行锂离子电池状态变量进行预测与更新,进而得到SOC估计结果。The identified parameters are substituted into the state equation and observation equation, and combined with the experimentally measured terminal voltage and current data, the ASRCKF algorithm is used to predict and update the lithium-ion battery state variables to obtain the SOC estimation result.

与现有技术相比,本发明的有益效果为:Compared with the prior art, the present invention has the following beneficial effects:

(1)、本发明根据基尔霍夫定律建立了锂离子电池二阶RC模型,并通过实验测得一组间歇恒流放电数据,拟合OCV-SOC关系。(1) The present invention establishes a second-order RC model of a lithium-ion battery based on Kirchhoff's law, and obtains a set of intermittent constant current discharge data through experiments to fit the OCV-SOC relationship.

(2)、本发明是在原有差分进化算法基础上,提出一种自适应改进方法,对原算法中的变异、交叉步骤进行改进,有效解决了原算法在电池模型参数辨识过程中容易陷入局部最优、收敛速度慢的问题,辨识效果优于传统启发式算法。(2) The present invention proposes an adaptive improvement method based on the original differential evolution algorithm to improve the mutation and crossover steps in the original algorithm, effectively solving the problem that the original algorithm is prone to fall into local optimality and slow convergence speed during the battery model parameter identification process. The identification effect is better than that of the traditional heuristic algorithm.

(3)、本发明相对于传统CKF算法在SOC估计过程中具有一定的效果,但在算法迭代过程中,协方差矩阵对称性和正定性容易被破坏,这将导致算法终止,本发明在原算法基础上引入平方根滤波,直接计算状态量误差协方差预测值与误差协方差估计值平方根因子,避免对矩阵进行平方根运算,有效避免对协方差对称性和正定性进行破坏。同时在CKF算法迭代过程中,过程噪声与测量噪声是默认是恒定的,而在实际情况下锂离子电池充放电过程中两者是不断变化的,这会导致算法的估算结果出现较大误差,为提高两种误差的准确性,本发明引入协方差残差序列并结合自适应思想,对过程和测量噪声协方差进行自适应更新,有效提高了误差准确性,从而提高了算法估计精度。(3) Compared with the traditional CKF algorithm, the present invention has certain effects in the SOC estimation process. However, during the algorithm iteration process, the symmetry and positive definiteness of the covariance matrix are easily destroyed, which will lead to the termination of the algorithm. The present invention introduces square root filtering on the basis of the original algorithm, directly calculates the square root factor of the state quantity error covariance prediction value and the error covariance estimation value, avoids the square root operation of the matrix, and effectively avoids the destruction of the covariance symmetry and positive definiteness. At the same time, during the CKF algorithm iteration process, the process noise and the measurement noise are constant by default, but in actual situations, the two are constantly changing during the charging and discharging process of the lithium-ion battery, which will cause large errors in the estimation results of the algorithm. In order to improve the accuracy of the two errors, the present invention introduces the covariance residual sequence and combines the adaptive idea to adaptively update the process and measurement noise covariance, effectively improving the error accuracy, thereby improving the algorithm estimation accuracy.

(4)、本发明的SOC估计结果的准确性取决于模型参数的精度与估计算法的有效性。本发明有效利用了IDE算法高精度、收敛快的特性,并结合ASRCKF,可以准确、快速的估计电池SOC,且算法鲁棒性强。两种算法的结合具有很好的工程价值,实际应用前景广泛。(4) The accuracy of the SOC estimation result of the present invention depends on the accuracy of the model parameters and the effectiveness of the estimation algorithm. The present invention effectively utilizes the high accuracy and fast convergence characteristics of the IDE algorithm, and combines it with ASRCKF to accurately and quickly estimate the battery SOC, and the algorithm is highly robust. The combination of the two algorithms has great engineering value and broad prospects for practical application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

图1为本发明的锂离子电池二阶RC模型示意图。FIG. 1 is a schematic diagram of a second-order RC model of a lithium-ion battery of the present invention.

图2为本发明的间歇恒流流放电实验的电压电流曲线。FIG. 2 is a voltage-current curve of the intermittent constant current discharge experiment of the present invention.

图3为本发明的间歇恒流实验所用的OCV-SOC拟合曲线。FIG. 3 is an OCV-SOC fitting curve used in the intermittent constant current experiment of the present invention.

图4为本发明的IDE算法与DE算法、PSO算法迭代过程中适应度函数变化曲线。FIG. 4 is a curve showing the change of the fitness function during the iteration process of the IDE algorithm, the DE algorithm and the PSO algorithm of the present invention.

图5为本发明的IDE算法参数辨识结果拟合曲线。FIG. 5 is a fitting curve of the IDE algorithm parameter identification result of the present invention.

图6为本发明的IDE算法与DE算法在间歇恒流放电试验下的端电压预测曲线。FIG. 6 is a terminal voltage prediction curve of the IDE algorithm and the DE algorithm of the present invention under an intermittent constant current discharge test.

图7为本发明的IDE算法与DE算法在间歇恒流放电试验下的端电压预测误差曲线。FIG. 7 is a terminal voltage prediction error curve of the IDE algorithm and the DE algorithm of the present invention under an intermittent constant current discharge test.

图8为本发明的SOC估计曲线以及SOC估计误差曲线。FIG. 8 is an SOC estimation curve and an SOC estimation error curve of the present invention.

图9为本发明的在初始值存在偏差情况下的SOC估计曲线以及SOC估计误差曲线。FIG. 9 is an SOC estimation curve and an SOC estimation error curve of the present invention when there is a deviation in the initial value.

具体实施方式DETAILED DESCRIPTION

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。当然,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

本发明将松下锂离子电池NCR-18650B作为研究对象电池额定电压为3.7V,容量为3400mAh。电池以恒流充电方式(0.5C)进行充电,直至达到截止电压,静置一段时间后电池达到满电状态。The present invention uses Panasonic lithium-ion battery NCR-18650B as the research object. The rated voltage of the battery is 3.7V and the capacity is 3400mAh. The battery is charged in a constant current charging mode (0.5C) until the cut-off voltage is reached. After standing for a period of time, the battery reaches a fully charged state.

参见图1至图9,本发明提供一种基于郊狼优化算法的锂电池参数辨识与SOC估计方法。包括下列步骤:Referring to FIG. 1 to FIG. 9 , the present invention provides a lithium battery parameter identification and SOC estimation method based on the coyote optimization algorithm, which includes the following steps:

步骤1)在恒温25℃的环境下对电池进行间歇恒流放电实验,放电5min,静置30min,电流为3400mA,放电倍率为1C,重复多次并记录相关数据。根据实验测得21211组端电压、电流数据,数据变化曲线如图2所示。利用安时积分法计算电池SOC理论值,选取多组端电压及其对应SOC的数据,利用MATLAB中polyfit函数进行拟合,确定电池OCV-SOC系数:Step 1) Perform an intermittent constant current discharge experiment on the battery at a constant temperature of 25°C, discharge for 5 minutes, stand for 30 minutes, the current is 3400mA, the discharge rate is 1C, repeat multiple times and record relevant data. According to the experiment, 21211 groups of terminal voltage and current data are measured, and the data change curve is shown in Figure 2. The battery SOC theoretical value is calculated using the ampere-hour integration method, and multiple groups of terminal voltage and corresponding SOC data are selected. The polyfit function in MATLAB is used for fitting to determine the battery OCV-SOC coefficient:

f(x)=P1x9+P2x8+P3x7+P4x6+P5x5+P6x4+P7x3+P8x2+P9x1+P10x0 (1)f(x)=P 1 x 9 +P 2 x 8 +P 3 x 7 +P 4 x 6 +P 5 x 5 +P 6 x 4 +P 7 x 3 +P 8 x 2 +P 9 x 1 + P 10 x 0 (1)

OCV-SOC拟合曲线如图3所示。The OCV-SOC fitting curve is shown in Figure 3.

步骤2)建立锂离子电池的二阶RC模型;Step 2) establishing a second-order RC model of a lithium-ion battery;

步骤3)构建IDE算法的辨识流程,对电池模型参数进行辨识;Step 3) constructing an identification process of the IDE algorithm to identify the battery model parameters;

步骤4)构架ASRCKF算法的估计流程;Step 4) Construct the estimation process of ASRCKF algorithm;

步骤5)利用IDE算法确定锂电池模型中的各个参数,并利用ASRCKF对电池SOC进行估计;Step 5) Using the IDE algorithm to determine the parameters in the lithium battery model, and using ASRCKF to estimate the battery SOC;

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤2)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 2) specifically includes the following steps:

考虑锂离子电池的双极化特性,建立锂离子电池二阶RC模型:Considering the dual polarization characteristics of lithium-ion batteries, a second-order RC model of lithium-ion batteries is established:

Uoc、U对应电池开路电压与端电压,电容C1、C2两端的电压分别用U1、U2表示,R0表示欧姆内阻。锂离子电池模型存在两个RC并联环节,分别表示电池内部存在的两种极化效应:由R1、C1表示的电化学极化效应与R2、C2表示的浓度差极化效应。 Uoc and U correspond to the open circuit voltage and terminal voltage of the battery. The voltages across capacitors C1 and C2 are represented by U1 and U2 , respectively, and R0 represents the ohmic internal resistance. The lithium-ion battery model has two RC parallel links, which represent the two polarization effects inside the battery: the electrochemical polarization effect represented by R1 and C1 and the concentration difference polarization effect represented by R2 and C2 .

SOC表示锂离子电池的荷电状态,其表示为:SOC represents the state of charge of a lithium-ion battery, which is expressed as:

其中Qn是额定容量,SOC(t0)表示t时刻SOC值。Where Qn is the rated capacity, and SOC( t0 ) represents the SOC value at time t.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤3)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 3) specifically includes the following steps:

步骤3-1)差分进化算法:Step 3-1) Differential evolution algorithm:

差分进化算法以遗传进化算法为基础,用于求解多维空间中的整体最优解,其核心步骤包括变异、交叉以及选择;The differential evolution algorithm is based on the genetic evolution algorithm and is used to solve the overall optimal solution in multidimensional space. Its core steps include mutation, crossover and selection;

差分进化算法步骤包括:The steps of differential evolution algorithm include:

a.初始化a. Initialization

设置种群个数为M、个体的维度数为N、最大迭代次数Gm和交叉因子w,随机生成种群个体:Set the population size to M, the individual dimension to N, the maximum number of iterations to G m and the crossover factor to w, and randomly generate individuals in the population:

式中:randi,j(0,1)表示[0,1]内的随机小数,表示第i个个体的第j维的上下限;Where: rand i,j (0,1) represents a random decimal in [0,1], represents the upper and lower limits of the jth dimension of the ith individual;

b.个体变异b. Individual variation

式中:是在种群中随机选择的三个个体,是两个体的差分向量,F是变异因子,G是当前迭代次数,个体变异是指通过任选两个个体的向量差加权后按照规则与第三个个体进行求和,从而产生变异个体;Where: and are three individuals randomly selected from the population, is the difference vector of two individuals, F is the mutation factor, G is the current iteration number, and individual mutation refers to the generation of mutant individuals by weighting the vector difference of any two individuals and summing them with the third individual according to the rules;

c.交叉操作c. Crossover operation

交叉操作可以有效增加种群的多样性,对变异个体与某个预先决定的目标进行比较,得到变异个体,具体公式如下:The crossover operation can effectively increase the diversity of the population. By comparing the variant individuals with a predetermined target, the variant individuals are obtained. The specific formula is as follows:

式中:randli,j是[0,1]之间的随机小数,是变异个体的第j维向量,是个体的第j维向量,交叉因子ω可以控制个体参数的各个维度对交叉的参与程度以及全局与局部搜索能力的平衡,在[0,1]之间;Where: randl i,j is a random decimal between [0,1], A mutant individual The j-th dimension vector of Is an individual The j-th dimension vector of , the crossover factor ω can control the degree of participation of each dimension of the individual parameter in the crossover and the balance between global and local search capabilities, between [0,1];

d.选择操作d. Select an operation

对目标个体与试验个体的适应度值进行判断,利用贪婪法选择适应性好的个体:The fitness values of the target individual and the test individual are judged, and the individual with good fitness is selected using the greedy method:

步骤3-1)改进差分进化算法:Step 3-1) Improve the differential evolution algorithm:

基本DE算法中变异因子F与交叉因子w决定种群的多样性,从而影响算法的收敛性,通过对基本DE算法中的变异、交叉过程进行改进,提出一种改进的差分进化算法,提升算法寻优过程,加快收敛速度;具体步骤如下:The mutation factor F and crossover factor w in the basic DE algorithm determine the diversity of the population, thus affecting the convergence of the algorithm. By improving the mutation and crossover process in the basic DE algorithm, an improved differential evolution algorithm is proposed to enhance the algorithm optimization process and accelerate the convergence speed. The specific steps are as follows:

a.自适应变异因子a. Adaptive mutation factor

变异作为DE算法中的一个步骤,增加种群的多样性,实现算法的寻优性能,原算法中变异因子为常数,在变异过程中随机性较大,难以确定最优值,通过引入自适应算子,使变异因子变为一周期性变化的动态值,使得变异因子搜索范围处于一个合理的范围,随着迭代次数的增加,变异因子也在寻找最优值,从而算法有效地逼近最优解,并保证了种群的多样性,具体改进策略如下:Mutation is a step in the DE algorithm to increase the diversity of the population and achieve the optimization performance of the algorithm. The mutation factor in the original algorithm is a constant. The randomness is large during the mutation process, and it is difficult to determine the optimal value. By introducing an adaptive operator, the mutation factor becomes a dynamic value that changes periodically, so that the search range of the mutation factor is within a reasonable range. With the increase in the number of iterations, the mutation factor is also looking for the optimal value, so that the algorithm effectively approaches the optimal solution and ensures the diversity of the population. The specific improvement strategies are as follows:

F=F0×2α (9)F=F 0 ×2 α (9)

b.改进的交叉策略b. Improved crossover strategy

基于自适应原理对原算法交叉操作中的交叉因子进行改进:Based on the adaptive principle, the crossover factor in the crossover operation of the original algorithm is improved:

ω=0.6×(1+rand()) (11)ω=0.6×(1+rand()) (11)

通过交叉因子的自适应调整,平衡算法全局和局部的搜索能力,快速得出最优解。Through adaptive adjustment of cross factors, the global and local search capabilities of the algorithm are balanced to quickly obtain the optimal solution.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤4)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 4) specifically includes the following steps:

在容积卡尔曼滤波算法的基础上,为保证误差协方差矩阵在迭代过程中的对称性与正定性,引入平方根滤波,直接计算状态量误差协方差预测值与状态量误差协方差估计值的平方根因子,避免对矩阵求平方根;并考虑CKF中过程噪声与测量噪声是恒定的,而在实际情况下锂离子电池充放电过程中两者是不断变化的,为提高两种误差的准确性,引入残差序列并结合群智能算法中的迭代思想,对过程和测量噪声协方差进行自适应更新,提出自适应平方根容积卡尔曼滤波算法;On the basis of the cubature Kalman filter algorithm, in order to ensure the symmetry and positive definiteness of the error covariance matrix in the iterative process, the square root filter is introduced to directly calculate the square root factors of the state quantity error covariance prediction value and the state quantity error covariance estimation value to avoid taking the square root of the matrix; and considering that the process noise and measurement noise in CKF are constant, while in actual situations, both are constantly changing during the charging and discharging process of lithium-ion batteries, in order to improve the accuracy of the two errors, the residual sequence is introduced and combined with the iterative idea in the swarm intelligence algorithm, the process and measurement noise covariances are adaptively updated, and an adaptive square root cubature Kalman filter algorithm is proposed;

非线性系统的状态方程和观测方程为:The state equation and observation equation of the nonlinear system are:

x(k)=f(x(k-1),u(k-1))+w(k-1) (12)x(k)=f(x(k-1),u(k-1))+w(k-1) (12)

y(k)=g(x(k),u(k))+v(k) (13)y(k)=g(x(k),u(k))+v(k) (13)

式中:x(k)是k时刻的系统状态变量,u(k)是输入数据,y(k)是输出数据,g是观测方程的非线性函数,f是状态方程的非线性函数,w(k)是输入噪声,v(k)是观测噪声;Where: x(k) is the system state variable at time k, u(k) is the input data, y(k) is the output data, g is the nonlinear function of the observation equation, f is the nonlinear function of the state equation, w(k) is the input noise, and v(k) is the observation noise;

算法步骤如下:The algorithm steps are as follows:

步骤4-1)参数初始化:Step 4-1) Parameter initialization:

初始化状态变量初始值状态误差协方差P0、过程噪声Q和测量噪声R;Initialize the state variable to its initial value State error covariance P 0 , process noise Q and measurement noise R;

步骤4-2)时间更新:Step 4-2) Time update:

a.计算容积点a. Calculate volume points

通过Cholesky分解误差协方差矩阵并计算容积点:Decompose the error covariance matrix through Cholesky and calculate the volume points:

Pk-1=Sk-1Sk-1 T (14)P k-1 =S k-1 S k-1 T (14)

式中i=1,2,3,…,2n,n为状态量的维数,ξi为容积点集,如下所示:Where i = 1, 2, 3, ..., 2n, n is the dimension of the state quantity, ξ i is the volume point set, as shown below:

式中[1]为单位矩阵;Where [1] is the unit matrix;

b.传播容积点b. Propagation volume point

c.估计k时刻状态预测值c. Estimate the state prediction value at time k

d.计算k时刻状态误差协方差预测值的平方根d. Calculate the square root of the predicted value of the state error covariance at time k

式中SQ=Chol(Qk),Tria(…)表示对矩阵进行三角化处理,矩阵定义如下:Where S Q = Chol(Q k ), Tria(…) represents the triangularization of the matrix. The definition is as follows:

步骤4-3)量测更新:Step 4-3) Measurement update:

a.利用k时刻的状态预测值和状态误差协方差平方根预测值更新容积点a. Using the state prediction value at time k and the square root of the state error covariance prediction Update Volume Points

b.计算观测量预测值 b. Calculate the predicted value of the observed value

式中:Where:

c.计算新息协方差矩阵平方根和误差协方差矩阵的平方根 c. Calculate the square root of the innovation covariance matrix and the square root of the error covariance matrix

式中:Where:

SR=chol(Rk-1) (26)S R = chol(R k-1 ) (26)

Rk-1为k-1时刻量测噪声协方差;R k-1 is the measurement noise covariance at time k-1;

d.更新卡尔曼增益d. Update Kalman gain

e.计算系统状态量估计值e. Calculate the estimated value of the system state quantity

f.计算系统状态量误差协方差矩阵平方根f. Calculate the square root of the system state error covariance matrix

Sk=Tria([μk-Kkrk KkSR]) (31)S k =Tria([μ k -K k r k K k S R ]) (31)

g.更新量测噪声协方差Rk与系统噪声协方差Qk g. Update the measurement noise covariance Rk and system noise covariance Qk

K时刻电压残差协方差的近似值为:The approximate value of the voltage residual covariance at time K is:

式中表示k时刻测量值与估计值的偏差;L为新息长度,引入自适应算子α并定义权重n,如下所示:In the formula represents the deviation between the measured value and the estimated value at time k; L is the new information length, the adaptive operator α is introduced and the weight n is defined as follows:

n=n0×2α (34)n=n 0 ×2 α (34)

其中G为数据集总长度,H为当前数据位置,建立k时刻量测噪声协方差Rk与系统噪声协方差Qk表达式,如下所示:Where G is the total length of the data set, H is the current data position, and the expression of the measurement noise covariance R k and the system noise covariance Q k at time k is established as follows:

Rk=(1-nk)Rk-1+nkFk (35)R k =(1-n k )R k-1 +n k F k (35)

步骤4-4)ASRCKF算法估计SOC:Step 4-4) ASRCKF algorithm estimates SOC:

根据式(11)和式(12),将[SOC,U1,U2]作为系统状态量,建立锂离子电池二阶RC模型的离散状态空间表达式:According to equations (11) and (12), [SOC, U 1 , U 2 ] is used as the system state quantity to establish the discrete state space expression of the second-order RC model of lithium-ion battery:

其中电流I为输入,端电压U为输出,[SOC,U1,U2]为状态变量,Δt为系统采样时间,为1s,在ASRCKF算法中,设置观测量y(k)=U(k),状态量xk=[SOC(k),U1(k),U2(k)],输入量u(k)=I(k),锂离子电池作为一非线性系统,其状态方程和观测方程如下:Wherein the current I is the input, the terminal voltage U is the output, [SOC, U 1 , U 2 ] is the state variable, Δt is the system sampling time, which is 1s. In the ASRCKF algorithm, the observation quantity y(k)=U(k), the state quantity x k =[SOC(k),U 1 (k),U 2 (k)], and the input quantity u(k)=I(k) are set. The lithium-ion battery is a nonlinear system, and its state equation and observation equation are as follows:

通过迭代,算法可以估算出锂离子电池各个时刻的SOC值。Through iteration, the algorithm can estimate the SOC value of the lithium-ion battery at each moment.

作为本发明的一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法的进一步优化方案,所述步骤5)具体包括如下步骤:As a further optimization scheme of the lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF of the present invention, the step 5) specifically includes the following steps:

步骤5-1)参数辨识:Step 5-1) Parameter identification:

在不同SOC情况下,锂离子电池参数辨识结果会有偏差,故将整个放电过程分10段进行辨识,每个阶段电池都经历静置、脉冲放电、再静置。放电前的SOC定为初始SOC。建立适应度函数:Under different SOC conditions, the lithium-ion battery parameter identification results will be biased, so the entire discharge process is divided into 10 stages for identification. In each stage, the battery undergoes static, pulse discharge, and static again. The SOC before discharge is defined as the initial SOC. Establish the fitness function:

式中x=[R0,R1,R2,C1,C2];为端电压估计值;u(k)为端电压实际值;k为离散时间。迭代次数设为1000,利用IDE、DE、粒子群优化(PSO)算法对锂离子电池二阶RC模型进行参数辨识,迭代过程中适应度函数变化曲线如图4所示,对比发现,IDE算法在收敛速度、精度方面都有着一定的优势,通过改进原算法的交叉与变异操作,可以有效避免算法陷入局部最优,收敛速度更快。利用IDE算法对每段电池放电过程进行辨识,辨识结果如下表所示:Wherein x=[R 0 ,R 1 ,R 2 ,C 1 ,C 2 ]; is the estimated value of the terminal voltage; u(k) is the actual value of the terminal voltage; k is the discrete time. The number of iterations is set to 1000, and the parameters of the second-order RC model of lithium-ion batteries are identified using IDE, DE, and particle swarm optimization (PSO) algorithms. The fitness function change curve during the iteration process is shown in Figure 4. By comparison, it is found that the IDE algorithm has certain advantages in convergence speed and accuracy. By improving the crossover and mutation operations of the original algorithm, the algorithm can be effectively prevented from falling into the local optimum and converge faster. The IDE algorithm is used to identify each battery discharge process, and the identification results are shown in the following table:

再将每段辨识得到的结果与对应的初始SOC进行多项式拟合,可以得到电池模型参数在不同SOC下的变化曲线,如图5所示。利用所得参数,可以计算出电池端电压预测值,通过与实际值对比可以评估辨识算法的准确性,对比结果如图6和图7所示。结果表明,IDE算法辨识所得的参数更为准确,端电压预测值与实际值误差更小。Then, the polynomial fitting of the result obtained from each segment of identification and the corresponding initial SOC can be performed to obtain the variation curve of the battery model parameters under different SOCs, as shown in Figure 5. Using the obtained parameters, the predicted value of the battery terminal voltage can be calculated, and the accuracy of the identification algorithm can be evaluated by comparing it with the actual value. The comparison results are shown in Figures 6 and 7. The results show that the parameters identified by the IDE algorithm are more accurate, and the error between the predicted value of the terminal voltage and the actual value is smaller.

步骤5-2)SOC估计:Step 5-2) SOC estimation:

高精度的模型参数辨识结果利于ASRCKF对SOC进行准确估计。将辨识得到的参数代入状态方程与观测方程,并结合实验测得的端电压、电流数据,利用ASRCKF算法对锂离子电池状态变量进行预测与更新,进而可以得到SOC估计结果,并与CKF进行对比。如图8所示,结果表明ASRCKF有着更快的跟踪速度,且误差明显小于CKF。在初始SOC设为0.8和0.6的情况下,利用ASRCKF进行SOC估计,结果如图9所示,在初始误差为20%和40%的情况下,估计结果依旧准确,表明该算法具有很好的鲁棒性。The high-precision model parameter identification results are conducive to the accurate estimation of SOC by ASRCKF. The identified parameters are substituted into the state equation and observation equation, and combined with the experimentally measured terminal voltage and current data, the ASRCKF algorithm is used to predict and update the lithium-ion battery state variables, and then the SOC estimation results can be obtained and compared with CKF. As shown in Figure 8, the results show that ASRCKF has a faster tracking speed and the error is significantly smaller than CKF. When the initial SOC is set to 0.8 and 0.6, ASRCKF is used to estimate the SOC. The results are shown in Figure 9. When the initial error is 20% and 40%, the estimation results are still accurate, indicating that the algorithm has good robustness.

综上,可以看出改进差分进化算法与自适应容积卡尔曼滤波算法应用于锂离子电池参数辨识与SOC估计有着很好的效果,模型参数辨识结果准确,SOC估计精度高,具有工程价值。In summary, it can be seen that the improved differential evolution algorithm and adaptive volumetric Kalman filter algorithm have a good effect on lithium-ion battery parameter identification and SOC estimation. The model parameter identification results are accurate, the SOC estimation accuracy is high, and it has engineering value.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (1)

1.一种基于IDE-ASRCKF的锂离子电池参数辨识与SOC估计方法,其特征在于,包括以下步骤:1. A lithium-ion battery parameter identification and SOC estimation method based on IDE-ASRCKF, characterized in that it comprises the following steps: 步骤1)通过间歇恒流放电测取电池的负载电流和端电压数据,确定OCV-SOC关系;Step 1) measuring the load current and terminal voltage data of the battery by intermittent constant current discharge to determine the OCV-SOC relationship; 步骤2)建立锂离子电池的二阶RC模型;Step 2) establishing a second-order RC model of a lithium-ion battery; 步骤3)构建IDE算法的辨识流程,对电池模型参数进行辨识;Step 3) constructing an identification process of the IDE algorithm to identify the battery model parameters; 步骤4)构架ASRCKF算法的估计流程;Step 4) Construct the estimation process of ASRCKF algorithm; 步骤5)利用IDE算法确定锂电池模型中的各个参数,并利用ASRCKF对电池SOC进行估计;Step 5) Using the IDE algorithm to determine the parameters in the lithium battery model, and using ASRCKF to estimate the battery SOC; 所述步骤2)具体包括如下步骤:The step 2) specifically comprises the following steps: 考虑锂离子电池的双极化特性,建立锂离子电池二阶RC模型:Considering the dual polarization characteristics of lithium-ion batteries, a second-order RC model of lithium-ion batteries is established: Uoc、U对应电池开路电压与端电压,电容C1、C2两端的电压分别用U1、U2表示,R0表示欧姆内阻,锂离子电池模型存在两个RC并联环节,分别表示电池内部存在的两种极化效应:由R1、C1表示的电化学极化效应与R2、C2表示的浓度差极化效应;U oc and U correspond to the open circuit voltage and terminal voltage of the battery. The voltages across capacitors C 1 and C 2 are represented by U 1 and U 2, respectively. R 0 represents the ohmic internal resistance. The lithium-ion battery model has two RC parallel links, which represent the two polarization effects inside the battery: the electrochemical polarization effect represented by R 1 and C 1 and the concentration difference polarization effect represented by R 2 and C 2 . SOC表示锂离子电池的荷电状态,其表示为:SOC represents the state of charge of a lithium-ion battery, which is expressed as: 其中Qn是额定容量,SOC(t0)表示t时刻SOC值;Where Q n is the rated capacity, SOC(t 0 ) represents the SOC value at time t; 所述步骤3)具体包括如下步骤:The step 3) specifically comprises the following steps: 步骤3-1)改进差分进化算法:Step 3-1) Improve the differential evolution algorithm: 基本DE算法中变异因子F与交叉因子w决定种群的多样性,从而影响算法的收敛性,通过对基本DE算法中的变异、交叉过程进行改进,提出一种改进的差分进化算法,提升算法寻优过程,加快收敛速度;具体步骤如下:The mutation factor F and the crossover factor w in the basic DE algorithm determine the diversity of the population, thus affecting the convergence of the algorithm. By improving the mutation and crossover processes in the basic DE algorithm, an improved differential evolution algorithm is proposed to enhance the algorithm optimization process and accelerate the convergence speed. The specific steps are as follows: a.自适应变异因子a. Adaptive mutation factor 变异作为DE算法中的一个步骤,增加种群的多样性,实现算法的寻优性能,原算法中变异因子为常数,在变异过程中随机性较大,难以确定最优值,通过引入自适应算子,使变异因子变为一周期性变化的动态值,使得变异因子搜索范围处于一个合理的范围,随着迭代次数的增加,变异因子也在寻找最优值,从而算法有效地逼近最优解,并保证了种群的多样性,具体改进策略如下:Mutation is a step in the DE algorithm to increase the diversity of the population and achieve the optimization performance of the algorithm. The mutation factor in the original algorithm is a constant. The randomness is large during the mutation process, and it is difficult to determine the optimal value. By introducing an adaptive operator, the mutation factor becomes a dynamic value that changes periodically, so that the search range of the mutation factor is within a reasonable range. With the increase in the number of iterations, the mutation factor is also looking for the optimal value, so that the algorithm effectively approaches the optimal solution and ensures the diversity of the population. The specific improvement strategies are as follows: F=F0×2α (8)F=F 0 ×2 α (8) b.改进的交叉策略b. Improved crossover strategy 基于自适应原理对原算法交叉操作中的交叉因子进行改进:Based on the adaptive principle, the crossover factor in the crossover operation of the original algorithm is improved: ω=0.6×(1+rand()) (10)ω=0.6×(1+rand()) (10) 式中:randli,j是[0,1]之间的随机小数,是变异个体的第j维向量,是个体的第j维向量,交叉因子ω可以控制个体参数的各个维度对交叉的参与程度以及全局与局部搜索能力的平衡,在[0,1]之间;Where: randl i,j is a random decimal between [0,1], A mutant individual The j-th dimension vector of Is an individual The j-th dimension vector of , the crossover factor ω can control the degree of participation of each dimension of the individual parameter in the crossover and the balance between global and local search capabilities, between [0,1]; 通过交叉因子的自适应调整,平衡算法全局和局部的搜索能力,快速得出最优解;Through adaptive adjustment of cross factors, the global and local search capabilities of the algorithm are balanced to quickly obtain the optimal solution; 所述步骤4)具体包括如下步骤:The step 4) specifically comprises the following steps: 在容积卡尔曼滤波算法的基础上,为保证误差协方差矩阵在迭代过程中的对称性与正定性,引入平方根滤波,直接计算状态量误差协方差预测值与状态量误差协方差估计值的平方根因子,避免对矩阵求平方根;并考虑CKF中过程噪声与测量噪声是恒定的,而在实际情况下锂离子电池充放电过程中两者是不断变化的,为提高两种误差的准确性,引入残差序列并结合群智能算法中的迭代思想,对过程和测量噪声协方差进行自适应更新,提出自适应平方根容积卡尔曼滤波算法;On the basis of the cubature Kalman filter algorithm, in order to ensure the symmetry and positive definiteness of the error covariance matrix in the iterative process, the square root filter is introduced to directly calculate the square root factors of the state quantity error covariance prediction value and the state quantity error covariance estimation value to avoid taking the square root of the matrix; and considering that the process noise and measurement noise in CKF are constant, while in actual situations, both are constantly changing during the charging and discharging process of lithium-ion batteries, in order to improve the accuracy of the two errors, the residual sequence is introduced and combined with the iterative idea in the swarm intelligence algorithm, the process and measurement noise covariances are adaptively updated, and an adaptive square root cubature Kalman filter algorithm is proposed; 非线性系统的状态方程和观测方程为:The state equation and observation equation of the nonlinear system are: x(k)=f(x(k-1),u(k-1))+w(k-1) (11)x(k)=f(x(k-1),u(k-1))+w(k-1) (11) y(k)=g(x(k),u(k))+v(k) (12)y(k)=g(x(k),u(k))+v(k) (12) 式中:x(k)是k时刻的系统状态变量,u(k)是输入数据,y(k)是输出数据,g是观测方程的非线性函数,f是状态方程的非线性函数,w(k)是输入噪声,v(k)是观测噪声;Where: x(k) is the system state variable at time k, u(k) is the input data, y(k) is the output data, g is the nonlinear function of the observation equation, f is the nonlinear function of the state equation, w(k) is the input noise, and v(k) is the observation noise; 算法步骤如下:The algorithm steps are as follows: 步骤4-1)参数初始化:Step 4-1) Parameter initialization: 初始化状态变量初始值状态误差协方差P0、过程噪声Q和测量噪声R;Initialize the state variable to its initial value State error covariance P 0 , process noise Q and measurement noise R; 步骤4-2)时间更新:Step 4-2) Time update: a.计算容积点a. Calculate volume points 通过Cholesky分解误差协方差矩阵并计算容积点:Decompose the error covariance matrix through Cholesky and calculate the volume points: Pk-1=Sk-1Sk-1 T (13)P k-1 =S k-1 S k-1 T (13) 式中i=1,2,3,…,2n,n为状态量的维数,ξi为容积点集,如下所示:Where i = 1, 2, 3, ..., 2n, n is the dimension of the state quantity, ξ i is the volume point set, as shown below: 式中[1]为单位矩阵;Where [1] is the unit matrix; b.传播容积点b. Propagation volume point c.估计k时刻状态预测值c. Estimate the state prediction value at time k d.计算k时刻状态误差协方差预测值的平方根d. Calculate the square root of the predicted value of the state error covariance at time k 式中SQ=Chol(Qk),Tria(…)表示对矩阵进行三角化处理,矩阵定义如下:Where S Q = Chol(Q k ), Tria(…) represents the triangularization of the matrix. The definition is as follows: 步骤4-3)量测更新:Step 4-3) Measurement update: a.利用k时刻的状态预测值和状态误差协方差平方根预测值更新容积点a. Using the state prediction value at time k and the square root of the state error covariance prediction Update Volume Points b.计算观测量预测值 b. Calculate the predicted value of the observed value 式中:Where: c.计算新息协方差矩阵平方根和误差协方差矩阵的平方根 c. Calculate the square root of the innovation covariance matrix and the square root of the error covariance matrix 式中:Where: SR=chol(Rk-1) (25)S R = chol(R k-1 ) (25) Rk-1为k-1时刻量测噪声协方差;R k-1 is the measurement noise covariance at time k-1; d.更新卡尔曼增益d. Update Kalman gain e.计算系统状态量估计值e. Calculate the estimated value of the system state quantity f.计算系统状态量误差协方差矩阵平方根f. Calculate the square root of the system state error covariance matrix Sk=Tria([μk-Kkrk KkSR]) (30)S k =Tria([μ k -K k r k K k S R ]) (30) g.更新量测噪声协方差Rk与系统噪声协方差Qk g. Update the measurement noise covariance Rk and system noise covariance Qk K时刻电压残差协方差的近似值为:The approximate value of the voltage residual covariance at time K is: 式中表示k时刻测量值与估计值的偏差;L为新息长度,引入自适应算子β并定义权重n,如下所示:In the formula represents the deviation between the measured value and the estimated value at time k; L is the new information length, the adaptive operator β is introduced and the weight n is defined as follows: n=n0×2β (33)n=n 0 ×2 β (33) 其中P为数据集总长度,H为当前数据位置,n0为权重初值,建立k时刻量测噪声协方差Rk与系统噪声协方差Qk表达式,如下所示Where P is the total length of the data set, H is the current data position, n 0 is the initial weight value, and the expression of the measurement noise covariance R k and the system noise covariance Q k at time k is established as follows Rk=(1-nk)Rk-1+nkFk (34)R k =(1-n k )R k-1 +n k F k (34) 步骤4-4)ASRCKF算法估计SOC:Step 4-4) ASRCKF algorithm estimates SOC: 根据式(11)和式(12),将[SOC,U1,U2]作为系统状态量,建立锂离子电池二阶RC模型的离散状态空间表达式:According to equations (11) and (12), [SOC, U 1 , U 2 ] is used as the system state quantity to establish the discrete state space expression of the second-order RC model of lithium-ion battery: 其中电流I为输入,端电压U为输出,[SOC,U1,U2]为状态变量,Δt为系统采样时间,为1s,在ASRCKF算法中,设置观测量y(k)=U(k),状态量xk=[SOC(k),U1(k),U2(k)],输入量u(k)=I(k),锂离子电池作为一非线性系统,其状态方程和观测方程如下:Wherein the current I is the input, the terminal voltage U is the output, [SOC, U 1 , U 2 ] is the state variable, Δt is the system sampling time, which is 1s. In the ASRCKF algorithm, the observation quantity y(k)=U(k), the state quantity x k =[SOC(k),U 1 (k),U 2 (k)], and the input quantity u(k)=I(k) are set. The lithium-ion battery is a nonlinear system, and its state equation and observation equation are as follows: 通过迭代,算法可以估算出锂离子电池各个时刻的SOC值;Through iteration, the algorithm can estimate the SOC value of the lithium-ion battery at each moment; 所述步骤5)具体包括如下步骤:The step 5) specifically comprises the following steps: 步骤5-1)参数辨识:Step 5-1) Parameter identification: 在不同SOC情况下,锂离子电池参数辨识结果会有偏差,故将整个放电过程分10段进行辨识,每个阶段电池都经历静置、脉冲放电、再静置,放电前的SOC定为初始SOC,利用IDE算法对每段电池放电过程进行辨识,再将每段辨识得到的结果与对应的初始SOC进行多项式拟合,得到电池模型参数在不同SOC下的变化曲线;Under different SOC conditions, the lithium-ion battery parameter identification results will have deviations, so the entire discharge process is divided into 10 stages for identification. In each stage, the battery undergoes static, pulse discharge, and static again. The SOC before discharge is defined as the initial SOC. The IDE algorithm is used to identify each battery discharge process, and then the results of each identification are polynomially fitted with the corresponding initial SOC to obtain the change curve of the battery model parameters under different SOCs. 步骤5-2)SOC估计:Step 5-2) SOC estimation: 将辨识得到的参数代入状态方程与观测方程,并结合实验测得的端电压、电流数据,利用ASRCKF算法进行锂离子电池状态变量进行预测与更新,得到SOC估计结果。The identified parameters are substituted into the state equation and observation equation, and combined with the terminal voltage and current data measured experimentally, the ASRCKF algorithm is used to predict and update the lithium-ion battery state variables to obtain the SOC estimation result.
CN202111654358.2A 2021-12-30 2021-12-30 IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method Active CN114217234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111654358.2A CN114217234B (en) 2021-12-30 2021-12-30 IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111654358.2A CN114217234B (en) 2021-12-30 2021-12-30 IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method

Publications (2)

Publication Number Publication Date
CN114217234A CN114217234A (en) 2022-03-22
CN114217234B true CN114217234B (en) 2023-08-22

Family

ID=80707067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111654358.2A Active CN114217234B (en) 2021-12-30 2021-12-30 IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method

Country Status (1)

Country Link
CN (1) CN114217234B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115392139B (en) * 2022-10-27 2023-02-07 西北工业大学 Fuel cell parameter identification method
CN117310508B (en) * 2023-11-30 2024-02-27 山东科技大学 Method for rapidly and accurately measuring electric variable of lithium battery

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109444757A (en) * 2018-10-09 2019-03-08 杭州中恒云能源互联网技术有限公司 A kind of residual capacity of power battery of electric automobile evaluation method
CN110824363A (en) * 2019-10-21 2020-02-21 江苏大学 A joint estimation method of lithium battery SOC and SOE based on improved CKF
CN111537903A (en) * 2020-05-28 2020-08-14 杭州电子科技大学 Battery SOC estimation method based on HCKF
CN111537894A (en) * 2020-05-29 2020-08-14 合肥工业大学 A method for estimating lithium battery SOC and SOP
CN111707953A (en) * 2019-11-24 2020-09-25 华南理工大学 An online SOC estimation method for lithium batteries based on a backward smoothing filter framework
CN111831265A (en) * 2020-07-27 2020-10-27 吉林大学 AUTOSAR-based interface design method for electric vehicle sensor signal processing components
CN111831955A (en) * 2020-06-05 2020-10-27 南京航空航天大学 Lithium ion battery residual life prediction method and system
CN112415412A (en) * 2019-08-23 2021-02-26 比亚迪股份有限公司 Method and device for estimating SOC value of battery, vehicle and storage medium
CN113702843A (en) * 2021-07-26 2021-11-26 南通大学 Lithium battery parameter identification and SOC estimation method based on suburb optimization algorithm

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109444757A (en) * 2018-10-09 2019-03-08 杭州中恒云能源互联网技术有限公司 A kind of residual capacity of power battery of electric automobile evaluation method
CN112415412A (en) * 2019-08-23 2021-02-26 比亚迪股份有限公司 Method and device for estimating SOC value of battery, vehicle and storage medium
CN110824363A (en) * 2019-10-21 2020-02-21 江苏大学 A joint estimation method of lithium battery SOC and SOE based on improved CKF
CN111707953A (en) * 2019-11-24 2020-09-25 华南理工大学 An online SOC estimation method for lithium batteries based on a backward smoothing filter framework
CN111537903A (en) * 2020-05-28 2020-08-14 杭州电子科技大学 Battery SOC estimation method based on HCKF
CN111537894A (en) * 2020-05-29 2020-08-14 合肥工业大学 A method for estimating lithium battery SOC and SOP
CN111831955A (en) * 2020-06-05 2020-10-27 南京航空航天大学 Lithium ion battery residual life prediction method and system
CN111831265A (en) * 2020-07-27 2020-10-27 吉林大学 AUTOSAR-based interface design method for electric vehicle sensor signal processing components
CN113702843A (en) * 2021-07-26 2021-11-26 南通大学 Lithium battery parameter identification and SOC estimation method based on suburb optimization algorithm

Also Published As

Publication number Publication date
CN114217234A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN108872866B (en) Dynamic evaluation and long-acting prediction fusion method for charge state of lithium ion battery
CN110554324B (en) SOC and SOH joint estimation method
CN113702843B (en) Lithium battery parameter identification and SOC estimation method based on suburb optimization algorithm
CN111581904A (en) Lithium battery SOC and SOH collaborative estimation method considering influence of cycle number
CN111060824B (en) A state-of-charge estimation method based on a step-by-step fusion of models and algorithms
CN111426957B (en) SOC estimation optimization method for power battery under simulated vehicle working condition
CN109839599B (en) Lithium-ion battery SOC estimation method based on second-order EKF algorithm
CN111428433B (en) Lithium ion battery state calculation method based on hybrid filtering
CN110795851A (en) Lithium ion battery modeling method considering environmental temperature influence
CN114217234B (en) IDE-ASRCKF-based lithium ion battery parameter identification and SOC estimation method
CN112018465A (en) Multi-physical-field-constrained intelligent quick charging method for lithium ion battery
CN112350400A (en) Lithium battery pack non-hierarchical active and passive equalization circuit and method
CN114781176B (en) An equivalent circuit parameter identification method for lumped parameters of lithium-ion battery energy storage system
CN113761726A (en) A lithium battery parameter identification method and system
CN111950205A (en) A Lithium Battery SOH Prediction Method Based on FWA Optimization Extreme Learning Machine
Hu et al. Study on SOC estimation of lithium battery based on improved BP neural network
CN114814591A (en) A lithium battery SOE estimation method, device and system
CN113740735A (en) Method for estimating SOC of lithium ion battery
CN117799495A (en) Lithium ion battery state of charge estimation and equalization control method
CN117148157A (en) A multi-time scale joint estimation method of SOC and SOH for lithium batteries
CN112946481A (en) Based on federation H∞Filtering sliding-mode observer lithium ion battery SOC estimation method and battery management system
CN113156316A (en) Estimation algorithm for SOC of brine battery
Geng et al. SOC Prediction of power lithium battery using BP neural network theory based on keras
CN116165545A (en) Battery SOC state estimation method based on unscented Kalman filter and neural network
CN113109725B (en) State-of-charge estimation method for self-regulating parallel-connected batteries based on state-noise matrix

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant