This paper deals a new strategy developed for optimizing the energy flow by using Genetic Algorithm (GA) method implemented on a small Dispersed Generation (DG) system with two energy sources, a pack of batteries accumulator) and the stack of Fuel Cell (FC) to use of new energy resources. This method establishes an energy management between these sources to reach the best performance and acceptable operation of this hybrid structure with respect to fuel economy and overall efficiency indexes