Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newton trust region #52

Closed
YingboMa opened this issue Feb 14, 2022 · 2 comments
Closed

Newton trust region #52

YingboMa opened this issue Feb 14, 2022 · 2 comments

Comments

@YingboMa
Copy link
Member

Our NewtonRaphson implementation isn't robust against functions that look like this
image

julia> nl(t, p) = 0.010000000000000002 + 10.000000000000002 / (1 + (0.21640425613334457 + 216.40425613334457 / (1 + (0.21640425613334457 + 216.40425613334457 / (1 + 0.0006250000000000001(t^2.0)))^2.0))^2.0) - 0.0011552453009332421t
nl (generic function with 2 methods)

julia> solve(NonlinearProblem(nl, 10.0), NewtonRaphson()).retcode
:MAXITERS_EXCEED
@ChrisRackauckas
Copy link
Member

And note NLSolveJL does succeed here.

@Deltadahl
Copy link
Contributor

I've implemented trustRegion.jl in SimpleNonlinearSolve.jl and I'll now give this a go.
(I've got exams coming, but I'll try to fix it asap)

avik-pal pushed a commit that referenced this issue Nov 1, 2024
…heckout-3

Bump actions/checkout from 1 to 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants