Skip to content

Genetic algorithm implementation for the knapsack problem

Notifications You must be signed in to change notification settings

BassemYagoub/GAlgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAlgorithms

A simple genetic algorithm implementation for the knapsack problem (that might evolve in multiple genetic algorithms for various problems/games)

V1.0

First implemented algorithm :

  • A solution is a list of binaries acting as booleans to state if a bag is chosen or not
  • Two selection methods : Tournament / Biased Random
  • Crossover : Each parent gives half of a genome to each children
  • Mutation : Add a random bag to the solution (some random 0 in the solution becomes a 1)
  • Parameters can be played with in the MainClass.cs file

About

Genetic algorithm implementation for the knapsack problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages