Lecture2 Simplex
Lecture2 Simplex
BITS Pilani
problems-Simplex Method
Pilani|Dubai|Goa|Hyderabad Dr. Udayan Chanda, Department of Management, BITS Pilani.
Lecture Outline
Introduction
How to Set Up the Initial Simplex Solution
Simplex Solution Procedures
The Second Simplex Tableau
Developing the Third Tableau
Review of Procedures for Solving LP
Maximization Problems
2T + 1C + S1 = 100
2(40) + 1(10) + S1 = 100
S1 = 10
Number of Chairs
80 –
problem 2T + 1C ≤ 100
–
60 –
–
40 –
C = (30, 40)
–
20 – 4T + 3C ≤ 240
– D = (50, 0)
(0, 0) A |– | | | |
0 20 40 60 80 T
Figure 9.1 Number of Tables
11/20/2023 LPP-Simplex Method 13
The First Simplex Tableau
• Constraint equations
• It simplifies handling the LP equations if we put them in
tabular form
• These are the constraint equations for the Flair Furniture
problem
QUANTITY
SOLUTION MIX T C S1 S2 (RIGHT-HAND SIDE)
S1 2 1 1 0 100
S2 4 3 0 1 240
s
ix
le
t
e
ni
b
bl
ns ria
n ru
n on
ns ia
n t
m a
m r
m n
m e
m ti
l u l va
lu k v
l u s ta
l u uc
lu it p
co rod
c o l ac
c o on
c o ea
co rof
C
R
P
P
S
Cj SOLUTION $70 $50 $0 $0 Profit per
QUANTITY unit row
MIX T C S1 S2
$0 S1 2 1 1 0 100 Constraint
equation rows
$0 S2 4 3 0 1 240
Gross
Zj $0 $0 $0 $0 $0
profit row
Cj - Zj $70 $50 $0 $0 $0
Net profit row
Table 9.1
11/20/2023 LPP-Simplex Method 15
The First Simplex Tableau
• The numbers in the first row represent the coefficients in
the first constraint and the numbers in the second the
second constraint
• At the initial solution, T = 0 and C = 0, so S1 = 100 and S2 =
240
• The two slack variables are the initial solution mix
• The values are found in the QUANTITY column
• The initial solution is a basic feasible solution
T 0
C 0
=
S1 100
S2 240
11/20/2023 LPP-Simplex Method 16
The First Simplex Tableau
• Variables in the solution mix, called the basis in LP
terminology, are referred to as basic variables
• Variables not in the solution mix or basis (value of 0) are
called nonbasic variables
• The optimal solution was T = 30, C = 40, S1 = 0, and S2 = 0
(Using the Graphical Method as discussed), then the final
basic variables would be
T 30
C 40
=
S1 0
S2 0
Cj $70 $50 $0 $0
SOLUTION
MIX T C QUANTITY
S1 S2
$0 S1 2 1 1 0 100
$0 S2 4 3 0 1 240
11/20/2023 LPP-Simplex Method 19
The First Simplex Tableau
• Thus,
Zj (for column T) = ($0)(2) + ($0)(4) = $0
Zj (for column C) = ($0)(1) + ($0)(3) = $0
Zj (for column S1) = ($0)(1) + ($0)(0) = $0
Zj (for column S2) = ($0)(0) + ($0)(1) = $0
We can see that no profit is lost by adding one unit of
either T (tables), C (chairs), S1, or S2
COLUMN
T C S1 S2
Cj for column $70 $50
$0 $0
Zj for column 0 0
0 0
Cj – Zj for column $70 $50
$0 $0
11/20/2023 LPP-Simplex Method 23
The First Simplex Tableau
Cj $70 $50 $0 $0
SOLUTION QUANTITY
MIX T C S1 S2 (RHS)
$0 S1 2 1 1 0 100
$0 S2 4 3 0 1 240
Zj $0 $0 $0 $0 $0
Cj - Zj $70 $50 $0 $0 total profit
Pivot column
Table 9.2
11/20/2023 LPP-Simplex Method 29
The Second Simplex Tableau
Step 2. Select the variable to be replaced. Either S1 or S2 will
have to leave to make room for T in the basis. The following
ratios need to be calculated.
For the S1 row
100(hours of painting time available)
50 tables
2(hours required per table)
For the S2 row
240(hours of carpentry time available)
60 tables
4(hours required per table)
Table 9.3
2 1 1* 0 100
1 0 .5 0 .5 0 50
2 2 2 2 2
• Completed
C – Zsecond $0 $15
j simplex tableau
for column
j
–$35 $0
Cj $70 $50 $0 $0
SOLUTION QUANTITY
MIX T C S1 S2 (RHS)
$70 T 1 0.5 0.5 0 50
$0 S2 0 1 –2 1 40
Zj $70 $35 $35 $0 $3,500
Cj - Zj $0 $15 –$35 $0
Table 9.4
11/20/2023 LPP-Simplex Method 36
Interpreting the Second Tableau
• Current solution
• The solution point of 50 tables and 0 chairs
(T = 50, C = 0) generates a profit of $3,500. T is a basic
variable and C is a nonbasic variable. This corresponds to
point D in Figure 9.2.
• Resource information
• Slack variable S2 is the unused time in the carpentry
department and is in the basis. Its value implies there is
40 hours of unused carpentry time remaining. Slack
variable S1 is nonbasic and has a value of 0 meaning
there is no slack time in the painting department.
Cj $70 $50 $0 $0
SOLUTION
MIX T C S1 S2 QUANTITY
$70 T 1 0.5 0.5 0 50
$0 S2 0 1 –2 1 40
Pivot number Pivot row
Zj $70 $35 $35 $0 $3,500
Cj - Zj $0 $15 –$35 $0
Pivot column
Table 9.5
11/20/2023 LPP-Simplex Method 41
Developing the Third Tableau
0 1 2 1 40
0 1 2 1 40
1 1 1 1 1
$5 C 0 1 –2 1 40
T = 30 tables
C = 40 chairs
S1 = 0 slack hours in the painting department
S2 = 0 slack hours in the carpentry department
profit = $4,100 for the optimal solution
Cj $70 $50 $0 $0
SOLUTION
MIX T C S1 S2 QUANTITY
$70 T 1 0 1.5 –0.5 30
$50 C 0 1 –2 1 40
Zj $70 $50 $5 $15 $4,100
Cj - Zj $0 $0 –$5 –$15
Table 9.6
Arithmetic mistakes are easy to make
It is always a good idea to check your answer by going back
to the original constraints and objective function
11/20/2023 LPP-Simplex Method 46
Example:
Maximize Z = 7X1+5X2 , subject to the constraints,
X1+2X2 < = 6
4X1+3X2 < = 12 and X1 & X2 are non-negative.
Initial Tableau
Cj 7 5 0 0
Min.Ratio
Basic
Basic (XB/Pivotal
CB Variable X1 X2 S1 S2
Soln(XB) Col.)
(B)
0 S1 6 1 2 1 0 6/1=6
0 S2 12 4 3 0 1 12/4=3
Zj 0 0 0 0
(Net Evaluation)Cj - Zj 7 5 0 0
Step 4: Find (Cj-Zj) having highest positive value.
The column corresponding to this value,is called the Pivotal
Column and enters the table. In the previous table,column
corresponding to variable X1 is the pivotal column.
Cj 7 5 0 0
Min.Ratio
Basic
Basic (XB/Pivotal
CB Variable X1 X2 S1 S2
Soln(XB) Col.)
(B)
0 S1 3 0 54 1 - 1/4
7 X1 3 1 3/4 0 1/4
Zj 7 21 4 0 74
(Net Evaluation)Cj - Zj 0 - 1/4 0 -74
Step 7: If all the (Cj-Zj) values are zero or negative,an
optimum point is reached otherwise repeat the process
as given in Step 4,5 & 6.
Since all the (Cj-Zj) values are either negative or zero,hence an
optimum solution has been achieved.The optimum values are:
X1=3,
X2=0 and,
Max Z=21.
Review of Procedures for Solving LP
Maximization Problems