Learn how to play hopping by Generic Algorithm
Java Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dependency
images
src
test
.gitignore
README.md
run.bat
run.sh

README.md

HoppingGA

Learn how to play hopping (= pogo stick) by genetic algorithm.

Demo

Model

Model

Genetic Algorithm

A gene is implemented as an integer array. Its (2n)-th elements represent stretch speed of the model's arm, and (2n+1)-th elements represent stretch speed of its leg. Fitness is defined as how long the model stands and how far the model moves.

  • gene length = 300
  • crossover rate = 0.6
  • selection = tournament
  • mutation rate = 0.01
  • population = 50
  • elite = 1