Topic 7 - Optimisation - Simplex Method
Topic 7 - Optimisation - Simplex Method
Topic 7 - Optimisation - Simplex Method
Decision Making:
Commodity 1, C 1 3 2 2
Commodity 2, C 2 2 4 3
Maximum Resources 7 10
Resource
Design1, R 1 Resource 2, R 2
Drawing Profit
Commodity 1, C 1
Retaining wall 3 hours
3 2 hours
2 £ 100
2
Commodity
Portal 2, C 2
frame structure 2 hours
2 4
4 hours 3
£ 150
Maximum Resources 7
7 hours 10 10
hours
Summary of the Graphical Method
R1 R2 P
x 3 2 2
y 2 4 3
Maximum Resources 7 10
• Summary:
– Resource Equation 1: 3 x 2 y 7
– Resource Equation 2: 2 x 4 y 10
– The profit equation: P 2x 3y
– As there is only positive production, x 0 and y 0
Summary of the Graphical Method
Y
0 X
0 1 2 3 4 5 6
Summary of the Graphical Method
0 2.5 7.5
1 2 8
2.33 0 4.66
module:
light ( Y ). Both types undergo the 3 distinct processes; cutting, welding, and
surface treatment. The times (hours) required for each process to produce
one tonne of each product are :-
heavy ( X ) 2 8 5
light ( Y ) 5 5 2
Per tonne of each product, there are 250 hours available for cutting, 310
hours for welding and 160 hours for surface treatment. Determine the
maximum profit if the profit per tonne of X is £9 and £10 for Y.
If the Graphical Method is used, the problem is set-out as follows:
` R1 R2 R3 Profit
X 2 8 5 9
Y 5 5 2 10
Maximum
250 310 160
Resources
120
100
80
60
40
20
0 X
0 20 40 60 80 100 120
Y
120
100
80
60
40
20
0 X
0 20 40 60 80 100 120
8 x 5 y 310
R2 :
5 x 2 y 160
R3 :
P 9 x 10 y
– The profit equation :
With the Simplex Method, ‘ slack ’ variables are used to replace inequalities
with ‘ equals ’ in resource equations. Also, ensure that the right hand side
of the expressions are positive, i.e.:
– Resource Equation R : 2 x 5 y w 1 250
1
8 x 5 y w 2 310
R2 :
5 x 2 y w 3 160
R3 :
P 9 x 10 y 0
– The profit equation :
• The next stage is to set up a Simplex Table
R1 2 5 1 0 0 250 258
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• Identify the Key Column _ [ the column containing the entry with the
most negative value in the profit row ]
Basis x y w1 w2 w3 b check
R1 2 5 1 0 0 250 258
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• Identify the Key Column _ [ the column containing the entry with the
most negative value in the profit row ]
Basis x y w1 w2 w3 b check
R1 2 5 1 0 0 250 258
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• Identify the Key Row _ this is determined by dividing each entry in the ‘
Basis x y w1 w2 w3 b check
R1 2 5 1 0 0 250 258
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
Basis x y w1 w2 w3 b check
R1 2 5 1 0 0 250 258
5 5 5 5 5
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• Each value of the Key Row is then divided by the pivot value [ 5 ] to
obtain a new pivot of unity [ one ]. The new table is renamed Table 2
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• Perform computations to reduce non-pivot elements of the Key Column
to zero, i.e. excluding those in the main row, manipulate all the cells in
the table to reduce the non-pivot elements of the key column to zero
Basis x y w1 w2 w3 b check
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• 5-(1*5)=0
• 0 - ( 0.2 * 5 ) = -1
Basis x y w1 w2 w3 b check
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• 5-(1*5)=0 • 0-(0*5)=0
• 0 - ( 0.2 * 5 ) = -1
Basis x y w1 w2 w3 b check
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• 5-(1*5)=0 • 0-(0*5)=0
• 0 - ( 0.2 * 5 ) = -1 • 310 - ( 50 * 5 ) = 60
Basis x y w1 w2 w3 b check
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• 5-(1*5)=0 • 0-(0*5)=0
• 0 - ( 0.2 * 5 ) = -1 • 310 - ( 50 * 5 ) = 60
• 324 - ( 51.6 * 5 ) = 66
Basis x y w1 w2 w3 b check
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
• 2-(1*2)=0 • 1-(0*2)=1
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 6 0 -1 1 0 60 66
P -5 0 2 0 0 500 497
Basis x y w1 w2 w3 b check
R2 6 0 -1 1 0 60 66
P -5 0 2 0 0 500 497
• The process is repeated until there are no negative values in the profit row
• The Key Column is the column containing the entry with the most negative
value in the profit row
• The Key Row is determined by dividing each entry in the ‘ b ’ column by the
corresponding positive entry in the key column and is the one which generates
the lowest (positive) value
Basis x y w1 w2 w3 b check
R2 6 0 -1 1 0 60 66
P -5 0 2 0 0 500 497
• Determine the unit pivot by dividing all the values in the key row by the
pivot value [ 6 ]
Table 4:
Basis x y w1 w2 w3 b check
R2 1 0 - 0.17 0.17 0 10 11
P -5 0 2 0 0 500 497
Table 5:
Basis x y w1 w2 w3 b check
R2 1 0 - 0.17 0.17 0 10 11
Table 5:
Basis x y w1 w2 w3 b check
R2 1 0 - 0.17 0.17 0 10 11
• As before, the key column has a single 1 and other entries all 0
• This indicates ‘ R 2 ’ can be replaced by ‘ x ’
• The final table, Table 5, should look something like the following:
Table 5:
Basis x y w1 w2 w3 b check
x 1 0 - 0.17 0.17 0 10 11
• As before, the key column has a single 1 and other entries all 0
• This indicates ‘ R 2 ’ can be replaced by ‘ x ’
• No negative values in the profit row indicate that an optimal solution
has been reached
• The final table, Table 5, should look something like the following:
Table 5:
Basis x y w1 w2 w3 b check
x 1 0 - 0.17 0.17 0 10 11
• As before, the key column has a single 1 and other entries all 0
• This indicates ‘ R 2 ’ can be replaced by ‘ x ’
• No negative values in the profit row indicate that an optimal solution
10 x 46 y 550
has been reached -
Table 1: Basis x y w1 w2 w3 b check
R1 2 5 1 0 0 250 258
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 8 5 0 1 0 310 324
R3 5 2 0 0 1 160 168
P -9 - 10 0 0 0 0 - 19
R2 6 0 -1 1 0 60 66
P -5 0 2 0 0 500 497
Table 4: Basis x y w1 w2 w3 b check
R2 1 0 - 0.17 0.17 0 10 11
P -5 0 2 0 0 500 497
x 1 0 - 0.17 0.17 0 10 11
4 x 2 y 3 z 57
R2 :
1 x 3 y 5 y 57
R3 :
P 2x 6y 4z
– The profit equation :
– Resource Equation R 1 : 2 x 5 y 2 z 38
4 x 2 y 3 z 57
R2 :
1 x 3 y 5 y 57
R3 :
P 2x 6y 4z
– The profit equation :
Introduce the ‘ slack ’ variables and ensure that the right hand side of the
expressions are positive.
– Resource Equation R 1 : 2 x 5 y 2 z w 1 38
4 x 2 y 3 z w 2 57
R2 :
1 x 3 y 5 z w 3 57
R3 :
P 2x 6y 4z 0
– The profit equation :
The simplex tables are now ready to be setup, therefore, generate the
solution
Basis x y z w1 w2 w3 b check
R1 2 5 2 1 0 0 38 48
R2 4 2 3 0 1 0 57 67
R3 1 3 5 0 0 1 57 67
P -2 -6 -4 0 0 0 0 -12
Basis x y z w1 w2 w3 b check
R1 2 5 2 1 0 0 38 48
R2 4 2 3 0 1 0 57 67
R3 1 3 5 0 0 1 57 67
P -2 -6 -4 0 0 0 0 -12
Basis x y z w1 w2 w3 b check
R2 4 2 3 0 1 0 57 67
R3 1 3 5 0 0 1 57 67
P -2 -6 -4 0 0 0 0 -12
Basis x y z w1 w2 w3 b check
R1 2 5 2 1 0 0 38 48
R2 4 2 3 0 1 0 57 67
R3 1 3 5 0 0 1 57 67
P -2 -6 -4 0 0 0 0 -12
Basis x y z w1 w2 w3 b check
R2 4 2 3 0 1 0 57 67
R3 1 3 5 0 0 1 57 67
P -2 -6 -4 0 0 0 0 -12
Basis x y z w1 w2 w3 b check
Basis x y z w1 w2 w3 b check
• As there is no further negative entries in the profit row, the optimal solution has been
reached
• Because the x term has not been resolved, x = 0
• The solution is: y = 4, z = 9, x = 0 and P max = 60