Sie sind auf Seite 1von 3

A B C D E F

1 Planning desserts
2
3 Ingredients (per serving) of each dessert
4 Snack bar Ice cream
5 Calories 120 160
6 Fat (grams) 5 10
7
8 Grams per serving 37 65
9
10 Taste index of each dessert (on a 100-point scale, per gram)
11 Snack bar Ice cream
12 85 95
13
14 Dessert plan (servings per day)
15 Snack bar Ice cream
16
17
18 Constraints on calories and fat (per day)
19 Consumed Allowed
20 Calories <= 450
21 Fat (grams) <= 25
22
23 Constraint on total grams of dessert per day
24 Consumed Required
25 >= 120
26
27 Total taste index Objective to maximize
Planning desserts

Ingredients (per serving) of each dessert Explanation:


Snack bar Ice cream Ingredients consumed:
Calories 120 160 Calculate the amounts consumed by the dessert plan.
Fat (grams) 5 10 =SUMPRODUCT(B5:C5,$B$16:$C$16)
in cell B20 for calories and copy it to cell B21 for fat.
Grams per serving 37 65

Taste index of each dessert (on a 100-point scale, per gram)


Snack bar Ice cream Grams consumed:
85 95 Calculate the total number of grams of dessert
consumed daily. Enter in cell B25 the formula
Dessert plan (servings per day) =SUMPRODUCT(B8:C8,B16:C16)
Snack bar Ice cream
1.250 1.875
Total taste index:
Constraints on calories and fat (per day) Calculate the total taste index, enter in cell B27 the for
Consumed Allowed =SUMPRODUCT(B8:C8,B12:C12,B16:C16)
Calories 450 <= 450
Fat (grams) 25 <= 25

Constraint on total grams of dessert per day


Consumed Required
168.125 >= 120

Total taste index 15509.38 Objective to maximize

Set objective B27


Max
By changing variable cell B16:C16
Subject to the Constraints B20<=D20
B21<=D21
B25>=D25
B16:C16>=0
s consumed by the dessert plan.
C5,$B$16:$C$16)
and copy it to cell B21 for fat.

mber of grams of dessert


in cell B25 the formula
C8,B16:C16)

te index, enter in cell B27 the formula


C8,B12:C12,B16:C16)

Das könnte Ihnen auch gefallen