This book, discusses the latest research on the intelligent control of two important components in smart grids, namely microgrids (MGs) and electric vehicles (EVs). It focuses on developing theoretical frameworks and proposing corresponding algorithms, to optimally schedule virtualized elements under different uncertainties so that the total cost of operating the microgrid or the EV charging system can be minimized and the systems maintain stabilized...