Dr. Joon-Yeoul Oh: IEEN 5335 Principles of Optimization
Dr. Joon-Yeoul Oh: IEEN 5335 Principles of Optimization
Principles of Optimization
Lecture 4
Dr. Joon-Yeoul Oh
2
Revisit the Wyndor glass problem
3
Revisit the Wyndor glass
Corner Point Feasible solutions are:
(0,0), (0,6), (2,6), (4,3), (4,0)
Corner Point Infeasible solutions are:
(0,9), (4,6), (6,0)
4
Solving LP – issues
5
Solving LP – characteristics
6
Solving LP – The Simplex Algorithm
7
Solving LP – The Simplex Algorithm (2)
8
Solving LP – The Simplex Algorithm (3)
9
The Simplex Algorithm – steps
12
Standard form – slack variables
13
Standard form – slack variables example
Consider x1 <= 5
The amount of slack variable is the difference between the
original inequality and the equality
x1 + s = 5 and s >= 0
∑c x ≤ b
i =1
i i
∑c x + x
i =1
i i n +1
=b
14
Standard form – excess variables
15
Standard form – excess variables example
Consider x1 >= 5
The amount of slack variable is the difference between the
original inequality and the equality
x1 - e = 5 and e >= 0
∑c x ≥ b
i =1
i i
∑c x − x
i =1
i i n +1
=b
16
Standard form – obj. function
n n
min z ( x) = ∑ cjxj max - z ( x) = ∑ − cjxj
j =1 j =1
17
The Simplex Algorithm – terms
Non-Basic variable:
A variable equal to zero
Basic Variable
A variable that may be not 0
Right-Hand Side
Values of basic variables
18
Standard (augmented) form – example
Original form of the model
Max z = 3x1 + 5x2
s.t. x1 ≤ 4
2x2 ≤ 12
3x1 + 2x2 ≤ 18
x1, x2 ≥ 0
21
Selecting entering variable
23
First iteration
25
Second iteration – selecting entering var.
26
Second iteration – selecting leaving var.
27
Second iteration – graphic
28
Simplex Algorithm – do it yourself
29
Simplex Algorithm – do it yourself
Graphical method
30
Simplex Algorithm – do it yourself
31
Simplex Algorithm – do it yourself
Setting up
32
Simplex Algorithm – do it yourself
More…?
33