Energy Management for Smart Grids With Electric Vehicles Based on Hierarchical MPC | Synapse