In the process of photovoltaic power generation, maximum power point tracking is an important method to improve the efficiency of photovoltaic power generation. Under the actual local shadow condition, the maximum power point of Photovoltaic system fluctuates. For this reason, this paper establishes the mathematical model and output characteristic equation of photovoltaic cells according to the actual application, and then uses the adaptive inertia weight Particle Swarm Optimization algorithm to solve the problem of slow search speed and low accuracy in the process of maximum power point tracking. After optimization, the method proposed in this paper can significantly improve the tracking effect efficiency, and the optimization results in real operation scenarios can improve the photovoltaic cell power generation efficiency by 21.3%, which proves the effectiveness of the algorithm.