Advanced controls avoid hazardous surges to centrifugal and axial compressors. Processes described make it easier to find optimal PID settings using standard tuning routines that can be the basis for autotuning and makes it easier to implement adaptive control.