A robust approach based on time variable trigger levels for pump control