The Gradient Method in Process Control