Abstract:In this paper, the principle of particle swarm algorithm, describes an improved algorithm which with compression factor of PSO, outlines the working principle of PID controllers, particle swarm optimization method implementation, and examples of the improved algorithm A drum pressure control system, optimize the use of matlab simulation show that the improved optimization algorithm outperforms the basic PSO, there are certain engineering applications in future.