Module 3 AE4 Linear Programming The Simplex Method
Module 3 AE4 Linear Programming The Simplex Method
LINEAR
PROGRAMMING:
THE SIMPLEX
METHOD
LEARNING OUTCOMES:
• Introduce the simplex method of Linear Programming.
• Examine in detail all the steps of the simplex method.
• Define and discuss all the elements in the simplex table
in terms of their significance to the problem statement
and interpret solutions.
• Interpret simplex solutions.
• Discuss unbounded solutions
Cj-Zj row
Optimum column
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
by Asuncion C. Mercado del Rosario
3.2 SUMMARY OF SIMPLEX PROCEDURE
1. Set up the linear programming model.
Electric model Available time
Standard model
capacity
Machine A 1 2 20
Machine B 1 5 35
profit P30 P70
Identify the decision variables.
Let: X1 = no. of standard models to be produced
X2 = no. of electric models to be produced
Formulate the objective function Subject to:
Max./Min. P= 30X1+70X2 X1 + 2X2 <= 20 Explicit constraint
X1 + 5X2 <= 35
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
X1;X2 >= 0 Implicit constraint
by Asuncion C. Mercado del Rosario
3.2 SUMMARY OF SIMPLEX PROCEDURE
2. Convert the explicit constraints into equalities by adding slack and/or
artificial variable.
A. for a less than or equal to (<=) constraint, add a slack variables that
will represent the constraint in the initial feasible solution.
B. for a strict equality (=) constraint, add an artificial (A) variable that
will represent the constraint in the initial feasible solution.
C. for a greater than or equal to (>=) constraint, subtract a slack (S)
variable to convert it to equality and add an artificial (A) variable to
represent the constraint in the initial feasible solution.
Convert:
𝑥1 +2𝑥2 + 𝑆 1 = 20
𝑥1 + 5𝑥2 + 𝑆2 = 35
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
by Asuncion C. Mercado del Rosario
3.2 SUMMARY OF SIMPLEX PROCEDURE
3. Modify the objective function and the constraint so as to contain all
the variables including the slack and artificial variables added in
converting them to equality.
Objective function:
Max./Min P= 30X1 + 70X2 + 0S1 + 0S2
Subject to:
X1 + 2X2 + S1 + 0S2= 20
X1 + 5X2 + 0S1 + S2= 35
Solution Solution X1 X2 S1 S2
variable values
0 S1 20 1 2 1 0
0 S2 35 1 5 0 1
Zj 0 0 0 0 0
Cj-Zj P 30 P70 P0 P0
𝒁𝒋 0 0 0 0 0 Shadow
prices
𝑪𝒋 − 𝒁 𝒋 P 30 P 70 0 0 Net profits
20 – 2 (7) = 20 – 14 = 6 1 – 2 (0) = 1
1 – 2 (1/5) = 1 – 2/5 = 3/5 0 – 2 (1/5) = -2/5
2 – 2 (1) = 2 – 2 = 0
70 𝒙𝟐 7 1/5 1 0 1/5
𝒁𝒋 490 14 70 0 14
𝑪𝒋 − 𝒁 𝒋 16 0 0 -14
70 𝑿𝟐 5 0 1 -1/3 1/3
𝑪𝒋 − 𝒁𝒋 0 0 -80/3 -10/3
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
3.4 LP MAXIMIZATION PROBLEMS: SIMPLEX METHOD
Example 3.4.1
Compute the 𝑍𝑗 row and write in Table II.
Soln. values: 30 (10) + 70 (5) = 650
𝑋1 : 30 (1) + 70 (0) = 30 𝑆1 : 30 (5/3) + 70 (-1/3) = 80/3
𝑋2 : 30 (0) + 70 (1) = 70 𝑆2 : 30 (-2/3) + 70 (1/3) = 10/3
Then compute the 𝐶𝑗 − 𝑍𝑗 row.
𝑋1 : 30 – 30 = 0 𝑆1 : 0 – 80/3 = -80/3
𝑋2 : 70 – 70 = 0 𝑆2 : 0 – 45/3 = -45/3
0 S2 125 0 1 1 0 1 0 0 0
0 S3 225 1 1 0 0 0 1 0 0
0 S4 75 0 0 1 0 0 0 1 0
0 S5 0 0 -4 1 0 0 0 0 1
Zj 0 0 0 0 0 0 0 0 0
• All the values in the Z1 row are zero since all the coefficients in the objective function
column are zero.
The Cj- Zj row values are computed directly in Table II.
3.4 LP MAXIMIZATION PROBLEMS: SIMPLEX METHOD
Example 3.4.2 Table II
Cj P150 P120 P120 0 0 0 0 0
0 S2 125 0 1 1 0 1 0 0 0
0 S3 45 0 1 0 0 0 1 0 0
0 S4 75 0 0 1 0 0 0 1 0
0 S5 0 0 -4 1 0 0 0 0 1
Solution Solution
X₁ X₂ X₃ S₁ S₂ S₃ S₄ S₅
Variable Values
150 X₁ 180 1 0 0 1 0 0 0 0
0 S₂ 125/4 0 0 0 0 1 0 -5/4 1/4
0 S₁ 105/4 0 0 0 -1 0 1 - 1/4 1/4
120 X₃ 75 0 0 1 0 0 0 1 0
120 X₂ 75/4 0 1 0 0 0 0 1/4 - 1/4
Zj 38250 150 120 120 150 0 0 150 -30
Cj - Zj 0 0 0 -150 0 0 -150 30
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
by Asuncion C. Mercado del Rosario
3.4 LP MAXIMIZATION PROBLEMS: SIMPLEX METHOD
Example 3.4.2
• Table IV is not yet the optimal solution.
• The entering variable for table V is S5., and the outgoing variable is S3.
The pivot element is 1/4.
• Compute S5 row (row values).
(105/4) / (1/4) = 75 0 / (1/4) = 1 1 / (1/4) = 4
0 / (1/4) = 0 -1 / (1/4) = - 4 (-1/4) / (1/4) = 1
0 / (1/4) = 0 0 / (1/4) = 0 (1/4) / (1/4) = 1
M A1 150 5 10 1 0 0 0
0 S1 20 1 0 0 1 0 0
M A2 14 0 1 0 0 1 -1
Zj 164M 5M 11M M 0 M -M
Cj - Zj 2 – 5M 8-11M 0 0 0 M
OPTIMUM COLUMN
3.5 LP MINIMIZATION PROBLEM: SIMPLEX METHOD
Example 3.5.1
Unlike in maximization, the optimum column in minimization is the
largest negative value in the Cj - Zj row. 8-11M is the largest negative
value. The entering variable is X2. (Let M=100).
Determine the outgoing variable.
A1: 150 / 10 = 15
S1: 20 / 0 = undefined
A2: 14 / 1 = 14 (smallest)
The outgoing variable is A2. Pivot element is 1.
Compute the entering X2 row:
14/1=14 1/1=1 0/1=0 -1/1=-1
0/1= 0 0/1=0 1/1=1
Department of Accountancy - Management Science
Source: Quantitative Techniques for Business Management
by Asuncion C. Mercado del Rosario
3.5 LP MINIMIZATION PROBLEM: SIMPLEX METHOD
Example 3.5.1
Compute the remaining rows:
A1: S1:
150-10(14)=10 20-0(14)=20
5-10 (0)= 5 1-0 (0)= 1
10-10 (1)= 0 0-0 (1)= 0
1-10 (0)= 1 0-0 (0)= 0
0-10 (0)= 0 1-0 (0)= 1
0-10 (1)= -1 0-0 (1)= 0
0-10 (-1)= 10 0-0 (-1)= 0
M A1 10 5 0 1 0 -10 10
0 S1 20 1 0 0 1 0 0
8 X2 14 0 1 0 0 1 -1
112+10
Zj 5M 8 M 0 8-10M 10M-8
M
0 S2 1 ½ 0 1/10 0 -1 1
1 S1 20 1 0 0 0 0 0
8 X2 15 ½ 1 1/10 0 0 0
Zj 120 4 8 8/10 0 0 0
Cj-Zj -2 0 M-8/10 0 M 0
The Cj-Zj values Table III shows that the solution can still be improved.
Solution Solution
X1 X2 A1 S1 A2 S2
variables Values
2 X1 2 1 0 1/5 0 -2 2
0 S1 18 0 0 -1/5 0 2 -2
8 X2 14 0 1 0 0 1 -1
Zj 116 2 8 2/5 0 4 -4