Please tell me where to find this information in the online Julia documentation.
thanks.
Got some complaints on the confusion of how to provide the initial guessings: ht…
Please tell me where to find this information in the online Julia documentation.
thanks.
Please try using BoundaryValueDiffEqFIRK
in your REPL and check if there are errors.
As for the commented part where you are trying to provide an initial guess, they should be provided as a function returning AbstractArray instead of a Tuple
And please tell me where to find this “obvious” information in the online Julia documentation.
Thanks
ErikQQY:
FIRK methods don’t have automatic step size choosing, so you must provide a
dt
in yoursolve
Please tell me where to find this information in the online Julia documentation.
thanks.
Please try
using BoundaryValueDiffEqFIRK
in your REPL and check if there are errors.
Same result.
That is unlikely to happen, could you try in your REPL:
julia> using BoundaryValueDiffEqFIRK
julia> RadauIIa5
RadauIIa5
And if the UndefVarError
still occurs, could you post your julia version and Pkg.status(; mode = PKGMODE_MANIFEST)
?
Here is the result:
julia> RadauIIa5
ERROR: UndefVarError: `RadauIIa5` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
What about
julia> using BoundaryValueDiffEqFIRK
julia> RadauIIa5
RadauIIa5
What appeared is less than I pasted. Trying again…
julia> using BoundaryValueDiffEqFIRK
julia> RadauIIa5
ERROR: UndefVarError: `RadauIIa5` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
julia>
I suspect that you have also installed some other package containing RadauIIa5.
Try ]st
ErikQQY:
As for the commented part where you are trying to provide an initial guess, they should be provided as a function returning AbstractArray instead of a Tuple
And please tell me where to find this “obvious” information in the online Julia documentation.
Thanks
And as I have yet to find any example of an initialguess function in the online documentation,
could you please provide such an example?
thanks
That’s really weird since I am using an empty environment with only BoundaryValueDiffEqFIRK.jl installed.
Could you share your Pkg.status(; mode = PKGMODE_MANIFEST)
?
P0p5:
ErikQQY:
As for the commented part where you are trying to provide an initial guess, they should be provided as a function returning AbstractArray instead of a Tuple
And please tell me where to find this “obvious” information in the online Julia documentation.
ThanksAnd as I have yet to find any example of an initialguess function in the online documentation,
could you please provide such an example?
thanks
That’s indeed some issues with BoundaryValueDiffEq.jl for not having enough documentations on how to provide initial guesses, will fix this issue ASAP
Got some complaints on the confusion of how to provide the initial guessings: ht…
(@v1.11) pkg> status
Status `~/.julia/environments/v1.11/Project.toml`
[dce04be8] ArgCheck v2.4.0
[85d9eb09] BoundaryValueDiffEqFIRK v1.4.0
[90137ffa] StaticArrays v1.9.11
(@v1.11) pkg> status(; mode = PKGMODE_MANIFEST)
ERROR: `status(` is not a recognized command. Type ? for help with available commands
P0p5:
And as I have yet to find any example of an initialguess function in the online documentation,
could you please provide such an example?
thanksThat’s indeed some issues with BoundaryValueDiffEq.jl for not having enough documentations on how to provide initial guesses, will fix this issue ASAP
Docs for providing initial guess · Issue #274 · SciML/BoundaryValueDiffEq.jl · GitHub
Ok, but could you perhaps provide such a (maximal) example right here in this discourse?
thanks
Sure, see
- @testitem "Solve using Continuation" begin
- using RecursiveArrayTools
- g = 9.81
- L = 1.0
- tspan = (0.0, pi / 2)
- function simplependulum!(du, u, p, t)
- θ = u[1]
- dθ = u[2]
- du[1] = dθ
- du[2] = -(g / L) * sin(θ)
- end
- function bc2a!(resid_a, u_a, p) # u_a is at the beginning of the time span
- x0 = p
- resid_a[1] = u_a[1] - x0 # the solution at the beginning of the time span should be -pi/2
- end
- function bc2b!(resid_b, u_b, p) # u_b is at the ending of the time span
- x0 = p
- resid_b[1] = u_b[1] - pi / 2 # the solution at the end of the time span should be pi/2
This file has been truncated. show original
(@v1.11) pkg> status Status `~/.julia/environments/v1.11/Project.toml` [dce04be8] ArgCheck v2.4.0 [85d9eb09] BoundaryValueDiffEqFIRK v1.4.0 [90137ffa] StaticArrays v1.9.11 (@v1.11) pkg> status(; mode = PKGMODE_MANIFEST) ERROR: `status(` is not a recognized command. Type ? for help with available commands
I have never encounter such error, and I can’t even reproduce this error. So you successfully using BoundaryValueDiffEqFIRK
(‘successfully’ means no other errors), but when you try calling RadauIIa5
and there is still UndefVarError
?
P0p5:
ErikQQY:
FIRK methods don’t have automatic step size choosing, so you must provide a
dt
in yoursolve
Please tell me where to find this information in the online Julia documentation.
thanks.
Thank you!
And may I suggest that the
I have never encounter such error, and I can’t even reproduce this error. So you successfully
using BoundaryValueDiffEqFIRK
(‘successfully’ means no other errors), but when you try callingRadauIIa5
and there is stillUndefVarError
?
No other errors. And that package seems to be there…
julia> RadauIIA5
RadauIIA5
julia>
I guess this “RadauIIa5” may be hiding somewhere else in your system?
Whose idea was it to have two different modules with names differing only by the case of only one character in the middle of the names?