Question: Develop a simple heuristic ( I recommend a construction or destruction heuristic ) in either R or Python to solve the following knapsack problem: (

Develop a simple heuristic (I recommend a construction or destruction heuristic) in either R or Python to solve the following knapsack problem: (Note, this problem can be solved to optimality using integer programming; however, the focus of this question is on developing a heuristic and metaheuristic). Then, develop a metaheuristic using your heuristic as a subroutine. You can iterate the heuristic n times and return the best solution, prevent previous solutions from being selected, etc. I am evaluating your ability to find a solution quickly with a heuristic and your approach to improve the heuristic with a metaheuristic.
Maximize 12x1+16x2+22x3+8x4
S.T.4x1+5x2+7x3+3x4<=140
0<= xi <=10 and xi is integer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!