Linear Programming IV
Linear Programming IV
Linear Programming IV
Bumho Son
College of Business Administration, CAU
Management Science Linear Programming IV
Simplex Method
2
Management Science Linear Programming IV
Simplex Method
▪ Created by U.S. mathematician George Dantzig in 1947
▪ Iterative technique that begins with a basic feasible solution as a
starting point
▪ Through algebraic manipulation, the solution is improved until no
further improvement(optimal solution)
▪ Investigates only BFSs(Basic Feasible Solutions)
▪ Feasible solution
▪ Basic Feasible solution
3
Management Science Linear Programming IV
Example Problem
Maximize Z = 60 x1 + 50 x2
subject to
4 x1 + 10 x2 100
2 x1 + x2 22
3 x1 + 3 x2 39
x1 , x2 0
4
Management Science Linear Programming IV
Slack Variable
▪ Simplex method requires all constraints to be equality(=) for
introducing the slack variables
Maximize Z = 60 x1 + 50 x2
subject to
4 x1 + 10 x2 + s1 = 100
2 x1 + x2 + s2 = 22
3 x1 + 3 x2 + s3 = 39
All variables 0
5
Management Science Linear Programming IV
General Notation
▪ Notation used in the simplex tableau:
6
Management Science Linear Programming IV
7
Management Science Linear Programming IV
Feasible Solutions
▪ Corner points: solutions with only 3 variables
▪ Because there are 3 equations
▪ The other 2 variables are set to be 0
5
▪ There are 3
= 10 corner points
4 x1 + 10 x2 + s1 = 100
2 x1 + x2 + s2 = 22
3x1 + 3x2 + s3 = 39
8
Management Science Linear Programming IV
9
Management Science Linear Programming IV
10
Management Science Linear Programming IV
4 x1 + 10 x2 + s1 = 100
2 x1 + x2 + s2 = 22 AX=b
3x1 + 3x2 + s3 = 39
x1
4 10 1 0 0 x2 100
2 1 0 1 0 s1 = 22
3 3 0 0 1 s 39
2
s
3
11
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 4 10 1 0 0 100
𝒔𝟐 0 2 1 0 1 0 22
𝒔𝟑 0 3 3 0 0 1 39
𝒁𝒋 0 0 0 0 0 0
𝒁𝒋 − 𝒄𝒋 -60 -50 0 0 0
Initialization: Choose (x1,x2) = (0,0) to be the initial Corner-Point Feasible solution (CPF)
Is it optimal? Since increasing non-basic variable can increase Z, it’s not optimal.
Then move to the edging line on either x1 or x2.
Should we increase x1 or x2?
12
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 4 10 1 0 0 100 25
𝒔𝟐 0 2 1 0 1 0 22 11
𝒔𝟑 0 3 3 0 0 1 39 13
𝒁𝒋 0 0 0 0 0 0
𝒁𝒋 − 𝒄𝒋 -60 -50 0 0 0
13
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 4 10 1 0 0 100 25
𝒔𝟐 0 2 1 0 1 0 22 11
𝒔𝟑 0 3 3 0 0 1 39 13
𝒁𝒋 0 0 0 0 0 0
𝒁𝒋 − 𝒄𝒋 -60 -50 0 0 0
14
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 4 10 1 0 0 100
𝒔𝟐 0 1 1/2 0 1/2 0 11
𝒔𝟑 0 3 3 0 0 1 39
𝒁𝒋
𝒁𝒋 − 𝒄𝒋
15
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56
𝒔𝟐 0 1 1/2 0 1/2 0 11
𝒔𝟑 0 0 3/2 0 -3/2 1 6
𝒁𝒋
𝒁𝒋 − 𝒄𝒋
2. Make all other values in 𝑥1 column by doing row-wise calculation using 𝑠2 row
16
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56
𝒙𝟏 60 1 1/2 0 1/2 0 11
𝒔𝟑 0 0 3/2 0 -3/2 1 6
𝒁𝒋 60 40 0 30 0 660
𝒁𝒋 − 𝒄𝒋 0 -10 0 30 0
3. Replace 𝑠2 → 𝑥1
4. Calculate 𝑍𝑗 and 𝑍𝑗 − 𝑐𝑗
17
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56
𝒙𝟏 60 1 1/2 0 1/2 0 11
𝒔𝟑 0 0 3/2 0 -3/2 1 6
𝒁𝒋 60 40 0 30 0 660
𝒁𝒋 − 𝒄𝒋 0 -10 0 30 0
Currently, this Simplex table is saying that solution is (𝑥1 = 11, 𝑥2 = 0, 𝑠1 = 56, 𝑠2 = 0, 𝑠3 =
5). Is this optimal?
No.
18
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56 7
𝒙𝟏 60 1 1/2 0 1/2 0 11 22
𝒔𝟑 0 0 3/2 0 -3/2 1 6 4
𝒁𝒋 60 40 0 30 0 660
𝒁𝒋 − 𝒄𝒋 0 -10 0 30 0
19
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56 7
𝒙𝟏 60 1 1/2 0 1/2 0 11 22
𝒔𝟑 0 0 3/2 0 -3/2 1 6 4
𝒁𝒋 60 40 0 30 0 660
𝒁𝒋 − 𝒄𝒋 0 -10 0 30 0
20
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 8 1 -2 0 56
𝒙𝟏 60 1 1/2 0 1/2 0 11
𝒔𝟑 0 0 1 0 -1 2/3 4
𝒁𝒋
𝒁𝒋 − 𝒄𝒋
21
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 0 1 6 -16/3 24
𝒙𝟏 60 1 0 0 1 -1/3 9
𝒔𝟑 0 0 1 0 -1 2/3 4
𝒁𝒋
𝒁𝒋 − 𝒄𝒋
2. Make all other values in 𝑥2 column by doing row-wise calculation using 𝑠3 row
22
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 0 1 6 -16/3 24
𝒙𝟏 60 1 0 0 1 -1/3 9
𝒙𝟐 50 0 1 0 -1 2/3 4
𝒁𝒋 60 50 0 10 40/3 740
𝒁𝒋 − 𝒄𝒋 0 0 0 10 40/3
3. Replace 𝑠3 → 𝑥2
4. Calculate 𝑍𝑗 and 𝑍𝑗 − 𝑐𝑗
23
Management Science Linear Programming IV
𝒄𝒋 60 50 0 0 0
𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Ratio
𝒔𝟏 0 0 0 1 6 -16/3 24
𝒙𝟏 60 1 0 0 1 -1/3 9
𝒙𝟐 50 0 1 0 -1 2/3 4
𝒁𝒋 60 50 0 10 40/3 740
𝒁𝒋 − 𝒄𝒋 0 0 0 10 40/3
Currently, this Simplex table is saying that solution is (𝑥1 = 9, 𝑥2 = 4, 𝑠1 = 24, 𝑠2 = 0, 𝑠3 = 0).
Is this optimal?
Yes.
24
Management Science Linear Programming IV
Example
▪ Solve following maximization problem with Simplex Method
25
Management Science Linear Programming IV
Q&A
26