Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
c24c4f01
Commit
c24c4f01
authored
Jul 11, 2017
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/minimization/descent_minimizer.py
View file @
c24c4f01
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment