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

revert last change

parent 708e7aa1
......@@ -125,7 +125,7 @@ class LineSearchStrongWolfe(LineSearch):
if alpha1 < 0:
alpha1 = 1.0
else:
alpha1 = 1.0/abs(pk).max()
alpha1 = 1.0/pk.norm()
# 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