This paper solves the optimal distributed generation allocation problem in islanded microgrids for active power loss minimization. A binary Genetic Algorithm is employed in which each individual is evaluated by an Optimal Power Flow (OPF). The OPF considers limits of nodal voltages, power generations, and frequency, taking into account the droop characteristic of distributed generators connected to the grid through Voltage Source Inverters. The methodology is evaluated using a 33-bus islanded microgrid, and the results are compared with the ones provided by an exhaustive search.Resumo: Esse artigo soluciona o problema de alocação ótima de geradores distribuídos em microrredes ilhadas para minimização de perdas de potência ativa. Um Algoritmo Genético binário é empregado no qual cada indivíduo é avaliado por um Fluxo de Potência Ótimo (FPO). O FPO considera os limites de tensões nodais, gerações de potência e frequência, bem como o efeito de droop dos geradores distribuídos conectados à rede através de Inversores Fonte de Tensão (Voltage Source Inverters). A metodologia é avaliada em uma microrrede ilhada de 33 barras e os resultados são comparados com aqueles fornecidos por uma busca exaustiva.