Hi I need to code a Genetic Algorithm to solve the Knapsack Problem. The synopsis of the problem can be found on wikipedia, sorry for not providing the link I can currently only post 2 links.
I have been able to fully understand and implement a basic binary GA, which can be found at:
https://github.com/DraosT/GA/tree/master/GA2/src
Now that I have that basic framework coded, I have no idea how I can adapt it to the problem at hand. Any pseudo code or Java code that you could provide would definitely help to sate my curiosity on this subject and hopefully let me complete this task faster.
I tried to edit the code to solve the problem
https://github.com/DraosT/GA.git
but it still does not work, not exactly sure why
*Edit - Updated the code with a couple of different "fixes", still not working. If anyone could help me spot the error I would still be grateful.