# How to define input values for adapative Kalman filter for SOC

조회 수: 2 (최근 30일)
Jigarkumar 2023년 4월 21일
댓글: Jigarkumar 2023년 5월 22일
Hello,
I am trying to develop algortihm of SOC (Adapative kalman filter) and SOH for BMS system but how to set following parameters and set input values for the SOC and SOH. (Note: Using Simscape battery libaray)
1) Covariance of the process noise, Q — Covariance of process noise
2) Covariance of the measurement noise, R — Covariance of measurement noise
3) Initial state error covariance, P0 — Initial state error covariance
4) First polarization resistance, R1(SOC,T), (ohm) — First RC resistance at temperature breakpoints
5) First time constant, tau1(SOC,T), (s) — First RC time constant at temperature breakpoints
6) No-load voltage, V0(SOC,T), (V)V0 lookup table
...... and more.
How to creates matrix for Q and P0 (1 & 2). I only see that some basic information available on documentation of SOC Estimator (Adaptive Kalman Filter) but it is enough source. I request to you please provide information with full details so I will create new matrix, and value as per my requirements. Thank you

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Samyuktha 2023년 5월 22일
Hi Jigar,
You can define the matrix for 'Covariance of Process Noise(Q)' and 'Initial State Error Covariance(P0)' as per the the format given in the Parameter->Main section of the documentation : SOC Estimator (Adaptive Kalman Filter)
The default value of 'Q' would be a 3x3 matrix:[1e-6 0 0; 0 1e-6 0;0 0 1e-6].
While the default value of 'P0' would also be a 3x3 matrix: [1e-5 0 0; 0 1 0; 0 0 1e-5].
Hope it helps!
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Jigarkumar 2023년 5월 22일
Thank you
I got it this information but now when I am trying to develop algorithms and run model but my SOC and SOH estimation are calculated wrong and it was indicated wring graph so please can you sugest me or share example so I will recorrect it.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

R2022b

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by