In power systems, the intensive use of nonlinear loads causes several power quality problems such as current harmonic pollution. In order to reduce the current harmonic pollution, the shunt hybrid active filter (SHAPF) is the best solutions effectively. In shunt hybrid active filter systems SHAPFs, the design of dc link controller is a significant and challenging task due to its impact on the performance and stability of the overall system. The main contribution of this paper is that the particle swarm optimization (PSO) algorithm is applied gains for PI controller which can result in the improved response in terms of response time and overshoot. In proposed control method, the performance results of harmonic compensation are satisfactory. Theoretical analyses and simulation results are obtained from an actual industrial network model in PSCAD. The simulation results are presented for proposed system in order to demonstrate that the harmonic compensation performance meets the IEEE-519 standard.