Chpter 3-Simplex Algorithm
Chpter 3-Simplex Algorithm
2. X1 = 0, S1 = 0
3- Xl = 0, S2 = 0
2x1+6X2+S2= 16
0+6X2+0= 16 6x2=16 X2= 16/6 =8/3
X1+5X2+S1 = 10
X1 + 5(8/3)+ S1= 10
0+40/3+S1= 10 S1= 10-40/3 = -10/3
Substituting for X2 in (1) yields
This is not a basic feasible solution. (Because S1 value is negative)
Example 2
C) Find all the basic solutions, and indicate which are also feasible.
5- X2= 0, S2 = 0
Xl + S1 = 10 …….(1)
2Xl = 16 …….(2)
From (2) we find Xl = 8.
And substituting for Xl in (l) yields
8 + S1 + = 10 S1 =2
This is a basic feasible solution
Example 2
C) Find all the basic solutions, and indicate which are also feasible.
6- S1 = 0, S2= 0
Xl + 5X2 = 10 …… (1)
2X1 +6X2= 16 ………(2)
From (1) we have X1 = 10 - 5X2 .
Substituting for Xl in (2) yields
2(X1)+6(X2) +S2 = 16
2(10 - 5X2 ) + 6 X2 + 0 = 16 20 -10X2 + 6 X2 = 16
-10x2 +6x2 = 16 -20 -4x2 = -4 X2 = 4/4 = 1 X2 = 1
X1 = 10-5x2 X1 = 10 - 5(1) = 5 X1 = 5
This is a basic feasible solution
Example 2
d- The optimal solution is the basic feasible solution with the largest
value of the objective function.
There are 4 basic feasible solutions from
part (c) to evaluate in the objective
function.
Max Z= X1 + 2X2
X1 = 0, X2 = 0, S1= 10, S2 = 16, Z-Value = 1(0) + 2(0) = 0
X1 = 0, X2 = 2, S1 = 0, S2 = 4, Z-Value = 1(0) + 2(2) = 4
X1 = 8, X2 = 0, S1= 2, S2 = 0, Z-Value = 1(8) + 2(0) = 8
X1 = 5, X2 = 1, S1= 0, S2 = 0, Z-Value = 1(5) + 2(1) = 7
The optimal solution (Maximum Z) is X1 = 8, X2= 0 with value = 8.
Example 3
Simplex Method Solve the following problem by the simplex method:
Max z = 60X1 + 30X2 + 20X3
S.t. 8X1 + 6X2 + X3 ≤ 48 (Lumber Constraint)
4X1 + 2X2 +1.5X3 ≤ 20 (Finishing Constraint)
2X1 + 1.5X2 +0.5X3 ≤ 8 (Carpentry Constraint)
X2 ≤ 5 (Table Demand Constraint)
X1 , X2 , X3 ≥0
Example 3
Simplex Method Solve the following problem by the simplex method:
Max z = 60X1 + 30X2 + 20X3
Solution:
Max z = 60X1 + 30X2 + 20X3 +0S1+0S2+0S3+0S4
S.t. 8X1 + 6X2 + X3 +S1 = 48 (Lumber Constraint)
4X1 + 2X2 +1.5X3 +S2 = 20 (Finishing Constraint)
2X1 + 1.5X2 +0.5X3 +S3 = 8 (Carpentry Constraint)
X2 +S4 = 5 (Table Demand Constraint)
X1 , X2 , X3 ,S1,S2,S3,S4 ≥ 0.
Example 3
S2 0 4 2 1.5 0 1 0 0 20 20/4=5
S2 0 4 2 1.5 0 1 0 0 20 20/4=5
S2 0 4 2 1.5 0 1 0 0 20 20/4=5
S2 0 20 20/4=5
Z
Cb-Z
Example 4
Example 4
Example 4
Example 4