Notes or
Notes or
1) Define Variables
X1 = number of units produced from Cars
X2 = number of units produced from busses
X3 = number of units produced from trains
2) Objective Function
3) Functional Const
X1 + 2 X2 + 4X3 £ 10 (Machine 1 Constr)
4) Non-Negativity Const
X1,X2,X3 ³0
Simple simplex
Max Z = 3X1 + 2X2 Max Z = 3X1 + 2X2 + 0S1 + 0S2 + 0S3
St
1. 2X1 + 4X2 £ 20 2X1 + 4X2 + S1 = 20
2. X2 £ 25 X2 + S2 = 25
3. X1£ 15 X1 +S3 = 15
X1,X2 ³ 0 X,S ³ 0
Find the optimal solution using Simplex method
Basic All X1 X2 S1 S2 S3 RHS Readings
Variables Variables
S1 (Pivot Row) 2 4 1 0 0 20 X1=0
Leaving Variable
X2=0
S2 0 1 0 1 0 25
S1=20
S3 1 0 0 0 1 15
S2=25
Z -3 -2 0 0 0 0 S3=15
Z=0
OT= No
X1 New Row 1 2 1/2 0 0 10 X1=10
X2=0
S2 0 1 0 1 0 25
S1=0
S3 0 -2 -1/2 0 1 5
S2=25
Z 0 4 3/2 0 0 30
S3= 5
Z= 30
OT= yes
• The most -ve number in the Z row to get the pivot column
• The lowest ratio to get the Pivot row (RHS ÷ corresponding in the pivot
column)
• New Row = Old value / Pivot Element
S2
0 1 0 1 0 25 Old Row
-0 (1 2 ½ 0 0 10)
S3
1 0 0 0 1 15
-1 ( 1 2 ½ 0 0 10)
Z
-3 -2 0 0 0 0
+3 (1 2 ½ 0 0 10)
Remaining values = old value – (Corresponding value in the pivot Column)*
(Corresponding in the new row)
Rules
£+S
³ -S + A
= +A
Min = +MA in the objective function
Max = -MA in the objective function
Min we should choose the most +ve number in the Z row, if it’s not optimal.
Max we should choose the most -ve number in the Z row, if it’s not optimal.
Example 1
Min Z = 2X1 + X2 + X3 + 0S1 – 0S2 + MA1 +MA2
ST
X2 +X3 ³ 20 X2 +X3 – S2 + A1 = 20
X1 + 2X2 = 40 X1 + 2X2 + A2 = 40
X1,X2,X3 ³ 0 X,S,A ³ 0
BV All V 2 1 1 0 0 M M RHS Summary
X1 X2 X3 S1 S2 A1 A2
0 S1 1 2 0 1 0 0 0 100 X1=0
M A1 0 1 1 0 -1 1 0 20 X2=0
M A2 1 2 0 0 0 0 1 40 X3=0
Factory Supply
Solution:
1st table
Warehouse (Demand)
1 2 3
1 2 5 + 100 50 0
1
50 50 -1
Factory Supply
-
2
17 9 150 0
2
+6 150 +3
3
+6 6 10 200 150 0
2250
+1 150
+
-
50
50 0 250 150
Not Optimal
Adjustment value = 50
- +
50
+ -
50 150
2nd table
1 2 3
2 5 100
1
50 +1 50
17 +5 9 150
2
150 +3
6 6 10 200
2200
Zero 100 100
50 250 150
First Calculated zero is not written so we need to evaluated this cell
CPM
1) PERT NETWORK