You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to store the trace during solving. I would love to use the native NonlinearSolve methods for that, but it appears to me that no such thing is implemented. So I want to use the NLSolveJL interface. But from reading the documentation, I am still not able to see - how do i use it?
So far I have tried the following
#The functional version:
julia> solver = solve(probN, NewtonRaphson(), tol = 1e-9)
u: 8-element Vector{Float64}:
27.52327682597094
27.523962383296873
3.2064613688401113
13.258386042046885
0.8000852068277563
0.4578205135984268
27.929656903088112
124.54137097709595
#Failed attempts:
julia> solver = solve(probN, NLSolveJL(method=:newton,), tol = 1e-9)
ERROR: UndefVarError: NLSolveJL not defined
Stacktrace:
[1] top-level scope
@ REPL[9]:1
julia> solver = NLSolveJL(probN, tol = 1e-9, method=:newton)
ERROR: UndefVarError: NLSolveJL not defined
Stacktrace:
[1] top-level scope
@ REPL[11]:1
With NLSolveJL not being defined, I was wondering if it is simply not exported. But this seems not to be the case:
julia> NonlinearSolve.NLSolveJL
ERROR: UndefVarError: NLSolveJL not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:35
[2] top-level scope
@ REPL[12]:1
I think that a section with working examples in the docs of how to access non-native solvers would go a long ways.
Activity
ChrisRackauckas commentedon Mar 16, 2022
Did you do
using NLsolve?KronosTheLate commentedon Mar 16, 2022
In a fresh session:
ChrisRackauckas commentedon Mar 17, 2022
https://github.com/SciML/SciMLNLSolve.jl
It looks like that is documented? http://nonlinearsolve.sciml.ai/dev/solvers/NonlinearSystemSolvers/#SciMLNLSolve.jl
KronosTheLate commentedon Mar 18, 2022
It was - I was not carefull enough in reading the documentation. The full working example is now
I think that for other careless readers like me, a simple example of how to use other solvers would be instructive.
ChrisRackauckas commentedon Mar 18, 2022
Yup, we can add a tutorial
avik-pal commentedon Nov 23, 2023
sol.tracewill hold the trace of the solve process and it should display something likeMerge pull request #58 from huiyuxie/main