Closed rkube closed 3 years ago
What is the syntax to pass a vector into nlsolve so that this is passed into my function?
Typically you create a new function that only takes F
and x
as arguments and encloses p
, e.g.
julia> g!(F, x) = f!(F, x, p);
julia> nlsolve(g!, [0.1, 1.0])
or with an anonymous function
nlsolve((F, x) -> f!(F, x, p), [0.1, 1.0])
Thanks, got it.
Yes, that is the suggested way.
Hi, l'd like to pass parameters to the function to minimize. Something like
I also don't have a Jacobian for this function. What is the syntax to pass a vector into nlsolve so that this is passed into my function? I've tried
but never got this working.