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

Unable to init on IntervalNonlinearProblem` #521

Open
TomRottier opened this issue Dec 17, 2024 · 4 comments
Open

Unable to init on IntervalNonlinearProblem` #521

TomRottier opened this issue Dec 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@TomRottier
Copy link
Contributor

MWE:

using NonlinearSolve
f(u, p) = u
prob = IntervalNonlinearProblem(f, (-1.0, 1.0))
nlcache = init(prob, ITP())

Stacktrace:

ERROR: type IntervalNonlinearProblem has no field u0
Stacktrace:
 [1] getproperty
   @ C:\Users\t26313tr\.julia\packages\SciMLBase\BaHpR\src\problems\problem_interface.jl:5 [inlined]
 [2] init(prob::IntervalNonlinearProblem{…}, args::ITP{…}; sensealg::Nothing, u0::Nothing, p::Nothing, kwargs::@Kwargs{})
   @ DiffEqBase C:\Users\t26313tr\.julia\packages\DiffEqBase\R2Vjs\src\solve.jl:556
 [3] init(prob::IntervalNonlinearProblem{…}, args::ITP{…})
   @ DiffEqBase C:\Users\t26313tr\.julia\packages\DiffEqBase\R2Vjs\src\solve.jl:549
 [4] top-level scope
   @ REPL[7]:1
  • Output of using Pkg; Pkg.status()
(jl_xFFLd7) pkg> st
Status `C:\Users\t26313tr\AppData\Local\Temp\jl_xFFLd7\Project.toml`
  [8913a72c] NonlinearSolve v4.3.0

On Julia 1.11.2

This occurs with all of the IntervalNonlinearProblem solvers

@TomRottier TomRottier added the bug Something isn't working label Dec 17, 2024
@ChrisRackauckas
Copy link
Member

It had to be from @AayushSabharwal 's changes then.

@AayushSabharwal
Copy link
Member

I don't think we support init for the bracketing methods? They all implement Commonsolve.solve directly and the error is in DiffEqBase on a line that hasn't been touched in 2 years

@AayushSabharwal
Copy link
Member

The bracketing methods were also untouched by the initialization piece

@avik-pal
Copy link
Member

Also most of the bracketing methods are for scalars, it won't really benefit to cache stuff.

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

No branches or pull requests

4 participants