Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

STProgrammer/GA-simulation-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Genetic algorithms simulation, simple

Answer to assignment from "AI methods and applications" course, DTE-2501 autumn 2021, from UiT The Arctic University of Norway.

The starter code consists of 3 python files: GAengine.py, Main.py and Utils.py. You will need to install pygame in your environment for the code to work. Main.py contains the render code. The initial population is also initialized here.

GAengine.py will contain the bulk of your genetic algorithm implementation. There are skeleton functions in place for fitness assignment and selection. Utils.py contains helper classes. GAPoint is a simple class representing a position in the world, with a function to find the distance to another GAPoint. Chromosome represents the chromosome and has skeleton functions for crossover and mutation. The chromosome only has two features, the x and y position of the individual in the world, used for rendering the individual in the simulator. They are already implemented using high-level representation in the class GAPoint.

About

Demonstration of Genetic Algorithm with simple simulation in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /