Disclosed are a method and an apparatus to dynamically schedule electricity trade using a genetic algorithm, capable of quickly providing an electricity trading schedule. According to one embodiment of the present invention, the method comprises the following steps: receiving a staying time in a facility from each of a plurality of electric vehicles arriving at a facility where a microgrid is installed and receiving sales information including the sales amount of electricity sold through the microgrid; generating a task set including the staying time, the sales amount, and the number of cases of a time point when the microgrid and the electric vehicle are connected to sell the electricity in accordance with the sales amount; defining a chromosome vector based on the task set; generating an initial generation and a filial generation based on the chromosome vector; and generating an electricity trading schedule for the time point when the microgrid is connected to each electric vehicle based on a chromosome vector of the filial generated when the filial generation satisfices a predetermined condition.
展开▼