Question: The following knapsack problem: which has the same contribution for each item under consideration, has proved to be rather difficult to solve for most general-purpose

 The following knapsack problem:

subject to: Maximize Scxj, j=1 2x, n, j=1 x, = 0 or

which has the same ‘‘contribution’’ for each item under consideration, has proved to be rather difficult to solve for most general-purpose integer-programming codes when n is an odd number.

a) What is the optimal solution when n is even? when n is odd?

 b) Comment specifically on why this problem might be difficult to solve on general integer-programming codes when n is odd.

subject to: Maximize Scxj, j=1 2x, n, j=1 x, = 0 or 1 (j = 1, 2,..., n),

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a When n is even the optimal solution is to select exactly n2 items with x 1 and the remaining n2 items with x 0 This solution ensures that the constr... View full answer

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 Programming Questions!