Acc 412 Sim
Acc 412 Sim
1
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
2
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
3
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Let us begin!
4
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Table of Content
Week 1 – 3 Page
ULO-a 6
1. Overview of Operations Research 7
2 – Modeling with Linear Programming 12
Let’s Check Activity 1 19
Let’s Analyze Activity 1 20
In the Nutshell Activity 1 21
Week 4 – 5
ULO-a 23
1 – Review of Linear Algebra 24
2 – System of Linear Equations 25
Let’s Check Activity 1 33
Let’s Analyze Activity 1 34
In the Nutshell Activity 1 35
ULO-b 37
1 – The Simplex Method: Maximization Problem 39
2 – The Simplex Method: Minimization Problem 44
3 – The Simplex Method: Mixed Problem 46
4 – Duality and Sensitivity Analysis 49
Let’s Check Activity 1 55
Let’s Analyze Activity 1 57
In the Nutshell Activity 1 59
Week 6 – 7
ULO-a 61
1 – Integer Programming 62
2 – Special-Purpose Algorithm of LP 72
Let’s Check Activity 1 85
Let’s Analyze Activity 1 86
In the Nutshell Activity 1 87
Week 8 – 9
ULO-a 89
1 – Project Management with PERT/CPM 91
2 – Decision Theory 104
3 – Business Forecasting 107
Let’s Check Activity 1 112
Let’s Analyze Activity 1 113
In the Nutshell Activity 1 114
Course Schedules 116
5
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Metalanguage
In this section, the essential terms relevant to the study of the nature of
Mathematics and to demonstrate ULO-a will be operationally defined to establish a
common frame of reference as to how the texts work. You will encounter these terms
as we go through the study of the nature of mathematics. Please refer to these
definitions in case you will encounter difficulty in understanding some concepts.
6
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
5. Linear Programming
Linear programming is an optimization technique for a system of linear
constraints and a linear objective function. An objective function defines the
quantity to be optimized, and the goal of linear programming is to find the
values of the variables that maximize or minimize the objective function.
Essential Knowledge
To perform the aforesaid big picture (unit learning outcomes) for the first three
(3) weeks of the course, you need to fully understand the following essential
knowledge that will be laid down in the succeeding pages. Please note that you are
not limited to refer to these resources exclusively. Thus, you are expected to utilize
other books, research articles, and other resources that are available in the
university’s library e.g., ebrary, search.proquest.com, etc.
7
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
(and most difficult) phase of practicing OR. It also emphasizes that, while
mathematical modeling is a cornerstone of OR, intangible (unquantifiable) factors
(such as human behavior) must be accounted for in the final decision.
8
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
objective function. In the tickets example, the problem presents three feasible
alternatives, with the third alternative yielding the optimal solution.
Though OR models are designed to "optimize" a specific objective criterion
subject to a set of constraints, the quality of the resulting solution depends on the
completeness of the model in representing the real system. Take, for example, the
tickets model. If one is not able to identify all the dominant alternatives for purchasing
the tickets, then the resulting solution is optimum only relative to the choices
represented in the model. To be specific, if alternative 3 is left out of the model, then
the resulting "optimum" solution would call for purchasing the tickets for P1880,
which is a suboptimal solution. The conclusion is that "the" optimum solution of a
model is best only for that model. If the model happens to represent the real system
reasonably well, then its solution is optimum also for the real situation.
9
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
behavior of the real system. In a way, simulation may be regarded as the next best
thing to observing a real system. The main difference between queuing and
simulation is that queuing models are purely mathematical, and hence are subject
to specific assumptions that limit their scope of application. Simulation, on the other
hand, is flexible and can be used to analyze practically any queuing situation.
The use of simulation is not without drawbacks. The process of developing
simulation models is costly in both time and resources. Moreover, the execution of
simulation models, even on the fastest computer, is usually slow.
10
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Phase 3, dealing with model solution, is the best defined and generally the
easiest to implement in an OR study, because it deals mostly with precise
mathematical models. Implementation of the remaining phases is more an art than
a theory.
Problem definition involves defining the scope of the problem under
investigation. This function should be carried out by the entire OR team. The aim is
to identify three principal elements of the decision problem: (1) description of the
decision alternatives, (2) determination of the objective of the study, and (3)
specification of the limitations under which the modeled system operates.
Model construction entails an attempt to translate the problem definition into
mathematical relationships. If the resulting model fits one of the standard
mathematical models, such as linear programming, we can usually reach a solution
by using available algorithms. Alternatively, if the mathematical relationships are too
complex to allow the determination of an analytic solution, the OR team may opt to
simplify the model and use a heuristic approach, or they may consider the use of
simulation, if appropriate. In some cases, mathematical, simulation, and heuristic
models may be combined to solve the decision problem.
Model solution is by far the simplest of all OR phases because it entails the
use of well-defined optimization algorithms. An important aspect of the model
11
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
12
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
13
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Step 8. Determine the value of the objective function for the optimal
solution.
Example.
The company uses wood and labor to produce tables and chairs. Recall that
unit profit for tables is ₱6, and unit profit for chairs is ₱8. There are 300 board feet
(bf) of wood available, and 110 hours of labor available. It takes 30 bf and 5 hours to
make a table, and 20 bf and 10 hours to make a chair. Table 1 contains the
information for the LP problem. We will go through the step-by-step process of
solving this problem graphically.
Solution.
Step 1. Formulate the LP problem.
Table 1 will help us formulate the problem. The bottom row is used to formulate
the objective function. Objective functions are developed in such a way as to be
either maximized or minimized. In this case, the company’s management wishes to
maximize unit profit. The wood and labor rows are used to formulate the constraint
set. Finally, the nonnegativity conditions are stated.
Maximize: Z = 6X1 + 8X2 (objective function)
Subject to:
30X1 + 20X2 < 300 (wood constraint: 300 bf available)
14
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Now plot the wood constraint line, using the intercepts X1 = 10 and X2 = 15.
Plot the labor constraint line, using the intercepts X1 = 22 and X2 = 11. See Figure
below.
15
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
for the wood constraint line, we get 30(20) + 20(10) < 300, which is not valid. In other
words, there simply isn’t enough wood to make 20 tables and 10 chairs.
Now plot the objective function lines when Z = 48 and Z = 72. See figure below.
We can see from the two objective function lines that as we move away from the
origin (0,0), Z increases.
16
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
To do so, multiply the labor equation by -2 and add it to the wood equation so
the X2 variable becomes zero and we can solve for X1.
30 X1 + 20 X 2 = 300 (wood)
−2 ( 5 X1 + 10 X 2 = 110 ) (labor)
20 X1 + 0 = 80
X1 = 4 tables
Next, substitute the number of tables calculated above into either of the
constraint equations to find the number of chairs. For this example, we will substitute
into both equations to illustrate that the same value is found.
Wood constraint: Labor constraint:
30 ( 4 ) + 20 X 2 = 300 5 ( 4 ) + 10 X 2 = 110
120 + 20 X 2 = 300 20 + 10 X 2 = 110
20 X 2 = 300 − 120 10 X 2 = 110 − 20
X 2 = 9 chairs X 2 = 9 chairs
17
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Thus, the company’s optimal solution is to make four tables and nine chairs. In this
case, you could read this solution off the graph by finding the values on the x and y
axes corresponding to the most attractive corner. However, when the most attractive
corner corresponds to an optimal solution with fractions, it is not possible to read
directly from the graph. For example, the optimal solution to this problem might have
been 3.8 tables and 9.2 chairs, which we probably would not be able to read
accurately from the graph.
Step 8. Determine the value of the objective function for the optimal
solution. Plug in the number of tables and chairs and solve for Z:
Z = ₱6(4) + ₱8(9) = ₱96
Thus, we find that maximum profit of ₱96 can be obtained by producing four tables
and nine chairs.
18
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Now that you know the most essential concepts operations research. Let
us try to check your understanding of these concepts by answering the
following questions.
1. Determine the feasible space for each of the following independent constraints,
given that X1, X2 ≥ 0.
a) –3X1 + X2 ≤ 6
b) X1 – 2X2 ≥ 5
c) 2X1 – 3X2 ≤ 12
d) X1 – X2 ≤ 0
e) –X1 + X2 ≥ 0
a) Maximize Z = X1 – X2
b) Maximize Z = –5X1 – 6X2
c) Maximize Z = –X1 + 2X2
d) Maximize z = –3X1+ X2
3. Amy, Jim, John, and Kelly are standing on the east bank of a river and wish to
cross to the west side using a canoe. The canoe can hold at most two people at
a time. Amy, being the most athletic, can row across the river in 1 minute. Jim,
John, and Kelly would take 2, 5, and 10 minutes, respectively. If two people are
in the canoe, the slower person dictates the crossing time. The objective is for all
four people to be on the other side of the river in the shortest time possible.
a) Identify at least two feasible plans for crossing the river (remember, the canoe
is the only mode of transportation and it cannot be shuttled empty).
b) Define the criterion for evaluating the alternatives.
c) What is the smallest time for moving all four people to the other side of the
river?
19
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1. Royal Co. manufactures aluminum sheets and aluminum bars. The maximum
production capacity is estimated at either 800 sheets or 600 bars per day. The
maximum daily demand is 550 sheets and 580 bars. The profit per ton is ₱40 per
sheet and ₱35 per bar. Determine the optimal daily production mix.
2. In the Save Mart grocery store, shelf space is limited and must be used effectively
to increase profit. Two cereal items, Oatie and Wheatie, compete for a total shelf
space of 60 ft2. A box of Oatie occupies 0.2 ft2 and a box of Wheatie needs
0.4 ft2. The maximum daily demands of Oatie and Wheatie are 200 and 120
boxes, respectively. A box of Oatie nets ₱1.00 in profit and a box of Wheatie
₱1.35. Save Mart thinks that because the unit profit of Wheatie is 35% higher
than that of Oatie, Wheatie should be allocated 35% more space than Grano,
which amounts to allocating about 57% to Wheatie and 43% to Oatie. What do
you think?
3. Fuji Motorcycles can advertise its products on local radio and television (TV).
The advertising budget is limited to ₱10,000 a month. Each minute of radio
advertising costs ₱15 and each minute of TV commercials ₱300. Show & Sell
likes to advertise on radio at least twice as much as on TV. In the meantime, it is
not practical to use more than 400 minutes of radio advertising a month. From
past experience, advertising on TV is estimated to be 25 times as effective as on
radio. Determine the optimum allocation of the budget to radio and TV
advertising.
20
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Based from the definition of the most essential terms and concepts in
the study of sets and the learning exercises that you have done,
please feel free to write your arguments or lessons learned below.
1.
2.
3.
21
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1.
2.
3.
4.
5.
22
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Metalanguage
In this section, the essential terms relevant to the study of the nature of
Mathematics and to demonstrate ULO-a will be operationally defined to establish a
common frame of reference as to how the texts work. You will encounter these terms
as we go through the study of the nature of mathematics. Please refer to these
definitions in case you will encounter difficulty in understanding some concepts.
1. Linear Equation
Linear equation is an algebraic equation in which each term has an exponent
of one and the graphing of the equation results in a straight line. An example of
linear equation is y = mx + b.
In other words, an equation in the unknowns x, y, z,... is called linear if both
sides of the equation are a sum of (constant) multiples of x, y, z,..., plus an optional
constant. For instance, 3x + 4y = 2z – x – z = 100 are linear equations, but 3x + yz
= 3sin(x) − cos(y) = 2 are not.
23
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
the collection of all solutions. Solving the system means finding all solutions with
formulas involving some number of parameters.
A system of linear equations need not have a solution. For example, there do
not exist numbers x and y making the following two equations true simultaneously:
x + 2y = 3
.
x + 2 y = −3
In this case, the solution set is empty. As this is a rather important property
of a system of equations, it has its own name. A system of equations is
called inconsistent if it has no solutions. It is called consistent otherwise.
3. Gauss-Jordan Elimination
A method of solving a linear system of equations. This is done by
transforming the system’s augmented matrix into reduced row-echelon form by
means of row operations.
Essential Knowledge
To perform the aforesaid big picture (unit learning outcomes) for the fourth
and fifth weeks of the course, you need to fully understand the following essential
knowledge that will be laid down in the succeeding pages. Please note that you are
not limited to refer to these resources exclusively. Thus, you are expected to utilize
other books, research articles, and other resources that are available in the
university’s library e.g., ebrary, search.proquest.com, etc.
24
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
particular, a linear algebra L over a field F has the structure of a ring with all the usual
axioms for an inner addition and an inner multiplication together with distributive
laws, therefore giving it more structure a ring. A linear algebra also admits an outer
operation of multiplication by scalars (that are elements of the underlying field).
example, the set of all linear transformations from a vector space V to itself over a
field F forms a linear algebra over F. Another example of a linear algebra is the set
of all real square matrices over the field of the real numbers.
In this review, we are going to show you how to convert a narrative statement
of the problem to an equivalent algebraic of the problem. In other words, we are
going to show you how to translate word problems into algebraic equations.
25
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Before you work this problem, you must know the definition of simple interest.
Simple interest can be calculated by multiplying the amount invested at the interest
rate.
Solution:
We have two unknowns: the amount of money invested at 9% and the amount
of money invested at 11%. Our objective is to find these two numbers.
Sentence (1) ''A total of ₱12,000 is invested in two funds paying 9% and 11% simple
interest.'' can be restated as (The amount of money invested at 9%) + (The amount
of money invested at 11%) ₱12,000.
Sentence (2) ''If the yearly interest is ₱1,180, how much of the ₱12,000 is invested
at each rate?'' can be restated as (The amount of money invested at 9%) x 9% +
(The amount of money invested at 11% x 11%) total interest of ₱1,180.
It is going to get tiresome writing the two phrases (The amount of money
invested at 9%) and (The amount of money invested at 11%) over and over again.
So let's write them in shortcut form. Call the phrase (The amount of money invested
at 9%) by the symbol x and call the phrase (The amount of money invested at 11%)
by the symbol y.
x + y = P12,000 (1)
0.09 x + 0.11y = P1,180 (2)
We have converted a narrative statement of the problem to an equivalent
algebraic statement of the problem. Let's solve this system of equations.
Step 2: Substitute this value for y in equation (2). This will change equation
(2) to an equation with just one variable, x.
26
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
x + y = P12,000
P 7,000 + P 5,000 = P12,000
and
0.09 x + 0.11y = P1180
0.09 ( P 7,000 ) + 0.11( P 5,000 ) = P1180
Step 2: Add new equation (1) to equation (2) to obtain equation (3).
−0.09 x − 0.09 y = −P1,080 new (1)
0.09 x + 0.11y = P1,180 (2)
0.02y = 100 (3)
y = P 5,000
Step 3: Substitute y = P5,000 in equation (1) and solve for x.
x + y = P12,000
x + P 5,000 = P12,000
x = P 7,000
27
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The objective is to reorganize the original matrix into one that looks like
1 0 a (1)
(2)
0 1 b
where a and b are the solutions to the system.
Step 1. Manipulate the matrix so that the number in cell 11 (row 1-col 1) is 1.
In this case, we don't have to do anything. The number 1 is already in the cell.
Step 2: Manipulate the matrix so that the number in cell 21 is 0. To do this we
rewrite the matrix by keeping row 1 and creating a new row 2 by adding -0.09 x row
1 to row 2.
−0.09 Row 1 + Row 2 = new Row 2
1 1 12000 (1)
(2)
0 0.02 100
You can read the answers off the matrix as x = P7,000 and y = P5,000.
28
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
It is often desirable or even necessary to use more than one variable to model
a situation in a field such as business, science, psychology, engineering, education,
and sociology, to name a few. When this is the case, we write and solve a system
of equations in order to answer questions about the situation.
If a system of linear equations has at least one solution, it is consistent. If
the system has no solutions, it is inconsistent. If the system has an infinity number
of solutions, it is dependent. Otherwise it is independent.
A linear equation in three variables is an equation equivalent to the equation
Ax + By + Cz + D = 0
where A, B, C, and D are real numbers and A, B, C, and D are not all 0.
Example.
John inherited ₱25,000 and invested part of it in a money market account,
part in municipal bonds, and part in a mutual fund. After one year, he received a total
of ₱1,620 in simple interest from the three investments. The money market paid 6%
annually, the bonds paid 7% annually, and the mutually fund paid 8% annually. There
was ₱6,000 more invested in the bonds than the mutual funds. Find the amount John
invested in each category.
Solution.
There are three unknowns:
(1) The amount of money invested in the money market account.
(2) The amount of money invested in municipal bonds.
(3) The amount of money invested in a mutual fund.
Let's rewrite the paragraph that asks the question we are to answer.
[The amount of money invested in the money market account + [The amount
of money invested in municipal bonds ] + [The amount of money invested in a mutual
fund = ₱25,000 ].
The 6% interest on [ The amount of money invested in the money market
account ]+ the 7% interest on [ The amount of money invested in municipal bonds ]
+ the 8% interest on [ The amount of money invested in a mutual fund ] = ₱1, 620.
[The amount of money invested in municipal bonds ] - [ The amount of money
invested in a mutual fund ] = ₱6,000.
It is going to get boring if we keep repeating the phrases
(1) The amount of money invested in the money market account.
(2) The amount of money invested in municipal bonds.
(3) The amount of money invested in a mutual fund.
Let's create a shortcut by letting symbols represent these phrases. Let
x = The amount of money invested in the money market account.
y = The amount of money invested in municipal bonds.
z = The amount of money invested in a mutual fund.
29
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Matrix Solution
The process of using matrices is essentially a shortcut of the process of
elimination. Each row of the matrix represents an equation and each column
represents coefficients of one of the variables.
Step 1: Create a three-row by four-column matrix using coefficients and the
constant of each equation.
1 1 1 25,000
0.06 0.07 0.08 1,620
0 1 −1 6,000
The vertical lines in the matrix stands for the equal signs between both sides
of each equation. The first column contains the coefficients of x, the second column
contains the coefficients of y, the third column contains the coefficients of z, and the
last column contains the constants.
We want to convert the original matrix
1 1 1 25,000
0.06 0.07 0.08 1,620
0 1 −1 6,000
to the following matrix.
1 0 0 a
0 1 0 b
0 0 1 c
Because then you can read the matrix as x = a, y = b, and z = c.
30
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Step 2: We work with column 1 first. The number 1 is already in cell 11(Row 1
– Col 1). Add –0.06 times Row 1 to Row 2 to form a new Row 2.
−0.06 Row 1 + Row 2 = new Row 2
1 1 1 25,000
0 0.01 0.02 120
0 1 −1 6,000
Step 3: We will now work with column 1. We want 1 in Cell 22, and we achieve
this by multiply Row 2 by .
100 Row 2 = new Row 2
1 1 1 25,000
0 1 2 12,000
0 1 −1 6,000
Step 4: Let's now manipulate the matrix so that there are zeros in Cell 12 and
Cell 32. We do this by adding –1 times Row 2 to Row 1 and Row 3 for a new Row 1
and a new Row 3.
− Row 2 + Row 1 = new Row 1
− Row 2 + Row 3 = new Row 3
1 0 −113,000
0 1 2 12,000
0 1 −1 2,000
Step 5: Let's now manipulate the matrix so that there is a 1 in Cell 33. We do
this by multiplying Row 3 by –1.
−1Row 3 = new Row 3
1 0 −113,000
0 1 2 12,000
0 1 1 2,000
Step 6: Let's now manipulate the matrix so that there are zeros in Cell 13 and
Cell 23. We do this by adding Row 3 to Row 1 for a new Row 1 and adding –2 times
Row 3 to Row 2 for a new Row 3.
1Row 3 + Row 1 = new Row 1
−2 Row 3 + Row 2 = new Row 2
1 0 0 15,000
0 1 0 8,000
0 1 1 2,000
31
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
2) Kolluri, B., Panik, M. J., & Singamsetti, R. N. (2016). Introduction to quantitative methods
in business: With applications using microsoft office excel. Retrieved
from https://ebookcentral.proquest.com
32
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Now that you know the concepts of the system of linear equations.
Let us try to check your understanding of these concepts by
answering the following questions.
Translate the following word problems into its equivalent system of equations.
1. The sum of two numbers is 79, and their difference is 23. What are the two numbers?
2. A minor league ballpark attracts 88 fans and draws in ₱553 in revenue from ticket
sales. A child's ticket costs ₱4 and an adult's ticket is ₱7. How many of each type of
ticket were sold?
3. A woman owns 21 pets. Each of her pets is either a cat or a bird. If the pets have
a total of 76 legs, and assuming that none of the bird's legs are protruding from
any of the cats' jaws, how many cats and how many birds does the woman own?
4. The Lopez family had a rectangular garden with a 20-foot perimeter. They
enlarged their garden to be twice as long and three feet wider than it was
originally. They had to, since their cherry tomato plants were getting out of control.
The enlarged garden has a 40-foot perimeter. What were the dimensions of the
original garden?
5. Sarah buys 2 pounds of jellybeans and 4 pounds of chocolates for ₱4.00. She
then buys 1 pound of jellybeans and 4 pounds of caramels for ₱3.00. She also
buys 1 pound of jellybeans, 3 pounds of licorice and 1 pound of caramels
for ₱1.50. How much will it cost to buy 1 pound of each of the four candies?
6. The sum of three numbers is 14. The largest is 4 times the smallest, while the
sum of the smallest and twice the largest is 18. Find the numbers.
7. How many gallons of 20% alcohol solution and 50% alcohol solution must be
mixed to get 9 gallons of 30% alcohol solution?
8. An airplane flying with the wind can cover a certain distance in 2 hours. The return
trip against the wind takes 2.5 hours. How fast is the plane and what is the speed
of the air, if the one-way distance is 600 miles?
9. A student has money in three accounts that pay 5%, 7%, and 8%, in annual
interest. She has three times as much invested at 8% as she does at 5%. If the
total amount she has invested is $1600 and her interest for the year comes to
$115, how much money does she have in each account?
10. It takes a boat 2 hours to travel 24 miles downstream and 3 hours to travel 18
miles upstream. What is the speed of the boat in still water and of the current of
the river?
33
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Getting acquainted with the essential terms and concepts of the
system of linear equations, what also matters is you should also be
able to apply these concepts in solving problems. Solve the following
problems by the different methods.
1. The sum of two numbers is 79, and their difference is 23. What are the two numbers?
2. A minor league ballpark attracts 88 fans and draws in ₱553 in revenue from ticket
sales. A child's ticket costs ₱4 and an adult's ticket is ₱7. How many of each type of
ticket were sold?
3. A woman owns 21 pets. Each of her pets is either a cat or a bird. If the pets have
a total of 76 legs, and assuming that none of the bird's legs are protruding from
any of the cats' jaws, how many cats and how many birds does the woman own?
4. The Lopez family had a rectangular garden with a 20-foot perimeter. They
enlarged their garden to be twice as long and three feet wider than it was
originally. They had to, since their cherry tomato plants were getting out of control.
The enlarged garden has a 40-foot perimeter. What were the dimensions of the
original garden?
5. Sarah buys 2 pounds of jellybeans and 4 pounds of chocolates for ₱4.00. She
then buys 1 pound of jellybeans and 4 pounds of caramels for ₱3.00. She also
buys 1 pound of jellybeans, 3 pounds of licorice and 1 pound of caramels
for ₱1.50. How much will it cost to buy 1 pound of each of the four candies?
6. The sum of three numbers is 14. The largest is 4 times the smallest, while the
sum of the smallest and twice the largest is 18. Find the numbers.
7. How many gallons of 20% alcohol solution and 50% alcohol solution must be
mixed to get 9 gallons of 30% alcohol solution?
8. An airplane flying with the wind can cover a certain distance in 2 hours. The return
trip against the wind takes 2.5 hours. How fast is the plane and what is the speed
of the air, if the one-way distance is 600 miles?
9. A student has money in three accounts that pay 5%, 7%, and 8%, in annual
interest. She has three times as much invested at 8% as she does at 5%. If the
total amount she has invested is ₱1600 and her interest for the year comes to
₱115, how much money does she have in each account?
10. It takes a boat 2 hours to travel 24 miles downstream and 3 hours to travel 18
miles upstream. What is the speed of the boat in still water and of the current of
the river?
34
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Based from the definition of the most essential terms and concepts in
the study of the system of linear equations and the learning exercises
that you have done, please feel free to write your arguments or
lessons learned below.
1.
2.
3.
35
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1.
2.
3.
4.
5.
36
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Metalanguage
In this section, the essential terms relevant to the study of the nature of
Mathematics and to demonstrate ULO-a will be operationally defined to establish a
common frame of reference as to how the texts work. You will encounter these terms
as we go through the study of the nature of mathematics. Please refer to these
definitions in case you will encounter difficulty in understanding some concepts.
1. Optimization Problem
An optimization problem is the problem of finding the best solution from
all feasible solutions. Optimization problems can be divided into two categories
depending on whether the variables are continuous or discrete. An optimization
problem with discrete variables is known as a discrete optimization. In a discrete
optimization problem, we are looking for an object such as
an integer, permutation or graph from a countable set. Problems with continuous
variables include constrained problems and multimodal problems.
An optimization problem consists in maximizing or minimizing some function
relative to some set, representing a range of choices available in a certain situation.
The function allows comparison of the different choices for determining which might
be best.
More formally we define the optimization problem as
optimize f(x)
x∈S
where optimize stands for min or max f: Rn → R denotes the objective function, that
we assume throughout at least continuously differentiable, and S ⊆ Rn is the feasible
set, namely the set of all admissible choices for x.
In the following we will refer to minimization problems. Indeed the optimal
solution of a maximization problem
max f(x)
x∈S
coincide with the optimal solutions of the minimization problem
min −f(x)
x∈S
and we have: max f(x) = −min (−f(x)).
x∈S x∈S
37
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The feasible set S is a subset of n and hence x = (x1, x2,..., xn)T is the vector of
variables of dimension n and f is a function of n real values f(x1, x2,..., xn).
2. Simplex Method
The simplex method or simplex algorithm is used for calculating the optimal
solution to the linear programming problem. In other words, the simplex algorithm is
an iterative procedure carried systematically to determine the optimal solution from
the set of feasible solutions.
In this case, the solution set is empty. As this is a rather important property
of a system of equations, it has its own name. A system of equations is
called inconsistent if it has no solutions. It is called consistent otherwise
To apply the simplex method, appropriate variables are introduced in the
linear programming problem, and the primary or the decision variables are equated
to zero. The iterative process begins by assigning values to these defined variables.
The value of decision variables is taken as zero since the evaluation in terms of the
graphical approach begins with the origin. Therefore, x1 and x2 is equal to zero.
The decision maker will enter appropriate values of the variables in the
problem and find out the variable value that contributes maximum to the objective
function and removes those values which give undesirable results. Thus, the value
of the objective function gets improved through this method. This procedure of
substitution of variable value continues until any further improvement in the value of
the objective function is possible.
Following two conditions need to be met before applying the simplex method:
• The right-hand side of each constraint inequality should be non-negative.
In case, any linear programming problem has a negative resource value, then it
should be converted into positive value by multiplying both the sides of constraint
inequality by “-1”.
• The decision variables in the linear programming problem should be non-
negative.
Thus, the simplex algorithm is efficient since it considers few feasible solutions,
provided by the corner points, to determine the optimal solution to the linear
programming problem.
38
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Essential Knowledge
To perform the aforesaid big picture (unit learning outcomes) for the fourth and
fifth weeks of the course, you need to fully understand the following essential
knowledge that will be laid down in the succeeding pages. Please note that you are
not limited to refer to these resources exclusively. Thus, you are expected to utilize
other books, research articles, and other resources that are available in the
university’s library e.g., ebrary, search.proquest.com, etc.
am1x1 + am 2 x2 + + amn xn bm
where ai ≥ 0 and bi ≥ 0. After adding slack variables, the corresponding system of
constraint equations is
39
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
am1x1 + am 2 x2 + + amn xn + sm bm
where si ≥ 0.
Remark: Note that for a linear programming problem in standard form, the objective
function is to be maximized, not minimized.
A basic solution of a linear programming problem in standard form is a
solution (x1, x2, …, xn, s1, s2, …, sm) of the constraint equations in which at most m
variables are nonzero – the variables that are nonzero are called basic variables.
A basic solution for which all variables are nonnegative is called a basic feasible
solution.
For this initial simplex tableau, the basic variables are s1, s2, and s3 and the nonbasic
variables (which have a value of zero) are x1 and x2. Hence, from the two columns
that are farthest to the right, we see that the current solution is
x1 = 0, x2 = 0, s1 = 11, s2 = 27, and s3 = 90.
40
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The entry in the lower–right corner of the simplex tableau is the current value of z.
Note that the bottom–row entries under x1 and x2 are the negatives of the coefficients
of x1 and x2 in the objective function z = 4x1 + 6x2.
To perform an optimality check for a solution represented by a simplex
tableau, we look at the entries in the bottom row of the tableau. If any of these entries
are negative (as above), then the current solution is not optimal.
Pivoting
Once we have set up the initial simplex tableau for a linear programming
problem, the simplex method consists of checking for optimality and then, if the
current solution is not optimal, improving the current solution. (An improved solution
is one that has a larger z-value than the current solution.) To improve the current
solution, we bring a new basic variable into the solution––we call this variable the
entering variable. This implies that one of the current basic variables must leave,
otherwise we would have too many variables for a basic solution––we call this
variable the departing variable. We choose the entering and departing variables as
follows.
1. The entering variable corresponds to the smallest (the most negative) entry
in the bottom row of the tableau.
2. The departing variable corresponds to the smallest nonnegative ratio of
bi/aij in the column determined by the entering variable.
3. The entry in the simplex tableau in the entering variable’s column and the
departing variable’s row is called the pivot. Finally, to form the improved solution,
we apply Gauss-Jordan elimination to the column that contains the pivot, as
illustrated in the following example. (This process is called pivoting.)
Example.
Use the simplex method to find an improved solution for the linear programming
problem represented by the following tableau.
Basic
x1 x2 s1 s2 s3 b Variables
–1 1 1 0 0 11 s1
1 1 0 1 0 27 s2
2 5 0 0 1 90 s3
–4 –6 0 0 0 0
Solution.
Note that the current solution x1 = 0, x2 = 0, s1 = 11, s2 = 27, and s3 = 90
corresponds to a z–value of 0. To improve this solution, we determine that x2 is the
entering variable, because –6 is the smallest entry in the bottom row.
41
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Basic
x1 x2 s1 s2 s3 b Variables
–1 1 1 0 0 11 s1
1 1 0 1 0 27 s2
2 5 0 0 1 90 s3
–4 –6 0 0 0 0
Entering
To see why we choose x2 as the entering variable, remember that z = 4x1 + 6x2.
Hence, it appears that a unit change in x2 produces a change of 6 in z, whereas a
unit change in x1 produces a change of only 4 in z.
To find the departing variable, we locate the bi’s that have corresponding positive
elements in the entering variables column and form the following ratios.
11 27 90
= 11, = 27, = 18
1 1 5
Here the smallest positive ratio is 11, so we choose s1as the departing variable.
Basic
x1 x2 s1 s2 s3 b Variables
–1 1 1 0 0 11 s1 Departing
1 1 0 1 0 27 s2
2 5 0 0 1 90 s3
–4 –6 0 0 0 0
Entering
Note that the pivot is the entry in the first row and second column. Now, we use
Gauss-Jordan elimination to obtain the following improved solution.
The improved solution is not yet optimal since the bottom row still has a negative
entry. Thus, we can apply another iteration of the simplex method to further improve
42
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
–1 1 1 0 0 11 –1 1 1 0 0 11
2 0 –1 1 0 16 2 0 –1 1 0 16
7 0 –5 0 1 35 1 0 –5/7 0 1/7 5
–10 0 6 0 0 66 –10 0 6 0 0 66
0 1 2/7 0 1/7 16
0 0 3/7 1 –2/7 6
1 0 –5/7 0 1/7 5
0 0 –8/7 0 10/7 116
Thus, the new simplex tableau is as follows.
Basic
x1 x2 s1 s2 s3 b Variables
0 1 2/7 0 1/7 16 x2
0 0 3/7 1 –2/7 6 s2
1 0 –5/7 0 1/7 5 x1
0 0 –8/7 0 10/7 116
In this tableau, there is still a negative entry in the bottom row. Thus, we choose as
the entering variable and s2 as the departing variable, as shown in the following
tableau.
Basic
x1 x2 s1 s2 s3 b Variables
0 1 2/7 0 1/7 16 s1
0 0 3/7 1 –2/7 6 s2 Departing
1 0 –5/7 0 1/7 5 x1
0 0 –8/7 0 10/7 116
Entering
By performing one more iteration of the simplex method, we obtain the following
tableau.
Basic
x1 x2 s1 s2 s3 b Variables
0 1 0 –2/3 1/3 12 s1
0 0 1 7/3 –2/3 14 s2
1 0 0 5/3 –1/3 15 x1
0 0 0 8/3 2/3 132 Maximum z-value
In this tableau, there are no negative elements in the bottom row. We have therefore
determined the optimal solution to be
(x1, x2, s1, s2, s3) = (15, 12, 14, 0, 0).
with
z = 4x1 + 6x2 = 4(15) + 6(12) = 132.
Remark: Ties may occur in choosing entering and/or departing variables. Should this
happen, any choice among the tied variables may be made.
43
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
am1x1 + am 2 x2 + + amn xn bm
where xi ≥ 0 and bi ≥ 0. The basic procedure used to solve such a problem is to
convert it to a maximization problem in standard form, and then apply the simplex
method as discussed
Example.
Minimization Problem: Find the minimum value of
w = 0.12x1 + 0.15 x2 - Objective Function
60 x1 + x2 300
12x1 + 6 x2 36 Contraints
10 x1 + 30 x2 90
where x1 ≥ 0 and x2 ≥ 0. The first step in converting this problem to a maximization
problem is to form the augmented matrix for this system of inequalities. To this
augmented matrix we add a last row that represents the coefficients of the objective
function, as follows.
60 60 300
12 6 36
10 30 90
0.12 0.15 0
Next, we form the transpose of this matrix by interchanging its rows and columns.
60 12 10 0.12
60 6 30 0.15
300 36 90 0
Note that the rows of this matrix are the columns of the first matrix, and vice versa.
Finally, we interpret the new matrix as a maximization problem as follows. (To do
44
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
this, we introduce new variables, y1, y2, and y3.) We call this corresponding
maximization problem the dual of the original minimization problem.
As it turns out, the solution of the original minimization problem can be found
by applying the simplex method to the new dual problem, as follows.
Basic
y1 y2 y3 s1 s2 b Variables
60 12 10 1 0 0.12 s1 Departing
60 6 30 0 1 0.15 s2
–300 -36 -90 0 0 0
Entering
Basic
y1 y2 y3 s1 s2 b Variables
1 1/5 1/6 1/60 0 1/500 y1
0 -6 20 -1 1 3/100 s2 Departing
0 24 -40 0 0 3/5
Entering
Basic
y1 y2 y3 s1 s2 b Variables
1 1/4 0 1/40 -1/120 7/4000 y1
0 -3/10 1 -1 1 3/2000 y3
0 24 0 3 2 33/50
x1 x2
Thus, the solution of the dual maximization problem is z = 33/50/= 0.66. The x-values
corresponding to this optimal solution are obtained from the entries in the bottom row
corresponding to slack variable columns. In other words, the optimal solution occurs
When x1 = 3 and x2 = 2.
The fact that a dual maximization problem has the same solution as its original
minimization problem is stated formally in a result called the von Neumann Duality
Principle, after the American mathematician John von Neumann (1903–1957).
45
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Basic
x1 x2 x3 s1 s2 s3 b Variables
2 1 1 1 0 0 50 s1
2 1 0 0 -1 0 36 s2
1 0 1 0 0 -1 10 s3 Departing
-1 -1 -2 0 0 0 0
Entering
You will soon discover that solving mixed-constraint problems can be difficult.
One reason for this is that we do not have a convenient feasible solution to begin the
simplex method. Note that the solution represented by the initial tableau above.
(x1, x2, x3, s1, s2, s3) = (0, 0, 0, 50, -36, -10).
is not a feasible solution because the values of the two surplus variables are
negative. In fact, the values x1 = x2 = x3 = 0 do not even satisfy the constraint
46
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
equations. In order to eliminate the surplus variables from the current solution, we
basically use “trial and error.” That is, in an effort to find a feasible solution, we
arbitrarily choose new entering variables. For instance, in this tableau, it seems
reasonable to select x3 as the entering variable. After pivoting, the new simplex
tableau becomes
Basic
x1 x2 x3 s1 s2 s3 b Variables
1 1 0 1 0 1 40 s1
2 1 0 0 -1 0 36 s2 Departing
1 0 1 0 0 -1 10 x3
1 -1 0 0 0 -2 20
Entering
The current solution (x1, x2, x3, s1, s2, s3) = (0, 0, 10, 40, -36, 0) is still not feasible,
so we choose x2 as the entering variable and pivot to obtain the following simplex
tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
-1 0 0 1 1 1 4 s1 Departing
2 1 0 0 -1 0 36 x2
1 0 1 0 0 -1 10 x3
3 0 0 0 -1 -2 56
Entering
From here on, we apply the simplex method as usual. Note that the entering variable
here is s3 because its column has the most negative entry in the bottom row. After
pivoting one more time, we obtain the following final simplex tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
-1 0 0 1 1 1 4 s3
2 1 0 0 -1 0 36 x2
0 0 1 1 1 0 14 x3
1 0 0 2 1 0 64
Note that this tableau is final because it represents a feasible solution and there are
no negative entries in the bottom row. Thus, we conclude that the maximum value
of the objective function is
z = 64 (maximum value)
and this occurs when
x1 = 0, x2 = 36, and x3 = 14.
47
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Basic
x1 x2 x3 s1 s2 s3 b Variables
2 3 4 1 0 0 14 s1
3 1 5 0 -1 0 4 s2 Departing
1 4 3 0 0 -1 6 s3
4 2 1 0 0 0 0
Entering
Note that the bottom row has the negatives of the coefficients of the revised objective
function. Another way of looking at this is that for minimization problems (in
nonstandard form), the bottom row of the initial simplex consists of the coefficients
of the original objective function.
As with maximization problems with mixed constraints, this initial simplex
tableau does not represent a feasible solution. By trial and error, we discover that
we can choose x2 as the entering variable and s2 as the departing variable. After
pivoting, we obtain the following tableau.
Basic
x1 x2 x3 s1 s2 s3 b Variables
-7 0 -11 1 3 0 2 s1
3 1 5 0 -1 0 4 x2
-11 0 -17 0 4 -1 -10 s3
-2 0 -9 0 2 0 -8
From this tableau, we can see that the choice of x2 as the entering variable was a
good one. All we need to do to transform the tableau into one that represents a
feasible solution is to multiply the third row by -1, as follows.
48
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Basic
x1 x2 x3 s1 s2 s3 b Variables
-7 0 -11 1 3 0 2 s1
3 1 5 0 -1 0 4 x2
11 0 17 0 -4 1 10 s3 Departing
-2 0 -9 0 2 0 -8
Entering
Now that we have obtained a simplex tableau that represents a feasible solution,
we continue with our standard pivoting operations as follows.
Basic
x1 x2 x3 s1 s2 s3 b Variables
2/17 0 0 1 7/17 11/17 144/17 s1
-4/17 1 0 0 3/17 -5/17 18/17 x2 Departing
11/17 0 1 0 -4/17 1/17 10/17 x3
65/17 0 0 0 -2/17 9/17 -46/17
Entering
Basic
x1 x2 x3 s1 s2 s3 b Variables
2/3 -7/3 0 1 0 4/3 6 s1
-4/3 17/3 0 0 1 -5/3 6 s2
1/3 4/3 1 0 0 -1/3 2 x3
11/3 2/3 0 0 0 1/3 -2
Finally, we conclude that the maximization value of the revised objective function is
z = –2, and hence the minimum value of the original objective function is w = 2 (the
negative of the entry in the lower-right corner), and this occurs when
x1 =0, x2 = 0, and x3 = 2.
49
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Constructing a Dual LP
Consider the following problem.
A manufacturer produces wooden tables and chairs. The company wishes to
allocate resources so as to maximize profits. Wood and labor are the two resources
used to produce tables and chairs. It takes 30 board feet (bf) of wood and 5 hours of
labor to make a table, and 20 bf of wood and 10 hours of labor to make a chair. There
are 300 bf of wood available and 110 hours of labor available. Unit profit is ₱6 for a
table and ₱8 for a chair.
Our primal LP problem can be formulated as:
The maximum value of the objective function for the primal is:
z = ₱6(4) + ₱8(9) = ₱96
In other words, the company would produce four tables and nine chairs for a
profit of ₱96.
The right-hand values of the primal constraints (300 bf and 110 hours) become
the coefficients of the dual objective function. For this example, there are 300 board
feet of wood available and 110 hours of labor available. Using w to represent cost,
y1 to represent the opportunity cost of a unit of wood, and y2 to represent the
opportunity cost of a unit of labor, we can rewrite the objective function as:
Minimize R = 300y1 + 110y2
This equation states that we want to minimize total cost (R), which is equal to
300 units of wood times the opportunity cost of a unit of wood plus 110 units of labor
times the opportunity cost of a unit of labor.
To find the dual’s constraints, we transpose the coefficients used on the left-
hand side of the primal constraints.
30 x1 + 20 x2 300 30 20
A=
5 x1 + 10 x2 110 5 10
Now create a new matrix called Matrix AT by transposing the values in A so
that the first column of A becomes the first row of AT. The second column of A
becomes the second row of AT, and so on, if there are more columns.
30 5
AT =
20 10
50
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The values in the rows of AT will become the coefficients on the left-hand side
of the dual’s constraints.
The dual’s constants (right-hand side) are obtained from the objective function
of the primal (R = 6x1 + 8x2). Thus, the constants are 6 and 8.
If the primal is a maximization problem and the constraints are ≤, the dual is a
minimization problem and the constraints become ≥. Thus, we can write the
constraints as:
30 y1 + 5 y 2 6
20 y1 + 10 y 2 8
The first constraint states that the amount of wood needed to produce a table
(30 bf) multiplied by the opportunity cost of using the wood to make tables (y1) plus
the amount of labor needed to make a table (5 hours) multiplied by the opportunity
cost of using the labor to make tables (y2) must be greater than or equal to ₱6. The
₱6 is the net profit for a table. If the opportunity cost of producing tables is equal to
the net profit, tables will be produced. If it is greater than the net profit, no tables will
be produced, and the units of wood and labor will be used elsewhere to attain higher
profits.
The second constraint can be interpreted in the same manner. The amount of
wood needed to produce a chair (20 bf) times the opportunity cost of using the wood
to make chairs (y1) plus the amount of labor needed to make a chair (10 hours) times
the opportunity cost of using the labor to make chairs (y2) must be greater than or
equal to ₱8. The ₱8 is the net profit for a chair. If the opportunity cost of producing
chairs is equal to the net profit, chairs will be produced. If it is greater than the net
profit, no chairs will be produced, and the units will be used elsewhere to attain higher
profits.
Therefore, we can formulate the dual as:
Minimize: R = 300y1 + 110y2
Subject to: 30y1 + 5y2 ≥ 6 (tables)
20y1 +10y2 ≥ 8 (chairs)
x1, x2 ≥ 0
51
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Next, we can determine the valid side of the constraint lines by substituting the origin
(0,0) into the table constraint equation. We get 30(0) + 5(0) ≥ 6. This statement is
false, so we know the valid side of the table constraint line is away from the origin.
In the same manner, 20(0) + 10(0) > 8 is false, so the valid side of the chair constraint
line also is away from the origin. Place small arrows on both constraint lines pointing
away from the origin. Any point on the nonorigin side of the table and chair constraint
lines represents a feasible solution. Draw a heavy line to show the boundary of the
feasible region.
Plot two objective function lines to determine the direction of improvement.
Let R = 165 Let R = 110
165 = 300 y1 + 110 y 2 110 = 300 y1 + 110 y 2
Set y 2 = 0 and solve for y1 Set y 2 = 0 and solve for y1
165 = 300 y1 + 110 ( 0 ) 110 = 300 y1 + 110 ( 0 )
165 = 300 y1 110 = 300 y1
y1 = 0.55 y1 = 0.37
Next:
Set y1 = 0 and solve for y 2 Set y1 = 0 and solve for y 2
165 = 300 ( 0 ) + 110 y 2 110 = 300 ( 0 ) + 110 y 2
165 = 110 y 2 110 = 110 y 2
y 2 = 1.5 y 2 = 1.0
We can see from the two objective function lines that R decreases as we move
toward the origin (0,0). We want to minimize R, so we will draw a line parallel to the
objective function lines that touches the corner in the feasible region that is closest
to the origin. This point is the most attractive corner and the optimal solution to the
problem. It is where the table and chair constraint lines intersect.
52
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
If our graph were drawn perfectly and we could read it perfectly, we could
determine the optimal amounts of tables and chairs from the corresponding
coordinates. Because we cannot read it exactly, we instead will solve the equations
simultaneously to determine the exact coordinates:
30 y1 + 50 y 2 = 6
−0.5 ( 20 y1 + 10 y 2 ) = 8
20 y1 + 0 y 2 = 2
Therefore: y1 = 2/20 = (0.10 or ₱0.10 per board foot of wood)
Substitute 0.10 into either of the equations to find the value of y2:
30 ( 0.10 ) + 5 y 2 = 6
3 + 5y 2 = 6
Therefore: y2 = 3/5 = (0.60 or ₱0.60 per hour of labor)
The final step is to calculate the minimum value of the objective function:
R = 300(₱0.10) + 110(₱0.60) = ₱96
This is the same value that was obtained when maximizing the objective function of
the primal.
The ₱0.10 represents the actual worth of 1 unit (board foot) of wood to the
manufacturing operation. That is, 1 more board foot of wood could be used to
produce more furniture sold for a ₱0.10 profit. If 1 more board foot of wood were
available (301 board feet), total profit would increase by ₱0.10. The ₱0.10 also can
be viewed as the lost potential profit as a result of not having an additional board foot
of wood.
Likewise, an additional hour of labor will increase profit by ₱0.60. An additional
2 hours of labor will increase profit by 2 x ₱0.60 or ₱1.20.
These values are the dual prices, or shadow prices. They help the company
decide whether to buy more wood or labor to increase production. If it can purchase
additional wood at ₱0.08 per board foot, it will realize a net gain of ₱0.02 for each
additional board foot of wood acquired. If it can buy an hour of labor for ₱0.40, it will
realize a net gain of ₱0.20 for each additional hour of labor.
The dual price associated with a particular LP constraint remains constant until
the constraint becomes nonbinding. In other words, it no longer constrains the
optimal solution. For example, adding units of wood at first improves profit.
Eventually, however, you will find that adding wood no longer improves profit
because you can utilize no more wood without also adding more labor.
When a constraint is nonbinding, the dual price takes on a value of zero. If
graphed, the constraint line would lie outside the feasible region. The feasible region
is bounded by other constraints, and the optimal solution is found at one or more
corners of the feasible region.
Most LP computer programs have a command that lets you view the valid
range of dual price values.
53
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The ₱6.70 opportunity cost of a bench is less than the profit of ₱7 per bench,
so the company should make benches. That is, wood and labor can earn less
elsewhere than they can by being used to make benches.
The ₱2.20 opportunity cost of a stool is greater than the profit of ₱2 per stool,
however. Thus, each stool consumes resources in excess of the profit it will earn.
Using the resources to make stools is not as profitable as using the resources
somewhere else. Thus, the company should not produce stools.
54
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Now that you know the concepts of the system of linear equations. Let us
try to check your understanding of these concepts by doing the following
exercises.
A. Write the simplex tableau for the given linear programming problem. You do not need
to solve the problem.
1. Maximize Objective Function: 2. Maximize Objective Function:
z = x1 + 2x2 z = 2x1 + 3 x2 + 4 x3
Constraints: Constraints:
2 x1 + x2 8 x1 + 2x2 12
x1 + x2 5 x1 + x3 8
x1, x2 0 x1, x2 , x2 0
55
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
C. Add the appropriate slack and surplus variables to the system and form the initial
simplex tableau.
56
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Getting acquainted with the essential terms and concepts of the
simplex method, what also matters is you should also be able to
apply these concepts in solving problems. Solve the following
problems.
1. A fruit juice company makes two special drinks by blending apple and pineapple juices.
The first drink uses 30% apple juice and 70% pineapple, while the second drink uses
60% apple and 40% pineapple. There are 1000 liters of apple and 1500 liters of pineapple
juice available. If the profit for the first drink is ₱0.60 per liter and that for the second drink
is ₱0.50, use the simplex method to find the number of liters of each drink that should be
produced in order to maximize the profit.
2. An accounting firm has 900 hours of staff time and 100 hours of reviewing time available
each week. The firm charges ₱2000 for an audit and ₱300 for a tax return. Each audit
requires 100 hours of staff time and 10 hours of review time, and each tax return requires
12.5 hours of staff time and 2.5 hours of review time. What number of audits and tax
returns will bring in a maximum revenue?
3. A grower has 50 acres of land for which she plans to raise three crops. It costs ₱200 to
produce an acre of carrots and the profit is ₱60 per acre. It costs ₱80 to produce an acre
of celery and the profit is ₱20 per acre. Finally, it costs ₱140 to produce an acre of lettuce
and the profit is ₱30 per acre. Use the simplex method to find the number of acres of
each crop she should plant in order to maximize her profit. Assume that her cost cannot
exceed ₱10,000.
4. A small petroleum company owns two refineries. Refinery 1 costs ₱25,000 per day to
operate, and it can produce 300 barrels of high-grade oil, 200 barrels of medium-grade
oil, and 150 barrels of low-grade oil each day. Refinery 2 is newer and more modern. It
costs ₱30,000 per day to operate, and it can produce 300 barrels of high-grade oil, 250
barrels of medium-grade oil, and 400 barrels of low-grade oil each day. The company
has orders totaling 35,000 barrels of high-grade oil, 30,000 barrels of medium-grade oil,
and 40,000 barrels of low-grade oil. How many days should the company run each
refinery to minimize its costs and still meet its orders?
5. A steel company has two mills. Mill 1 costs ₱70,000 per day to operate, and it can
produce 400 tons of high-grade steel, 500 tons of medium-grade steel, and 450 tons of
low-grade steel each day. Mill 2 costs ₱60,000 per day to operate, and it can produce
350 tons of high-grade steel, 600 tons of medium-grade steel, and 400 tons of low-grade
steel each day. The company has orders totaling 100,000 tons of high-grade steel,
150,000 tons of medium-grade steel, and 124,500 tons of low-grade steel. How many
days should the company run each mill to minimize its costs and still fill the orders?
6. A company has budgeted a maximum of ₱600,000 for advertising a certain product
nationally. Each minute of television time costs ₱60,000 and each one-page newspaper
ad costs ₱15,000. Each television ad is expected to be viewed by 15 million viewers, and
each newspaper ad is expected to be seen by 3 million readers. The company’s market
research department advises the company to use at least 6 television ads and at least 4
57
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
newspaper ads. How should the advertising budget be allocated to maximize the total
audience?
7. A warehouse operator has 24,000 square meters of floor space in which to store two
products. Each unit of product I requires 20 square meters of floor space and costs ₱12
per day to store. Each unit of product II requires 30 square meters of floor space and
costs ₱8 per day to store. The total storage cost per day cannot exceed ₱12,400.
8. A merchant plans to sell two models of home computers at costs of ₱250 and ₱$400,
respectively. The ₱250 model yields a profit of ₱45 and the ₱400 model yields a profit of
₱50. The merchant estimates that the total monthly demand will not exceed 250 units.
Find the number of units of each model that should be stocked in order to maximize profit.
Assume that the merchant does not want to invest more than ₱70,000 in computer
inventory.
9. A store sells two types of toys, A and B. The store owner pays ₱8 and ₱14 for each one
unit of toy A and B respectively. One unit of toys A yields a profit of ₱2 while a unit of toys
B yields a profit of ₱3. The store owner estimates that no more than 2000 toys will be
sold every month and he does not plan to invest more than ₱20,000 in inventory of these
toys. How many units of each type of toys should be stocked in order to maximize his
monthly total profit?
10. Ariana Grande is ready to hit the road and go on tour. She has a posse consisting of 150
dancers, 90 back-up singers, and 150 different musicians and due to union regulations
each performer can only appear once during the tour. A small club tour requires 1 dancer,
1 back-up singer and 2 musicians for each show while a larger arena tour requires 5
dancers, 2 back-up singers and 1 musician each night. If a club concert nets Grande
₱175 a night while an arena show nets her ₱400 a night, how many of each show should
she schedule so that her income is a maximum and what is that maximum income?
58
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Based from the definition of the most essential terms and concepts in
the study of simplex method and the learning exercises that you have
done, please feel free to write your arguments or lessons learned
below.
1.
2.
3.
59
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1.
2.
3.
4.
5.
60
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Metalanguage
1. Integer Programming
An integer (linear) programming problem (IP) is a linear programming
problem in which at least one of the variables is restricted to integer values.
When formulating LP's we often found that, strictly, certain variables should
have been regarded as taking integer values but, for the sake of convenience, we
let them take fractional values reasoning that the variables were likely to be so large
that any fractional part could be neglected. Whilst this is acceptable in some
situations, in many cases it is not, and in such cases we must find a numeric solution
in which the variables take integer values.
Problems in which this is the case are called integer programs (IP's) and the
subject of solving such programs is called integer programming (also referred to by
the initials IP).
IP's occur frequently because many decisions are essentially discrete (such
as yes/no, go/no-go) in that one (or more) options must be chosen from a finite set
of alternatives.
Note here that problems in which some variables can take only integer values
and some variables can take fractional values are called mixed-integer programs
(MIP's).
61
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
As for formulating LP's the key to formulating IP's is practice. Although there
are a number of standard "tricks" available to cope with situations that often arise in
formulating IP's it is probably true to say that formulating IP's is a much harder task
than formulating LP's.
2. Transportation Problem
The transportation problem is a special type of linear programming problem
where the objective is to minimize the cost of distributing a product from a number
of sources or origins to a number of destinations. Because of its special structure
the usual simplex method is not suitable for solving transportation problems. These
problems require a special method of solution. The origin of a transportation
problem is the location from which shipments are dispatched. The destination of a
transportation problem is the location to which shipments are transported. The unit
transportation cost is the cost of transporting one unit of the consignment from an
origin to a destination.
3. Assignment Problem
Assignment problem is a special type of linear programming problem which
deals with the allocation of the various resources to the various activities on one to
one basis. It does it in such a way that the cost or time involved in the process is
minimum and profit or sale is maximum. Though there are problems can be solved
by simplex method or by transportation method but assignment model gives a
simpler approach for these problems.
Essential Knowledge
To perform the aforesaid big picture (unit learning outcomes) for the sixth and
seventh weeks of the course, you need to fully understand the following essential
knowledge that will be laid down in the succeeding pages. Please note that you are
not limited to refer to these resources exclusively. Thus, you are expected to utilize
other books, research articles, and other resources that are available in the
university’s library e.g., ebrary, search.proquest.com, etc.
1. Integer Programming
The feasible region of the LP model is continuous in the sense that each
variable is restricted to over a continuous interval. If variables are further restricted
to integer values, it becomes an integer LP (IP) model. As its feasible region consists
of discrete points, IP model differs from LP model essentially. However, such type of
62
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Branch-and-Bound Method
The Branch-and-bound method is not a solution technique specifically limited
to integer programming problems. It is a solution approach that can be applied to a
number of different types of problems. The branch and bound approach is based on
the principle that the total set of feasible solutions can be partitioned into smaller
subsets of solutions. These smaller subsets can then be evaluated systematically
until the best solution is found. When the branch and bound approach is applied to
an integer programming problem, it is used in conjunction with the normal non-
integer solution approach. We will demonstrate this method using the following
example.
Example.
The owner of a machine shop is planning to expand by purchasing some new
machines – presses and lathes. The owner has estimated that each press
purchased will increase profit by P100 per day and each lathe will increase profit by
P150 daily. The number of machines the owner can purchase is limited by the cost
of the machines and the available floor space in the shop. The machine purchase
prices and space requirements are as follows:
Required Purchase
Machine
Floor Space (ft2) Price
Press 15 P8,000
Lathe 30 P4,000
Solution:
The owner has a budget of P40,000 for purchasing machines and 200 square
feet of available floor space. The owner wants to know how many of each type of
machine to purchase to maximize the daily increase in profit.
The linear programming model for an integer programming problem is
formulated in exactly the same way as the linear programming example in previous
lesson. The only difference is hat in this problem, the decision variables are
restricted to integer values because the owner cannot purchase a fraction, or portion,
of a machine. The linear programming model follows:
63
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Notice that this node has two designated bounds: an upper bund (UB) of
P1055.56 and a lower bound (LB) of P950. The lower bound is the z value for the
rounded-down solution, x1 = 2 and x2 = 5; the upper bound is the z value for the
relaxed solution on, x1 = 2.22 and x2 = 5.56. The optimal integer solution will be
between these two bounds.
Rounding down might result in a suboptimal solution. In other words, we are
hoping that a z value greater than P950 might be possible. We are not concerned
that a value lower than P950 might be available. Thus, P950 represents a lower
bound for our solution. Alternatively, since z = P1055.56 reflects an optimal point on
64
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
the solution space boundary, a greater z value cannot possibly be attained. Hence,
z = P1,055.56 is the upper bound of our solution.
Now that the possible feasible solutions have been narrowed to values
between the upper and lower bounds, we must test the solutions within these bounds
to determine the best one. The first step in the branch and bound method is to create
two solutions subsets from the present relaed solution. This is accomplished by
observing the relaxed solution value for each variable, x1 = 2.22 and x2 = 5.56 and
seeing which one is the farthest from the rounded-down integer value (i.e., which
variable has the greatest fractional part). The 0.56 portion of 5.56 is the greatest
fractional part; thus x2 will be the variable that we will branch on.
Because x2 must be an integer value in the optimal solution, the following
constraints can be developed:
x2 ≤ 5
x2 ≥ 6
In other words, x2 can be 0, 1, 2, 3, 4, 5, or 6, 7, 8, etc., but it cannot be a value
between 5 and 6 such as 5.56. These two new constraints represent the two solution
subsets for our solution approach. Each of these constraints will be added to our
linear programming model, which will then be solved normally to determine a relaxed
solution. This sequence of events is shown on the branch and bound diagram below.
The solutions at nodes 2 and 3 will be the relaxed solutions obtained by solving our
example model with the appropriate constraints added.
First, the solution at node 2 is found by solving the following model with the
constraint x2 ≤ 5.
Maximize z = 100 x1 + 150 x2
Subject to
8000 x1 + 4000 x2 40,000
15x1 + 30 x2 200
x2 5
x1, x2 0
65
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The optimal solution for this model with integer restrictions relaxed is x1 = 2.5,
x2 = 5, and z = ₱1000.
Next, the solution at node 3 is found by solving the model with x2 ≥ 6 added.
Maximize z = 100 x1 + 150 x2
Subject to
8000 x1 + 4000 x2 40,000
15x1 + 30 x2 200
x2 6
x1, x2 0
The optimal solution for this model with integer restrictions relaxed is x1 = 1.33,
x2 = 6, and z = ₱1033.33.
These solutions with x2 ≤ 5 and x2 ≥ 6 reflect the portioning of the original
relaxed model into two subsets formed by the addition of the two constraints. The
resulting solution sets are shown in the graphs below.
Notice that in the node 2 graph, the solution point x1 = 2.5, x2 = 5 results in a
maximum z value of ₱1000, which is the upper bound for this node. Next, notice
that in the node 3 graph, the solution point x1 = 1.33, x2 = 6 results in a maximum z
value of ₱1033. Thus, ₱1033 is the upper bound for node 3. The lower bound at
each of these nodes is the maximum integer solution. Since neither of these relaxed
solutions is totally integer, the lower bound remains P950, the integer solution value
already obtained at node 1 for the rounded-down integer solution. The diagram
below reflects the addition of the upper and lower bounds at each node.
Since we do not have an optimal and feasible integer solution yet, we must
continue to branch (i.e., partition) the model, from either node 2 or node 3. A look at
figure below reveals that if we branch from node 2, the maximum value that can
possibly be achieved is ₱1000 (upper bound). However, if we branch from node 3,
66
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
a higher maximum value of ₱1033 is possible. Thus, we will branch from node 3. In
general, always branch from the node with the maximum upper bound.
Now the steps for branching previously followed at node 1 are repeated at node
3. First, the variable that has the value with the greatest fractional part is selected.
Because x2 has an integer value, x1, with a fractional part 0.33, is the only variable
we can select. Thus, two new constraints are developed from x1,
x1 ≤ 1
x1 ≥ 2
This process creates the new branch and bound diagram shown below.
Next, the relaxed linear programming model with the new constraints added
must be solved at nodes 4 and 5. However, do not forget that the model is not the
original, but the original with the constraint previously added, x2 ≥ 6. Consider the
node 4 model first.
Maximize z = 100 x1 + 150 x2
Subject to
67
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The optimal solution for this model with integer restrictions relaxed is x1 = 1, x2
= 6.17, and z = ₱1025.
Next, consider the node 5 model.
Maximize z = 100 x1 + 150 x2
Subject to
8000 x1 + 4000 x2 40,000
15x1 + 30 x2 200
x2 6
x1 2
x1, x2 0
However, there is no feasible solution for this model. Therefore, no solution
exists at node 5, and we have only to evaluate the solution at node 4. The branch
an bound diagram reflecting these results is shown below.
The branch and bound diagram in figure indicates that we still have not reached
an optimal integer solution; thus, we must repeat the branching steps followed
earlier. Since a solution does not exist at node 5, there is no comparison between
the upper bounds at nodes 4 and 5. Comparing nodes 2 and 4, we must branch
from node 4 because it has the greater upper bound. Next, since x1 has an integer
68
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
value, x2, with a fractional part of 0.17, is selected by default. The two new constraints
developed from x2 are
x2 ≤ 6
x2 ≥ 7
This creates the new branch and bound diagram in figure below.
The relaxed linear programming model with the new constraints added must
be solved at nodes 6 and 7. Consider the node 6 model first.
69
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
70
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
For minimization model, relaxed solutions are rounded up, and upper and
lower bounds are reversed.
Mixed integer linear programming problems can also be solved using the
branch and bound method. The same basic steps that were applied to the total
integer model in the previous unit are used for a mixed integer model with only a few
differences.
First, at node 1 only those variables with integer restrictions are rounded down
to achieve the lower bound. Second, in determining which variable to branch from,
we select the greatest fractional part from among only those variables that must be
integer. All other steps remain the same. The optimal solution is reached when a
feasible solution is generated at a node that has integer values for those variables
requiring integers and that has reached the maximum upper bound of all ending
nodes.
71
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Streamlined versions of the simplex method are important for two reasons:
1. Their computation times are generally 100 times faster than the simplex
algorithm.
2. They require less computer memory (and hence can permit larger
problems to be solved).
Two common techniques for developing initial solutions are:
➢ the northwest corner method and
➢ Vogel’s approximation method.
After an initial solution is developed, it must be evaluated by either
➢ the stepping-stone method or
➢ the modified distribution (MODI) method.
72
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The first step in the modeling process is to set up a transportation matrix. Its purpose
is to summarize all relevant data and to keep track of algorithm computations. Using
the information above, we can construct a transportation matrix as shown below.
73
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Transportation Matrix
Project
Warehouse SUPPLY
A B C
4 8 8
1 158
16 24 16
2 184
8 16 24
3 179
16 24 16
2 16 168 184
8 16 24
3 36 143 179
The initial distribution is set up by satisfying the first project demand using
north-west method by giving the availability of the first warehouse. Since the
demand of the first project is not yet satisfied, we go down to the second row and
get the remainder from the second warehouse. If the demand is satisfied, we go to
the right (next project) and satisfy the next demand. Continue the process until all
demands are satisfied. Take note that the sum of quantities in each row and each
column must be always equal to the quantity supplied, and quantity demand.
Observe that the number of used cells must be equal to the number of rows plus the
74
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
number of columns minus one. If the number is less than this, the table is said to be
degenerate (Degeneracy will be discussed later).
We may compute for the total cost of transportation by multiplying the entry by
the corresponding cost:
Occupied Cell Cost
1-A 158 x 4 = 632
2-A 16 x 16 = 256
2-B 168 x 24 = 4,032
3-B 36 x 16 = 576
3-C 143 x 24 = 3,432
Cost = ₱ 8,928
The stepping-stone method will help us move from an initial feasible solution
to an optimal solution. It is used to evaluate the cost effectiveness of shipping goods
via transportation routes not currently in the solution. When applying it, we test each
unused cell, or square, in the transportation table by asking: What would happen to
total shipping costs if one unit of the product was tentatively shipped on an unused
route? We conduct the test as follows:
1. Select any unused square to evaluate.
2. Beginning at this square, trace a closed path back to the original square via
squares that are currently being used (only horizontal and vertical moves
are permissible). You may, however, step over either an empty or an
occupied square.
3. Beginning with a plus (+) sign at the unused square, place alternating minus
signs and plus signs on each corner square of the closed path just traced.
Calculate an improvement index by first adding the unit-cost figures found
in each square containing a plus sign and then by subtracting the unit costs
in each square containing a minus sign.
4. Repeat steps 1 through 4 until you have calculated an improvement index
for all unused squares. If all indices computed are greater than or equal to
zero, you have reached an optimal solution. If not, the current solution can
be improved further to decrease total shipping costs.
75
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
In the computation for improvement, we must bear in mind that aside from the
fact that the direction is vertical and horizontal, the landing cell must be an occupied
cell, vertical or horizontal position to the point of destination.
Note that the most negative result in the computation for improvement is in cell
2-C, which has a sum of –16. This means that if a unit is transferred to 2-C, we can
minimize the cost by P16 per truckload.
The problem now is where to get the units to be given to cell 2-C. Let us
examine its improvement procedure. There are two negative cost among addends:
–24 and –24. These are costs of cells 2-B and 3-C, whose entries are 168 units and
143 respectively. Now, since 143 is smaller, then it should be the entry to be
transferred to 2-C.
Note that adding 143 to cell 2-C means subtracting 143 from 2-B, but adding it
to cell 3-B as indicated in the test for the improvement.
Distribution Table 2
Project
Warehouse SUPPLY
A B C
4 8 8
1 158 158
16 24 16
2 16 25 143 184
8 16 24
3 179 179
76
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The improvement shows that we have to transfer some units to 1-B. The
choice is between -24 and -4, which are costs of cells 1-A and 2-B, respectively, with
entries 158 and 25. Since we must always select the smaller entry, then 25 should
be transferred to 1-B.
Distribution Table 3
Project
Warehouse SUPPLY
A B C
4 8 8
1 133 25 158
16 24 16
2 41 143 184
8 16 24
3 179 179
Since 3-A has the negative improvement, we have to transfer some units to 3-
A. Only the cells involved in the improvement should be affected. The negative
numerals in the improvement are costs of cells 1-A and 3-B, with entries 133 and
77
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
179, respectively. Since 133 is smaller than 179, then 133 should be transferred to
3-A.
Distribution Table 4
Project
Warehouse SUPPLY
A B C
4 8 8
1 158 158
16 24 16
2 41 143 184
8 16 24
3 133 46 179
Decision:
Transport from Route
Plant 1 to Project B 158 truckloads
Plant 2 to Project A 41 truckloads
Plant 2 to Project C 143 truckloads
Plant 3 to Project A 133 truckloads
Plant 3 to Project B 46 truckloads
78
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
unbalanced problems. But since we can only handle a balanced table, we must find
a way of converting an unbalanced table to a balanced one. This can be done by the
use of a dummy. A dummy is something we pretend to exists, although in reality it
does not. We must remember the following:
a) If the demand is greater, use a dummy supply.
b) If the supply is greater, use a dummy demand.
16 24 16
2 82
8 16 24 77
3
235
DEMAND 72 102 41 215
The above table is unbalanced, since the total supply is 235 units, while the
total demand is 215.
To convert the table to a balanced one, create a dummy demand. So, new
column must be added to the right. The cost of transportation for each dummy cell
is zero.
A new table with a dummy demand and the initial distribution of units is shown
below.
Project
Warehouse SUPPLY
A B C Dummy
4 8 8 0
1 72 76
16 24 16 0
2 82 82
8 16 24 0
3 16 24 77
235
DEMAND 72 102 41 20 235
The above table shows a surplus of 20 units which is entered in the dummy
demand. (You may continue solving for the optimum table.)
79
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
16 24 16
2 82
8 16 24
3 77
215
DEMAND 80 102 41 223
Project
Warehouse SUPPLY
A B C
4 8 8
1 56 76
16 24 16
2 24 58 82
8 16 24
3 44 33 77
0 0 0
Dummy 8 8
223
DEMAND 80 102 41 223
The above table shows a demand surplus of 8 units, entered in the dummy
supply. Use either stepping stone method.
80
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
If we try to compute the vacant cells 1-C, 2-C, 3-B, and 3-A, no route (rectangular or
zigzag) is possible.
16 24 16
2 25 25
8 16 24
3 30 30
DEMAND 35 45 30 110
A zero entry may be assigned to cell 2-C or 3-B. Either case will give the same
optimum solution.
The new table with zero assigned to an unused cell is shown below:
16 24 16
2 25 0 25
8 16 24
3 30 30
DEMAND 35 45 30 110
We can now solve the problem, treating the zero entry just like an ordinary non-
zero entry.
81
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
8 4 8
2 65 65
16 4 16
3 35 35
DEMAND 50 80 65 195
To resolve this when there are two cells that will remain vacant, it is advisable
to indicate 0 in one of the two vacated cells. Assume that only one quantity was
removed or transferred, and the other one was subtracted, thus leaving 0 in one cell.
The affected cells are:
Distribution Table 2
Project
Warehouse SUPPLY
A B C
4 8 24
1 50 45 95
8 4 8
2 0 65 65
16 4 16
3 35 35
DEMAND 50 80 65 195
82
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
2) Subtract the smallest cost in each column. If the zero entries can now be
distributed one-to-one correspondence with the workers, an optimal solution is
reached. If it cannot, go on to step 3.
3) Cover the zero entries by vertical or horizontal lines, using the least number of
lines possible; this can be done by covering first the row or column having the most
number of zeros. Subtract the smallest uncovered cost from each uncovered cost
but add it to the entry found at the intersection of the lines. If an assignment is
already possible, an optimal solution is reached. If not repeat step 3.
An assignment is optimum if the number of lines used is equal to the number
of rows or the number of columns.
Example.
Four engineers are to work on 4 projects of ROA Construction Company. The
problem is to decide which engineer should be assigned to which project. Each
engineer charge different fees on each project, due to distances of the projects and
the complexity of the work. The cost of assigning particular engineers to particular
projects are as follows:
Project
Engineer
A B C D
1 ₱11,000 ₱8,000 ₱10,000 ₱7,000
2 6,000 5,000 3,000 8,000
3 4,000 8,000 10,000 9,000
4 11,000 10,000 5,000 7,000
11 8 10 7
6 5 3 8
Result after removing three zeros in each entry.
4 8 10 9
11 10 5 7
4 1 3 0
3 2 0 5 Result after subtracting the smallest entry in each row. Since the
zeros cannot yet be assigned to each engineer, proceed to the next
0 4 6 5
step.
6 5 0 2
4 0 3 0
3 1 0 5 Result after subtracting the smallest entry in each column. Zeros
0 3 6 5 cannot yet be assigned one-to-one to each engineer.
6 4 0 2
83
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
4 0 3 0
3 1 0 5 Covering zero entries with the least number of vertical and
0 3 6 5 horizontal lines.
6 4 0 2
84
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Now that you know the concepts of the integer programming,
transportation, and assignment methods, let us try to check your
understanding of these concepts by answering the following
questions.
4. How to find the optimal solution to the linear programming problem model with
the integer restrictions relaxed?
5. Suppose you are using the Hungarian Algorithm to minimize cost. After creating
a matrix with people as rows and activities as columns, you have 8 rows and 7
columns. What do you have to do before you can start the steps of the algorithm?
6. For Company Z, the amount shipped to three out of four destinations must not
exceed 45 tons. This is an example of what kind of constraint?
7. The more sources and destinations there are for a transportation problem, the
smaller the percentage of all cells that will be used in the optimal solution. Explain.
10. Explain what is meant by the term degeneracy within the context of transportation
modeling.
85
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Getting acquainted with the essential terms and concepts of the integer
programming, transportation problem, and assignment problem, what also
matters is you should also be able to apply these concepts in solving the
following problems.
1. Ronald owns 2 warehouses of television sets located in Davao City and Tagum City. His warehouse in
Davao City has 10 units, and Tagum City has 9 units. There are three orders to fill: Panabo orders for 6
units, Digos orders 8 units, and Mati orders for 5 units. Transportation costs per unit from Davao to
Panabo, Digos, and Mati are ₱15, ₱18, and ₱8 respectively; from Tagum are ₱16, ₱20, and ₱10. Find
a plan of distribution that will minimize the cost of transportation.
2. The Helix Mining Company mines ore at different locations and ship it for processing to three different
manufacturing locations. Ore availabilities are 20, 23, and 28 tons at mine 1, 2, and 3 respectively.
Requirements at plants 1, 2, and 3 are 22, 22, and 27 respectively. Shipping costs are: from mine 1 to
plants 1, 2, and 3 are ₱45, ₱75, and ₱55 per ton; from mine 2 are ₱85, ₱55, and ₱75; from mine 3 are
₱65, ₱55, and ₱65. Formulate a plan that will minimize the cost of transportation.
3. Engr. Santos has to assign 4 teams to work on 4 projects. The costs charged by each team are
as follows. Costs are in thousands of pesos. Determine the least cost of assignment.
Projects
Teams
1 2 3 4
A 15 18 20 16
B 18 17 14 20
C 21 20 13 15
D 17 15 18 19
4. The purchasing agent for ROA Company wishes to purchase replacement tires for the company’s
service vehicles. He needs 400 units of type A, 400 units of type B, and 400 units of type C. Three
tire suppliers have bid at the prices given below. Each of them says it will supply all or part of the
order. The purchasing agent would like to buy tires in such a way that the entire requirement of
each type is purchased from a single dealer. Use the assignment model to determine the least
cost of purchasing plan.
Tire Type
Company
A B C
Firestone 850 1000 880
Goodrich 860 880 890
Goodyear 800 890 890
5. A jeweler and her apprentice make silver pins and necklaces by hand. Each week they have 80
hours of labor and 36 ounces of silver available. It requires 8 hours of labor and 2 ounces of silver
to make a pin, and 10 hours of labor and 6 ounces of silver to make a necklace. Each pin also
contains a small gem of some kind. The demand for pins is no more than six per week. A pin
earns the jeweler P400 in profit, and a necklace earns P100. The jeweler wants to know how
many of each item to make each week in order to maximize profit.
a) Formulate an integer programming model for this problem.
b) Solve this model using the branch and bound method. Compare this solution with the solution
without integer restrictions and indicate if the rounded-down solution would have been
optimal.
86
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Based from the definition of the most essential terms and concepts in
the study integer programming, transportation, and assignment
problems and the learning exercises that you have done, please feel
free to write your arguments or lessons learned below.
1.
2.
3.
87
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1.
2.
3.
4.
5.
Transportation
Integer Programming Assignment Problem
Problem
Stepping-stone
North-west method Optimal solution
method
Relaxed restrictions Branch and Bound Unbalanced problem
Supply and demand Degeneracy Initial Table
One-to-One
Minimum cost Sub-problem
correspondence
88
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Metalanguage
In this section, the essential terms relevant to the study of project scheduling,
decision theory, business forecasting and queuing models and to demonstrate
ULO-a will be operationally defined to establish a common frame of reference as to
how the texts work. You will encounter these terms as we go through the study of
the nature of mathematics. Please refer to these definitions in case you will
encounter difficulty in understanding some concepts.
1. Project Management
Project management is the process of leading the work of a team to achieve
goals and meet success criteria at a specified time. The primary challenge of project
management is to achieve all of the project goals within the given constraints. This
information is usually described in project documentation, created at the beginning
of the development process. The primary constraints are scope,
time, quality and budget. The secondary challenge is to optimize the allocation of
necessary inputs and apply them to meet pre-defined objectives.
The objective of project management is to produce a complete project which
complies with the client's objectives. In many cases the objective of project
management is also to shape or reform the client's brief to feasibly address the
client's objectives. Once the client's objectives are clearly established, they should
influence all decisions made by other people involved in the project – for example
project managers, designers, contractors, and sub-contractors. Ill-defined or too
tightly prescribed project management objectives are detrimental to decision
making.
A project is a temporary endeavor designed to produce a unique product,
service or result with a defined beginning and end (usually time-constrained, and
often constrained by funding or staffing) undertaken to meet unique goals and
89
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
objectives, typically to bring about beneficial change or added value. The temporary
nature of projects stands in contrast with business as usual (or operations), which
are repetitive, permanent, or semi-permanent functional activities to produce
products or services. In practice, the management of such distinct production
approaches requires the development of distinct technical skills and management
strategies.
90
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Essential Knowledge
To perform the aforesaid big picture (unit learning outcomes) for the eighth and
ninth weeks of the course, you need to fully understand the following essential
knowledge that will be laid down in the succeeding pages. Please note that you are
not limited to refer to these resources exclusively. Thus, you are expected to utilize
other books, research articles, and other resources that are available in the
university’s library e.g., ebrary, search.proquest.com, etc.
PERT and CPM were independently developed in the late 1950s. Ever since,
they have been among the most widely used OR techniques.
Consequently, practitioners now commonly use the two names
interchangeably, or combine them into the single acronym PERT/CPM, as we often
will do. We will make the distinction between them only when we are describing an
option that was unique to one of the original versions.
91
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Example.
The RELIABLE CONSTRUCTION COMPANY has just made the winning bid
of ₱5.4 million to construct a new plant for a major manufacturer. The manufacturer
needs the plant to go into operation within a year. Therefore, the contract includes
the following provisions:
• A penalty of ₱300,000 if Reliable has not completed construction by the
deadline 47 weeks from now.
• To provide additional incentive for speedy construction, a bonus of ₱150,000
will be paid to Reliable if the plant is completed within 40 weeks.
Reliable is assigning its best construction manager, David Perty, to this project
to help ensure that it stays on schedule. He looks forward to the challenge of bringing
the project in on schedule, and perhaps even finishing early. However, since he is
doubtful that it will be feasible to finish within 40 weeks without incurring excessive
costs, he has decided to focus his initial planning on meeting the deadline of 47
weeks.
Mr. Perty will need to arrange for a number of crews to perform the various
construction activities at different times. Table below shows his list of the various
activities. The third column provides important additional information for coordinating
the scheduling of the crews.
For any given activity, its immediate predecessors (as given in the third
column of the table are those activities that must be completed by no later than the
starting time of the given activity. (Similarly, the given activity is called an immediate
successor of each of its immediate predecessors.)
For example, the top entries in this column indicate that
1. Excavation does not need to wait for any other activities.
2. Excavation must be completed before starting to lay the foundation.
92
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
3. The foundation must be completely laid before starting to put up the rough
wall, etc.
When a given activity has more than one immediate predecessor, all must be
finished before the activity can begin.
In order to schedule the activities, Mr. Perty consults with each of the crew
supervisors to develop an estimate of how long each activity should take when it is
done in the normal way. These estimates are given in the rightmost column of the
table above.
Adding up these times gives a grand total of 79 weeks, which is far beyond the
deadline for the project. Fortunately, some of the activities can be done in parallel,
which substantially reduces the project completion time.
Given all the information in the table, Mr. Perty now wants to develop answers
to the following questions.
1. How can the project be displayed graphically to better visualize the flow of
the activities?
2. What is the total time required to complete the project if no delays occur?
3. When do the individual activities need to start and finish (at the latest) to
meet this project completion time?
4. When can the individual activities start and finish (at the earliest) if no delays
occur?
5. Which are the critical bottleneck activities where any delays must be
avoided to prevent delaying project completion?
6. For the other activities, how much delay can be tolerated without delaying
project completion?
Being a regular user of PERT/CPM, Mr. Perty knows that this technique will
provide invaluable help in answering these questions.
Project Networks
A network used to represent a project is called a project network. A project
network consists of a number of nodes (typically shown as small circles or
rectangles) and a number of arcs (shown as arrows) that lead from some node to
another.
As table above indicates, three types of information are needed to describe a
project.
1. Activity information: Break down the project into its individual activities (at
the desired level of detail).
93
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The project network needs to convey all this information. Two alternative types
of project networks are available for doing this.
One type is the activity-on-arc (AOA) project network, where each activity is
represented by an arc. A node is used to separate an activity (an outgoing arc) from
each of its immediate predecessors (an incoming arc). The sequencing of the arcs
thereby shows the precedence relationships between the activities.
The second type is the activity-on-node (AON) project network, where each
activity is represented by a node. The arcs then are used just to show the precedence
relationships between the activities. In particular, the node for each activity with
immediate predecessors has an arc coming in from each of these predecessors.
The original versions of PERT and CPM used AOA project networks, so this
was the conventional type for some years. However, AON project networks have
some important advantages over AOA project networks for conveying exactly the
same information.
1. AON project networks are considerably easier to construct than AOA
project networks.
2. AON project networks are easier to understand than AOA project networks
for inexperienced users, including many managers.
3. AON project networks are easier to revise than AOA project networks when
there are changes in the project.
For these reasons, AON project networks have become increasingly popular
with practitioners. It appears somewhat likely that they will become the conventional
type to use. Therefore, we now will focus solely on AON project networks, and will
drop the adjective AON.
Figure 1 below shows the project network for Reliable’s project. Referring also
to the third column of the table, note how there is an arc leading to each activity from
each of its immediate predecessors. Because activity A has no immediate
predecessors, there is an arc leading from the start node to this activity. Similarly,
since activities M and N have no immediate successors, arcs lead from these
activities to the finish node. Therefore, the project network nicely displays at a glance
all the precedence relationships between all the activities (plus the start and finish of
the project). Based on the rightmost column of the table, the number next to the node
for each activity then records the estimated duration (in weeks) of that activity.
94
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Figure 1. The project network for the Reliable Construction Co. project.
95
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
However, the project duration will not be longer than one particular path. This
is the longest path through the project network. The activities on this path can be
performed sequentially without interruption. (Otherwise, this would not be the longest
path.) Therefore, the time required to reach the FINISH node equals the length of
this path. Furthermore, all the shorter paths will reach the FINISH node no later than
this. Here is the key conclusion.
The (estimated) project duration equals the length of the longest path through
the project network. This longest path is called the critical path. (If more than one
path tie for the longest, they all are critical paths.)
Thus, for the Reliable Construction Co. project, we have
96
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
We now have answered Mr. Perty’s Questions 2 and 5 given at the beginning
of the section. If no delays occur, the total time required to complete the project
should be about 44 weeks. Furthermore, the activities on this critical path are the
critical bottleneck activities where any delays in their completion must be avoided to
prevent delaying project completion. This is valuable information for Mr. Perty, since
he now knows that he should focus most of his attention on keeping these particular
activities on schedule in striving to keep the overall project on schedule.
Furthermore, if he decides to reduce the duration of the project (remember that
bonus for completion within 40 weeks), these are the main activities where changes
should be made to reduce their durations.
For small project networks like Figure 1, finding all the paths and determining
the longest path is a convenient way to identify the critical path. However, this is not
an efficient procedure for larger projects. PERT/CPM uses a considerably more
efficient procedure instead.
Not only is this PERT/CPM procedure very efficient for larger projects, it also
provides much more information than is available from finding all the paths. In
particular, it answers all five of Mr. Perty’s questions listed at the beginning of the
section rather than just two. These answers provide the key information needed to
schedule all the activities and then to evaluate the consequences should any
activities slip behind schedule.
97
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
which means that this activity (putting up the exterior siding) should start 22 weeks
and finish 29 weeks after the start of the project.
98
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Figure 3.
Earliest start time (ES) and earliest finish time
(EF) values for all the activities (plus the
START and FINISH nodes) of the Reliable
Construction Co. project.
99
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Note that Figure 3 also includes ES and EF values for the START and FINISH
nodes. The reason is that these nodes are conventionally treated as dummy
activities that require no time. For the START node, ES = 0 = EF automatically. For
the FINISH node, the earliest start time rule is used to calculate ES in the usual way,
as illustrated below.
Immediate predecessors of the FINISH node:
Activity M has EF = 40.
Activity N has EF = 44.
Larger EF = 44.
Therefore,
ES for the FINISH node = larger EF above
= 44.
EF for the FINISH node = 44 + 0 = 44.
This last calculation indicates that the project should be completed in 44 weeks
if everything stays on schedule according to the start and finish times for each activity
given in Figure 3. (This answers Question 2.) Mr. Perty now can use this schedule
to inform the crew responsible for each activity as to when it should plan to start and
finish its work.
This process of starting with the initial activities and working forward in time
toward the final activities to calculate all the ES and EF values is referred to as
making a forward pass through the network.
Keep in mind that the schedule obtained from this procedure assumes that the
actual duration of each activity will turn out to be the same as its estimated duration.
What happens if some activity takes longer than expected? Would this delay project
completion? Perhaps, but not necessarily. It depends on which activity and the length
of the delay.
The next part of the procedure focuses on determining how much later than
indicated in Figure 3 can an activity start or finish without delaying project completion.
The latest start time for an activity is the latest possible time that it can
start without delaying the completion of the project (so the FINISH node
still is reached at its earliest finish time), assuming no subsequent delays
in the project. The latest finish time has the corresponding definition
with respect to finishing the activity.
In symbols,
LS = latest start time for a particular activity,
LF = latest finish time for a particular activity,
where
LS = LF – (estimated) duration of the activity.
100
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
101
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
figure, he still will be able to avoid delaying project completion beyond 44 weeks as
long as there is no subsequent slippage in the schedule. However, to allow for
unexpected delays, he would prefer to stick instead to the earliest time schedule
given in Figure 3 whenever possible in order to provide some slack in parts of the
schedule.
Figure 4.
Latest start time (LS) and latest finish time
(LF) for all the activities (plus the START and
FINISH nodes) of the Reliable Construction
Co. project.
If the start and finish times in Figure 4 for a particular activity are later than the
corresponding earliest times in Figure 3, then this activity has some slack in the
schedule. The last part of the PERT/CPM procedure for scheduling a project is to
identify this slack, and then to use this information to find the critical path. (This will
answer both Questions 5 and 6.)
102
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
(Note that the S or F in front of each parentheses will remind you of whether these
are Start times or Finish times.) Figure 5 displays this information for the entire
project.
Figure 5.
The complete project network showing ES
and LS (in parentheses above the node) and
EF and LF (in parentheses below the node) for
each activity of the Reliable Construction Co.
project. The darker arrows show the critical
path through the project network.
This figure makes it easy to see how much slack each activity has.
The slack for an activity is the difference between its latest finish time and its earliest
finish time. In symbols,
Slack = LF – EF.
(Since LF – EF = LS – ES, either difference actually can be used to calculate slack.)
For example, Slack for activity M = 44 – 40 = 4.
This indicates that activity M can be delayed up to 4 weeks beyond the earliest time
schedule without delaying the completion of the project at 44 weeks. This makes
sense, since the project is finished as soon as both activities M and N are completed
and the earliest finish time for activity N (44) is 4 weeks later than for activity M (40).
As long as activity N stays on schedule, the project still will finish at 44 weeks if any
delays in starting activity M (perhaps due to preceding activities taking longer than
expected) and in performing activity M do not cumulate more than 4 weeks.
Table 2 below shows the slack for each of the activities. Note that some of the
activities have zero slack, indicating that any delays in these activities will delay
project completion. This is how PERT/CPM identifies the critical path(s).
Each activity with zero slack is on a critical path through the project
network such that any delay along this path will delay project completion.
103
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
just as we found by a different method at the beginning of the section. This path is
highlighted in Figure 5 by the darker arrows. It is the activities on this path that Mr.
Perty must monitor with special care to keep the project on schedule.
2. Decision Theory
A decision process is a matter of selecting a single act among all available
alternatives. A sound decision is likely to be arrived at, if a careful deliberation is
made. Making use of quantities in decision-making helps a great deal in minimizing
mistakes. Some methods of computation should therefore be learned.
Computation of ME or EV
If P represents the probability value and x represents the amount of money,
EV = P(X). If several events are expected to happen, with each having its own
amount of probability,
EV = P1(X1) + P2(X2) + … + Pn(Xn)
Expected value is sometimes negative, that is if the person will tend to lose
instead of gain.
Example.
Suppose that a fair coin is tossed and one has to receive P4 if it lands head,
and pay P6 if it lands tail. Find the EV.
104
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Solution.
Since there are only two possibilities; head or tail, so the probability of head is
1 out of 2 or 1/2., and that of tail is also ½. Hence,
P1 = ½ X1 = 4
P2 = ½ X2 = –6 (negative sign is used if one has to give)
EV = ½(4) + ½(–6) = 2 – 3
= –1
This means that the game is not fair for the person.
Example.
Suppose a manager has to decide whether to accept a bid or not. If he accepts
the bid, the company may gain P2 million if it succeeds, or lose P1.5 million if it fails.
The probability that it will succeed is 30%. Find the EV if he accepts the bid.
Solution.
P1 = 30% X1 = 2
P2 = 70% X2 = –1.5
EV = 0.30(2) + 0.70(–1.5) = 0.60 – 1.05
= –0.45
This means that the company is expected to lose.
Example.
In a game involving the roll of a single die, the following rules have been agreed
upon: I pay P1 for each roll of the die. If a 6 comes out, I received P5; if a 5 comes
out I receive P2.50, and if a 4 or 2 comes out , I receive P2. I receive nothing for a
1 or 3. Find my EV.
Solution.
P1 = 1/6 X1 = 5 – 1 = 4
P2 = 1/6 X2 = 2.50 –1 = 1.50
P3 = 1/6 + 1/6 = 2/6 X3 = 2 – 1 = 1
P4 = 1/6 + 1/6 = 2/6 X4 = 0 – 1 = –1
EV = 1/6(4) + 1/6(1.50) + 2/6(1) + 2/6 (–1)
= 0.916
This means that the game is favorable for the person because the EV is
positive.
105
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
The circle is a point where the possible outcomes are beyond the control of the
decision maker. Probabilities are involved in chance events.
Example.
Consider the problem of a student who has to decide whether to stop his
studies and work for a job paying P1,500 monthly or continue his studies, after which
a job awaits him paying P2,500 a month, provided he passes his remaining subjects.
He feels that the probability that he will pass his remaining subjects is 40%. Which
choice is better for the student?
Solution.
The decision tree is shown below.
A B pass
continue
stop
fail
The tree starts with a square. At this point the student can choose whether to
stop or continue his studies. If he stops, it is the end of the branch. If he continues
his studies, there are two possible outcomes, he may pass or fail. These outcomes
are beyond his control, hence a circle is drawn.
Let us now add the financial values and probabilities.
A B pass
P2,500
continue P = 0.40
P = 0.60
stop 0
fail
P1,500
If the student stops, he will have P1,500 monthly. P1,500 is indicated at the
end of the branch.
If he continues and passes his remaining subjects, he will have P2,500 at the
end of one branch of the circle. If he fails, he will not have any income, thus zero is
placed at the end of the other branch of the circle. Probabilities are indicated in each
branch.
To compute for the chance event, find the EV of position B.
EV = 0.40(2500) + 0.60(0) = 1,000
To complete the data in the tree, we add the amount of EV.
A B pass
P2,500
continue P = 0.40
P1,000
stop P = 0.60
0
fail
P1,500
106
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
A B
continue
P1,000
stop
P1,500
The decision maker has now to choose between P1,000 and P1,500. Since
P1,500 is greater, it is better for him to stop studying and continue to work.
3. Business Forecasting
Forecasting is telling in advance a possible event that may take place in the
future. Forecasts are commonly not accurate. But since decisions are made
everyday especially in business, and these are based on the best available
information, forecasting somehow helps business managers prepare for the future.
Average Forecast
A. Unweighted Average Forecast
The simplest way to forecast the sale for the next period, using the available
previous data is to find the average of the said data. The easiest way for example
to foretell the sale next month is by finding the average of the sales in the past 2 or
more months.
Example.
If the enrolment of UM in 2018 was 25,000 and it was 26,000 in 2019, forecast
for 2020 is
25,000 + 26,000
F= = 25,500
2
B. Weighted Average Forecast
Most often it is logical to give a greater weight to the most recent data. It is
very likely for example for UM to have enrolment figure in 2020 closer to 26,000 than
25,000. Hence, giving a weight of 2 to the most recent data.
1( 25,000 ) + 2 ( 26,000 )
F= = 25,667
3
107
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
If a company uses weighted moving average forecast for 3 months for instance,
it must compute the forecast by the formula
F=
( M1 + 2M2 + 3M3 )
6
where M1 is the information 3 months ago, M2 is the information 2 months ago, and
M3 is the information last month. The denominator 6 is obtained by finding the total
weight.
Sale forecasts of Soriano Auto Sales Inc. using 3-month weighted moving
average is
Actual Sales 3-Month Weighted
Month
In millions (₱) Moving Averages
January 5.0
February 6.5
March 4.5
April 7.0 [5.0 + 2(6.5) + 3(4.5)] ÷ 6 = 5.25
May 6.0 [6.5 + 2(4.5) + 3(7.0)] ÷ 6 = 6.083
June 8.0 [4.5 + 2(7.0) + 3(6.0)] ÷ 6 = 6.083
July 5.5 [7.0 + 2(6.0) + 3(8.0)] ÷ 6 = 7.167
August 9.0 [6.0 + 2(8.0) + 3(5.5)] ÷ 6 = 6.417
September 10.0 [8.0 + 2(5.5) + 3(9.0)] ÷ 6 = 7.67
October 9.5 [5.5 + 2(9.0) + 3(10.0)] ÷ 6 = 8.917
November 9.75 [9.0 + 2(10.0) + 3(9.5)] ÷ 6 = 9.583
December 12.0 [10.0 + 2(9.5) + 3(9.75)] ÷ 6 = 9.708
108
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Example.
Suppose we want to forecast the sale of Soriano Sales Inc. for the month of
January of the following year, using α = 0.6, and previous forecast for December was
10.5 M while the actual previous sale was 12 M.
Solution.
Forecast = 0.6(12) + 0.4(10.5)
= 11.4 M
b=
xy − nxy
x − nx
2 2
where
x = time
n = number of items
x = mean of x
y = mean of x
109
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Example.
Suppose that the sales of ROA Supermart in the past 6 months were recorded
as follows:
Actual Sales
Month
(in 000’s)
May 250
June 300
July 275
August 325
September 290
October 350
Actual Sales
Month x xy x2
(in 000’s)
May 250 0 0 0
June 300 1 300 1
July 275 2 550 4
August 325 3 975 9
September 290 4 1,160 16
October 350 5 1,750 25
∑y = 1,790 ∑x = 15 ∑xy = 4,735 ∑x2 = 55
x=
x = 15 = 2.5 and y=
y = 1,790 = 298.33
n 6 n 6
Solving for b, Solving for a,
b=
xy − nxy = 4,735 − 6 ( 2.5 )( 298.33 ) a = y − bx
x − nx
2 2
55 − 6 ( 2.5 )
2
a = 298.33 − 14.68 ( 2.5 )
b = 14.86 a = 261.18
Example.
a) Suppose we wanted to forecast the sale of ROA Supermart for the month
of November.
b) Forecast the sale in January of the following year.
Solution.
a) From May to November is 6 months, hence x = 6
Y = 261.18 + 14.86 x = 261.18 + 14.86 ( 6 )
Y = 350.34 (thousands)
110
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Judgmental Projection
In modern times, forecasts of social and economic environment have become
more and more necessary in business to keep the business manager informed about
what is likely to happen.
When good data are not readily available, we tend to consult some
experienced individuals or experts to ask for their personal judgments, in which case
we primarily rely on human judgment to interpret available data and make projections
about the future.
One kind of judgmental forecast is the Delphi Technique where a group of
experts is asked for their opinions in an environment which all of them individually
have access to the information but in which the majority opinion is not disclosed to
prevent influencing one another.
Of course experts are sometimes wrong in their forecast, just like anyone of
us, and any method of forecasting oftentimes yields inaccurate results, but in
business, it is better to forecast than not to forecast at all.
111
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Now that you know the concepts of project management, let us try to
check your understanding of these concepts by answering the
following questions.
1. What is the earliest start time (ES) for an activity leaving node C using the AOA
approach?
2. What is the latest finish time (LF) for an activity entering node H using the AOA
approach?
5. Did all activities on the critical path have their latest finish time equal to their
earliest start time?
8. When good data are not available, how are you going to make predictions for the
future scenario?
10. How does forecasting helps business managers prepare for the future of their
business.
112
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Getting acquainted with the essential terms and concepts of the project
management, decision analysis, and business forecasting, what also matters is
you should also be able to apply these concepts in solving the following problems.
1. Suppose that the Davao City College had the following record of enrolment from 2011 – 2018.
Year Enrolment Year Enrolment
2011 1,200 2015 3,000
2012 1,500 2016 5,800
2013 2,000 2017 6,000
2014 2,500 2018 7,000
2. The ROA Concession Company is considering to bid on the concession at Rizal Memorial Stadium
during a championship game. There is no cost to prepare the bid. The company can bid for either the
beverage concession or the hotdog concession, but not both. There is a 40% chance of either being
accepted. The company’s estimates of net profits depend on whether it is a rainy day or a clear day. For
the beverage concession, the company estimates a profit ₱8,000 on a clear day and a loss of 5,000
on a rainy day. For a hotdog concession, the company estimates a profit of 5,000 regardless of weather
conditions. During this particular time of the year, it has been observed that 80% of the day are clear
and 20% are rainy. Should the company prepare a bid, and if so, should it be for beverage or hotdog?
3. You and several friends are about to prepare a lasagna dinner. The tasks to be performed, their
immediate predecessors, and their estimated durations are as follows:
Task that
Task Task Description Time
Must Precede
A Buy the mozzarella cheese 30 minutes
B Slice the mozzarella A 5 minutes
C Beat 2 eggs 2 minutes
D Mix eggs and ricotta cheese C 3 minutes
E Cut up onions and mushrooms 7 minutes
F Cook the tomato sauce E 25 minutes
G Boil large quantity of water 15 minutes
H Boil lasagna noodles G 10 minutes
I Drain the lasagna noodles H 2 minutes
J Assemble all the ingredients I, F, D, B 10 minutes
K Preheat the oven 15 minutes
L Bake the lasagna J, K 30 minutes
113
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
Activity 1. Based from the definition of the most essential terms and concepts in
the study integer programming, transportation, and assignment
problems and the learning exercises that you have done, please feel
free to write your arguments or lessons learned below.
1.
2.
3.
114
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1.
2.
3.
4.
5.
Business
Project Management Decision Analysis
Forecasting
PERT/CPM Decision Tree Average Forecast
Exponential
Critical Path Decision point
Smoothing
Project Network Expected value Trend Projection
Judgmental
Earliest Start Time Probabilities
Forecasting
Earliest Finish Time Project Duration Slack for an Activity
115
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
COURSE SCHEDULES
116
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1) All teachers/Course Facilitators and students are expected to abide by an honor code of
conduct, and thus everyone and all are exhorted to exercise self-management and self-
regulation.
3) All students are likewise guided by professional conduct as learners in attending OBD or
DED courses. Any breach and violation shall be dealt with properly under existing guidelines,
specifically in Section 7 (Student Discipline) in the Student Handbook.
4) Professional conduct refers to the embodiment and exercise of the University’s Core Values,
specifically in the adherence to intellectual honesty and integrity; academic excellence by
giving due diligence in virtual class participation in all lectures and activities, as well as fidelity
in doing and submitting performance tasks and assignments; personal discipline in
complying with all deadlines; and observance of data privacy.
5) Plagiarism is a serious intellectual crime and shall be dealt with accordingly. The University
shall institute monitoring mechanisms online to detect and penalize plagiarism.
7) Teachers/Course Facilitators shall devote time to handle OBD or DED courses and shall
honestly exercise due assessment of student performance.
8) Teachers/Course Facilitators shall never engage in quarrels with students online. While
contentions intellectual discussions are allowed, the teachers/Course Facilitators shall take
the higher ground in facilitating and moderating these discussions. Foul, lewd, vulgar and
discriminatory languages are absolutely prohibited.
9) Students shall independently and honestly take examinations and do assignments, unless
collaboration is clearly required or permitted. Students shall not resort to dishonesty to
improve the result of their assessments (e.g. examinations, assignments).
10) Students shall not allow anyone else to access their personal LMS account. Students shall
not post or share their answers, assignment or examinations to others to further academic
fraudulence online.
11) By handling OBD or DED courses, teachers/Course Facilitators agree and abide by all the
provisions of the Online Code of Conduct, as well as all the requirements and protocols in
handling online courses.
12) By enrolling in OBD or DED courses, students agree and abide by all the provisions of the
Online Code of Conduct, as well as all the requirements and protocols in handling online
courses.
117
College of Arts and Sciences Education
General Education - Mathematics
2nd Floor, DPT Building, Matina Campus, Davao City
Phone No.: (082)300-5456/305-0647 Local 134
1) The Deans, Asst. Deans, Discipline Chairs and Program Heads shall be
responsible in monitoring the conduct of their respective OBD classes through
the Blackboard LMS. The LMS monitoring protocols shall be followed, i.e.
monitoring of the conduct of Teacher Activities (Views and Posts) with generated
utilization graphs and data. Individual faculty PDF utilization reports shall be
generated and consolidated by program and by college.
2) The Academic Affairs and Academic Planning & Services shall monitor the
conduct of LMS sessions. The Academic Vice Presidents and the Deans shall
collaborate to conduct virtual CETA by randomly joining LMS classes to check
and review online the status and interaction of the faculty and the students.
3) For DED, the Deans and Program Heads shall come up with monitoring
instruments, taking into consideration how the programs go about the conduct of
DED classes. Consolidated reports shall be submitted to Academic Affairs for
endorsement to the Chief Operating Officer.
RONNIE O. ALEJAN
RONNIE O. ALEJAN
Program Head
Approved by:
118