Skip to content

An example of solving the knapsack problem using Genetic Algorithms.

Notifications You must be signed in to change notification settings

asheriif/Knapsack---Genetic-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Knapsack---Genetic-Algorithms

This is an example of solving the knapsack problem using Genetic Algorithms.

Global optimum is obtained in almost 80% of the total runs.

Elitism and wheel selection based on a cumulative probability distribution are used for selection of parents.

Crossover and mutation are fairly straightforward.

Compiled using g++ 7.1.1 and tested on Arch Linux.

About

An example of solving the knapsack problem using Genetic Algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages