Professional Documents
Culture Documents
• Cj for X1 = 8
• (X1) Cj - Zj = 8 - 0 = 8
• In example, Largest improvement in Profit
is £10 and the corresponding entering
variable is X2
• Column associated with the entering
variable is the Pivot Column
Pivot Colum
Cj Basic 8 10
Variable X1 X2 S1 S2 S3
0 S1 4.5 2 1 0 0 36
0 S2 3 5 0 1 0 45
0 S3 4 4 0 0 1 40
Zj 0 0
Cj-Zj 8 10
• Determine the variable which will exit the tableau
• Slack resources are being used now to make a
product => more units of product and fewer units
of resources
• Each additional unit produced adds to profit
contribution, resources continuously used to make
units of products until one resource is used up
– 36 Units of Res 1 & each unit of X2 requires 2 units of
this resource
X2 RHS RHS/X2
2 36 18
5 45 9
4 40 10
• We need a combination of resources to
make X2 => Take the minimum
• => 9 units of x2 are produced & all
available units of resource 2 exhausted
• Substitute units of product X2 for units of
resource 2 until S2 becomes zero
• X2 enters tableau S2 leaves tableau
• Row that limits/constrains the entering
variable is the Pivot Row
• This resource is also said to be binding
upon the solution value ie it limits the value
the solution can take
Pivot Element
Pivot Colum
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 4.5 2 1 0 0 36 P
i
0 S2 3 5 0 1 0 45 v
o
0 S3 4 4 0 0 1 40 t
Zj 0 0
R
Cj-Zj 8 10 o
w
• Coefficient at the intersection of the pivot
column & the pivot row is the pivot element
• In example pivot element is 5
• Reorganise the tableau (S2 leaves, X2 enters)
– Replace S2 with X2
– Divide each element in pivot row by the pivot
element
– To calculate remaining tableau row values X2
column must be converted to a unit column
Remaining rows must be changed so X2 column
values are all zero
Pivot Colum
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 4.5 2 1 0 0 36
10 X2 3/5 1 0 1/5 0 9
0 S3 4 4 0 0 1 40
Zj
Cj-Zj
Rule for converting columns to
unit columns
S1 Intersection
Old Row - Value X New Pivot Row = New Row
4.5 - (2 X 3/5) = 33/10
2 - (2 X 1) =0
1 - (2 X 0) =1
0 - (2 X 1/5) = -2/5
0 - (2 X 0) =0
36 - (2 X 9) = 18
Pivot Colum
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 33/10 0 1 -2.5 0 18
10 X2 3/5 1 0 1/5 0 9
0 S3
Zj
Cj-Zj
S3 Intersection
Old Row - Value X Pivot Row = New Row
4 - (4 X 3/5) = 8/5
4 - (4 X 1) =0
0 - (4 X 0) =0
0 - (4 X 1/5) = -4/5
1 - (4 X 0) =1
40 - (4 X 9) =4
Again check is this the optimal solution?
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 33/10 0 1 -2.5 0 18
10 X2 3/5 1 0 1/5 0 9
0 S3 8/5 0 0 -4/5 1 4
Zj
Cj-Zj
Not Optimal as Cj-Zj row still positive
Identify pivot colum (max Cj-Zj) , x1 enters next
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 33/10 0 1 -2.5 0 18
10 X2 3/5 1 0 1/5 0 9
0 S3 8/5 0 0 -4/5 1 4
Zj 6 10
Cj-Zj 2 0
• Divide RHS values by coefficients from X1
Column
• S1 18 divided by 33/10 = 60/11
• X2 9 divided by 3/5 = 15
• S3 4 divided by 8/5 = 5/2
• S3 row is the most constraining it yields the
smallest non-negative ratio S3 is new pivot
row
S3 is new pivot row AND pivot element in red
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 33/10 0 1 -2.5 0 60/11
10 X2 3/5 1 0 1/5 0 15
0 S3 8/5 0 0 -4/5 1 5/2
Zj 6 10
Cj-Zj 2 0
X1 enters
Cj Basic 8 10 RHS
Variable X1 X2 S1 S2 S3
0 S1 33/10 0 1 -2.5 0 60/11
10 X2 3/5 1 0 1/5 0 15
8 X1 1 0 0 -1/2 5/8 5/2
Zj
Cj-Zj
S1 Inter New
Old Value - Value X Pivot Row = New
Row
33/10 - (33/10 X 1) =0
0 - (33/10 X 0) =0
1 - (33/10 X 0) =1
-2/5 - (33/10 X -1/2) = 5/4
0 - (33/10 X 5/8) = -33/16
18 - (33/10 X 5/2) = 39/4
X2
3/5 - (3/5 X 1) =0
1 - (3/5 X 0) =1
0 - (3/5 X 0) =0
1/5 - (3/5 X -1/2) = 4/10
0 - (3/5 X 5/8) = -3/8
9 - (3/5 X 5/2) = 15/2
Is this optimal? Check Cj-Zj row
Cj Basic 8 10 0 0 0 RHS
Variable X1 X2 S1 S2 S3
0 S1 0 0 1 33/20 -33/16 39/4
10 X2 0 1 0 ½ -3/8 15/2
8 X1 1 0 0 -1/2 5/8 5/2
Zj 8 10 0 0 10/8
Cj-Zj
Is this optimal? Check Cj-Zj row Notice that all are
zero or negative so this is optimal solution
Cj Basic 8 10 0 0 0 RHS
Variable X1 X2 S1 S2 S3
0 S1 0 0 1 33/20 -33/16 39/4
10 X2 0 1 0 ½ -3/8 15/2
8 X1 1 0 0 -1/2 5/8 5/2
Zj 8 10 0 1 10/8 95
Cj-Zj 0 0 0 -1 -10/8
• 2.5 Units of X1 produced (Pins)
• 7.5 Units of X2 produced (Pendants)
• 9.75 units of S1 remain (gold)
• Objective Function = 95
• This suggests that you should reduce the
amount of gold by 9.75 grams/day