-
Notifications
You must be signed in to change notification settings - Fork 245
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
Error with boundary value problem #732
Closed
ChrisNabold opened this issue
Mar 18, 2024
· 4 comments
· Fixed by SciML/BoundaryValueDiffEq.jl#155 or SciML/BoundaryValueDiffEq.jl#176
Closed
Error with boundary value problem #732
ChrisNabold opened this issue
Mar 18, 2024
· 4 comments
· Fixed by SciML/BoundaryValueDiffEq.jl#155 or SciML/BoundaryValueDiffEq.jl#176
Labels
Comments
@avik-pal are all 3 issues on this the same? They all popped up in the last 2 days so it's very suspicious. |
Both exemples with MIRK4 (sol1 and sol3) do not work.The exemple using the shooting method seems to work.
Good luck for solving this problem
Chris
om: Christopher Rackauckas ***@***.***>
Sent: Wednesday, 20 March 2024 15:14
To: SciML/DiffEqDocs.jl ***@***.***>
Cc: ChrisNabold ***@***.***>; Author ***@***.***>
Subject: Re: [SciML/DiffEqDocs.jl] Error with boundary value problem (Issue #732)
@avik-pal <https://github.com/avik-pal> are all 3 issues on this the same? They all popped up in the last 2 days so it's very suspicious.
—
Reply to this email directly, <#732 (comment)> view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/AEIE3ZFDFCDUUK4EEBRTKDLYZGKRHAVCNFSM6AAAAABE3EATKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBZGY3TGNZTHE> unsubscribe.
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AEIE3ZAHZZ6S77J2KSJQYZ3YZGKRHA5CNFSM6AAAAABE3EATKWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTXZEYAW.gif> Message ID: < ***@***.***> ***@***.***>
|
16 tasks
Dear Avik,
Unfortunately there is still an error in this exemple. If I try to plot the result I receive the following error:
After sol1=solve(bvp1,MIRK4(),dt=0.05)
Plot(sol1)
Error: MethodError: Cannot ‘convert’ an object of type Vector[Float64] to an object of type Float64
... and no plot shown.
Good luck
Chris Nabold
From: Avik Pal ***@***.***>
Sent: Monday, 25 March 2024 18:16
To: SciML/DiffEqDocs.jl ***@***.***>
Cc: ChrisNabold ***@***.***>; Author ***@***.***>
Subject: Re: [SciML/DiffEqDocs.jl] Error with boundary value problem (Issue #732)
Closed #732 <#732> as completed via SciML/BoundaryValueDiffEq.jl#155 <SciML/BoundaryValueDiffEq.jl#155> .
—
Reply to this email directly, view it on GitHub <#732 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEIE3ZHDHNHFGPZIHL2E5EDY2BLULAVCNFSM6AAAAABE3EATKWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGIZTOOJYGM4DMOI> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AEIE3ZGEMZMXFJI7J7YUDE3Y2BLULA5CNFSM6AAAAABE3EATKWWGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAFWLQ2B6Q.gif> Message ID: ***@***.*** ***@***.***> >
|
Ah the interpolation did not support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to run the exemples from https://docs.sciml.ai/DiffEqDocs/latest/tutorials/bvp_example.
Problem 1:
Julia hangs after function bc1!(residual, u, p, t)
residual[1] = u[end ÷ 2][1] + pi / 2 # the solution at the middle of the time span should be -pi/2
residual[2] = u[end][1] - pi / 2 # the solution at the end of the time span should be pi/2
end
bvp1 = BVProblem(simplependulum!, bc1!, [pi / 2, pi / 2], tspan)
sol1 = solve(bvp1, MIRK4(), dt = 0.05)
A clear and concise description of what the bug is.
Expected behavior
results as on the web page
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
┌ Warning: The supplied DiffCache was too small and was enlarged. This incurs allocations
│ on the first call to
get_tmp
. If few calls toget_tmp
occur and optimal performance is essential,│ consider changing 'N'/chunk size of this DiffCache to 12.
└ @ PreallocationTools C:\Users\Chris.julia\packages\PreallocationTools\zJxgA\src\PreallocationTools.jl:191
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
Status
C:\Users\Chris\.julia\environments\v1.10\Project.toml
[54578032] ADNLPModels v0.7.0
[c3fe647b] AbstractAlgebra v0.40.2
[7c4d4715] AmplNLWriter v1.2.1
[28f2ccd6] ApproxFun v0.13.26
⌅ [ec485272] ArnoldiMethod v0.2.0
[7d9fca2a] Arpack v0.5.4
[aae01518] BandedMatrices v1.6.0
[764a87c0] BoundaryValueDiffEq v5.6.3
[a076750e] CPLEX v1.0.3
[052768ef] CUDA v5.2.0
[a2e0e22d] CalculusWithJulia v0.1.4
[9961bab8] Cbc v1.2.0
[61c947e1] Clarabel v0.7.1
[e2554f3b] Clp v1.0.3
[8f4d0f93] Conda v1.10.0
⌃ [a6e380b2] ControlSystems v1.10.0
[f65535da] Convex v0.15.4
[8a292aeb] Cuba v2.3.0
[667455a9] Cubature v1.5.1
[9c784101] CubicSplines v0.2.1
[5a033b19] CurveFit v0.6.0
[e993076c] DASSL v2.6.1
[82cc6244] DataInterpolations v4.7.0
[864edb3b] DataStructures v0.18.18
[39dd38d3] Dierckx v0.5.3
[0c46a032] DifferentialEquations v7.13.0
[7a1cc6ca] FFTW v1.8.0
[442a2c76] FastGaussQuadrature v1.0.2
[1fa38f19] Format v1.3.6
[59287772] Formatting v0.4.3
[f6369f11] ForwardDiff v0.10.36
[1ca51c6a] GAMS v0.4.2
[60bf3e95] GLPK v1.1.3
[28b8d3ca] GR v0.73.3
[19dc6840] HCubature v1.6.0
[87dc4568] HiGHS v1.9.0
[7073ff75] IJulia v1.24.2
[40713840] IncompleteLU v0.2.1
[de52edbc] Integrals v4.4.1
⌅ [d1acc4aa] IntervalArithmetic v0.20.9
[c7c68f13] IntervalOptimisation v0.4.6
[d2bf35a9] IntervalRootFinding v0.5.11
[b6b21f68] Ipopt v1.6.2
[42fd0dbc] IterativeSolvers v0.9.4
[10dff2fc] JSOSolvers v0.11.1
[4076af6c] JuMP v1.20.0
[2ddba703] Juniper v0.9.2
[ef3ab10e] KLU v0.6.0
[ba0b0d4f] Krylov v0.9.5
⌃ [0b1a1467] KrylovKit v0.6.1
[b964fa9f] LaTeXStrings v1.3.1
[7ed4a6bd] LinearSolve v2.27.0
[2fda8390] LsqFit v0.15.0
[2621e9c9] MadNLP v0.8.0
⌅ [961ee093] ModelingToolkit v8.75.0
⌃ [8fca5bbe] MultiQuad v1.1.0
[792afdf1] NLPModelsJuMP v0.12.5
[337daf1e] NLSolvers v0.5.0
[76087f3c] NLopt v1.0.2
[2774e3e8] NLsolve v4.5.1
[067cfa3b] NonlinearEigenproblems v1.1.1
[dcda4a48] NonlinearEquations v0.1.0
[8913a72c] NonlinearSolve v3.8.0
[429524aa] Optim v1.9.2
[7f7a1694] Optimization v3.24.0
[3e6eede4] OptimizationBBO v0.2.1
[bd407f91] OptimizationCMAEvolutionStrategy v0.2.1
[6f0a0517] OptimizationGCMAES v0.2.0
[4e6fcdb7] OptimizationNLopt v0.2.0
[2cab0595] OptimizationNOMAD v0.2.0
[36348300] OptimizationOptimJL v0.2.2
[42dfb2eb] OptimizationOptimisers v0.2.1
[72f8369c] OptimizationPRIMA v0.0.1
[500b13db] OptimizationPolyalgorithms v0.2.0
[842ac81e] OptimizationQuadDIRECT v0.2.0
https://github.com/SciML/Optimization.jl:lib/OptimizationQuadDIRECT#master
[3d669222] OptimizationSpeedMapping v0.1.5
[2f354839] Pajarito v0.8.2
[65888b18] ParameterizedFunctions v5.16.0
[cd433a01] Pavito v0.3.8
[01435c0c] Percival v0.7.1
[f0f68f2c] PlotlyJS v0.18.13
[91a5bcdd] Plots v1.40.2
⌅ [f27b6e38] Polynomials v3.2.13
[af69fa37] Preconditioners v0.6.1
[dae52e8d] QuadDIRECT v0.1.2
https://github.com/timholy/QuadDIRECT.jl.git#master
[1fd47b50] QuadGK v2.9.4
[f2b01f46] Roots v2.1.5
⌃ [82193955] SCIP v0.11.6
[084e46ad] SIAMFANLEquations v1.0.2
[727e6d20] SimpleNonlinearSolve v1.6.0
[276daf66] SpecialFunctions v2.3.1
[90137ffa] StaticArrays v1.9.3
[c3572dad] Sundials v4.24.0
[24249f21] SymPy v2.0.1
[78aadeae] SymbolicNumericIntegration v1.3.2
[0c5d862f] Symbolics v5.25.2
[bd369af6] Tables v1.11.1
[9e70acf3] Xpress v0.16.2
[e88e6eb3] Zygote v0.6.69
[29cba6d7] Bonmin_jll v100.800.901+0
[f09e9e23] Couenne_jll v0.500.801+0
[c1ab834c] SHOT_jll v100.100.0+0
[37e2e46d] LinearAlgebra
[de0858da] Printf
[2f01184e] SparseArrays v1.10.0
[4607b0f0] SuiteSparse
Additional context
exemple 2 seems to work. Exemple 3 errors iafter Plots
The text was updated successfully, but these errors were encountered: