top of page
Writer's pictureJenny Wang

Genetic Algorithms - Tweak Smart Rockets

This week's materials are fascinating. It reminds me of the only science class I took in college, which I did not excel at. I decided to just tweak the smart rockets example, so I could understand how each parameters alter the behavior of the rockets. To make it more fun, I change the visual elements. I was inspired by the little black coals in the movie, Spirited Away, so I made the little things look like the little coals.





Here's what happens if I change the population size:


The outcome didn't change much when I switched from 25 to 50. It changed a lot when I changed from 10 to 1000.










population size 10









population size 1000



Mutation rate:


The behaviors of the little coals didn't change no matter what the mutation rate it.


How to improve fitness:


After running the code for a long time, the fitness is getting better and better. However, I want all the little coals to find the goal faster. I changed the fitness to the power of 5 like the tutorial 9.6, but nothing changed.



18 views0 comments

Recent Posts

See All

Comments


bottom of page