Power scheduling for EV in smart grid environment