Closed DavidSagan closed 9 months ago
The READM.md examples are off. In both, the functions are f(u,p) but prob is set to NonlinearProblem(f, u0) and IntervalNonlinearProblem(f, u0) which lacks the p argument. Note: The corresponding examples in docs are correct.
The readme examples run fine. The p
is optional in the problem type.
It would help to have an example of a nonlinear least squares optimization.
Indeed this is a new feature and we need to get a tutorial for it.
The readme examples run fine. The p is optional in the problem type.
If the function was defined as f(u; p)
then this would be correct but with f(u, p)
the p
argument is not optional.
Also I cannot seem to get a nonlinear least square optimization going. Can you post a simple example here? Thanks.
No in the problem type it's optional. It's not optional for f
. It's just like all of the other problem types.
Can you post a simple example here?
See this for now https://github.com/SciML/NonlinearSolve.jl/blob/master/test/nonlinear_least_squares.jl
@avik-pal Much thanks! This is what I needed.
we still need a docs example
f(u,p)
butprob
is set toNonlinearProblem(f, u0)
andIntervalNonlinearProblem(f, u0)
which lacks thep
argument. Note: The corresponding examples in docs are correct.f
needs to be the same length as the inputu
.