Chapter2 - Graphical Method
Chapter2 - Graphical Method
Chapter 2:
Linear Programming: A Geometric Approach
2.1
Graphing Systems of Linear Inequalities
in Two Variables
4x + 3y
3y = 12
4 4 x 3 y 12
x y 0
3
x–y=0
2 12 12
P( , )
7 7
x
–1 1 2 3
1
3/5/2018
2
3/5/2018
Examples
Determine the solution set for the inequality 2x + 3y 6.
Solution
Replacing the inequality with an equality =, we obtain
the equation 2x + 3y = 6, whose graph is:
y
7
2x + 3y = 6 3
1
x
–5 –3 –1 1 3 5
–1
Examples
Determine the solution set for the inequality 2x + 3y 6.
Solution
Picking the origin as a test point, we find 2(0) + 3(0) 6,
or 0 6, which is false.
Thus, the solution set is:
y
7
5
2x + 3y 6
2x + 3y = 6 3
1
(0, 0)
x
–5 –3 –1 1 3 5
–1
3
3/5/2018
Examples
Graph x – 3y > 0.
Solution
Replacing the inequality > with an equality =, we obtain
the equation x – 3y = 0, whose graph is:
y
3
x – 3y = 0
x
–5 –3 1 3 5
–1
–3
4
3/5/2018
Examples
Graph x – 3y > 0.
Solution
We use a dashed line to indicate the line itself will not be
part of the solution, since we are dealing with a strict
inequality >.
y
3
x – 3y = 0
x
–5 –3 1 3 5
–1
–3
Examples
Graph x – 3y > 0.
Solution
Since the origin lies on the line, we cannot use the origin
as a testing point:
y
3
x – 3y = 0
1
(0, 0)
x
–5 –3 1 3 5
–1
–3
5
3/5/2018
Examples
Graph x – 3y > 0.
Solution
Picking instead (3, 0) as a test point, we find (3) – 2(0) > 0,
or 3 > 0, which is true.
Thus, the solution set is:
y
3
x – 3y = 0
1
(3, 0)
x
–5 –3 1 3 5
–1
x – 3y > 0
–3
6
3/5/2018
Example
Determine the solution set for the system
4 x 3 y 12
x y 0
Solution
The intersection of the solution regions of the two
inequalities represents the solution to the system:
y
4x + 3y = 12
4
3 4x + 3y 12
x
–1 1 2 3
Example
Determine the solution set for the system
4 x 3 y 12
x y 0
Solution
The intersection of the solution regions of the two
inequalities represents the solution to the system:
y
4
x–y0 x–y=0
3
x
–1 1 2 3
7
3/5/2018
Example
Determine the solution set for the system
4 x 3 y 12
x y 0
Solution
The intersection of the solution regions of the two
inequalities represents the solution to the system:
y
4x + 3y = 12
4 4 x 3 y 12
x y 0 x–y=0
3
2
P ( 127 , 127 )
1
x
–1 1 2 3
8
3/5/2018
Example
4x + 3y = 12
4 4 x 3 y 12
x y 0
3
x–y=0
2
P ( 127 , 127 )
1
x
–1 1 2 3
Example
Determine the solution set for the system
x y60 2x y 8 0 x0 y0
Solution
The intersection of the solution regions of the four
inequalities represents the solution to the system:
7 2x y 8 0
5
P (2, 4)
3
x y60
1
x
–1 1 3 5 9
9
3/5/2018
Example
Determine the solution set for the system
x y60 2x y 8 0 x0 y0
Solution
Note that the solution to this problem is bounded, since it
can be enclosed by a circle:
7 2x y 8 0
5
P (2, 4)
3
x y60
1
x
–1 1 3 5 9
2.2
Linear Programming Problems
Maximize P x 1.2 y
Subject to 2 x y 180
x 3 y 300
x0
y0
10
3/5/2018
11
3/5/2018
12
3/5/2018
2x y
and must not exceed 180 minutes.
Thus, we have the inequality
2 x y 180
13
3/5/2018
x0
y0
P x 1.2 y
subject to the system of inequalities
2 x y 180
x 3 y 300
x0
y0
14
3/5/2018
15
3/5/2018
C 6x 8 y
and is the objective function to be minimized.
40 x 10 y 2400
16
3/5/2018
10 x 15 y 2100
5 x 15 y 1500
17
3/5/2018
C 6x 8 y
subject to the system of inequalities
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
x0
y0
2.3
Graphical Solutions
of Linear Programming Problems
y
40 x 10 y 2400
A(0, 240)
200
10 x 15 y 2100
S
B(30, 120)
5 x 15 y 1500
100
C(120, 60)
D(300, 0)
x
100 200 300
18
3/5/2018
Theorem 1
Linear Programming
If a linear programming problem has a solution,
then it must occur at a vertex, or corner point, of
the feasible set S associated with the problem.
If the objective function P is optimized at two
adjacent vertices of S, then it is optimized at every
point on the line segment joining these vertices, in
which case there are infinitely many solutions to
the problem.
19
3/5/2018
Theorem 2
Existence of a Solution
Suppose we are given a linear programming
problem with a feasible set S and an objective
function P = ax + by.
a. If S is bounded, then P has both a maximum and
a minimum value on S.
b. If S is unbounded and both a and b are
nonnegative, then P has a minimum value on S
provided that the constraints defining S include
the inequalities x 0 and y 0.
c. If S is the empty set, then the linear
programming problem has no solution: that is, P
has neither a maximum nor a minimum value.
20
3/5/2018
y
200 (0, 180)
100 2 x y 180
(90, 0)
x
100 200 300
2 x y 180
21
3/5/2018
y
200
(0, 100)
100 x 3 y 300
x 3 y 300
(300, 0)
x
100 200 300
y
200
100
S x 3 y 300
x
100 200 300
2 x y 180
22
3/5/2018
y
200
D(0, 100)
100 C(48, 84)
S x 3 y 300
A(0, 0) B(90, 0)
x
100 200 300
2 x y 180
Vertex P = x + 1.2 y
A(0, 0) 0
y
B(90, 0) 90
200
C(48, 84) 148.8
D(0, 100) D(0, 100) 120
100 C(48, 84)
S x 3 y 300
A(0, 0) B(90, 0)
x
100 200 300
2 x y 180
23
3/5/2018
Vertex P = x + 1.2 y
A(0, 0) 0
y
B(90, 0) 90
200
C(48, 84) 148.8
D(0, 100) D(0, 100) 120
100 C(48, 84)
S x 3 y 300
A(0, 0) B(90, 0)
x
100 200 300
2 x y 180
24
3/5/2018
y
40 x 10 y 2400
(0, 240)
200
100
(60, 0)
x
100 200 300
25
3/5/2018
200
10 x 15 y 2100
(0, 140)
100
(210, 0)
x
100 200 300
200
(300, 0)
x
100 200 300
26
3/5/2018
y
40 x 10 y 2400
200
10 x 15 y 2100
S
5 x 15 y 1500
100
x
100 200 300
y
40 x 10 y 2400
A(0, 240)
200
10 x 15 y 2100
S
B(30, 120)
5 x 15 y 1500
100
C(120, 60)
D(300, 0)
x
100 200 300
27
3/5/2018
Vertex C = 6x + 8y
A(0, 240) 1920
y B(30, 120) 1140
40 x 10 y 2400 C(120, 60) 1200
A(0, 240)
D(300, 0) 1800
200
10 x 15 y 2100
S
B(30, 120)
5 x 15 y 1500
100
C(120, 60)
D(300, 0)
x
100 200 300
28
3/5/2018
2.4
The Simplex Method:
Standard Maximization Problems
x y u v P Constant
1 0 3/5 –1/5 0 48
0 1 –1/5 2/5 0 84
0 0 9/25 7/25 1 148 4/5
29
3/5/2018
30
3/5/2018
31
3/5/2018
2x y u 180
x 3y v 300
6
x yP0
5
x y u v P Constant
2 1 1 0 0 180
1 3 0 1 0 300
–1 – 6/5 0 0 1 0
32
3/5/2018
x y u v P Constant
2 1 1 0 0 180
1 3 0 1 0 300
–1 – 6/5 0 0 1 0
33
3/5/2018
34
3/5/2018
35
3/5/2018
1
2 1 1 0 0 180
3 R2
1 3 0 1 0 300
–1 – 6/5 0 0 1 0
1
2 1 1 0 0 180
3 R2
1/3 1 0 1/3 0 100
–1 – 6/5 0 0 1 0
36
3/5/2018
37
3/5/2018
38
3/5/2018
39
3/5/2018
3
5/3 0 1 –1/3 0 80
5 R1
1/3 1 0 1/3 0 100
–3/5 0 0 2/5 1 120
3
1 0 3/5 –1/5 0 48
5 R1
1/3 1 0 1/3 0 100
–3/5 0 0 2/5 1 120
40
3/5/2018
41
3/5/2018
42
3/5/2018
2.5
The Simplex Method:
Standard Minimization Problems
u v w x y P Constant
1 0 –3/20 3/100 –1/50 0 1/50
0 1 11/10 –1/50 2/25 0 13/25
0 0 450 30 120 1 1140
43
3/5/2018
Example
Solve the following linear programming problem:
Minimize C 2 x 3 y
subject to 5 x 4 y 32
x 2 y 10
x, y 0
This problem involves the minimization of the objective
function and so is not a standard maximization problem.
Note, however, that all the other conditions for a standard
maximization hold true.
Example
We can use the simplex method to solve this problem by
converting the objective function from minimizing C to its
equivalent of maximizing P = – C.
Thus, the restated linear programming problem is
Maximize P 2x 3y
subject to 5 x 4 y 32
x 2 y 10
x, y 0
44
3/5/2018
Example
Solution
Step 1. Set up the initial simplex tableau.
✦ Turn the constraints into equations adding to them the
slack variables u and v. Also rearrange the objective
function and place it below the constraints:
5x 4 y u 32
x 2y v 10
2 x 3 y P 0
✦ Write the coefficients of the system in a tableau:
xMaximize
y uP 2vx 3 y P Constant
5 4 1 0 0 32
1 2 0 1 0 10
–2 –3 0 0 1 0
Example
Solution
x y u v P Constant
5 4 1 0 0 32
1 2 0 1 0 10
–2 –3 0 0 1 0
45
3/5/2018
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
5 4 1 0 0 32
1 2 0 1 0 10
–2 –3 0 0 1 0
Example
Solution
xMaximize
y uP 2vx 3 y P Constant Ratio
5 4 1 0 0 32 32
4 8
1 2 0 1 0 10 10
2 5
–2 –3 0 0 1 0
46
3/5/2018
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
5 4 1 0 0 32
1 2 0 1 0 10
–2 –3 0 0 1 0
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
5 4 1 0 0 32
1
2 R2 1 2 0 1 0 10
–2 –3 0 0 1 0
47
3/5/2018
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
5 4 1 0 0 32
1
2 R2 1/2 1 0 1/2 0 5
–2 –3 0 0 1 0
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
R1 4 R2 5 4 1 0 0 32
R3 3R2 1/2 1 0 1/2 0 5
–2 –3 0 0 1 0
48
3/5/2018
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
R1 4 R2 3 0 1 –2 0 12
R3 3R2 1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
3 0 1 –2 0 12
1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
49
3/5/2018
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
3 0 1 –2 0 12
1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
Example
Solution
xMaximize
y uP 2vx 3 y P Constant
3 0 1 –2 0 12 12
3 4
1/2 1 0 1/2 0 5 5
1/2 10
–1/2 0 0 3/2 1 15
50
3/5/2018
Example
Solution
x y u v P Constant
3 0 1 –2 0 12
1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
Example
Solution
x y u v P Constant
1 3 0 1 –2 0 12
3 R1
1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
51
3/5/2018
Example
Solution
x y u v P Constant
1 1 0 1/3 –2/3 0 4
3 R1
1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
Example
Solution
x y u v P Constant
R2 R1 1
2
1 0 1/3 –2/3 0 4
R3 12 R1 1/2 1 0 1/2 0 5
–1/2 0 0 3/2 1 15
52
3/5/2018
Example
Solution
x y u v P Constant
R2 R1
1
2
1 0 1/3 –2/3 0 4
R3 12 R1 0 1 –1/6 5/6 0 3
0 0 1/6 7/6 1 17
Example
Solution
x y u v P Constant
1 0 1/3 –2/3 0 4
0 1 –1/6 5/6 0 3
0 0 1/6 7/6 1 17
53
3/5/2018
Example
Solution
x y u v P Constant
1 0 1/3 –2/3 0 4
0 1 –1/6 5/6 0 3
0 0 1/6 7/6 1 17
54
3/5/2018
Example
Write the dual problem associated with this problem:
Minimize C 6x 8 y
subject to 40 x 10 y 2400
10 x 15 y 2100 Primal
Problem
5 x 15 y 1500
x, y 0
We first write down a tableau for the primal problem:
x y Constant
40 10 2400
10 15 2100
5 15 1500
6 8
55
3/5/2018
Example
x y Constant
40 10 2400
10 15 2100
5 15 1500
6 8
u v w Constant
40 10 5 6
10 15 15 8
2400 2100 1500
Example
u v w Constant
40 10 5 6
10 15 15 8
2400 2100 1500
u, v, w 0
56
3/5/2018
Theorem 1
Example
Complete the solution of the problem from our last example:
u, v, w 0
57
3/5/2018
Example
Solution
The dual problem associated with the given primal
problem is a standard maximization problem.
Thus, we can proceed with the simplex method.
First, we introduce to the system of equations the slack
variables x and y, and restate the inequalities as equations,
obtaining
40u 10v 5w x 6
10u 15v 15w y 8
2400u 2100 v 1500 w P0
Example
Solution
Next, we transcribe the coefficients of the system of
equations
40u 10v 5w x 6
10u 15v 15w y 8
2400u 2100 v 1500 w P0
into an initial simplex tableau:
u v w x y P Constant
40 10 5 1 0 0 6
10 15 15 0 1 0 8
–2400 –2100 –1500 0 0 1 0
58
3/5/2018
Example
Solution
Continue with the simplex iterative method until a final
tableau is obtained with the solution for the problem:
u v w x y P Constant
1 0 –3/20 3/100 –1/50 0 1/50
0 1 11/10 –1/50 2/25 0 13/25
0 0 450 30 120 1 1140
End of
Chapter
59