Given small tolerance, ϵ>0. Stop the loop when xk fulfills. 1.2.3.4.∣∣∇f(x∗)∣∣<ϵ∣∣xk−xk−1∣∣≤ϵ∣∣f(xk)−f(xk−1)∣∣≤ϵk>kmax