This is an example implementation of the Extended Kalman Filter (EKF) algorithm using complex step differentiation (https://blogs.mathworks.com/cleve/2013/10/14/complex-step-differentiation/) and the following two methods for linearising and discretising the system dynamics:
- The Euler method, with the option to define intermediate steps for increased accuracy
- The Taylor-Heun and Gauss-Legendre methods ("Mazzoni, T. Computational aspects of continuous–discrete extended Kalman-filtering. Comput Stat 23, 519–539 (2008)")
As a toy example, the EKF is used with the cell model from "https://uk.mathworks.com/help/physmod/simscape/ug/lithium-battery-cell-one-rc-branch-equivalent-circuit.html" to estimate the State of Charge, along with the capacitance and internal resistance parameter values of the cell.
引用格式
Efstathios Siampis (2024). Extended Kalman Filter with Battery Estimation Example (https://www.mathworks.com/matlabcentral/fileexchange/105855-extended-kalman-filter-with-battery-estimation-example), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2020a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |