HolyLab / RegisterOptimize.jl

This package is separated from BlockRegistraton.
2 stars 1 forks source link

fixed_λ calls the wrong method when using IPOPTsolver kwargs #23

Closed ChantalJuntao closed 2 years ago

ChantalJuntao commented 2 years ago
MethodError: no method matching RegisterOptimize.DeformTseriesOpt(::GridDeformation{Float64, 1, Vector{SVector{1, Float64}}, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}}, ::typeof(identity), ::AffinePenalty{Float64, 1}, ::Vector{CenterIndexedArrays.CenterIndexedArray{NumDenom{Float64}, 1, Interpolations.BSplineInterpolation{NumDenom{Float64}, 1, Vector{NumDenom{Float32}}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}}}}}, 
::Pair{Symbol, Int64})
Closest candidates are:
  RegisterOptimize.DeformTseriesOpt(::Vector{D}, ::Dsold, ::DP, ::T, ::M) where {D, Dsold, DP, T, M} at C:\Users\chant\.julia\dev\RegisterOptimize\src\RegisterOptimize.jl:699
Stacktrace:
 [1] optimize!(ϕs::GridDeformation{Float64, 1, Vector{SVector{1, Float64}}, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}}, ϕs_old::Function, dp::AffinePenalty{Float64, 1}, λt::Vector{CenterIndexedArrays.CenterIndexedArray{NumDenom{Float64}, 1, Interpolations.BSplineInterpolation{NumDenom{Float64}, 1, Vector{NumDenom{Float32}}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}}}}}, mmis::Pair{Symbol, Int64}; kwargs::Base.Pairs{Symbol, 
Any, Tuple{Symbol, Symbol}, NamedTuple{(:mu_strategy, :mu_init), Tuple{String, Float64}}})
   @ RegisterOptimize C:\Users\chant\.julia\dev\RegisterOptimize\src\RegisterOptimize.jl:680
 [2] fixed_λ(cs::Vector{Any}, Qs::Vector{Any}, nodes::Tuple{StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}}, ap::AffinePenalty{Float64, 1}, mmis::Vector{CenterIndexedArrays.CenterIndexedArray{NumDenom{Float64}, 1, Interpolations.BSplineInterpolation{NumDenom{Float64}, 1, Vector{NumDenom{Float32}}, BSpline{Linear{Throw{OnGrid}}}, Tuple{Base.OneTo{Int64}}}}}; ϕs_old::Function, mu_init::Float64, kwargs::Base.Pairs{Symbol, Int64, Tuple{Symbol}, NamedTuple{(:max_iter,), Tuple{Int64}}})
   @ RegisterOptimize C:\Users\chant\.julia\dev\RegisterOptimize\src\RegisterOptimize.jl:752
 [3] top-level scope
   @ c:\Users\chant\Documents\TestingRegisterOptimize\Debugging.jl:28