Evolutionary.jl icon indicating copy to clipboard operation
Evolutionary.jl copied to clipboard

Defining intitial value for parameters as a vector for each parameter

Open Mehdilotfi7 opened this issue 3 years ago • 1 comments

Hi, and thank you for your excellent package. I am trying to estimate the parameters of an age structure model, so in this kind of model, elements of the initial value for the parameters are vectors; when I define the initial condition as above, I receive this error: How can I solve it? Is there any method for that? MethodError: no method matching (Vector)(::Matrix{Float64}) Closest candidates are: (Array{T, N} where T)(::AbstractArray{S, N}) where {S, N} at ~/.local/julia-1.7.3/share/julia/base/boot.jl:479 (Vector)() at ~/.local/julia-1.7.3/share/julia/base/baseext.jl:38 (Vector)(::DataFrames.GroupKey) at ~/.julia/packages/DataFrames/zqFGs/src/groupeddataframe/groupeddataframe.jl:617

Mehdilotfi7 avatar Oct 19 '22 08:10 Mehdilotfi7

How do you define your initial population? From the error it looks like your population is defined as matrix, you may want to convert it into vector of vectors.

wildart avatar Oct 22 '22 04:10 wildart