diff --git a/GA.jl b/GA.jl new file mode 100644 index 0000000..d220a80 --- /dev/null +++ b/GA.jl @@ -0,0 +1,115 @@ +#= +Parents <— {randomly generated population} +While not (termination criterion) + Calculate the fitness of each parent in the population + Children <- 0 + While | Children | < | Parents | + Use fitnesses to probabilistically select a pair of parents for mating + Mate the parents to create children c\ and c