The approach proposed for the development of this research work was based on the integration of Distributed Energy Generation (DG) into an energy distribution network, improving the voltage profile by establishing an optimal location and sizing of DG power plants, for which the use of a heuristic optimization method known as Genetic Algorithm (GA), which has several restrictions to limit its operation and thus achieve an optimal solution to the planned optimization problem, was resorted to. The development of a power flow allowed having the voltage measurement in the bars of the network before incorporating DG, allowing to verify that the voltage fluctuations present an improvement after the incorporation one by one of each DG central defined by the GA. The systems in which the voltage measurement was performed, as well as the verification of its fluctuations with and without DG once the GA was used, were the IEEE systems of 9 and 14 busbars, the latter the one used to demonstrate the scalability of the GA to locate and dimension DG without considering the number of busbars in a system.