Skip to content

Nolinearsolve returns error for documentation example in Julia 1.10,1 #386

New issue

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

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

Already on GitHub? # to your account

Closed
ay111 opened this issue Feb 26, 2024 · 13 comments
Closed

Nolinearsolve returns error for documentation example in Julia 1.10,1 #386

ay111 opened this issue Feb 26, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@ay111
Copy link

ay111 commented Feb 26, 2024

Kindly see the error in the julia REPL shown below.

using NonlinearSolve

f(u, p) = u .* u .- p
# f (generic function with 1 method)

u0 = [1.0, 1.0]
p = 2.0

prob = NonlinearProblem(f, u0, p)

sol = solve(prob)
#=
ERROR: MethodError: no method matching init(::NonlinearProblem{…})

Closest candidates are:
  init(::OptimizationProblem, ::Any, ::Any...; kwargs...)
   @ SciMLBase C:\Users\adeto\.julia\packages\SciMLBase\QqtZA\src\solve.jl:144

Stacktrace:
 [1] solve(args::NonlinearProblem{…}; kwargs::@Kwargs{})
   @ CommonSolve C:\Users\adeto\.julia\packages\CommonSolve\JfpfI\src\CommonSolve.jl:23
 [2] top-level scope
   @ REPL[6]:1
Some type information was truncated. Use `show(err)` to see complete types.
=#
@ay111 ay111 added the bug Something isn't working label Feb 26, 2024
@avik-pal
Copy link
Member

what version of NonlinearSolve are you using?

@ay111
Copy link
Author

ay111 commented Feb 26, 2024 via email

@avik-pal
Copy link
Member

Please try in a fresh environment with 3.7

@ChrisRackauckas
Copy link
Member

Share ]st

@ay111
Copy link
Author

ay111 commented Feb 27, 2024 via email

@avik-pal
Copy link
Member

The screenshot didn't get added

@ay111
Copy link
Author

ay111 commented Feb 27, 2024 via email

@ay111
Copy link
Author

ay111 commented Feb 27, 2024 via email

@avik-pal
Copy link
Member

github doesn't forward attachments of email.

@ay111
Copy link
Author

ay111 commented Feb 28, 2024 via email

@avik-pal
Copy link
Member

avik-pal commented Mar 6, 2024

I had this error report from someone else as well, some packages are not updated and that pulls NonlinearSolve to [8913a72c] NonlinearSolve v0.3.22, note the "v0.". The current version is v3, so remove any package that is holding NonlinearSolve back and it should be fine.

@avik-pal avik-pal closed this as completed Mar 6, 2024
@ay111
Copy link
Author

ay111 commented Mar 6, 2024 via email

@ChrisRackauckas
Copy link
Member

DifferentialEquations.jl is fine with the latest NonlinearSolve. mittagleffler looks fine as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants