Chapter-3-Linear-Programming-Simplex-Method
Chapter-3-Linear-Programming-Simplex-Method
LINEAR
PROGRAMMING:
Simplex
Method
CHAPTER 3
In this problem, there are positive values in the �� -�� row (700 and 500): hence,
the table needs to be improved.
Step 5
�1 480 ÷ 8 = 60
�2 200 ÷ 4 = 50
• �2 has the lowest value; thus, it is the outgoing variable that is replaced by variable x
as the incoming variable.
�� 700 500 0 0
0 �1 480 8 6 1 0
0 �2 200 4 2 0 1
�� 0 0 0 0 0
�� −�� 700 500 0 0
incoming variable outgoing variable
Step 6
�� 700 500 0 0
700 x
0 �1
��
�� −��
When the tableau is improved, there will be new values for the variables. The new
values of the incoming variable x that will replace �2 are determined first as follows:
Old Values of Pivot Value Quotient
Outgoing Variable
(�2 )
200 ÷ 4 = 50
4 ÷ 4 = 1
2 ÷ 4 = ½
0 ÷ 4 = 0
1 ÷ 4 = 1/4
Table 3. After Computing for the Values of the Incoming Variable X
�� 700 500 0 0
700 X 50 1 ½ 0 ¼
0 �1
��
�� −��
When the given values in the problem are not expressed in decimals, the
computed values for the incoming variable should be expressed in fractions to
facilitate the computation. The new values of �1 are determined as follows:
Old Values of Pivot Value New Values of New Values of
Retained of Incoming Retained
Variable (�1 ) Retained Variable (x) Variable (�1 )
Value (�1 )
480 - 8 X 50 = 80
8 - 8 X 1 = 0
6 - 8 X ½ = 2
1 - 8 X 0 = 1
0 - 8 X 1/4 = -2
Table 4. After Computing for the New Values of �1
�� 700 500 0 0 In table 4, the �� −��
row still has a non-
negative value of 150.
Product Solution Qty. x y �1 �2
Hence, the optimal
solution has not been
700 X 50 1 ½ 0 ¼
reached yet. The table
still needs improvement.
0 �1 80 0 2 1 -2
�� 35,000 700 350 0 175
�� −�� 0 150 0 -175
Step 7
To improve the table, repeat step 3. The incoming variable is y, as it has the
non-negative value. The outgoing variable is determined as follows:
Product Solution Pivot Value Quotient
Quantity
X 50 ÷ ½ = 100
�1 80 ÷ 2 = 40
�� 700 500 0 0
500 Y
700 x
��
�� −��
The new values of the incoming variable y, which will replace �1 , are determined first
as follows
Old Values of Pivot Value of Values of Incoming
Outgoing Variable Incoming Variable
(�1 ) Variable (y)
80 ÷ 2 = 40
0 ÷ 2 = 0
2 ÷ 2 = 1
1 ÷ 2 = ½
-2 ÷ 2 = -1
Table 6. After Computing for the Values of Variable y
�� 700 500 0 0
500 Y 40 0 1 1/2 -1
700 x
��
�� −��
Old Values of Pivot Value New Values of New Values of
Retained of Incoming Retained
Variable (x) Retained Variable (y) Variable (x)
Variable (x)
50 - ½ X 40 = 30
1 - ½ X 0 = 1
½ - ½ X 1 = 0
0 - ½ X ½ = -1/4
1/4 - ½ X -1 = ¾
Table 7. After Computing for the Values of Variable x
�� 700 500 0 0
Product Solution x y �1 �2
Quantity
0 �1 480 8 6 1 0
0 �2 200 4 2 0 1
�� 0 0 0 0 0
0 �1 80 0 2 1 -2
�� 35,000 700 350 0 175
�� −�� 0 150 0 -175
Table 10. Second Iteration
�� 700 500 0 0
500 Y 40 0 1 1/2 -1
700 x 30 1 0 - ¾
1/4
�� 41,000 700 500 75 25
�� −�� 0 0 -75 -25
Minimization of Cost(Simplex Method)
To operate the newly imported state of the art machinery recently
purchased by ABC Company, two types of fuels are needed namely,
Fuel A and Fuel B. The machine specifications and requirements
show that for every one hour of production time each gallon of
Fuel A emits 6 units of chemical gas and generated a mechanical
energy equivalent to 8 horsepower. The cost Ph320. In similar
manner, each gallon of Fuel B emits 10 units of chemical gas
generates 8 horsepower of mechanical energy. This costs Php300.
The maximum number of units of such type of chemical gas
allowed by the government to be emitted by such type of
machinery is 30 units. The operating activities of the company
require atleast 32 horsepower of mechanical energy per hour.
Required: Using the simplex method, determine the number of
gallons of Fuel A and Fuel B that are needed to operate the
machine at the lowest possible cost
Following procedures are done to convert the
constraints to equation
1. Add slack variable if the symbol used is ≤
Minimization
2. Add an artificial variable if the symbol
Problem used is =
3. Subtract a slack variable and add an
artificial variable if the symbol sign is ≥
Prevents the slack variable from becoming a
zero and prevents an equality constraints from
resulting in an constant zero.
Artificial
Variable It is equal to the power of the ten greater than
the coefficient value found in the objective
and constraints
Min total cost: C= 10x +20y
Subject to: 4x + y ≥ 10
3x + y ≤ 10
x + y = 10
Example
The linear programming problem will appear as
follows:
Step 2
0 �1 30 6 10 1 0 0
1,000 �1 32 8 8 0 -1 1
�� 32,000 8,000 8,000 0 -1,000 1,000
�� −�� -7,680 -7,700 0 1,000 0
• The highest negative value in the �� −�� row is the incoming variable, which is
variable y with -7,700. The outgoing variable is determined as follows:
Product Solution Quantity Pivot Value Quotient
�1 30 ÷ 10 = 3
�1 32 ÷ 8 = 4
Old Values of Pivot Value New Values of New Values of
Retained of Incoming Retained
Variable (A1) Retained Variable (y) Variable (y)
Variable
(A1)
32 - 8 X 3 = 8
8 - 8 X 6/10 = 3 1/5
8 - 8 X 1 = 0
0 - 8 X 1/10 = -4/5
-1 - 8 X 0 = -1
1 - 8 X 0 = 1
The outgoing variable �1 which has the smaller quotient. The improved table appears as
follows:
Table 12. First Iteration
�� 320 300 0 0 1,000