Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 1014 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 1014 Bytes

AI-Assignment-2

WARNING: This project doesn't support Python 3.8. Python 3.7.8 works fine.

Setup

  1. Clone this repo using git clone https://github.com/nikololiahim/AI-Assignment-2.git
  2. In the project folder initialize the Python virtual environment (provided you have the virtualenv package installed pip install virtualenv)
  virtualenv venv
  1. Activate the environment using
  source venv/bin/activate

for Linux/MacOS or

  venv\Scripts\activate

for Windows

  1. Install the required packages from requirements.txt
  pip install -r requirements.txt
  1. In order to launch the algorithm, go to <project root>/src/main.py and run it.

Examples

  1. population size: 1000, number of generations: 6000

Evolution of a donkey

  1. population size: 1500, number of generations: 1200

Evolution of a hare

  1. population size: 2000, number of generations: 2000

Evolution of a hedgehog