












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













1
AEDEcon AEDEcon 702
702
Slide Slide
2
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Consider the simplex algorithm applied to the maximization below Consider the simplex algorithm applied to the maximization below
Resource Resource
Desk Desk
Table Table
ChairChair
Lumber Lumber
8 board ft8 board ft
6 board ft6 board ft
1 board ft 1 board ft
Finishing hours Finishing hours
4 hours4 hours
2 hours2 hours
1.5 hours 1.5 hours
Carpentry hours Carpentry hours
2 hours2 hours
1.5 hours1.5 hours
0.5 hours 0.5 hours
4
AEDEcon AEDEcon 702
702
Slide Slide
4.3 4.
The Simplex Algorithm (max LPs)The Simplex Algorithm (max LPs)
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
2
1
2
3
5
AEDEcon AEDEcon 702
702
Slide Slide
4.3 4.
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Canonical Form Canonical Form
BasicBasic
Variable Variable
Row 0 Row 0
z z
60x60x
1 1
30x 30x
22
20x 20x
3 3
= 0 = 0
z = 0z = 0
Row 1Row 1
8x 8x
11
6x
6x
22
x
x
33
11
= 48 = 48
ss
1 1
= 48 = 48
Row 2Row 2
4x 4x
11
2x
2x
22
33
22
= 20 = 20
ss
2 2
= 20 = 20
Row 3 Row 3
2x 2x
11
22
33
33
= 8 = 8
ss
3 3
= 8 = 8
Row 4 Row 4
xx
2 2
44
= 5 = 5
ss
4 4
= 5 = 5
1
2
3
1
2
3
4
1
2
3
4
1
2
3
Since each constraint
is then in canonical form (BVs have a coefficient = 1 in one row and zeros inall other rows) with a nonnegative rhs, a bfs can be obtained by inspection.
7
AEDEcon AEDEcon 702
702
Slide Slide
4.3 4.
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Once we have obtained a bfs, we need to determine whether it is Once we have obtained a bfs, we need to determine whether it is
optimal. To do this, we try to determine if there is any way z optimal. To do this, we try to determine if there is any way z
can be can be
increased by increasing some nonbasic variable from its current increased by increasing some nonbasic variable from its current
value of zero while holding all other nonbasic variables at thei value of zero while holding all other nonbasic variables at thei
r r
current values of zero. Solving for z in row 0 yields: current values of zero. Solving for z in row 0 yields:
Z = 60x
1
2
3
1
1
1
1
8
AEDEcon AEDEcon 702
702
Slide Slide
4.3 4.
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
10
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
To make x To make x
1 1
a basic variable in row 3, we use a basic variable in row 3, we use
elementary row operations (ero elementary row operations (ero
’ ’
s) to make x s) to make x
11
have a coefficient of 1 in row 3 and a coefficient have a coefficient of 1 in row 3 and a coefficient
of 0 in all other rows. This procedure is called of 0 in all other rows. This procedure is called
pivoting on row 3; and row 3 is called the pivot pivoting on row 3; and row 3 is called the pivot
row. The final result is that x row. The final result is that x
1 1
replaces s replaces s
3 3
as the as the
basic variable for row 3. The term in the pivot basic variable for row 3. The term in the pivot
row that involves the entering basic variable is row that involves the entering basic variable is
called the pivot term. called the pivot term.
The Gauss The Gauss
Jordan method using ero Jordan method using ero
’ ’
s and simplex s and simplex
tableaus shown on the next slide makes x tableaus shown on the next slide makes x
1 1
a a
basic variable. (For review see Chapter 2) basic variable. (For review see Chapter 2)
11
AEDEcon AEDEcon 702
702
Slide Slide
ero 1
z
x
x
x
s
s
s
s
rhs
ero
0
1
1
8
6
1
1
48
2
4
2
1
20
3
1
4
row 3 divided by 1/
4
1
1
5
ero 2
z
x
x
x
s
s
s
s
rhs
0
1
15
30
240
60 times row 3 added to row 0
1
8
6
1
1
48
2
4
2
1
20
3
1
4
4
1
1
5
ero 3
z
x
x
x
s
s
s
s
rhs
0
1
15
30
240
1
1
16
2
4
2
1
20
3
1
4
4
1
1
5
ero 4
z
x
x
x
s
s
s
s
rhs
0
1
15
30
240
1
1
16
2
1
4
3
1
4
4
1
1
5
13
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Returning to Step 3, we attempt to determine if the current bfs Returning to Step 3, we attempt to determine if the current bfs
is optimal. is optimal.
3
2
3
3
3
14
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Begin iteration (pivot) 2 Begin iteration (pivot) 2Performing the ratio test using x Performing the ratio test using x
33
as the entering variable yields the as the entering variable yields the
following results (holding other NBVs to zero):following results (holding other NBVs to zero):
1
3
1
3
2
3
1
3
4
3
4
1
3
16
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs) The Simplex Algorithm (max LPs)
Canonical Form 2 Canonical Form 2
Basic Basic
Variable Variable
Row 0 Row 0
z
5x
z
5x
2 2
22
33
z = 280 z = 280
Row 1 Row 1
2x 2x
22
1 1
2 2
8s8s
33
s s
1 1
Row 2 Row 2
2x 2x
22
x
x
3 3
2 2
4s 4s
3 3
x x
3 3
Row 3 Row 3
x x
11
22
0.5 s0.5 s
22
33
x x
1 1
Row 4 Row 4
x x
22
4 4
s s
4 4
BV = {z, s
1
, x
3
, x
1
, s
4
} and NBV = {s
3
, s
2
, x
2
1
3
1
4
2
3
2
17
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (max LPs)The Simplex Algorithm (max LPs)
2
2
3
19
AEDEcon AEDEcon 702
702
Slide Slide
The Simplex Algorithm (min LPs) The Simplex Algorithm (min LPs)
The optimal solution (to the max problem) is The optimal solution (to the max problem) is
z = 12, x z = 12, x
22
= 4, s = 4, s
22
= 10, x = 10, x
11
= s= s
1 1
= 0. Then the optimal solution to the min problem is z = = 0. Then the optimal solution to the min problem is z =
12, x 12, x
2 2
=4, s =4, s
2 2
10, x 10, x
1 1
= s= s
2 2
= 0. The min LP objective function confirms this: z = 2x = 0. The min LP objective function confirms this: z = 2x
11
3x 3x
2 2
20
AEDEcon AEDEcon 702
702
Slide Slide
Unbounded LPs Unbounded LPs
For some LPs, there exist points in the feasible For some LPs, there exist points in the feasible
region for which z assumes arbitrarily large (in region for which z assumes arbitrarily large (in
max problems) or arbitrarily small (in min max problems) or arbitrarily small (in min
problems) values. When this occurs, we say the problems) values. When this occurs, we say the
LP is unbounded. LP is unbounded.
An unbounded LP occurs in a max problem if there An unbounded LP occurs in a max problem if there
is a nonbasic variable with a negative coefficient is a nonbasic variable with a negative coefficient
in row 0 and there is no constraint that limits how in row 0 and there is no constraint that limits how
large we can make this NBV. large we can make this NBV.
Specifically, an unbounded LP for a max problemoccurs when a variable with a negative coefficient inrow 0 has a non positive coefficient in each constraint