Lecture 7 Examples
Lecture 7 Examples
1 McDonald's Problem
2
Chicken Garden
3 Decision Hamburger Big Mac McNuggets Salad Baked
Variables: (x1) (x2) (x3) (x4) Apple Pie (x5)
4 6.26 0.00 0.00 0.87 1.32
6 Objective
Function: 0.69 1.99 1.99 2.05 0.79
7
8 Constraints:
9 Calories 260 560 250 35 260
10 Protein 13 25 15 2 3
11 Vit. C 2 2 2 40 40
12 Calcium 15 25 2 4 2
13
14
15
G H I J K
oblem 1
2
5
Total Cost ($)
6
7.14
7
8 LHS Type RHS Units
9 2000 <= 2000
10 87 >= 55 g
11 100 >= 100 %
12 100 >= 100 %
13
14
15 excess
McDonald's Problem
Chicken Garden
Decision Hamburger Big Mac McNuggets Salad Baked
Variables: (x1) (x2) (x3) (x4) Apple Pie (x5)
Objective
Function: 0.69 1.99 1.99 2.05 0.79
Constraints:
Calories 260 560 250 35 260
Protein 13 25 15 2 3
Vit. C 2 2 2 40 40
𝑥_4+0.79 𝑥_5
260𝑥_1+560𝑥_2+250𝑥_3+35𝑥_4+260𝑥_5≤2000
s.t. (such that)
Total Profit
Objective Function: 10 9
Constraints:
Cutting & Dyeing
Sewing
Finishing
Inspection & Packaging
𝐌𝐀𝐗 10 𝑥_1+ 9 〖 𝑥〗
_2
𝑥_2≤135
Inspection & Packaging:
_2≤630
00
1/4
0
McDonald's Problem
Chicken Garden
Decision Hamburger Big Mac McNuggets Salad Baked Apple Pie
Variables: (x1) (x2) (x3) (x4) (x5)
6.26 0.00 0.00 0.87 1.32
Objective
Function: 0.69 1.99 1.99 2.05 0.79
Constraints:
Calories 260 560 250 35 260
Protein 13 25 15 2 3
Vit. C 2 2 2 40 40
Calcium 15 25 2 4 2
Total
Cost ($)
7.14
Objective
Function:
Total
$G$6 Cost ($) 0.00 7.14
Variable Cells
Cell Name Original Value Final Value Integer
Hamburger
$B$4 (x1) 0.00 6.26 Contin
Big Mac
$C$4 (x2) 0.00 0.00 Contin
Chicken
McNuggets
$D$4 (x3) 0.00 0.00 Contin
Garden
Salad
$E$4 (x4) 0.00 0.87 Contin
Baked
$F$4 Apple Pie(x5) 0.00 1.32 Contin
Constraints
Cell Name Cell Value Formula Status Slack
$G$9 Calories LHS 2000 $G$9<=$I$9 Binding 0
$G$10 Protein LHS 87 $G$10>=$I$10 Not Binding 32
$G$11 Vit. C LHS 100 $G$11>=$I$11 Binding 0
$G$12 Calcium LHS 100 $G$12>=$I$12 Binding 0
nteger Constraints, Assume NonNegative
McDonald's Problem
1010 8 2 25 25
670 2 2 2 4
20 120 40 4 6
200 0 40 2 6
100 100
>= >=
100 100
McDonald's Problem
Chicken Garden
Decision Hamburger Big Mac McNuggets Salad Baked
Variables: (x1) (x2) (x3) (x4) Apple Pie(x5)
Objective
Function: 0.69 1.99 1.99 2.05 0.79
Constraints:
Calories 260 560 250 35 260
Protein 13 25 15 2 3
Vit. C 2 2 2 40 40
Calcium 15 25 2 4 2
Total
Cost ($) Budget ($)
0.00 <= 10
𝐌𝐀𝐗 10 𝑥_1+
9 〖 𝑥〗 _2
7/10 𝑥_1+
s.t.
𝑥_2≤630
Cutting & Dyeing:
𝑥_2≤135
Inspection & Packaging:
Variable Cells
Cell Name Original Value Final Value Integer
$B$4 Standard Bag (x1) 0 540 Contin
$C$4 Deluxe Bag (x2) 0 252 Contin
Constraints
Cell Name Cell Value Formula Status Slack
$D$9 Cutting & Dyeing LHS 630 $D$9<=$F$9 Binding 0
$D$10 Sewing LHS 480 $D$10<=$F$10 Not Binding 120
$D$11 Finishing LHS 708 $D$11<=$F$11 Binding 0
$D$12 Inspection & Packaging LHS 117 $D$12<=$F$12 Not Binding 18
Par Inc.
𝑥_1+2/3 𝑥_2≤708
Sewing:
1/10 𝑥_1+1/4
Finishing:
𝑥_2≤135
Inspection & Packaging:
𝑥_1 ≥725
Non-negativity: 𝑥_1≥0, 𝑥_2≥0
Units
Hr
Hr
Hr
Hr
Microsoft Excel 16.0 Feasibility Report
Worksheet: [Lecture 7 Examples.xlsx]Par (infeasible)
Report Created: 1/6/2025 6:26:51 PM
7/10 𝑥_1+
s.t.
𝑥_2≤630
Cutting & Dyeing:
𝑥_1+ 2/3
𝑥_2≤708
Finishing:
1/10
𝑥_1+ 1/4 𝑥_2≤135
Inspection & Packaging:
𝑥_1≥0,
𝑥_2≥0
Non-negativity:
Units
Hr
Hr
Hr
Hr
Par Inc.
𝐌𝐀𝐗 12
𝑥_1+8 〖 𝑥〗 _2
𝑥_1+𝑥_2≥1000
s.t.
𝑥_2≥725
𝑥_1≥0, 𝑥_2≥0
Units
Hr
Hr