Modeling and Optimization of a Plug-in hybrid electric vehicle