Abstract: This article proposes a control barrier function (CBF) approach for fast charging and discharging of batteries under temperature, state of charge (SoC), and terminal voltage constraints. To ...