Simplex Method For LPP
Simplex Method For LPP
Slack Variable
Slack variables are additional variables that are
introduced into the linear constraints of a linear program
to transform them from inequality constraints to equality
constraints.
Surplus Variable
Surplus variables are variables subtracted into the linear
constraints of a linear program to transform them from
inequality constraints to equality constraints.
Basic Solution
Given a system of m linear equations with n variables (m
< n). Any solution which is obtained by solving for m
variables keeping the remaining (n–m) variables zero is
called a basic solution.
Fundamental Theorem of LP
The fundamental theorem of linear programming says
that if there is a solution, it occurs on the boundary of the
feasible region, not inside the region.
Basic Variables
Basic variables are variables that are non-negative in
terms of the optimal solution.
Non-Basic Variables
Non-basic variables are variables that are zero in terms of
the optimal solution.
Simplex Tableau
Simplex tableau is used to perform row operations on the
linear programming model as well as for checking
optimality.
Optimality Check
Optimal solutions of a maximization linear programming
model are the values assigned to the variables in the
objective function to give the largest zeta value. The
optimal solution would exist on the corner points of the
graph of the entire model.
Solution:
Step 1: Standard form
Standard form is necessary because it creates an ideal
starting point for solving the Simplex method as
efficiently as possible.
Note:
To transform a minimization linear program model into a
maximization linear program model, simply multiply both
the left and the right sides of the objective function by -1.
-1 × [-Z = -8x1 - 10x2 - 7x3]
Z = 8x1 + 10x2 + 7x3
Maximize: Z = 8x1 + 10x2 + 7x3
Transforming linear constraints from a greater-than-or-
equal-to inequality to a less-than-or-equal-to inequality
can be done similarly as what was done to the objective
function. By multiplying by -1 on both sides, the
inequality can be changed to less-than-or-equal-to.
-1 × [x1 - 5x2 - x3 ≥ -8 ]
x1 + 5x2 + x3 ≤ 8
Step 2: Determine Slack Variables
Let x3 and x4 be non-negative slack variables,
x1 + 2x2 + x3 = 6
4x1 + 3x2 + x4 = 12
7x1 + 5x2 = P
∵ -7 is the most -ve value(smallest value), so, the first column is the
pivot column.
∵ = 6 and
∴ 4 is the pivot element.
= 3(min) [3<6]
R2 → R2/4
R1 → R1 - R2
R3 → 7R2 + R3
Exercise 2
Use the simplex method to find the optimal solutions of
the following LP Problem.
Max. Z = 3x1 + 5x2
subject to
3x1 + 2x2 ≤ 18
x1 ≤ 4
x2 ≤ 6
x1, x2 ≥ 0
Solution:
Let x3, x4 and x5 be non-negative slack variables,
3x1 + 2x2 + x3 = 18
x1+ x4 = 4
x2 + x5 = 6
3x1 + 5x2 = Z
R1 → R1 - 2R3
R4 → R4 + 5R3
∵ -3 is the most -ve value(smallest value), so, the first column is the
pivot column.
R2 → R2 - R1
R4 → R4 + 3R1
Dual of LP Problem
If the LP problem is of maximization type then it can be
solved by simplex method.
But if the given LP Problem is of the minimization type
then it can be solved after changing itself into the
maximization problem, this is known as the dual problem
of the given LP Problem.
Here,
A= Augmented matrix formed from the constraints and
the objective function
The corresponding dual problem of the given
minimization problem is as follows:
Max. P = c1x + c2y
subject to
a1u + b1v ≤ a
a2u + b2v ≤ b
c1, c2 ≥ 0
u, v ≥ 0
Exercise 3
Minimize P = 7x1 + x2
subject to
3x1 - 2x2 ≤ -6
x1+ 3x2 ≥ 15
x1, x2 ≥ 0
Solution:
Standard Form:
Minimize P = 7x1 + x2
subject to
3x1 - 2x2 ≤ -6 or,-3x1 + 2x2 ≥ 6
x1+ 3x2 ≥ 15
x1, x2 ≥ 0
∵ -15 is the most -ve value(smallest value), so, the second column is the
pivot column.
∵ = 7 and = 0.33 (min) [0.33<7]
∴ 3 is the pivot element.
R2 → R2/3
R1 → R1 - R2
R3 → R3 + 15R2