<p>A method for controlling a compressor that includes a compressor element, whereby during a transition from full load or partial load to zero load, a process A is followed that involves: (1) reducing the inlet pressure; and (2) reducing the speed and/or the drive torque. During a transition from zero load to part load or full load, a process B is followed that involves: (3) increasing of the speed or drive; and (4) increasing the inlet pressure.</p>