Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

evolution-sim

Minimal evolution simulator. Fitness-based selection over generations.

Usage

python3 evolution-sim.py

Evolves a population toward target [1, 2, 3, 4, 5] using fitness-based selection and mutation.

How it works

  1. Evaluate fitness of each individual
  2. Select top 50% as survivors
  3. Generate offspring via mutation
  4. Repeat for N generations

Customize

Edit the target and fitness function in the script to evolve toward different goals.

License

Public domain.

About

Minimal evolution simulator. Fitness-based selection over generations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages