This article develops a study about the energy resources available in microgrids, extracting and analyzing data form satellite databases, in order to apply it to the technologies available. On the other hand, a demand estimation is carried out based on measurements, and finally an optimization is performed to determine the most economically profitable option with the correspondent graphs and analysis.