Lecture 3-M1 - Simplex Method
Lecture 3-M1 - Simplex Method
(MN 6035)
• Solution: Any set of values assigned to the decision variables in a given LPP is termed as a
solution. It may or may not satisfy any or all of the constraints.
• Basis and Basic variables: The set of basic variables is termed as basis. In a LPP, the number
of basic variables is equal to the number of equality constraints. All the variables under basis
are non-negative in nature.
• Non-basic variables: All variables outside the basis are designated as non-basic variables. All
the non-basic variables are zeros.
• Feasible Solution: Any solution that satisfies all the constraints of the LPP is referred to as
feasible solution.
• Infeasible solution: Any solution that violates at least one of the constraints is referred to as
infeasible solution.
• Basic solution: If an LPP has n decision variables and m slack variables then the basic solution
has m number of basic variables and n number of non-basic variables. The basic solution
should have at most m non-zero variables, which is equal to number of equality constraint or
slack variable and at least n zero valued variables, number of decision variables.
• Basic feasible solution: A basic solution, which is feasible, is a basic feasible solution.
• Initial basic feasible solution: The starting solution of a LPP, which is basic and feasible, is
termed as initial basic feasible solution. It is derived by setting all the decision variables equal
to zero.
AKGORAI NIT ROURKELA 4
Simplex Algorithm
Step 1: Formulation of Standard Form of the Problem
Transform all the constraints to equality by introducing
slack, surplus, and artificial variables as follows:
Constraint type Variable to be added
≥ + slack (s)
= + Artificial (A)
Step 2: Construct the initial simplex tableau
Basic X1 … Xn S1 … Sn A1 … An RHS
variable
S b1
: Coefficient of the constraints :
A bm
Z Objective function coefficient Z value
Step 3: Test for optimality
Case 1: Maximization problem
If every coefficient in the objective function row is
non-negative then the current BF solution is
optimal.
Case 2: Minimization problem
If every coefficient in the objective function row is
non-positive then the current BF solution is
optimal.
1. New pivot row can be determined by dividing the old pivot row by the
“pivot number” (the number in the intersection of the pivot row and pivot
column). Thus, the new pivot row is
Old pivot row
New pivot row =
Pivot coefficients
The values of slack variables at the initial basic feasible solution can be determined
from the constraint functions.
From first constraint, 2 ∗ 0 + 3 ∗ 0 + 𝑦1 + 0 ∗ 𝑦2 = 8
𝑦1 = 8
Similarly from second constraint, 3𝑥1 + 2𝑥2 + 0𝑦1 + 𝑦2 = 8
𝑦2 = 8
Starting Solution
Basis Coefficient of
x1 x2 y1 y2 RHS
Row 1 y1 2 3 1 0 8
Row 2 y2 3 2 0 1 8
Row Z Z -1800 -1500 0 0 0
Optimality Check….
Thus, 𝑥1 replaces 𝑦2 in the new solution which has (𝑦1 , 𝑥1 ) as the basis by
Gauss-Jordan transformation.
3 2 0 1 8 2 1 8
Thus, the new pivot row is , , , ,
3 3 3 3 3
= 1, 3 , 0, 3 , 3 .
The rows other than the pivot row are transformed as explained in eqn. 3.3.
(𝐍𝐞𝐰 𝐫𝐨𝐰)𝒊 = (𝐎𝐥𝐝 𝐫𝐨𝐰)𝒊 – (𝐩𝐢𝐯𝐨𝐭 𝐜𝐨𝐥𝐮𝐦𝐧 𝐜𝐨𝐞𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐭𝐬) ∗ 𝐍𝐞𝐰 𝐩𝐢𝐯𝐨𝐭 𝐫𝐨𝐰
Entering
Variable
Now the same simplex algorithm can be applied to solve the problem. Since there is a
positive value in the Z- row under non-basic variable, this solution is not optimal. The
entering variable is the most positive coefficient (x1) in the Z-row. The leaving
variable is A1 as it has the smallest ratio.
Entering
Variable
Still there is a positive value in the Z- row under non-basic variable, this solution
is not optimal. The entering variable is the most positive value in the Z-row. It is
clear that x2 has the maximum positive coefficient (=40000/3) in the Z-row and
thus selected as entering variable. The leaving variable is y1 as it has the smallest
ratio.
AKGORAI NIT Rourkela 23
Second iteration
Basis Coefficient of RHS
x1 x2 S1 y1 A1
Row 1 x1 1 0 1/200 -1/200 1/200 7/2
Row 2 x2 0 1 1/200 3/200 -1/200 3/2
Row Z Z 0 0 -150 -50 -M + 350/3 155000
The current solution is optimal as there is no positive coefficient exists in the Z-row
under basic variable.