Cell Delta SOC Estimator (Kalman Filter)
Libraries:
Simscape /
Battery /
BMS /
Estimators
Description
The Cell Delta SOC Estimator (Kalman Filter) block implements an estimator that calculates the state of charge (SOC) of a battery by using the cell delta Kalman filter. The delta SOC is the internal estimator state, the current is the control input, and the cell voltage is the measurement.
This block supports single-precision and double-precision floating-point simulation.
Note
To enable inherited single-precision floating-point simulation, the data type of all
inputs and parameters, except for the Sample time (-1 for
inherited) parameter, must be single
.
For continuous-time simulation, set the Filter type parameter to
Extended Kalman-Bucy filter
or Unscented Kalman-Bucy
filter
.
Note
Continuous-time implementation of this block works only in a double-precision floating-point simulation. If you provide single-precision floating-point parameters and inputs, this block casts them to double-precision floating-point values to prevent errors.
For discrete-time simulation, set the Filter type parameter to
Extended Kalman filter
or Unscented Kalman
filter
and the Sample time (-1 for inherited) parameter
to a positive value or -1
.
Equations
This equation defines the cell delta SOC:
where SOCi is the state of
charge of cell i
, is the pack-average state of charge, and
Ns
is the number of series-connected cells.
This equation defines the inverse delta cell capacity:
where is the inverse cell capacity of cell i
and is the average inverse capacity of the battery.
The state-space model for the delta SOC is
where Vt,i
is the terminal
voltage of cell i
and R0 is the
terminal resistance.
For the Kalman filter algorithms, the block uses as the state and these processes and observation functions:
The extended Kalman filter (EKF) relies on a linearization at every time step to approximate the nonlinear system. To linearize at every time step, the algorithm computes these Jacobians online:
The EKF is a discrete-time algorithm. After the discretization, the Jacobians are:
The unscented Kalman filter uses nonlinear transformations on a set of sigma points that the algorithm chooses deterministically.
The block then computes the cell SOC using this equation:
The implementation of the Kalman filter for capacity estimation follows the theory in the SOC Estimator (Kalman Filter) block for the one-state model described in this section.
Examples
Assumptions and Limitations
The process and SOC noises are independent, zero mean, Gaussian noises.
Ports
Input
Output
Parameters
References
[1] Plett, Gregory L. "Efficient Battery Pack State Estimation Using Bar-Delta Filtering,” 2009. https://api.semanticscholar.org/CorpusID:54178271.
Extended Capabilities
Version History
Introduced in R2025a