GithubHelp home page GithubHelp logo

emredan / geneticalgorithms Goto Github PK

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

2 Different Genetic Algorithms application. One for the Asymmetric Travelling Salesman Problem and the other is Function Minimization with binary values.

Java 100.00%

geneticalgorithms's Introduction

Two different Genetic Algorithm Applications

This project consists of 2 different Genetic Algorithms applications. One for the Asymmetric Travelling Salesman Problem and the other is Function Minimization with binary values.

#Asymmetric Travelling Salesman Problem The map for the consists of 10 cities. Purpose of the application is to find the minimum total cost(time). Every population consists of 8 chromosomes with randomly assigned initial values. For each chromosome, the fitness function value is the sum of the costs within a whole route. -> Please check initilize_map function to see default route costs.

Methodologies used in this Genetich Algorithm application: *Tournament Selection method is used to select parents. Tournament size can be changed as long as not bigger than population size. *Order One crossover method is used for Chromosome Crossover. *For mutation, Insert Mutation is used.

Best results were achieved with Mutation rate of 0.2 and Tournament size of 3

#Function Fitness Minimization

The population consists of 6 chromosomes. Each chromosome consists of 8 bits (boolean values) and since it is signed values the variance is -128 <-> 127. The fitness value is result of the function F(x) = x^2 + 16*x

Methodologies used in this Genetich Algorithm application: *Tournament Selection method with Elitism is used to select parents. Tournament size can be changed as long as not bigger than population size. -->Elitism with 2 parent is the default. To change it see function "Replace_Worst_Two" *Single point crossover method is used for Chromosome Crossover. *For mutation, Binary (swap) Mutation is used. With the rate of 0.2

geneticalgorithms's People

Contributors

emredan avatar

Stargazers

JANG WOOJIN avatar

Watchers

James Cloos 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.