Linear Programming: A Geometric Approach
Linear Programming: A Geometric Approach
Programming Problems
6.1
Graphing Systems of Linear Inequalities
in Two Variables
ax by c 0
ax by c 0
ax by c 0
ax by c 0
ax by c 0
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
5
2x + 3y = 6
3
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
3
1
2x + 3y 6
(0, 0)
1
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
1
5
1
1
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
1
5
1
1
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)
5
1
1
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
5
(3, 0)
3
1
x 3y > 0
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
4x + 3y = 12
4
4x + 3y 12
3
2
1
1
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
3
xy0
xy=0
2
1
1
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
4 x 3 y 12
x y 0
xy=0
P ( 127 , 127 )
1
1
Example
The solution to the problem we just discussed is
4
3
4 x 3 y 12
x y 0
xy=0
P ( 127 , 127 )
1
1
Example
Determine the solution set for the system
x y 6 0
2x y 8 0
x0
y0
Solution
The intersection of the solution regions of the four
inequalities represents the solution to the system:
y
2x y 8 0
P (2, 4)
x y 60
1
1
Example
Determine the solution set for the system
x y 6 0
2x y 8 0
x0
y0
Solution
Note that the solution to this problem is bounded, since it
can be enclosed by a circle:
y
2x y 8 0
P (2, 4)
x y 60
1
1
6.2
Linear Programming Problems
Maximize
Subject to
P x 1.2 y
2 x y 180
x 3 y 300
x0
y0
Type-B
Time Available
Profit/Unit
$1.00
$1.20
Machine I
2 min
1 min
180 min
Machine II
1 min
3 min
300 min
Type-B
Time Available
Profit/Unit
$1.00
$1.20
Machine I
2 min
1 min
180 min
Machine II
1 min
3 min
300 min
P x 1.2 y
which is the objective function to be maximized.
Type-B
Time Available
Profit/Unit
$1.00
$1.20
Machine I
2 min
1 min
180 min
Machine II
1 min
3 min
300 min
2x y
and must not exceed 180 minutes.
Thus, we have the inequality
2 x y 180
Type-B
Time Available
Profit/Unit
$1.00
$1.20
Machine I
2 min
1 min
180 min
Machine II
1 min
3 min
300 min
x 3y
and must not exceed 300 minutes.
Thus, we have the inequality
x 3 y 300
Type-B
Time Available
Profit/Unit
$1.00
$1.20
Machine I
2 min
1 min
180 min
Machine II
1 min
3 min
300 min
x0
y0
P x 1.2 y
subject to the system of inequalities
2 x y 180
x 3 y 300
x0
y0
We will discuss the solution to this problem in section 6.4.
Brand-B
Iron
40 mg
10 mg
2400 mg
Vitamin B1
10 mg
15 mg
2100 mg
Vitamin B2
5mg
15 mg
1500 mg
Cost/Pill
Minimum Requirement
Brand-B
Iron
40 mg
10 mg
2400 mg
Vitamin B1
10 mg
15 mg
2100 mg
Vitamin B2
5mg
15 mg
1500 mg
Cost/Pill
Minimum Requirement
C 6x 8 y
and is the objective function to be minimized.
Brand-B
Iron
40 mg
10 mg
2400 mg
Vitamin B1
10 mg
15 mg
2100 mg
Vitamin B2
5mg
15 mg
1500 mg
Cost/Pill
Minimum Requirement
40 x 10 y 2400
Brand-B
Iron
40 mg
10 mg
2400 mg
Vitamin B1
10 mg
15 mg
2100 mg
Vitamin B2
5mg
15 mg
1500 mg
Cost/Pill
Minimum Requirement
10 x 15 y 2100
Brand-B
Iron
40 mg
10 mg
2400 mg
Vitamin B1
10 mg
15 mg
2100 mg
Vitamin B2
5mg
15 mg
1500 mg
Cost/Pill
Minimum Requirement
5 x 15 y 1500
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
We will discuss the solution to this problem in section 6.4.
6.3
Graphical Solutions
of Linear Programming Problems
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.
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.
x 3 y 300
x0
y0
We can now solve the problem graphically.
2 x y 180
considering only positive values for x and y:
y
200
100
(0, 180)
2 x y 180
(90, 0)
100
200
2 x y 180
300
x 3 y 300
considering only positive values for x and y:
y
200
100
(0, 100)
x 3 y 300
x 3 y 300
(300, 0)
100
200
300
100
x 3 y 300
S
100
200
2 x y 180
300
The vertices are A(0, 0), B(90, 0), C(48, 84), and D(0, 100).
y
200
D(0, 100)
C(48, 84)
100
A(0, 0)
x 3 y 300
B(90, 0)
100
200
2 x y 180
300
Vertex
P = x + 1.2 y
A(0, 0)
B(90, 0)
90
200
C(48, 84)
148.8
D(0, 100)
D(0, 100)
120
C(48, 84)
100
A(0, 0)
x 3 y 300
B(90, 0)
100
200
2 x y 180
300
P = x + 1.2 y
A(0, 0)
B(90, 0)
90
200
C(48, 84)
148.8
D(0, 100)
D(0, 100)
120
C(48, 84)
100
A(0, 0)
x 3 y 300
B(90, 0)
100
200
2 x y 180
300
10 x 15 y 2100
5 x 15 y 1500
x, y 0
We can now solve the problem graphically.
40 x 10 y 2400
considering only positive values for x and y:
40 x 10 y 2400
y
(0, 240)
200
100
(60, 0)
100
200
300
10 x 15 y 2100
considering only positive values for x and y:
y
10 x 15 y 2100
200
(0, 140)
100
(210, 0)
100
200
300
5 x 15 y 1500
considering only positive values for x and y:
y
200
5 x 15 y 1500
100
(0, 100)
(300, 0)
100
200
300
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
200
S
100
100
200
300
The vertices are A(0, 240), B(30, 120), C(120, 60), and
D(300, 0).
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
y
A(0, 240)
200
B(30, 120)
100
C(120, 60)
D(300, 0)
100
200
300
Vertex
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
y
A(0, 240)
200
A(0, 240)
1920
B(30, 120)
1140
C(120, 60)
1200
D(300, 0)
1800
B(30, 120)
100
C = 6x + 8y
C(120, 60)
D(300, 0)
100
200
300
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
y
A(0, 240)
200
A(0, 240)
1920
B(30, 120)
1140
C(120, 60)
1200
D(300, 0)
1800
B(30, 120)
100
C = 6x + 8y
C(120, 60)
D(300, 0)
100
200
300
6.4
The Simplex Method:
Standard Maximization Problems
Constant
3/5 1/5
48
2/5
84
0 9/25 7/25
1/5
148 4/5
P 0
2 x y 180
x 3 y 300
x, y 0
This is a standard maximization problem and may be
x 3 y 300
and turn these into equations, getting
2x y u
180
x 3y
v 300
Next, rewrite the objective function in the form
6
x y P 0
5
6
x y
P 0
5
Thus, the initial tableau associated with this system is
x
Constant
180
300
6/5
simplex tableau:
x
Constant
180
300
6/5
Constant
180
300
6/5
Constant
180
300
6/5
Constant
180
180
1
180
300
300
3
100
6/5
Constant
180
300
6/5
1
3
R2
Constant
180
300
6/5
1
3
R2
Constant
180
1/3
1/3
100
6/5
R1 R2
R3 65 R2
Constant
180
1/3
1/3
100
6/5
R1 R2
R3 65 R2
Constant
5/3
1 1/3
80
1/3
1/3
100
3/5
2/5
120
Step 3.
Constant
5/3
1 1/3
80
1/3
1/3
100
3/5
2/5
120
Constant
5/3
1 1/3
80
1/3
1/3
100
3/5
2/5
120
Constant
5/3
1 1/3
80
80
5/3
48
1/3
1/3
100
100
1/3
300
3/5
2/5
120
Ratio
Constant
5/3
1 1/3
80
1/3
1/3
100
3/5
2/5
120
3
5
R1
Constant
5/3
1 1/3
80
1/3
1/3
100
3/5
2/5
120
3
5
R1
Constant
3/5 1/5
48
1/3
1/3
100
3/5
2/5
120
Constant
R2 13 R1
3/5 1/5
48
R3 53 R1
1/3
1/3
100
3/5
2/5
120
R2 13 R1
R3 53 R1
Constant
3/5 1/5
48
2/5
84
0 9/25 7/25
1/5
148 4/5
Constant
3/5 1/5
48
2/5
84
0 9/25 7/25
1/5
148 4/5
Constant
3/5 1/5
48
2/5
84
0 9/25 7/25
1/5
148 4/5
6.5
The Simplex Method:
Standard Minimization Problems
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
Example
We can use the simplex method to solve this problem by
subject to 5 x 4 y 32
x 2 y 10
x, y 0
This problem can now be solved using the simplex method
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
u P 2vx 3 yP
Constant
32
10
Example
Solution
x
Constant
32
10
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
32
10
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
Ratio
32
32
4
10
10
2
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
32
10
Example
Solution
xMaximize
y
u P 2vx 3 yP
1
2
R2
Constant
32
10
Example
Solution
xMaximize
y
u P 2vx 3 yP
1
2
R2
Constant
32
1/2
1/2
Example
Solution
R1 4 R2
R3 3R2
xMaximize
y
u P 2vx 3 yP
Constant
32
1/2
1/2
Example
Solution
R1 4 R2
R3 3R2
xMaximize
y
u P 2vx 3 yP
Constant
12
1/2
1/2
1/2
3/2
15
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
12
1/2
1/2
1/2
3/2
15
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
12
1/2
1/2
1/2
3/2
15
Example
Solution
xMaximize
y
u P 2vx 3 yP
Constant
12
1/2
1/2
1/2
3/2
15
12
3
5
1/2
4
10
Example
Solution
x
Constant
12
1/2
1/2
1/2
3/2
15
Example
Solution
1
3
R1
Constant
12
1/2
1/2
1/2
3/2
15
Example
Solution
1
3
R1
Constant
1/3
2/3
1/2
1/2
1/2
3/2
15
Example
Solution
R2 12 R1
R3 12 R1
Constant
1/3
2/3
1/2
1/2
1/2
3/2
15
Example
Solution
R2 12 R1
R3 12 R1
Constant
1/3
2/3
1/6
5/6
1/6
7/6
17
Example
Solution
x
Constant
1/3
2/3
1/6
5/6
1/6
7/6
17
Example
Solution
x
Constant
1/3
2/3
1/6
5/6
1/6
7/6
17
Example
Write the dual problem associated with this problem:
Minimize
subject to
C 6x 8 y
40 x 10 y 2400
10 x 15 y 2100
5 x 15 y 1500
x, y 0
Primal
Problem
Constant
40
10
2400
10
15
2100
15
1500
Example
x
Constant
40
10
2400
10
15
2100
15
1500
and head the three columns of the resulting array with the
three variables u, v, and w, obtaining
u
Constant
40
10
10
15
15
2400 2100
1500
Example
u
Constant
40
10
10
15
15
2400 2100
1500
40u 10v 5w 6
10u 15v 15w 8
u, v , w 0
Dual
Problem
Theorem 1
The Fundamental Theorem of Duality
A primal problem has a solution if and only if the
corresponding dual problem has a solution.
Furthermore, if a solution exists, then:
a. The objective functions of both the primal and
the dual problem attain the same optimal value.
b. The optimal solution to the primal problem
appears under the slack variables in the last row
of the final simplex tableau associated with the
dual problem.
Example
Complete the solution of the problem from our last example:
subject to
40u 10v 5w 6
10u 15v 15w 8
u, v , w 0
Dual
Problem
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
P0
Example
Solution
Next, we transcribe the coefficients of the system of
equations
40u 10v
5w x
6
10u 15v 15w
y
8
P0
Constant
40
10
10
15
15
2400 2100 1500
0
0
1
0
0
1
8
0
Example
Solution
Continue with the simplex iterative method until a final
tableau is obtained with the solution for the problem:
u
Constant
3/20
3/100
1/50
1/50
0
0
1
0
11/10
1/50
30
2/25
0
1
13/25
450
120
1140
End of
Chapter