Skip to content

QuinnLee/Genetic_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genetic_algorithm

This just a demo of genetic algorithms Sorry for the rough nature, I am currently working on making this a command line tool.

The runner is the input.rb file

Initialize Input.new(genome_length, population_size, fitness_param, generation_count)

Variables

  • genome length is how long the DNA, an array of 0,1, is
  • population size is how big the intial size of the population
  • fitness param is the 'ideal' DNA sequence
  • generation count is how many generations the program will run

If the variables are too low, the default is 20 for each variable

To run input.run

Outputs

input.record Will return the record from all generations

input.best_fit Will return the most "fit" from each generation

BostonRB project night presentation can be found here

About

GA in ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages