Skip to content

Simple genetic algorithm to optimize real functions of multiple variables from scratch in Julia.

Notifications You must be signed in to change notification settings

pabloduque0/genetic_algo_scratch

Repository files navigation

genetic_algo_julia

Simple genetic algorithm to optimize real functions of multiple variables from scratch in Julia.

Algorithim parameters are given in algo_inputs.txt:

  • num_generations
  • population_size
  • number_genes
  • variable_range_low
  • variable_range_high
  • function_param: Functions available are sphere and schwefel.

Results examples:

Graphs on the left show fitness average on population and on the right fitness maximum.

Schwefel function

Sphere function

Demo

You can simply run genetic_algo.jl

Make sure you make any changes you would like according to plotting your results.

About

Simple genetic algorithm to optimize real functions of multiple variables from scratch in Julia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages