2. Why we use Simplex Method ?
The graphical method is not applicable to Linear Programming
Problems with more than two variables. Therefore, Simplex Method
is used to give the optimal solution.
The graphical method is applicable only when-
2x + 3y <= 20
3. Simplex Method
Simplex Method is considered as one of the basic techniques from
which many linear programming techniques are derived directly or
indirectly.
The simplex method is an iterative, stepwise process which
approaches an optimum solution in order to reach an objective
function of maximization or minimization.
5. Example
A mechanic shop manufactures two models, standard and deluxe.
Each standard model requires two hours of grinding and four hours of
polishing; each deluxe model requires five hours of grinding and two
hours of polishing. The manufacturer has three grinders and two
polishers. Therefore, in 40 hours of week, there are 120 hours of
grinding capacity and 80 hours of polishing capacity. There is
contribution margin of Rs. 3 on each standard model and Rs. 4 on
each deluxe model.
6. Solution
Grinding Polishing Contribution Margin
Standard Model (x) 2 4 Rs. 3
Deluxe Model (Y) 5 2 Rs. 4
Capacity in hours 120 80
Maximize Z = 3x + 4y
Subject to Constraints
2x + 5y <= 120
4x + 2y <= 80
X >= 0; y >= 0
The relation which establishes the constraints or inequalities must be set up first. Letting X and Y be
Respectively the quantity of items of standard model and deluxe model that are to be manufactured,
The system of inequalities :
7. To convert it into an equation, we add a slack variables s1, s2 on the left hand side to get
2x + 5y + s1 = 120
4x + 2y + s2 = 80
The use of slack variables involves the addition of an arbitrary variable to one
side of inequality, transforming it into equality. This arbitrary variable is called
slack variable, since it takes up the slack in the inequality.
The problem can now be expressed as follows:
Max Z = 3x + 4y + 0s1 + 0s2
Subject to constraints,
2x + 5y + s1 + 0s2 = 120
4x + 2y + 0s1 + s2 = 80
8. CBi
Cj 3 4 0 0
Solution Ratio
Basic
variable
X Y S1 s2
0 S1 2 5 1 0 120 24
0 S2 4 2 0 1 80 40
Zj 0 0 0 0
= Cj-Zj 3 4 0 0
Key Column
Key
Row
Contribution gap row
Simplex Table I : Non Optimal Solution
• All values are not equal to zero, Therefore solution is not optimal.
12. CBi
Cj 3 4 0 0
Solution
Basis variable X Y S1 s2
4 Y 0 1 0.25 - 0.125 20
3 X 1 0 - 0.125 0.312 10
Zj 3 4 0.625 0.436 110
= Cj-Zj 0 0 - 0.625 - 0.436
Simplex Table III : Optimal Solution
• There is no positive number in the index row.
• Therefore, Optimum solution has been obtained.
X = 3 Y = 4 Z = 110
Before the simplex method can be applied, the relationship which establishes the constraints or inequalities must be set up first.
Letting X and Y be respect. The quantity of iems off the standard model and deluxe model that are to be manufactured.
Slack variable is a variable that is added to an inequality constraint to transform it to an equality.
Z= objective Function.
Now the simplex method can be applied and the first matrix can be set up.
Now, Select highest column to calculate the ratio.
Select row where the ratio is least.
Key element = 5