Skip to content

Commit f6e9e03

Browse files
authored
Update Gep.jl
1 parent a4b1647 commit f6e9e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gep.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ function runGep(epochs::Int,
471471

472472
if epoch < epochs
473473
fits_representation = [chromo.fitness for chromo in population]
474-
indices = basic_tournament_selection(fits_representation, tourni_size, mating_size)
474+
indices = basic_tournament_selection(fits_representation[1:mating_size], tourni_size, mating_size)
475475
parents = population[indices]
476476
@inbounds Threads.@threads for i in 1:2:mating_size-1
477477
next_gen[i] = parents[i]

0 commit comments

Comments
 (0)