Module 1 Rev. Lesson 1.3. Simplex Method
Module 1 Rev. Lesson 1.3. Simplex Method
MODULE 1
OPTIMIZATION OF DISCRETE
MODEL:
Operation Research
The simplex method is also known as simplex algorithm. This is one of the
mathematical tools used for linear programming. As per the journal Computing in
Science and Engineering, this method is considered one of the top 10 algorithms
that originated during the twentieth century as developed by George Dantzig.
Terminologies:
Slack Variables (Sn) - variables that fill the gap between the left and the right
members of the inequalities. It represents the unused
quantities or idle resources in the constraints and has
zero contribution to profit or cost.
Pivotal Row - a row which contains the smallest quotient between the
solution value and the non-zero or non-negative entry in
the optimum column.
Pivot - an intersection between the optimum column and the pivotal row. A
number that serves as a divisor of the solution value and
which gives the smallest quotient.
Replacing row - a row which is also a pivotal row on the previous table. The
entries are the quotients after dividing the pivotal row by
the pivot.
Module 1 – Optimization of Discrete Model
2. Write the new program with slack variables on the objective function and
on the explicit constraints. (Convert the inequality explicit constraints to
equation).
6. Get the quotient between the solution values column by the non-zero and
non-negative entries in the optimum column. The least quotient becomes
the pivotal row.
7. Divide all entries in the pivotal row by the pivot to determine the values for
the replacing row. Then enter the computed result in the next table.
8. Calculate the new entries for the remaining rows by adding the product of
the entries in the replacing row and the additive inverse of a number in the
optimum column and the old entries in the previous table.
9. Obtain the Cj and Zj values. Calculate the difference of Cj and Zj (Cj – Zj)
rows.
10. The decision or final solution in the optimum table has been obtained if all
of the entries in the Cj – Zj row are all zeros and negative. Otherwise,
return to step no. 5.
➢ Add a slack variable on the left member of the constraint containing less than
or equal to symbol (≤).
➢ Multiply the constraint contains greater than or equal (≥) by (-1) in order to
reverse the symbol into less than or equal to (≤) then add a slack variable.
➢ Add a slack variable on the left member of the constraint containing equal to
(=) symbol.
1. Determine the Cj column in the initial table by entering all the coefficients of
artificial variables and slack variables in the objective function with positive
coefficients only in the constraints.
3. The decision or final solution in the optimum table has entries in the Cj – Zj
row with zeros or positive.
➢ Add a slack variable on the left member of the constraint containing less than or
equal to symbol (≤).
➢ Subtract a slack variable on the left member of the constraint but add an artificial
variable at the same time if the symbol is greater then or equal to (≥).
➢ Add an artificial variable on the left member of the constraint containing equal to
(=) symbol.
Examples:
Solve the following maximization problems using simplex method.
1. The Adlex Furniture Shop produces cabinets, chairs, and tables. Each cabinet
requires 6 minutes in machine center M, 5 minutes in machine center A, and 8
minutes in machine center B. Each chair produced requires 5, 4, and 5 minutes
in machine centers M, A, and B respectively. Likewise, each table produced
requires 6, 4, and 6 minutes in machine centers M, A, and B respectively. The
Shop has a daily availability of 2,400 minutes in center M, 2,000 minutes in center
A, and 3,000 minutes in machine center B. Each cabinet gives PhP600 profit, a
chair gives PhP200, and a table gives PhP500. Find the number of each type of
products to produce in order to maximize the Furniture Shop’s profit.
Solution:
6𝑥 + 5𝑦 + 6𝑧 + 𝑆1 = 2,400
Subject to: {5𝑥 + 4𝑦 + 4𝑦 + 𝑆2 = 2,000
8𝑥 + 5𝑦 + 6𝑧 + 𝑆3 = 3,000
𝑥; 𝑦; 𝑧 ≥ 0
𝑆1 ; 𝑆2 ; 𝑆3 ≥ 0
0 S3 3,000 8 5 6 0 0 1
Zj 0 0 0 0 0 0 0
Cj - Zj 600 200 500 0 0 0
(3,000 8 5 6 0 0 1) ÷ 8
3
Divide Row 1 in table II by 2 to get the entries in the replacing row.
“A row with smallest quotient after dividing the solution value (150) by a
3
divisor (2) belongs to a pivotal row.”
5 3 −3 3
(150 0 1 0 )÷2
4 2 4
5 2 −1
(100 0 1 0 ) entries on replacing row
6 3 2
Module 1 – Optimization of Discrete Model
Decision:
Maximum Profit: PhP180,500
X = 300 pcs. of Cabinet
Y = 0 no. of Chair
Z = 100 pcs. of Tables
The Adlex Furniture Shop should produce 300 pieces of cabinets and
100 pieces of tables in order to realize a maximum profit of PhP180,000.
Module 1 – Optimization of Discrete Model
Multiply the constraint with greater than or equal to (≥) symbol by (-1) to
reverse into less than or equal to (≤) symbol, then add a slack variable.
−(𝑦 ≥ 6) −𝑦 ≤ −6
Maximize Z: 10𝑥 + 12𝑦 + 0𝑆1 + 0𝑆2 + 0𝑆3
𝑥 + 𝑆1 = 2
Subject to: { −𝑦 + 𝑆2 = 6
𝑥 + 𝑦 + 𝑆3 = 10
𝑥≥0
𝑦≥0
𝑆1 ≥ 0
𝑆2 ≥ 0
𝑆3 ≥ 0
0 S2 -6 0 -1 0 1 0
0 S2 10 1 1 0 0 1
Zj 0 0 0 0 0 0
Cj - Zj 10 12 0 0 0
0 S2 4 1 0 0 0 1
12 X2 10 1 1 0 0 1
Zj 120 12 12 0 0 12
Cj - Zj -2 0 0 0 -12
Module 1 – Optimization of Discrete Model
Decision :
Maximum Z: 120
x = 0 ; y = 10
Decision:
X1 = 10, and
Minimum Z = 30
Exercises:
In each of the following, write the new program with slack(Sn) and/or artificial
(An) variables , then solve by simplex method.
Seatwork:
Alex company’s profit is P = 300X + 200Y + 100Z where X, Y, and Z are three
types of products produced. The profit function is subject to the following
constraints: 𝑋 + 𝑌 ≤ 200, 𝑍 ≤ 50, 𝑋 + 𝑍 ≥ 150, 𝑋 ≥ 0, 𝑌 ≥ 0, 𝑍 ≥ 0. Find
the values of X, Y, and Z to realize the maximum profit.
Module 1 – Optimization of Discrete Model
Problems Set:
I.
In each of the following, write the new program with slack(Sn) and/or artificial
(An) variables , then solve by simplex method.
2. Mr. Bundy owns a 10-hectare farm, which he plants peanuts and corn.
The peanut needs 4 units of insecticides and 3 units of fertilizers per
hectare, while the corn needs 3 units of insecticides and 6 units of
fertilizers. There are available 36 units of insecticides and 48 units of
fertilizers. The peanuts average contribution to profit is PhP20,800 per
hectare while the corn is
PhP15,000 per hectare. His objective is to optimize his profit. How
many hectares should he plant with peanuts and with corn.
3. Three foods are to be purchased in amounts X1, X2, and X3. Their
calories and vitamin contents, minimum requirements and prices are
shown below:
X1 X2 X3 Minimum
Requirements
Calorie 4 2 5 26
Vitamin 1 4 4 13
Price per unit PhP18 PhP90 PhP130
How much of X1, X2, and X3 must be purchased to minimize the cost?
Module 1 – Optimization of Discrete Model
Module 1 – Optimization of Discrete Model