Repo for knapsack problem solution based on reinforcement learning (Attention Based Graph Neural Network)
Simply execute the jupyter notebook (main_knapsack)
I have checked proper execution for 20 nodes (items-values pairs).
- Change the names of files and function suitable for knapsack This is modified version of original vrp repo, so I have kept the changes minimal as they wont affect functionality, but might be confusing. SInly follow the jupter notebook.
This is modified version of original repo .src Changes:
- Modify VRP to Knapsack Problem
- Data Generation suitable for knapsack problem (This could be modified by the use as needed to fit for given problem)
- Loss for the selected item_value pair