Journal of Applied Sciences1812-56541812-5662Asian Network for Scientific Information10.3923/jas.2011.3725.3731BerbaouiBrahim BenachaibaChellali 1220111122This study deals with the design, analysis and simulation of shunt active power filter SAPF which compensate harmonic currents and reactive power under balanced supply network. An optimal control theory for currents compensation based on particle swarm optimization is developed in this study. The SAPF is connected in parallel with a nonlinear load which has caused current harmonics in industrial power plants and utility power distribution systems. The proposed optimal PI current controller using particle swarm algorithm determines the switching signals of the SAPF and the algorithm based on instantaneous power (p-q) theory has been used to determine the suitable current reference signals. The simulation results show that the new control method using PSO approach is not only easy to be implanted but also very effective in reducing the unwanted harmonics and compensating reactive power. The studies carried out have been accomplished using the MATLAB Simulink Power System Toolbox.]]>Berbaoui, B., C. Benachaiba, R. Dehini and O. Harici,2010Peng, F.Z.,1998Gu, J.J. and D.G. Xu,2003Jou, H.L.,1995Akagi, H., Y. Kanazawa, K. Fujita and A. Nabae,1983Huang S.J. and J.C. Wu, 1999Asiminoaei, L., F. Blaabjerg, S. Hansen and P. Thoegersen,2006Clerc, M. and J. Kennedy,2002Aredes, M.,1996Mattavelli, P.,2001Karsli, V.M., M. Tumay and B. Susluoglu,2003Shi, Y. and R. Eberhart,1998Gaing, Z.L.,2004Kennedy, J. and R. Eberhart,1995