Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A prototypical IP: knapsack problem You want to pack any number each of three items in your knapsack so as to maximize their value without

A prototypical IP: knapsack problem
You want to pack any number each of three items in your knapsack so as to maximize their
value without exceeding a 10 kilogram limit. Note that the decisions here are of the "how
many" type: how many food packs, how many bottles of water, how many tents. Since we
have three decisions to be made, we need as many integer variables: x1,x2,x3.
Solution:
The knapsack problem can be formulated as the following IP.
max 7x1+8x2+11x3
3x1+4x2+6x3<=10
x1,x2,x3>=0
x1,x2,x3 integer.
item weight value
food pack 37
large bottle of water 48
tent 611
Table 1.1: Table for Problem 1
1
Factory (million $)
Location Profit Capital
LA 96
SF 53
Table 2.1: Table for Problem 2
Warehouse (million $)
Location Profit Capital
LA 65
SF 42
Table 2.2: Table for Problem 2

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

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago