Matlab code
Modeling and Real-time Scheduling of Large-Scale Batteries for Maximizing Performance pdf