Chapter 3 Simplex Method
Chapter 3 Simplex Method
SIMPLEX METHOD
1
Important terminology
Standard form is the baseline format for all linear
programs before solving for the optimal solution.
Basic variables are variables that are non-negative in
terms of the optimal solution
Constraints are a series of equalities and inequalities that are a
set of criteria necessary to satisfy when finding the optimal
solution
Non-basic variables are variables that are zero in terms of the
optimal solution.
Pivot variable is used in row operations to identify which
variable will become the unit value and is a key factor in the
conversion of the unit value.
Simplex tableau is used to perform row operations on the linear
programming model as well as for checking optimality
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
Optimal solution 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.
2
Basic solutions of LPP
4
Simplex Method
5
The simplex method is an approach to solve linear
programming models by hand using slack variables,
tableaus, and pivot variables as a means to finding
the optimal solution of an optimization problem
6
To solve a linear programming model using the
Simplex method the following steps are
necessary:
Standard form
Introducing slack variables
Creating the tableau
Pivot variables
Creating a new tableau
Checking for optimality
Identify optimal values
7
STANDARD FORM
Standard form is the baseline format for all linear
programs before solving for the optimal solution
and has three requirements:
(1) must be a maximization problem,
(2) all linear constraints must be in a less-than-or-equal-to
inequality,
(1) all variables are non-negative.
9
10
Example
Maximize 𝑍 = 3𝑥1 + 5𝑥2
Subjected to
𝑥1 ≤ 4
2𝑥2 ≤ 12
3𝑥1 + 2𝑥2 ≤ 18
11
12
The simplex method is a popular algorithm for
solving linear programming problems, which
involve maximizing or minimizing a linear
objective function subject to a set of constraints.
The constraints are typically specified as linear
equations or inequalities involving the variables
of the problem.
The simplex method can be used to solve both
maximization and minimization problems, but it
is typically presented as a method for solving
maximization problems.
The simplex method can still be used to solve
minimization problems, but it must be modified
to work in the opposite direction.
This can be done by multiplying the objective
function by -1, and then using the simplex
method as usual
13
step 1:Transform the objective equation
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.
15
step 3: setting up the tableau
16
Once the tableau has been completed, the
model can be checked for an optimal solution
as shown in Step 4.
17
step 4: check optimality
19
The intersection of the row with the smallest non-
negative indicator and the smallest negative value in
the bottom row will become the pivot variable.
-10 is the smallest negative in the last row. This will
designate the x2 column to contain the pivot variable.
10
Solving for the indicator gives us a value of for the
3
8
first constraint, and a value of for the second
5
constraint
8
Due to being the smallest non-negative indicator,
5
the pivot value will be in the second row and have a
value of 5.
20
Now that the new pivot variable has been
identified, the new tableau can be created in Step
6 to optimize the variable and find the new
possible optimal solution.
21
step 6: create the new tableau
22
After the unit value has been determined, the
other values in the column containing the unit
value will become zero. This is because the x2 in
the second constraint is being optimized, which
requires x2 in the other equations to be zero.
23
For each new value, multiply the negative of the value
in the old pivot column by the value in the new pivot
row that corresponds to the value being calculated.
Then add this to the old value from the old tableau to
produce the new value for the new tableau.
24
Example:
1 2
X1 value in row 1 : New tableau value = (-3) * ( ) + 1 =
5 5
1
s2 value in row 1: New tableau value = (-3) * ( ) +0
5
3
=-
5
8 26
b in row 1 : New tableau value = (-3) * ( ) + 10 =
5 5
1
x1 variable in row 3: New value = (10) * ( ) + -8 = -6
5
25
step 7: check optimality
26
step 8: identify new pivot variable
1/5
With the new pivot variable identified, the new tableau can
1
be created . In the tableau below, the pivot value was , so
5
everything is multiplied by 5.
27
Make the other values in the column of the pivot
variable zero. This is done by taking the negative of
the old value in the pivot column and multiplying it
by the new value in the pivot row.
2
X2 value in row 1 : New tableau value = (-5) * 5+ 0 = −2
2 7
X3 value in row 1 : New tableau value = (-5) * 1+ (5) = 1
2
S1 value in row 1 : New tableau value = (-5) * 0+ 1 = 1
2 −3
S2 value in row 1 : New tableau value = (-5) * 1+ ( 5 ) = - 1
2
Z value in row 1 : New tableau value = (-5) * 0+ 0 = 0
2 26
b value in row 1 : New tableau value = (-5) *8+ ( 5 ) = 0
28
X2 value in row 3 : New tableau value = 6* 5+ 0 = 30
X3 value in row 3 : New tableau value = 6 * 1-5 = 1
S1 value in row 3 : New tableau value = 6 * 0+ 0 = 0
S2 value in row 3 : New tableau value = 6 * 1+ 2= 8
Z value in row 3: New tableau value = 6 * 0+ 1 = 1
b value in row 3 : New tableau value = 6 *8+ 16= 64
New tableau
** All values in the bottom row are greater than or equal to zero.
Thus it is an optimal solution, and iteration ended.
A basic variable can be classified to have a single 1 value in its
column and the rest be all zeros. If a variable does not meet this
criteria, it is considered non-basic.
29
If a variable is non-basic it means the optimal solution of
that variable is zero. If a variable is basic, the row that
contains the 1 value will correspond to the beta value. The
beta value will represent the optimal solution for the given
variable.
x1 = 8 s1 = 2
x2 = 0 s2 = 0
x3 = 0 z = 64
** The maximum objective value will be 64 from the beta column.
30