Hyper-parameters, which determine the ability of learning and generalization for PID control algorithm and usually fixed during training. Thus when PID is applied to complex system modeling, this parameters-fixed strategy leaves PID in a dilemma of selecting rigorous or slack parameters due to complicated distributions of sample dataset. Therefore, in this paper we proposed GPC algorithm based on PSO algorithm in which parameters are adaptive to sample dataset distributions. According to the complexity of environment and time-varying parameters, we solve the problem which control precision is restricted based on PID. Focuses on the design of the steam drum level control scheme, which can see the importance of its application in the drum level control based on PSO-GPC.Then,it identifies the parameters based on PSO algorithm and the simulation example is given, the parameter identification is accurate. Finally through the comparison of PID which in third reference and GPC on simulation and analysis shows that GPC can enhance the rapidity of the system and the stability is better.