Modeling, simulation, and control of a battery energy storage system with parallel paths