 The paper proposes a method for optimizing the placement and size of photovoltaic, PV, sources and isolated DC electricity grids. It uses mixed integer non-linear programming, MINLP, to find the best solution, which reduces energy loss and greenhouse gas emissions, caused by diesel generators. The GAMS package was used to solve the MINLP model, while the Chevron and Mosec solvers were used to obtain solutions from the proposed mixed integer convex model in MATLAB. Results show significant improvements in energy efficiency and emissions reduction when PV sources are optimally integrated into the DC grid. This article was authored by Alexander Molina, Oscar Danilo Montoya and Walter Gilgunzalas.