Tom K. answered 10/07/20
Knowledgeable and Friendly Math and Statistics Tutor
min .2X + .3Y (Cost) subject to
8X + 12Y >= 24 (Fat)
12X + 12Y >= 36 (Carbs)
2X + 1Y >= 4 (Protein)
X + Y <= 5 (the rabbit can eat at most 5 ounces, so the inequality is in the opposite direction)
You can solve this graphically or with an LP solver. However, note that you can also solve this with a little thought.
If 12X + 12Y >= 36, 8X + 8Y >= 24, so 8X + 12Y >= 24; thus, 8X+12Y is dominated.
If 12X + 12Y >= 36, X + Y>= 3
If X + Y >= 3 and 2X + Y >=4, you would never reach 5 ounces, as you would never have X + Y > 4.
Then, if we seek to minimize .2X + .3Y with X + Y >= 3 and 2X + Y >= 4, if we just look at minimize .2X + .3y with X + Y >= 3, the more X the better, so let X = 3 and Y = 0. Then, we have satisfied 2x + Y >= 4
Thus, the solution is X = 3oz, Y = 0 oz.