This document describes the application of multiobjective genetic algorithms as techniques and tools to optimize generation and distribution in small microgrids. In this way, genetic algorithms have been used for the allocation of distributed generation to reduce losses and improve the voltage profile. The IEEE14 network has been taken as a study and analysis model. This smart grid has 14 nodes and integrates several generation units, both conventional and renewable, transformers, and multiple loads. In this way, a multi-objective metaheuristic algorithm is proposed with the purpose of planning the power distribution grid based on a series of conditions such as the optimal generation configuration, the minimization of power losses in the lines, power transfer capacity, the reduction of CO2 emissions, and the optimization of the benefits obtained in renewable generation. The overall purpose is the development of an intelligent microgrid management system that is capable of determining the optimal configuration, by estimating demand, energy costs, and operating costs.