Surge and constant pressure are some of the most critical issues in compressor control. In this paper, the problem of the surge and constant pressure in the presence of environmental disturbances is solved. Proposed design for control system based on proportional-integral controllers, adaptive neuro-fuzzy inference system (FIS), and particle swarm optimized neural fuzzy and for modeling neural network strategy fuzzy nonlinear automatic regression with external input is used. Based on this, for modeling, practical and real data are extracted from the K-250 compressor of Isfahan Steel Company. In the adaptive neuro-fuzzy inference system-particle swarm optimization (ANFIS-PSO)