%I Telecomunicacion %X This paper studies the effect of different penetration rates of plug-in hybrid electric vehicles (PHEVs) and electric vehicles (EV) in the Spanish electrical system. A stochastic model for the average trip evaluation and for the arriving and departure times is used to determine the availability of the vehicles for charging. A novel advanced charging algorithm is proposed, which avoids any communication among all agents. Its performance is determined through different charging scenarios. %A José Jesús Fraile Ardanuy %A Sergio Martínez González %A Benito Artaloytia Encinas %A Dionisio Ramírez Prieto %A Manuel Fuentes %A Carolina Sánchez Urdiain %C Santiago de Compostela, Spain %P 1-6 %B International Conference on Renewable Energies and Power Quality (ICREPQ) %T Analysis of the impact of charging of PHEV and EV in Spain %K Electric vehicle integration, grid impact %L upm19284 %D 2012