terminateAbsoluteError function

Terminates, if the absolute deviation from the global optimum is small.