The parameter adjustment of PID controller is to determine the best value of three parameter spaces, and the control performance of the system is the best. The education and learning optimization algorithm is a new smart optimization algorithm. In order to strengthen the parameter tuning of PID controller and realize the parameter optimization of PID controller, a self-adjusting method of PID controller parameters is proposed. In order to implement the simulation example using MATLAB, particle swarm optimization algorithm and genetic algorithm based PID parameter adjustment method are compared, the method is simple and high accuracy, PID controller parameter self adjustment, can be quickly and effectively realized.