Recent trend in the power distribution system is showing that the use of nonlinear loads and devices will take a rising profile in days to come. This introduces harmonics in source side currents which improves the power quality. In this paper, the use of a non harmonic detection method, so as to improve the accuracy of the compensation is no longer affected by the load current detection accuracy, control of output current waveforms using an optimized quasi proportional resonant controller. On the bases of shunt active power filter main circuit structure, the optimal control strategy of the quasi proportional resonant voltage current loop control and current ratio of negative feedback. Finally, through MATLAB/Simulink simulation results of the proposed control strategy, the proposed control strategy is feasible through the simulation experiment are fully verified.