Solving Linear Programming Problem - Simplex Method
Solving Linear Programming Problem - Simplex Method
It deals with iterative process, which consists of first designing a Basic Feasible Solution or a
Programme and proceed towards the OPTIMAL SOLUTION and testing each feasible solution
for Optimality to know whether the solution at hand is optimal or not. If not an optimal solution,
redesign the programme, and test for optimality until the test confirms OPTIMALITY.
Hence we can say that the Simplex Method depends on two concepts known as Feasibility and
optimality.
The simplex method is based on the property that the optimal solution to a linear programming
problem, if it exists, can always be found in one of the basic feasible solution.
1. The graphical method is used when we have two decision variables in the problem. Whereas
in Simplex method, the problem may have any number of decision variables.
3. In graphical solution the Isoprofit line moves away from the origin to towards the far off point
in maximisation problem and in minimisation problem, the Isocost line moves from far off
distance towards origin to reach the nearest point to origin.
4. In graphical method, the areas outside the feasible area (area covered by all the lines of
constraints in the problem) indicates idle capacity of resource where as in Simplex method, the
presence of slack variable indicates the idle capacity of the resources.
Maximisation case
Problem:
Solution:
Take machine X: One unit of product A requires 10 hours of machine X and one unit of product
B requires 6 units. Company is manufacturing a units of A and b units of B, hence both put
together must be less than or equal to 2,500 hours.
In Linear Programming language, we can say that the company has capacity of manufacturing
2,500 units of S1, i.e., S1 is an imaginary product, which require one hour of machine X alone.
Similarly, S2 is an imaginary product requires one hour of machine Y alone and S 3 is an
imaginary product, which requires one hour of machine Z alone.
The profit earned by keeping all the machines idle is Ksh.0/–. Hence the profit contributions of
S1, S2 and S3 are Ksh.0/– per unit. By using this concept, the inequalities are converted into
equations as shown below:
Zj total gross amount of outgoing profit when we consider the exchange between one
unit of column, variable and the basic variables.
= (0 * 10) + (0 * 5) + (0 * 1) = 0
(0 * 6) + (0 * 10) + (0 * 2) = 0
(0 * 1) + (0 * 0) + (0 * 0) = 0…
Optimality Condition
For Maximization: all Cj - Zj ≤ 0
Minimization: all Cj - Zj ≥ 0
For maximization optimality, the greatest value of (Cj - Zj) i.e 32 will give the key column
Using key column values find Ratio (Ratio = Solution / Key column)
To find key row, get the least value in the ratio i.e 200
b will be our entering variable while S2 will be the leaving variable in the next table
1. Step 1: To Write the incoming variable ‘b’ in place of outgoing variable S 2. Enter the
profit of ‘b’ in profit column. Do not alter S1 and S3. While doing so DO NOT ALTER
THE POSITION OF THE ROWS.
Step 2: DIVIDING THE ELEMENTS OF OLD COLUMN BY KEY COLUMN
ELEMENTS obtains capacity column elements.
Step 3: Transfer of key row: DIVIDE ALL ELEMENTS OF KEY ROW BY
RESPECTIVE KEY COLUMN NUMBER
Transfer of Key row: 5 /10, 10 /10, 0 /10, 1 / 10, 0 / 10, 2000/10
2. Step 4: Transfer of Non-Key rows: NEW ROW NUMBER = (old row number -
(corresponding key row number) × fixed ratio.
Fixed ratio = Key column number of the row/key number.
Transfer of Key row values: Elements of Key row / Respective Key column number
5 /10, 10 /10, 0 /10, 1 / 10, 0 / 10, 2000/10
In the above table, the net evaluation under S2 is – 3.2. This resource is completely utilized to
manufacture product B. The profit earned by manufacturing B is Ksh. 6400/–.
As per the law of economics, the worth of resources used must be equal to the profit earned.
Hence the element 3.2 (ignore negative sign) is known as economic worth or artificial
accounting price (technically it can be taken as MACHINE HOUR RATE) of the resources
or shadow price of the resource. (In fact all the elements of reevaluation row under
slack variables are shadow prices of respective resources). This concept is used to check
whether the problem is done correctly or not. To do this multiply the elements in net
evaluation row under slack variables with the original capacity constraints given in the
problem and find the sum of the same. This sum must be equal to the profit earned by
manufactruing the product.
Exercise:
1. Maximize Z = 2a + 2b + 5c + 4d s.t
1a + 3b + 4c + 3d ≤ 10
4a + 2b +6c + 8d ≤ 25
and a, b, c, and d all are ≥ 0.
Solution:
Convert the inequalities into equations:
Done by subtracting a Surplus variable and add an Artificial variable
Minimize Z = 600X1 + 500 X2 + 0S1 + 0S2 + MA1 + MA2
2X1 + X2 – S1 + A1 = 80
X1 + 2X2 – S2 + A2 = 60
X1, X2, S1, S2, A1, A2 ≥ 0