LineSearches.jl
LineSearches.jl copied to clipboard
TODO: New LineSearches
ref changes in https://github.com/JuliaNLSolvers/LineSearches.jl/pull/80
- [ ] Don't allocate vectors. We might as well have them as scalars to avoid allocations
- [x] We should also free the deepest layer of
df
, although we could in theory still provide simple wrappers. - [ ] Add an argument to specify a largest \alpha. This is to accommodate Fminbox and other simple constrained optimizers not evaluating outside of constraints. Of course, some constrained optimizers will need more specialized line searches (or use trust regions of course).
- [x] We should return
\alpha, \phi(\alpha)
to avoid recalculation of\phi
if packages other than Optim and NLsolve want to use these functions. We can still callvalue_gradient!
outside, as we're checking if it's the same point anyway. ... more?
- [x] Add
dphi_0_previous
as an update-able value inInitialConstantChange
, so that we can remove it fromstate
in Optim.
EDIT: fixed in https://github.com/JuliaNLSolvers/LineSearches.jl/pull/112