Commit 9d17cf1f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tweak computation of initial step

parent 522c81df
Pipeline #22480 passed with stage
in 4 minutes and 48 seconds
......@@ -119,7 +119,7 @@ class LineSearchStrongWolfe(LineSearch):
if alpha1 < 0:
alpha1 = 1.0
else:
alpha1 = 1.0/pk.norm()
alpha1 = 1.0/abs(pk).max()
# start the minimization loop
iteration_number = 0
......
Markdown is supported
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