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 am trying to solve a series of simple IntervalNonlinearProblems where the parameters change. This used to work, but I cannot seem to get back to an environment where it works now. I followed the tutorials and got an implementation working previously, but that same code no longer works even if I pin SimpleNonlinearSolve to an older version. 😕
Minimal Reproducible Example 👇
Unable to change the parameters of the problem with remake.
I don't remember the output from IntervalNonlinearProblem about uType being there before; that seems weird.
using SimpleNonlinearSolve
f(u, p) = u * u -2.0+ p[1]
uspan = (1.0, 2.0)
prob_int =IntervalNonlinearProblem(f, uspan) # "IntervalNonlinearProblem with uType nothing. In-place: false"
problem =remake(prob_int, p=[0]) # error here
solution =solve(problem) # didn't make it this far
Error & Stacktrace ⚠️
ERROR: type IntervalNonlinearProblem has no field u0
Stacktrace:
[1] getproperty
@ C:\Users\nboyer.AIP\.julia\packages\SciMLBase\sakPO\src\problems\problem_interface.jl:5 [inlined]
[2] state_values(prob::IntervalNonlinearProblem{…})
@ SciMLBase C:\Users\nboyer.AIP\.julia\packages\SciMLBase\sakPO\src\problems\problem_interface.jl:19
[3] updated_u0_p(prob::IntervalNonlinearProblem{…}, u0::Missing, p::Vector{…}; interpret_symbolicmap::Bool, use_defaults::Bool)
@ SciMLBase C:\Users\nboyer.AIP\.julia\packages\SciMLBase\sakPO\src\remake.jl:548
[4] remake(prob::IntervalNonlinearProblem{…}; u0::Missing, p::Vector{…}, interpret_symbolicmap::Bool, use_defaults::Bool, kwargs::@Kwargs{})
@ SciMLBase C:\Users\nboyer.AIP\.julia\packages\SciMLBase\sakPO\src\remake.jl:62
[5] top-level scope
@ REPL[23]:1
[6] top-level scope
@ none:1
Some type information was truncated. Use `show(err)` to see complete types.
Not Working Environment (please complete the following information):
Output of using Pkg; Pkg.status()
I get the same error in my real environment with SimpleNonlinearSolve v1.10.1.
(Downloads) pkg> st
Status `C:\Users\nboyer.AIP\Downloads\Project.toml`
⌃ [727e6d20] SimpleNonlinearSolve v1.1.0
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
⌃ [727e6d20] SimpleNonlinearSolve v1.1.0 -- This won't fix your problems but I would update to the latest version, SimpleNonlinearSolve has significantly improved since 1.1
Describe the example
I am trying to solve a series of simple
IntervalNonlinearProblem
s where the parameters change. This used to work, but I cannot seem to get back to an environment where it works now. I followed the tutorials and got an implementation working previously, but that same code no longer works even if I pin SimpleNonlinearSolve to an older version. 😕Minimal Reproducible Example 👇
Unable to change the parameters of the problem with
remake
.I don't remember the output from
IntervalNonlinearProblem
aboutuType
being there before; that seems weird.Error & Stacktrace⚠️
Not Working Environment (please complete the following information):
using Pkg; Pkg.status()
I get the same error in my real environment with SimpleNonlinearSolve v1.10.1.
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
I get the same error on the release version v1.10.
Working Environment (please complete the following information):
I can't find one that works, but everything was working fine on the latest versions about 6 months ago. It must be a dependency that changed.
Additional context
Actual code:
The text was updated successfully, but these errors were encountered: