Text this: Energy management of multiple sources for electric vehicles