Electric power generation is one of the most important human activities in the operation of a modern city, because it has a direct connection with most of the production activities, due to its relevance, in many cases the environmental issue is not prioritized, resulting in the destruction of ecosystems, in the case of hydraulic power and air and water pollution, in the case of thermal plants, for which the generation of clean power emerged, but with the inconvenience that this has a higher initial cost, besides other problems in the quality of energy offered.This master thesis has the purpose of propose and model a hybrid system of electricity generation, based on renewable energy with distribution control in order to manage the use of unused energy, storing it in a battery bank and/or injecting it into the electricity grid, thus improving energy efficiency and the quality of energy in the system.In order to achieve this objective, in the first part, there is an introduction to the best known methodologies of energy control and energy distribution, to then define the architecture and its operating modes as well as the methodology and implementation tools, and then, by means of a case study, define the size and distribution of the generation systems and with the results obtained from the architecture make the energy, environmental, economic and social analyses around two scenarios, with renewable generation systems versus generation in a combined cycle gas plant to ultimately obtain the advantages and disadvantages of the developed architecture as well as the generation systems.