Commit c24c4f01 authored by Theo Steininger's avatar Theo Steininger
Browse files

Merge branch 'stopping_criterion' into 'master'

suggested fix for stopping criterion

See merge request !161
parents f286a57f a0cc4f9e
Pipeline #14739 passed with stages
in 12 minutes
......@@ -165,7 +165,7 @@ class DescentMinimizer(Loggable, object):
energy = new_energy
# check convergence
delta = abs(gradient).max() * (step_length/gradient_norm)
delta = abs(gradient).max() * (step_length/np.sqrt(gradient_norm))
self.logger.debug("Iteration:%08u step_length=%3.1E "
"delta=%3.1E energy=%3.1E" %
(iteration_number, step_length, delta,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment