This document proposes a particle swarm optimization (PSO) algorithm for maximum power point tracking (MPPT) in solar photovoltaic systems that can operate under partial shading conditions. It begins by reviewing existing MPPT methods and their limitations in partial shading scenarios. It then models the photovoltaic system and designs a boost converter for interfacing solar panels with the grid. The proposed PSO-based MPPT algorithm modifies the standard PSO to track the global maximum power point under non-uniform irradiance. Simulation results show the algorithm can reach the maximum power point in fewer iterations compared to other methods.