Code to solve 3D-knapsack problem, which is called 3dKnapsackFinal.py Code to solve the MILP model, which is TSP.py Code to visualize the result, which is draw_graph.py
Egeblad J, Pisinger D. Heuristic approaches for the two-and three-dimensional knapsack packing problem[J]. Computers & Operations Research, 2009, 36(4): 1026-1049.