From 19d315719f7404abc8ddc146446411447c9a86b2 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 6 Feb 2018 09:41:45 -0500 Subject: [PATCH] First commit --- GA.jl | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 GA.jl 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