Chapter 3 - Simplex Method
Chapter 3 - Simplex Method
Tenth Edition
Chapter 3
The Simplex Method
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Today’s Agenda
Simplex Method
The Simplex Method
•It is an approach for determining the optimal value of a
linear program by hand.
• To convert a inequality to an
equation, a nonnegative slack
LP Model in variable is added to the left-hand side
Equation of the constraint.
Form
• Ex: M1-constraint of the Reddy Mikks
model is converted into an equation
as:
6x1 + 4x2 + s1 = 24, s1 0
“A mathematical representation
of surplus resources.” In real life
problems, it’s unlikely that all
resources will be used
completely, so there usually are
Slack unused resources.
Variables
Slack variables represent the
unused resources between the
left-hand side and right-hand
side of each inequality.
LP: THE SIMPLEX METHOD
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Iterative Process of the Simplex Method
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex Method: How to Calculate
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
Decision
2. Create the initial simplex tableau. variables
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
2. Create the initial simplex tableau.
basic variables
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
Objective function
2. Create the initial simplex tableau. coefficients
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
Constraints variables
2. Create the initial simplex tableau. coefficients
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
Right-hand sides of
the model’s
2. Create the initial simplex tableau. equations
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Iteration: Steps
Nonbasic variables
2. Create the initial simplex tableau.
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24
s1-row
s2 0 1 2 0 1 0 0 6
s2-row
s3 0 -1 1 0 0 1 0 1
s3-row
s4 0 0 1 0 0 0 1 2
s4-row
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex iteration: initial simplex tableau
Initial tableau: solution starts at the origin (0, 0)
n – m = 6 – 4 = 2 (setting n-m variables equal to zero and solve the
remaining variables)
At the origin we have a basic feasible solution:
s1 = 24; s2 = 6; s3 = 1; s4 = 2
x and y are non basic variables at the origin
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0
s1 0 6 4 1 0 0 0 24
s2 0 1 2 0 1 0 0 6
s3 0 -1 1 0 0 1 0 1
s4 0 0 1 0 0 0 1 2
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex iteration: initial tableau
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0
s1 0 6 4 1 0 0 0 24
s2 0 1 2 0 1 0 0 6
s3 0 -1 1 0 0 1 0 1
s4 0 0 1 0 0 0 1 2
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex 1st iteration: entering variable
z 1 -5 -4 0 0 0 0 0
s1 0 6 4 1 0 0 0 24
s2 0 1 2 0 1 0 0 6
s3 0 -1 1 0 0 1 0 1
s4 0 0 1 0 0 0 1 2
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex 1st iteration: leaving variable
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0
s1 0 6 4 1 0 0 0 24
s2 0 1 2 0 1 0 0 6
s3 0 -1 1 0 0 1 0 1
s4 0 0 1 0 0 0 1 2
Simplex Algorithm
Initial Solution
Optimum yes
End
Solution?
no
Entering Variable
Leaving Variable
Pivot
Simplex 1st iteration: pivot
The swapping process is based on the Gauss-Jordan row operations. Entering
variable column = pivot column; leaving variable row = pivot row with their
intersection being the pivot element.
pivot row
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0
s1 0 6 4 1 0 0 0 24
s2 0 1 2 0 1 0 0 6
s3 0 -1 1 0 0 1 0 1
s4 0 0 1 0 0 0 1 2
Pivot column
Simplex 1st iteration: pivot
Pivot row:
a) Replace the leaving variable in the basic column with the
entering variable
b) New pivot row = current pivot row ➗ pivot element
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 0 0 3/4 1/2 0 0 21
x1 0 1 0 1/4 -1/2 0 0 3
x1 3 Produce 3 tons of
exterior paint daily
New row = (current row) – (pivot column efficient) (new pivot row)
Homework: Time to Practice!!!
1. Consider the following linear programming model.
Maximize Z = 3x1 + 2 x2,
subject to
x1 ≤ 4
x1 + 3x2 ≤ 15
2x1 + x2 ≤ 10
and
x1 ≥ 0, x2 ≥ 0