Commit 708e7aa1 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tweak length of first line search step

parent b727e8ec
......@@ -125,7 +125,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