0-1 knapsack problem solver implemented using genetic algorithms and Python 3
.
To start the program, just use :
python3 knapsack.py
Optionally, you can use it through a GUI, but you will need PySimpleGui. To install it on Debian-based systems, just do:
sudo pip3 install pysimplegui
Then you can start it with:
python3 gui.py
โ ๏ธ If the checkbox Random is checked in the GUI, the fields Max weight and Population size won't have any effect as these will be randomly generated.