Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

In what ways do viral genomes differ from those of cells?

Answered: 1 week ago

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago