Professional Documents
Culture Documents
= min
x
B(i)
=
u
B(l)
1im,ui >0 u
i
u
l
5. Form a new basis B by replacing A
B(l)
with A
j
.
6. y
j
=
, y
B(i)
= x
B(i)
u
i
Slide 4
7. Form [B
1
|u]
8. Add to each one of its rows a multiple of the lth row in order to make the
last column equal to the unit vector e
l
.
1
The rst m columns is B .
1
2.1 Example
Slide 5
min x
1
+ 5x
2
2x
3
s.t. x
1
+ x
2
+ x
3
4
x
1
2
x
3
3
3x
2
+ x
3
6
x
1
, x
2
, x
3
0
Slide 6
B = {A
1
, A
3
, A
6
, A
7
}, BFS: x = (2, 0, 2, 0, 0, 1, 4)
c = (0, 7, 0, 2, 3, 0, 0)
1 1 0 0 0 1 0 0
B =
1 0 0 0
, B
1
=
1 1 0 0
0 1 1 0
1 1 1 0
0 1 0 1 1 1 0 1
(u
1
, u
3
, u
6
, u
7
)
= B
1
A
5
= (1, 1, 1, 1)
= min
2
1
,
1
1
,
4
1
= 1, l = 6
l = 6 (A
6
exits the basis). Slide 7
0 1 0 0 1
[B
1
|u] =
1 1 0 0 1
1 1 1 0 1
1 1 0 1 1
1 0 1 0
1
0 0 1 0
B =
1 1 1 0
0 0 1 1
2.2 Practical issues
Slide 8
Numerical Stability
B
1
needs to be computed from scratch once in a while, as errors accu
mulate
Sparsity
B
1
is represented in terms of sparse triangular matrices
3 Full tableau implementation
Slide 9
c
B
B
1
b c
c
B
B
1
A
B
1
b B
1
A
or, in more detail,
2
c
B
x
B
x
B(1)
.
.
.
x
B(m)
c
1
. . . c
n
| |
B
1
A
1
. . . B
1
A
n
| |
3.1 Example
min
s.t.
10x
1
12x
2
12x
3
x
1
+ 2x
2
+ 2x
3
2x
1
+ x
2
+ 2x
3
2x
1
+ 2x
2
+ x
3
x
1
, x
2
, x
3
0
20
20
20
Slide 10
min
s.t.
10x
1
12x
2
12x
3
x
1
+ 2x
2
+ 2x
3
2x
1
+ x
2
+ 2x
3
2x
1
+ 2x
2
+ x
3
x
1
, . . . , x
6
0
+ x
4
+ x
5
+ x
6
=
=
=
20
20
20
BFS: x = (0, 0, 0, 20, 20, 20)
B=[A
4
, A
5
, A
6
]
x
4
x
5
x
6
Slide 11
x
1
x
2
x
3
x
4
x
5
x
6
10 12 12 0 0 0
1 2 2 1 0 0
2* 1 2 0 1 0
2 2 1 0 0 1
0
= 20
= 20
= 20
c = c
c
B
1
A = c
= (10, 12, 12, 0, 0, 0) Slide 12
B
= 10
= 10
= 0
100
x
1
x
2
x
3
x
4
x
5
x
6
0 7 2 0 5 0
0 1.5 1* 1 0.5 0
1 0.5 1 0 0.5 0
0 1 1 0 1 1
Slide 13
3
x
4
x
1
x
6
x
1
x
2
x
3
x
4
x
5
x
6
120 0 4 0 2 4 0
x
3
= 10 0 1.5 1 1 0.5 0
x
1
= 0 1 1 0 1 1 0
x
6
= 10 0 2.5* 0 1 1.5 1
Slide 14
x
1
x
2
x
3
x
4
x
5
x
6
136 0 0 0 3.6 1.6 1.6
x
3
= 4 0 0 1 0.4 0.4 0.6
x
1
= 4 1 0 0 0.6 0.4 0.4
x
2
= 4 0 1 0 0.4 0.6 0.4
Slide 15
3
= (
= (
2
1
= (
= ( .
.
= ( 4, 4, 4)
.
.
.
4 Comparison of implementations
Slide 16
Full tableau
Memory O(mn)
Worst-case time O(mn)
Best-case time O(mn)
4
Revised simplex
O(m
2
)
O(mn)
O(m
2
)
.
.
.
.
.
.
.
.
next basis
optimal basis
1
2
3
4
5
6
7
8
7
9 Computational eciency
Exceptional practical behavior: linear in n
Worst case
Slide 28
max
s.t.
x
n
x
1
1
x
i1
x
i
1 x
i1
, i = 2, . . . , n
Slide 29
x
3
2
x
1
x
2
x
1
x
(a) (b)
Slide 30
Theorem
The feasible set has 2
n
vertices
The vertices can be ordered so that each one is adjacent to and has lower
cost than the previous one.
There exists a pivoting rule under which the simplex method requires
2
n
1 changes of basis before it terminates.
8
MIT OpenCourseWare
http://ocw.mit.edu
15.093J / 6.255J Optimization Methods
Fall 2009
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.