Beruflich Dokumente
Kultur Dokumente
Principles of Optimization
Lecture 6
Dr. Joon-Yeoul Oh
Simplex Algorithm
Some special cases
Big M method
Infeasible
Unbounded
Free variable
2
Big M method – Windor Glass Co. problem
3
Big M method – equality constraints
4
Big M method – Windor Glass Co. problem
Standard form
Max z – 3x1 – 5x2 + Ma5 = 0
s.t. x1 + x3 = 4
2x2 + x4 = 12
3x1 + 2x2 + a5 = 18
all variables >= 0
New z row
z – 3x1 – 5x2 + Ma5 = 0
- M(3x1 + 2x2 + a5 = 18)
z – (3M+3)x1 – (2M+5)x2 = -18M
5
Big M method – Windor Glass Co. problem
6
Two-phase – infeasible
Min z = x1
s.t. 2x1 - x2 >= 10
x1 + 2x2 <= 4
x1, x2 >= 0
7
Two-phase – infeasible
Graphical solution
8
Two-phase – infeasible
B.V z1 z2 x1 x2 s1 s2 a1 RHS
z1 -1 0 0 0 0 0 1 0
z2 0 -1 1 0 0 0 0 0
a1 0 0 2 -1 -1 0 1 10
s2 0 0 1 2 0 1 0 4
B.V z1 z2 x1 x2 s1 s2 a1 RHS
z1 -1 0 0 5 1 2 0 -2
z2 0 -1 0 -2 0 -1 0 -4
a1 0 0 0 -5 -1 -2 1 2
x1 0 0 1 2 0 1 0 4
10
Two-phase – unbounded
Max z = x1
s.t. 2x1 - x2 <= 10
x1 + 2x2 >= 4
x1, x2 >= 0
11
Two-phase – unbounded
Graphical solution
12
Two-phase – unbounded
B.V z1 z2 x1 x2 s1 s2 a1 RHS
z1 -1 0 0 0 0 0 1 0
z2 0 1 -1 0 0 0 0 0
s1 0 0 2 -1 1 0 0 10
a1 0 0 1 2 0 -1 1 4
B.V z1 z2 x1 x2 s1 s2 a1 RHS
z1 -1 0 0 0 0 0 1 0
z2 0 1 -1 0 0 0 0 0
s1 0 0 2.5 0 1 -0.5 0.5 12
x2 0 0 0.5 1 0 -0.5 0.5 2
16
Free variables
17
Free variables - example
Min z = x2
s.t. x1 + x2 <= 4
x1 + 3x2 >= 3
x1 >= 0 and x2 is free
18
Free variables - example
Graphical solution
19
Free variables - example
Adjusting formulation
Min z = p2 – n2
s.t. x1 + p2 – n2 + s1 = 4
x1 + 3p2 – 3n2 - s2 = 3
x1, p2, n2, s1, s2 >= 0
Optimal solution:
(x1, p2, n2) = (9/2, 0, 1/2), so (x1, x2) = (9/2, -1/2)
(s1, s2) = (0, 0)
z = -1/2
20
Multiple optimal solution
At the final tableau, check Z-row.
A value in Z-row for basic variable = zero
A value in Z-row for non-basic variable = not zero
However, if a problem has multiple optimal solution,
A value in Z-row for non-basic variable = zero
It means that the variable can be a basic variable.
Select the variable for entering variable and make another
iteration.
You will see different basic variable with same
objective, Z, value.
See next slide.
21
Multiple optimal solution
22