Linear Programming: Simplex Method
Linear Programming: Simplex Method
Linear Programming:
Simplex Method
The Simplex Method requires that all constraints be expressed as equations
Mathematically.
It is easier to solve system of linear equations than system of inequalities.
All inequalities shall be converted into equations or in the standard form of linear
programming problem.
Simplex Method is an iterative technique that begins with a feasible solution that is not
optimal, but serves as a starting point with the use of algebraic manipulation.
The solution is improve until no further improvement is possible.
Step 4:
Standard Form is the way of expressing the constraints of a Linear Programming
problem as equalities with all variables on the left side of the equation and a constant
on the right side.
Slack variables are variables added to constraints to convert them into equations.
Surplus variables are variables subtracted from constraints to convert them into
equations.
Artificial variable is a computational device used in linear programming to achieve
an initial solution to the problem.
Step 5:
Iteration is a simplex method which consists of the sequence of steps (row operations) performed in
moving one basic feasible solution to another.
Simplex Tableau is a table use to keep track of the calculations made when the simplex method is
employed.
Right-Hand-side is the column in a simplex tableau indicating the quantities of the variables is in
solution.
Basic Variables are the variable included in a basic solution.
Step 6:
Optimum Column is the column or entering by choosing the most positive entry in the 𝑪𝒋 − 𝒁𝒋 row or
which has largest negative value in a minimization problem.
Intersectional Elements are elements common to both the optimum column and the row
representing variables in the solution.
Pivot Row is the row in the simplex tableau corresponding to the basic variables that will leave the
solution.
Pivot is the element of the simplex tableau that is in both the pivot row and the optimum column.
Pivoting is the process of going from one simplex tableau to the next.
3.1 Maximization Problem
Example 3.1:
A tailor has the following materials available: 18 square meter cotton, 20 square meter
silk, 5 square meter wool. A gown requires the following: 3 square meters cotton. 2
square meters silk and 1 square meters wool. A suit requires the following: 2 square
meters cotton, 4 square meters silk. If a gown sells for P1,200 and a suit for P1,600,
how many of each garments should the tailor make to obtain the maximum amount of
money?
Solution:
In order to solve a linear programming using simplex method, it is necessary to follow
the following steps:
Step 1: Represent the unknown in the problem.
Let 𝑥1 be the number of gowns and
𝑥2 𝑏𝑒 𝑡ℎ𝑒 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑢𝑖𝑡𝑠
Step 2: Tabulate the data about the facts (if necessary)
Materials Gown (x1) Suit (x2) Available
Cotton 3 2 18
Silk 2 4 20
Wool 1 0 5
Profit 1200 1600
Step 3: Formulate the objective function and constraints by restarting the information in
mathematical form.
The objective function is:
Maximize: Zj = 1200x1 + 1600x2
The constraints are:
Structural
3x1 + 2x2 18 Cotton
2x1 + 4x2 20 Silk
x1 5 Wool
Non-negativity
x1, x2 0
Step 4: Convert the inequality in structural constraints to equation by adding a stacks variable
in a “less-than-or-equal-to” constraints.
Rules fro preparing constraints in simplex method
Step 6: Determine the optimum column or entering by choosing the most positive entry
in the 𝑪𝒋 − 𝒁𝒋 row, which is 1600.
Tableau 1
Optimum column
Tableau 1
Pivot Row
Other parts of the simplex table are: Entering Variable
Tableau 1
Contribution
to the Profit
Column
Leaving Constraints
Basic Coefficients
Variable
Step 8: Compute the values of the replacing row by dividing all the entries by the pivot 4.
Replacing Row (RR) = Pivot Row (PR) Pivot(P)
= (20, 2, 4, 0, 1, 0) 4
= (5, ½, 1, 0, ¼, 0)
Step 9: Compute the new values for the remaining rows using the formula.
Remaining Row = Old Row – (Intersectional Element x Replacing Row)
First Row = (18, 3, 2, 1, 0, 0) – (2)(5, ½, 1, 0, ¼, 0)
= (18, 3, 2, 1, 0, 0) – (10, 1, 2, 0, ½, 0)
= (8, 2, 0, 1, - ½, 0)
Third Row = (5, 1, 0, 0, 0,1) – (0)(5, ½, 1, 0, ¼, 0)
= (5, 1, 0, 0, 0,1) – (0, 0, 0, 0, 0, 0)
= (5, 1, 0, 0, 0,1)
Enter the results in Tableau 2.
Tableau 2
Basic Right-Hand 1200 1600
𝑪𝒋
Variables Side 𝑿𝟏 𝑿𝟐 𝑺𝟏 𝑺𝟏 𝑺𝟏
0 𝑺𝟏 8 2 0 1 -½ 0
1600 𝑿𝟐 5 ½ 1 0 ¼ 0
0 𝑺𝟏 5 1 0 0 0 1
𝒁𝒋
𝑪𝒋 − 𝒁𝒋
Step 11 If the last 𝑪𝒋 - 𝒁𝒋 row do not contain a positive entry the tableau is
optimum. Our decision will be to make
Decision:
𝑿𝟏 = 4 gowns 𝑺𝟏 = 0
𝑿𝟐 = 𝟑 𝐬𝐮𝐢𝐭𝐬 𝑺𝟐 = 0
𝒁𝒋 = P 9,600 𝑺𝟑 = 1
Sensitivity Analysis:
Changes in the Objective Function Coefficients
Shadow Prices is the rate of change of the optimal objective function value per unit
increase in the right-hand-side (RHS)
From Previous example;
A tailor has the following materials available: 18 square meter cotton, 20 square meter
silk, 5 square meter wool. A gown requires the following: 3 square meters cotton. 2 square
meters silk and 1 square meters wool. A suit requires the following: 2 square meters cotton, 4
square meters silk. If a gown sells for P1,200 and a suit for P1,600, how many of each
garments should the tailor make to obtain the maximum amount of money?
Maximize: Zj = 1200x1 + 1600x2
Subject to: 3x1 + 2x2 18
2x1 + 4x2 20
x1 5
x1 , x 2 0
Solution:
where x1 = number of gowns produced
x2 = number of suits produced
The final table in the simplex method:
Solving the delta changes () under the 𝑪𝒋 - 𝒁𝒋 row as long as it will remain negative.
- 200 - /2 < 0 and - 300 + /4 < 0
- /2 < 200 /4 < 300
> (- 2)(200) < (4)(300)
> - 400 < 1200
Step 2: Substitute the values of the delta change into C1 = 1200 + .
Thus,
> - 400 and < 1200.
Note: C1 = 1200 + :
Therefore, ∆ = C1 - 1200
Then, substitute C1 - 1200 for in the inequalities.
> - 400 < 1200
𝑪𝟏 - 1200 > - 400 𝑪𝟏 - 1200 < 1200
𝑪𝟏 > - 400 + 1200 𝑪𝟏 < 1200 + 1200
𝑪𝟏 > 800 𝑪𝟏 < 2400
Therefore, the change of values for C1 over which the solution basis will
remain optimal is 800 < C1 < 2400.
Step 3: Determine the range of the succeeding Cj over which the current solution
basis will remain optimal.
Considering a delta change in C2.
Step 4: Change in C2 value from C2 = 1600 to C2 = 1600 + .
The new value is included not only in the top Cj row but also in the let-hand
Cj column.
Final Simplex Tableau with C2 = 1600 +
The company wants to determine the number of grams of each ingredient 1 and 2 that
must go in to drug in order to meet the antibiotic minimum requirements at the minimum cost.
Solution:
Reference:
1. Sirug, Dr. Winston S. , “Quantitative Techniques for Business”, Copyright 2006,
ISBN 978-971-04445-00-4