This paper shows the results obtained in the analysis of the impact of Distributed Generation (DG) on distribution losses and presents a new algorithm to the optimal allocation of distributed generation resources in distribution networks. The optimization is based on a Shuffled Frog Leaping Algorithm (SFLA) aiming to optimal DG allocation in distribution network. Shuffled frog-leaping algorithm (SFLA) is a new memetic metaheuristic algorithm with efficient mathematical function and global search capability. Through this algorithm a significant improvement in the optimization goal is achieved. The objective function is tested on the IEEE 34-bus and 69-bus system. With a numerical example the superiority of the proposed algorithm is demonstrated in comparison with the simple genetic algorithm.