We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use custom types in nsga2 but it fails with this error:
ERROR: LoadError: ArgumentError: Input arrays should be homogenous. Stacktrace: [1] _default_eltype @ ~/.julia/packages/StackViews/2wEBK/src/StackViews.jl:100 [inlined] [2] StackViews.StackView(slices::Tuple{Vector{Int64}, Vector{NoisyFitness}}, dims::Val{1}) @ StackViews ~/.julia/packages/StackViews/2wEBK/src/StackViews.jl:88 [3] StackViews.StackView(slices::Tuple{Vector{Int64}, Vector{NoisyFitness}}, dims::Int64) @ StackViews ~/.julia/packages/StackViews/2wEBK/src/StackViews.jl:85 [4] StackViews.StackView(::Vector{Int64}, ::Vararg{AbstractArray}; dims::Int64) @ StackViews ~/.julia/packages/StackViews/2wEBK/src/StackViews.jl:83 [5] update_state!(objfun::Evolutionary.EvolutionaryObjective{…}, constraints::Evolutionary.NoConstraints, state::Evolutionary.NSGAState{…}, parents::Vector{…}, method::Evolutionary.NSGA2{…}, options::Evolutionary.Options{…}, itr::Int64) @ Evolutionary ~/.julia/packages/Evolutionary/65hL6/src/nsga2.jl:79 [6] optimize(objfun::Evolutionary.EvolutionaryObjective{…}, constraints::Evolutionary.NoConstraints, method::Evolutionary.NSGA2{…}, population::Vector{…}, options::Evolutionary.Options{…}, state::Evolutionary.NSGAState{…}) @ Evolutionary ~/.julia/packages/Evolutionary/65hL6/src/api/optimize.jl:105 [7] optimize(objfun::Evolutionary.EvolutionaryObjective{…}, constraints::Evolutionary.NoConstraints, method::Evolutionary.NSGA2{…}, population::Vector{…}, options::Evolutionary.Options{…}) @ Evolutionary ~/.julia/packages/Evolutionary/65hL6/src/api/optimize.jl:70 [8] optimize(f::typeof(fitness_jl), constraints::Evolutionary.NoConstraints, method::Evolutionary.NSGA2{…}, population::Vector{…}, opts::Evolutionary.Options{…}) @ Evolutionary ~/.julia/packages/Evolutionary/65hL6/src/api/optimize.jl:55 [9] optimize @ ~/.julia/packages/Evolutionary/65hL6/src/api/optimize.jl:42 [inlined] [10] optimize @ ~/.julia/packages/Evolutionary/65hL6/src/api/optimize.jl:14 [inlined] [11] main() @ Main ~/sorgenti/magesim/wow.jl:397 [12] top-level scope @ ~/sorgenti/magesim/wow.jl:516 [13] include(fname::String) @ Base.MainInclude ./client.jl:489 [14] top-level scope @ REPL[2]:1
with ga I can use custom types
ga
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use custom types in nsga2 but it fails with this error:
with
ga
I can use custom typesThe text was updated successfully, but these errors were encountered: