Optimal Integration of Electric Vehicles in Smart Grid Energy Flow Sorin Deleanu, Marilena Stanculescu, Dragos Niculae, Paul Cristian Andrei, Lavinia Bobaru, and Horia Andrei Abstract This chapter provides an insight into the rapidly growing domain repre- sented by the plug-in electric vehicles (PEV) in connection with the smart grid power system (SGPS) and bi-directional power flow. The chapter starts with an introductive Sect. 1, followed by Sect. 2, containing a review of the main aspects, which define and characterize the interaction between the EVs and the SGPS. The analysis regarding the integration of the EVs into the SGPS under the vehicle to grid (V2G) considered the three main directions: SGPS efficiency improvement, cost-effectiveness, and the reduction in greenhouse gases. After a presentation of the SGPS structure, Sect. 2 includes a brief description of the primary power produced by the wind turbine as well as the one produced by the photovoltaic panels. Both represent input powers to the SGPS, fact which classifies these two elements of SGPS as power sources, although with an intermittent character. Following Sect. 3 dedicated to the charging stations, the chapter continues with Sect. 4 allocated to modeling, simulation, and results. Firstly, this section contains detailed models dedicated to the analysis of battery charging and battery discharging, with applications to individual vehicles and considering the presence of renewable energy sources. The models expanded S. Deleanu (B ) SAST, Northern Alberta Institute of Technology, Edmonton, Canada e-mail: sorind@nait.ca M. Stanculescu · D. Niculae · P. C. Andrei · L. Bobaru Department of Electrical Engineering, University Politehnica Bucharest, Bucharest, Romania e-mail: marilena.stanculescu@upb.ro D. Niculae e-mail: dragos.niculae@upb.ro P. C. Andrei e-mail: paul.andrei@upb.ro L. Bobaru e-mail: lavinia.bobaru@upb.ro H. Andrei Doctoral School of Engineering Sciences, University Valahia, Targoviste, Romania e-mail: hr_andrei@yahoo.com © The Author(s), under exclusive license to Springer Nature Switzerland AG 2021 N. Mahdavi Tabatabaei and N. Bizon (eds.), Numerical Methods for Energy Applications, Power Systems, https://doi.org/10.1007/978-3-030-62191-9_22 579