Electric Energy Management Method Based on Binary Genetic Algorithm