From c06c5a2ce1c3bebd6e5a25e62f599fb0e1152be5 Mon Sep 17 00:00:00 2001 From: Jesus Mejia Date: Sun, 8 Jan 2023 19:24:43 -0600 Subject: [PATCH 1/2] fix overwritten methods --- src/DecisionMaking/DecisionMaking.jl | 2 -- src/DecisionMaking/JMcDM.jl | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/DecisionMaking/DecisionMaking.jl b/src/DecisionMaking/DecisionMaking.jl index 81c8a91e..1b80410a 100644 --- a/src/DecisionMaking/DecisionMaking.jl +++ b/src/DecisionMaking/DecisionMaking.jl @@ -45,5 +45,3 @@ function best_alternative( return population[idx] end -best_alternative(st::State, args...) = best_alternative(st.population, args...) - diff --git a/src/DecisionMaking/JMcDM.jl b/src/DecisionMaking/JMcDM.jl index 369f2b7a..6814c9c5 100644 --- a/src/DecisionMaking/JMcDM.jl +++ b/src/DecisionMaking/JMcDM.jl @@ -129,9 +129,11 @@ function decisionmaking( result.bestIndex end +#= function decisionmaking(population::AbstractArray{<: AbstractMultiObjectiveSolution}, args...) decisionmaking(fvals(population), args...) end +=# function decisionmaking(st::State, args...) @@ -176,8 +178,3 @@ function best_alternative(st::State, args...) best_alternative(st.population, args...) end -best_alternative(status::State, args...) = best_alternative(status.population,args...) - - - - From a39933ebb2a9f3768e2872b23f21a552d3673683 Mon Sep 17 00:00:00 2001 From: Jesus Mejia Date: Sun, 8 Jan 2023 19:44:42 -0600 Subject: [PATCH 2/2] fix overwritten methods --- src/DecisionMaking/JMcDM.jl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/DecisionMaking/JMcDM.jl b/src/DecisionMaking/JMcDM.jl index 6814c9c5..e9f396c0 100644 --- a/src/DecisionMaking/JMcDM.jl +++ b/src/DecisionMaking/JMcDM.jl @@ -129,17 +129,6 @@ function decisionmaking( result.bestIndex end -#= -function decisionmaking(population::AbstractArray{<: AbstractMultiObjectiveSolution}, args...) - decisionmaking(fvals(population), args...) -end -=# - - -function decisionmaking(st::State, args...) - decisionmaking(st.population, args...) -end - """ best_alternative(res, w, method)