This work discusses an enhanced photovoltaic system using the Particle Swarm Optimization algorithm. The proposed method has been evaluated under several scenarios of partial shading, and the results obtained are contrasted with the Perturb and Observe technique. Hence, it has shown its effectiveness in locating the global maximum power point whatever the meteorological conditions, especially in inhomogeneous conditions. This technique makes it possible to enhance the effectiveness of the photovoltaic system studied because it makes it possible to minimize the loss of power in the case of non-homogeneous irradiation conditions.