Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnebro committed Oct 4, 2024
1 parent bac32ac commit 1dd7b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/neighborhood.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
abstract type Neighborhood end

# ChatGPT code
#=
function minFastSort!(x::Vector{Float64}, idx::Vector{Int}, numberOfWeightVectors::Int, neighborhoodSize::Int)
for i in 1:neighborhoodSize
for j in (i+1):numberOfWeightVectors
Expand All @@ -16,9 +17,9 @@ function minFastSort!(x::Vector{Float64}, idx::Vector{Int}, numberOfWeightVector
end
end
end
=#


#= Gemini and Claude code
# Gemini and Claude code
function minFastSort!(x::Vector{Float64}, idx::Vector{Int}, n::Int, m::Int)
for i in 1:m
for j in i+1:n
Expand All @@ -29,7 +30,7 @@ function minFastSort!(x::Vector{Float64}, idx::Vector{Int}, n::Int, m::Int)
end
end
end
=#


struct WeightVectorNeighborhood <: Neighborhood
numberOfWeightVectors::Int
Expand All @@ -50,7 +51,6 @@ struct WeightVectorNeighborhood <: Neighborhood
weightVector[n, 2] = 1 - a
end


weightVectorNeighborhood = new(numberOfWeightVectors, weightVectorSize, neighborhoodSize, neighborhood, weightVector)
initializeNeighborhood(weightVectorNeighborhood)

Expand Down

0 comments on commit 1dd7b67

Please sign in to comment.