Solution to binary Knapsack problems using metaheuristic approaches.
-
Genetic Algoritm (GA)
-
Global-Harmony Search (GHS)
-
Particle Swarm Optimization (PSO)
-
Grey Wolf Optimizer (GWO)
First recomend create a virtual enviroment.
pip3 install -r requirements.txt
python3 main.py Knapsack6
List of knapsack problems in knapsack/data/
- f1, ..., f10
- Knapsack1, ..., Knapsack6