The convergence rate of the traditional iterative learning control algorithm is slow, and the application range is narrow. This paper mainly focuses on the optimization of iterative learning control algorithm. It improves the traditional iterative learning control algorithm, and improves the iterative learning control algorithm through particle swarm adaptive algorithm. An adaptive optimization iterative learning control algorithm with particle swarm is proposed. Not only can the convergence speed of the algorithm be improved, but also the uncertainty of the model in the algorithm is solved.