Sample Homework: Mcdonald'S Diet Problem (20Pts)
Sample Homework: Mcdonald'S Diet Problem (20Pts)
You want your diet to meet some nutritional standards. According to your daily diet
plan you need to have at least 100 percent of the U.S. RDA of vitamin C and
calcium; at least 55 grams of protein; and at most 2000 calories. You are wondering
if this can be accomplished by eating at McDonalds.
Can you design a least-cost McDonalds daily meal plan that meets your daily
nutritious standard?
Sample answer:
Homework #X
Problem: Chapter X, Problem X
(4pts) Decision variables:
x1 = # of hamburgers
x2 = # of Big Macs
x4 = # of Garden Salads
x5 = # of Baked Apple Pies
x3 = # of Chicken McNuggets
(4pts) Objectives:
Minimize money spent on McDonalds Diet
MIN 0.69x1+ 1.99x2+ 1.99x3+ 2.05x4+ 0.79x5
(4pts) Constraints:
Calories obtained 2000: 260x1+560x2 + 250x3+ 35x4+260x5 2000
Protein obtained 55 gram: 13x1 +25x2 + 15x3 + 2x4 + 3x5 55
Vitamin C obtained 100% of U.S. RDA: 2x1 +2x2 +2x3 + 40x4+40x5 100
Calcium obtained 100% of U.S. RDA: 15x1+ 25x2 + 2x3 +4x4+ 2x5 100
Nonnegative constraint: xi 0 i=1,,4
(4pts) Solution:
Optimal decision: x1=6.26, x2=0, x3=0, x4=0.87, x5=1.32
Optimal objective value: 7.14