LineSearches.jl
LineSearches.jl copied to clipboard
HagerZhang gives warning for line search of line
For a line search of a line a warning is printed which is not desirable:
Optim.optimize(xs -> xs[1], [0.0], [1.0], [nextfloat(0.0)], Optim.Fminbox(Optim.BFGS()))
The warning:
┌ Warning: Failed to achieve finite new evaluation point, using alpha=0
└ @ LineSearches ~/.julia/packages/LineSearches/Ki4c5/src/hagerzhang.jl:148