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

Trouble using Koopman.jl #64

Closed
lakshaya17 opened this issue Jul 25, 2022 · 7 comments
Closed

Trouble using Koopman.jl #64

lakshaya17 opened this issue Jul 25, 2022 · 7 comments

Comments

@lakshaya17
Copy link

I was running my code with Koopman.jl the other day and I got the following issue. Before when I ran my code, it was working perfectly fine.

MethodError: no method matching init(::IntegralProblem{false, Vector{Float64}, DiffEqUncertainty.var"#10#23"{DiffEqUncertainty.var"#20#33", DiffEqUncertainty.var"#21#34", typeof(loss), DiffEqUncertainty.var"#6#7"{Base.Iterators.Pairs{Symbol, CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}, Tuple{Symbol}, NamedTuple{(:callback,), Tuple{CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}}}}, ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, typeof(ball!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, Tuple{Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}}}, Vector{Float64}, Vector{Any}, Vector{Bool}, Int64}, Vector{Float64}, Vector{Float64}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::HCubatureJL; reltol=1.0e-5, abstol=0.01, maxiters=1000000)
Closest candidates are:
init(::SciMLBase.AbstractDEProblem, ::Any...; kwargshandle, kwargs...) at C:\Users\Lakshay Arora.julia\packages\DiffEqBase\S7V8q\src\solve.jl:191

Stacktrace:
[1] solve(::IntegralProblem{false, Vector{Float64}, DiffEqUncertainty.var"#10#23"{DiffEqUncertainty.var"#20#33", DiffEqUncertainty.var"#21#34", typeof(loss), DiffEqUncertainty.var"#6#7"{Base.Iterators.Pairs{Symbol, CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}, Tuple{Symbol}, NamedTuple{(:callback,), Tuple{CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}}}}, ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, typeof(ball!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, Tuple{Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}}}, Vector{Float64}, Vector{Any}, Vector{Bool}, Int64}, Vector{Float64}, Vector{Float64}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}}, ::Vararg{Any, N} where N; kwargs::Base.Iterators.Pairs{Symbol, Real, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:reltol, :abstol, :maxiters), Tuple{Float64, Float64, Int64}}})
@ CommonSolve C:\Users\Lakshay Arora.julia\packages\CommonSolve\TGRvG\src\CommonSolve.jl:23
[2] expectation(g::typeof(loss), prob::ODEProblem{Vector{Float64}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, typeof(ball!), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, u0::Vector{Float64}, p::Vector{Any}, expalg::Koopman, args::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; u0_CoV::DiffEqUncertainty.var"#20#33", p_CoV::DiffEqUncertainty.var"#21#34", maxiters::Int64, batch::Int64, quadalg::HCubatureJL, ireltol::Float64, iabstol::Float64, nout::Int64, kwargs::Base.Iterators.Pairs{Symbol, CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}, Tuple{Symbol}, NamedTuple{(:callback,), Tuple{CallbackSet{Tuple{ContinuousCallback{typeof(ground_condition), typeof(ground_affect!), typeof(ground_affect!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}, ContinuousCallback{typeof(stop_condition), typeof(terminate!), typeof(terminate!), typeof(SciMLBase.INITIALIZE_DEFAULT), typeof(SciMLBase.FINALIZE_DEFAULT), Float64, Int64, Rational{Int64}, Nothing, Int64}}, Tuple{}}}}})
@ DiffEqUncertainty C:\Users\Lakshay Arora.julia\packages\DiffEqUncertainty\03ndV\src\koopman.jl:104
[3] top-level scope
@ In[15]:4
[4] eval
@ .\boot.jl:360 [inlined]
[5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1116

I have been racking my brain with this issue. Please help.

Also, I am getting the same issue while running the example code as well. I have tried updating the packages as well.

@ChrisRackauckas
Copy link
Member

Do you have an MWE?

@lakshaya17
Copy link
Author

lakshaya17 commented Jul 26, 2022 via email

@ChrisRackauckas
Copy link
Member

yes

@lakshaya17
Copy link
Author

lakshaya17 commented Jul 26, 2022 via email

@evrenmturan
Copy link

I have the same error as @lakshaya17, the example in the readme no longer works.

@ChrisRackauckas
Copy link
Member

Should be fixed by #63

@lakshaya17
Copy link
Author

Should be fixed by #63

Its working now. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants