Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnebro committed Sep 17, 2024
1 parent f70fd5d commit 22c6ace
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/neighborhood.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function initializeNeighborhood(weightVectorNeighborhood::WeightVectorNeighborho
end
end

function getNeighbors(weightVectorNeighborhood::WeightVectorNeighborhood, solutionList::Vector{S}, solutionIndex::Int)
function getNeighbors(weightVectorNeighborhood::WeightVectorNeighborhood, solutionList::Vector{S}, solutionIndex::Int) where {S}
neighbourSolutions = Vector{S}()
for neighborIndex in weightVectorNeighborhood.neighborhood[solutionIndex, :]
push!(neighbourSolutions, solutionList[neighborIndex])
Expand Down
2 changes: 0 additions & 2 deletions src/util/point.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ struct IdealPoint <: Point
point::Vector{Float64}

IdealPoint() = new()
IdealPoint(dimension::Int) = new(zeros(dimension))

IdealPoint(dimension::Int) = begin
values = zeros(dimension)
Expand Down Expand Up @@ -120,7 +119,6 @@ struct NadirPoint <: Point
point::Vector{Float64}

NadirPoint() = new()
NadirPoint(dimension::Int) = new(zeros(dimension))

NadirPoint(dimension::Int) = begin
values = zeros(dimension)
Expand Down

0 comments on commit 22c6ace

Please sign in to comment.