Commit 5edadf46 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

revert last change

parent e880886d
Pipeline #22520 passed with stage
in 5 minutes and 27 seconds
...@@ -119,7 +119,7 @@ class LineSearchStrongWolfe(LineSearch): ...@@ -119,7 +119,7 @@ class LineSearchStrongWolfe(LineSearch):
if alpha1 < 0: if alpha1 < 0:
alpha1 = 1.0 alpha1 = 1.0
else: else:
alpha1 = 1.0/abs(pk).max() alpha1 = 1.0/pk.norm()
# start the minimization loop # start the minimization loop
iteration_number = 0 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