This paper considers the scheduling issue of charging and discharging on a micro-grid with ESS and dynamic price, where the micro-grid consists of an energy management system, a photovoltaic system, an energy storage system, normal loads, electric vehicles and their charging piles. The mathematical formulation of the problem is defined based on a day-ahead design mode of scheduling. An efficient algorithm is developed for the model. In the simulation, two compared algorithms have been also designed, and simulation results validate the effectiveness and superiority of our proposed algorithm.