Attendance4 1
Attendance4 1
Chapter 4
We will look at how to solve linear programming problems with two variables using
a graphical approach. We begin by looking at how to set up a linear programming
problem with two or more variables. Then we look at how to interpret systems of
linear inequalities with two variables in a graphical way. Finally, we look at how to
solve linear programming problems with two variables.
51
52 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
(d) Since Acme needs 25 balloons for each of 𝑥 birthday parties and 15 balloons
for each of 𝑦 Halloween parties and, furthermore, total number of balloons
cannot exceed 250, this means
i. 25𝑥 + 15𝑦 ≥ 250
ii. 15𝑥 + 25𝑦 < 250
iii. 25𝑥 + 15𝑦 ≤ 250
iv. 25𝑥 + 15𝑦 < 250
This is a structural constraint.
(e) Also, Acme needs 20 noisemakers for each of 𝑥 birthday party and 10
noisemakers for each 𝑦 Halloween party and total number of noisemakers
cannot exceed 175, this means
i. 20𝑥 + 10𝑦 ≤ 175
ii. 10𝑥 + 10𝑦 < 175
iii. 20𝑥 + 10𝑦 > 175
iv. 10𝑥 + 20𝑦 ≤ 175
This is another structural constraint.
(f) Since impossible to have less than zero birthday parties or zero Halloween
parties, this means
i. 𝑥<0 and 𝑦≥0
ii. 𝑥≥0 and 𝑦<0
iii. 𝑥≤0 and 𝑦≤0
iv. 𝑥≥0 and 𝑦≥0
These are nonnegativity constraints.
(g) Linear programming (LP) problem for this situation is
i. LP Candidate 1
Maximize x + y
subject to 25x + 15y ≤ 250
20x + 10y ≤ 175
x ≥ 0
y ≥ 0
ii. LP Candidate 2
Minimize 30x + 40y
subject to 25x + 15y ≤ 250
20x + 10y ≤ 175
x ≥ 0
y ≥ 0
iii. LP Candidate 3
Section 1. Modeling Linear Programming Problems (LECTURE NOTES 4) 53
2. Trout and Perch2 Lake is stocked with trout and perch, which feed on two
types of food (A and B) that grow in lake at rates of 6000 units and 2400 units
per day, respectively. Each trout consumes 6 units of first food and 2 units of
second food per day, and each perch consumes 8 units of first food and 4 units
of second food per day. Average trout weighs 1 pound and average perch weighs
1.5 pounds. Lake is stocked so total weight of fish in lake is as great as possible.
iii. 𝑥 ≤ 0 and 𝑦 ≤ 0
iv. 𝑥 ≥ 0 and 𝑦 ≥ 0
(f) LP problem for this situation is
i. LP Candidate 1
Maximize x + 1.5y
subject to 6x + 8y ≤ 6000
2x + 4y ≤ 2400
x ≥ 0
y ≥ 0
ii. LP Candidate 2
Maximize x + 1.5y
subject to 6x + 8y ≥ 6000
2x + 4y ≤ 2400
x ≥ 0
y ≥ 0
iii. LP Candidate 3
Maximize x + 1.5y
subject to 6x + 8y ≤ 2400
2x + 4y ≤ 6000
x ≥ 0
y ≥ 0
3. Insurance. Westville insurance has a total of $25 million earmarked for home-
owner and business loans. Homeowner loans have a 10% annual rate of return,
whereas business loans yield a 12% annual rate of return. As a matter of policy,
total amount of homeowner loans will be greater than or equal to four times
total amount of business loans. State linear programming problem to determine
total amount of loans of each type in order to maximize returns.
(a) For 𝑥 dollar amount of homeowner loans and 𝑦 dollar amount of business
loans, total return is
i. 𝑅 = 25𝑥 + 𝑦 dollars
ii. 𝑅 = 0.12𝑥 + 0.10𝑦 dollars
iii. 𝑅 = 0.10𝑥 + 0.12𝑦 dollars
iv. 𝑅 = 0.90𝑥 + 0.88𝑦 dollars
(b) Since Westville insurance has $25 million earmarked for 𝑥 homeowner and
𝑦 business loans,
i. 𝑥 + 𝑦 ≥ 25, 000, 000
ii. 𝑥 + 𝑦 ≤ 25, 000, 000
iii. 𝑥 − 𝑦 ≤ 25, 000, 000
Section 1. Modeling Linear Programming Problems (LECTURE NOTES 4) 55
Warehouse
Plant A B C
I 20 8 10
II 12 22 18
3
Tan, Example 4, p 187, 1997.
56 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
Maximum output of plants I and II are 400 and 600 units per month. In order for
warehouses A, B and C to meet orders, they need to be shipped, at a minimum,
200, 300 and 400 units per month respectively. Letting 𝑥1 represent number
of loudspeaker systems shipped from plant I to warehouse A and 𝑥2 represent
number of loudspeaker systems shipped from plant I to warehouse B, and so
on. Information summarized in following table.
Warehouse
Plant A B C max plant output
I 𝑥1 𝑥2 𝑥3 400
II 𝑥4 𝑥5 𝑥6 600
min warehouse require 200 300 400
iii. 𝑥3 + 𝑥6 ≥ 300
iv. 𝑥1 + 𝑥4 ≥ 300
(f) Since warehouse C must be shipped minimum of 400 units per month,
i. 𝑥2 + 𝑥4 ≥ 400
ii. 𝑥2 + 𝑥5 ≥ 400
iii. 𝑥3 + 𝑥6 ≥ 400
iv. 𝑥1 + 𝑥4 ≥ 400
(g) Since impossible to send less than zero loudspeakers from any plant to any
warehouse
i. 𝑥1 ≤ 0, 𝑥2 ≤ 0, 𝑥3 ≤ 0, 𝑥4 ≤ 0, 𝑥5 ≤ 0, 𝑥6 ≤ 0,
ii. 𝑥1 ≥ 0, 𝑥2 ≤ 0, 𝑥3 ≥ 0, 𝑥4 ≥ 0, 𝑥5 ≥ 0, 𝑥6 ≥ 0,
iii. 𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≥ 0, 𝑥4 ≥ 0, 𝑥5 ≥ 0, 𝑥6 ≥ 0,
iv. 𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≤ 0, 𝑥4 ≥ 0, 𝑥5 ≥ 0, 𝑥6 ≥ 0,
(h) Consequently, LP problem for this situation is
i. LP Candidate 1
y x=3
y y
x=3 x=3
x<3 x>3
(0,0) 3 3 x
x (0,0) (0,0) 3 x
y y y
y>5
y y
10 10
8 8
6 5x + 4y > 22 6
5x + 4y = 22 or y = 22/4 - (5/4) x
4 4
5x + 4y = 22
2
or y = 22/4 - (5/4) x 2
(0,0) (0,0) x
x 00
00 2 4 6 8 10 2 4 6 8 10
5x + 4y < 22
y
10
_ 22,
5x + 4y > _ 22/4 - (5/4) x
y>
4 or
(2,3) _ 27
3x + 7y < _ 27/7 - (3/7) x
y<
C
2
(0,0)
0 x
0 2 4 6 8 10
B
A
5x + 4y >_ 22,
6
3x + 7y <_ 27,
4
x _> 0,
(2,3) y> _ 0
2
(22/5, 0) (27/3, 0)
0 x
0 2 4 6 8 10
Section 2. Linear Inequalities in Two Variables (LECTURE NOTES 4) 61
(a) system A
𝑦 ≥4+𝑥
𝑦≥4
𝑦 ≤ 10 − 𝑥
(b) system B
𝑦 ≤4+𝑥
𝑦≥4
𝑦 ≥ 10 − 𝑥
62 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
(c) system C
𝑦 ≤4+𝑥
𝑦≥4
𝑦 ≤ 10 − 𝑥
y = 4 + 2x
y = 10 - x
y = 7 - (1/2)x
x
Figure 4.7 (Linear inequalities and shaded region)
(a) system A
𝑦 ≤ 4 + 2𝑥
𝑦 ≤ 10 − 𝑥
𝑦 ≥ 7 − 21 𝑥
(b) system B
𝑦 ≤ 4 + 2𝑥
𝑦 ≥ 10 − 𝑥
𝑦 ≥ 7 − 21 𝑥
(c) system C
𝑦 ≥ 4 + 2𝑥
𝑦 ≤ 10 − 𝑥
𝑦 ≤ 7 − 21 𝑥
y
y = 4 + 2x
y = 10 - x
y = 7 - (1/2)x
x
Figure 4.8 (Linear inequalities and shaded region)
(a) system A
𝑦 ≤ 4 + 2𝑥
𝑦 ≤ 10 − 𝑥
𝑦 ≥ 7 − 21 𝑥
(b) system B
𝑦 ≤ 4 + 2𝑥
𝑦 ≥ 10 − 𝑥
𝑦 ≥ 7 − 21 𝑥
(c) system C
𝑦 ≥ 4 + 2𝑥
𝑦 ≤ 10 − 𝑥
𝑦 ≤ 7 − 21 𝑥
1. Erasers and pen kits. L&R company sells Sally kits at 6 dollars a piece and
Tommy kits at 4 dollars a piece. Sally kit requires 1 eraser and 2 pens, while
Tommy kit requires 2 erasers and 1 pen. Only 8 erasers and 10 pen are left.
How many Sally kits (𝑥) and Tommy kits (𝑦) should be sold to maximize profit?
64 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
Maximize 6x + 4y
subject to x + 2y ≤ 8
2x + y ≤ 10
x ≥ 0
y ≥ 0
10
y
x + 2y _ 8,
<
8
2x + y <
_ 10,
2x + y = 10 x _> 0,
6 y _> 0
4
(0,4)
(4,2) optimal solution
2
x + 2y = 8
0 x
(0,0) 0 2 4 6 8 10
(5,0)
2. Acme’s party service. Acme would like to schedule 𝑥 birthday parties and 𝑦
Halloween parties to make as much money as possible, taking into account
limited number of balloons and noisemakers as given in following LP.
Maximize x + y
subject to 25x + 15y ≤ 250
20x + 10y ≤ 175
x ≥ 0
y ≥ 0
Section 3. Solving Linear Programming Problems Graphically (LECTURE NOTES 4)65
y
20
20x + 10y = 175
(0, 50/3)
16 20x + 10y <_ 175,
(5/2, 25/2) 25x + 15y <_ 250,
12 x >_ 0,
y >_0
8
0 x
0 2 4 6 8 10
(0,0)
(35/4, 0)
Maximize 6x + 3y
subject to x + 2y ≤ 8
2x + y ≤ 10
x ≥ 0
y ≥ 0
66 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
y
10
8
2x + y = 10
6
(0, 4)
4
(4, 2)
2
x + 2y = 8
0 x
0 2 4 6 8 10
(0,0)
(5, 0)
4. Another problem.
Minimize 3x + 2y
subject to − 32 x + y ≤ 52
2
3
x + y ≤ 9
3
2
x + y ≥ 11
2
− 43 x + y ≥ −3
x ≥ 0
y ≥ 0
Section 3. Solving Linear Programming Problems Graphically (LECTURE NOTES 4)67
y = (4/3)x -3
y = -(3/2)x + 11/2
y = 4 + 2x
R
y = 10 - x
y = 7 - (1/2)x
x
Figure 4.13 (Another graphical linear programming problem)
68 Chapter 4. Linear Programming: A Graphical Approach (LECTURE NOTES 4)
6. Last problem.
y
y = 4 + 2x
y = 10 - x
y = 7 - (1/2)x
x
Figure 4.14 (Another graphical linear programming problem)