Simplex Method
Simplex Method
x y s t P
Active
variables
Step 8 Active x y s t P
s 3 0 1 −1 0 3
variables
2 2
1 1 0 1 s 3 0 1 −1 0 3
y 0 2
2 2 2
Repeat the2 process by
1 0 0 5 y 1 1 0 1 0 2
P 1 10
identifying the most negative 2 2
2 2
entry in the last row. P 1 0 0 5 1 10
2 2
Once the left side of last row is R1 → R1−R 2
all non-negative, the solution
can be found. The value of
s=3 ,t=0
each active variables is equal to R3 → R3 +5 R2
the right most entry in the row.
y=2, x=0
All inactive variables equal
zero. P=10
Step 2: Convert the system inequalities (constraints) into equations by adding one
slack variable for each inequality.
x , y ≥0
x y s t P
s 0.4 0.6 1 0 0 480
t 0.8 0.6 0 1 0 810
P −10 −12 0 0 1 0
x y s t P
s 0.4 0.6 1 0 0 480
t 0.8 0.6 0 1 0 810
P −10 −12 0 0 1 0
x y s t P Ratio
s 0.4 0.6 1 0 0 480 480
=800
0.6
t 0.8 0.6 0 1 0 810 810
=1350
0.6
P −10 −12 0 0 1 0
x y s t P Ratio
s 0.4 0.6 1 0 0 480 480
=800
0.6
t 0.8 0.6 0 1 0 810 810
=1350
0.6
P −10 −12 0 0 1 0
Step 8: Perform row operations to make the pivot equal to 1 and the remaining
elements in the pivot column equal to zero.
R1
x y s t P R1 →
0.6
s 2 1 5 0 0 800
3 3
t 0.8 0.6 0 1 0 810
P −10 −12 0 0 1 0
x y s t P
s 2 1 5 0 0 800
3 3
y 2 0 −1 1 0 330
5
P −2 0 20 0 1 9600
Step 9: Repeat the process by identifying the most negative entry in the last row. It
indicates the pivot row. Calculate the ratio to select pivot column. Then, select the
pivot element.
x y s t P Ratio
s 2 1 5 0 0 800 2
800 ÷ =1200
3 3 3
y 2 0 −1 1 0 330 2
330 ÷ =825
5 5
P −2 0 20 0 1 9600
x y s t P
s 2 1 5 0 0 800
3 3 5
y 1 0 −5 5 0 825 R2 → R2
2
2 2
P −2 0 20 0 1 9600
x y s t P 3
R1 → R1− R 2
2
s 0 1 10 −2 0 250
3 3
x 1 0 −5 5 0 825 R3 → R3 +2 R2
2 2
P 0 0 15 5 1 11250
We no longer have negative entries in the bottom row, therefore we are finished.
We look at the columns that have a 1 and all other entries zeros. Since the columns s and t
are not such columns, we arbitrarily choose s=0 and t=0 , and we get
x=825 , y=250∧P=11250 . Therefore, the maximum of P is 11250 at (825, 250), which
means the manufacturer should make 825 “Darling” pineapple jams and 250 “Honey”
pineapple jams to maximize their profit to RM 11 250.