GithubHelp home page GithubHelp logo

stprogrammer / ga-simulation-simple Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7 KB

Demonstration of Genetic Algorithm with simple simulation in Python

Python 100.00%
genetic-algorithms python3 genetic-algorithm genetic-algorithm-python geneticalgorithm geneticalgorithms python

ga-simulation-simple's Introduction

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.

ga-simulation-simple's People

Contributors

stprogrammer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.