Professional Documents
Culture Documents
Hepm3203 Operations Research
Hepm3203 Operations Research
OF
AGRICULTURE & TECHNOLOGY
DEPARTMENT OF EPD
Prerequisite:
Course Aims
This course is aimed at providing students with concepts of Operations Research
and their applications in business and other related areas.
Course Objectives
At the end of this course the student should be able to:
Instruction Methodology
Lectures, Case studies, Buzz (Group discussions) and Seminars.
ii
Course Text Books
1. Hamdy A. Taha, A.M. Natarajan, P. Balsubramanie and A. Tamilarasi (2008).
Operations Research (An Introduction)
Course Journals
Assessment Information
The module will be assessed as follows;
• 20% of marks from one written CAT to be administered at JKUAT main cam-
pus or one of the approved centres
iii
Contents
1 Introduction 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 History of operations Research . . . . . . . . . . . . . . . . . . . . 2
1.3 The Nature of Operations Research . . . . . . . . . . . . . . . . . . 3
1.4 Operations Research Models . . . . . . . . . . . . . . . . . . . . . 5
1.5 Solving the OR Model . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Linear Programming 10
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Basic Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Mathematical Formulation of a LP model . . . . . . . . . . . . . . 11
2.4 Resource Allocation Models . . . . . . . . . . . . . . . . . . . . . 13
2.4.1 Maximization problems . . . . . . . . . . . . . . . . . . . . 13
iv
CONTENTS CONTENTS
5 Transportation Models 33
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.2 Transportation Model . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.2.1 Transportation Problem as a Linear Programming Model . . 35
5.2.2 Formulation of a Transport Problem . . . . . . . . . . . . . 35
5.2.3 Finding an initial basic feasible solution . . . . . . . . . . . 36
6 Assignment Problem 45
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.1.1 Mathematical Formulation of the Problem . . . . . . . . . . 46
6.1.2 Solution of an Assignment Problem . . . . . . . . . . . . . 47
7 Network Model 52
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7.1.1 Concept of Network . . . . . . . . . . . . . . . . . . . . . 54
7.1.2 Rules for Construction of Network . . . . . . . . . . . . . . 56
7.2 Critical Path Method (CPM) . . . . . . . . . . . . . . . . . . . . . 56
7.3 Pert Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
7.4 Resource Scheduling in a Network . . . . . . . . . . . . . . . . . . 60
v
CONTENTS CONTENTS
9 Simulation 78
9.1 Game Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
vi
HEPM3203 OPERATIONS RESEARCH
LESSON 1
Introduction
1.1. Introduction
Operational Research is an interdisciplinary branch of applied mathematics and
formal science that uses methods such as mathematical modelling, statistics, and
algorithms to arrive at optimal or near optimal solutions to complex problems. It
is typically concerned with optimizing the maxima (profit, assembly line perfor-
mance, crop yield, bandwidth, etc) or minima (loss, risk, etc.) of some objective
function. Operations research helps management achieve its goals using scientific
methods.
According to the Operations Society of Great Britain, Operations Research is the
application of the methods of science to complex problems arising in the direc-
tion and management of large systems of men, materials and money in industry,
business, Government and defense. The distinctive approach is to develop a sci-
entific model of the system, incorporating measurements of factors such as chance
and risk, with which to predict and compare the outcome of alternative decisions,
strategies or controls. The purpose is to help management to determine its policy
and actions scientifically.
It provides a facility to a decision maker to evaluate the given problems, identify
alternative solutions, recognize the constraints and then assist the decision maker to
have the best possible solution available, which is known as the optimal solution.
It tries to avoid the dangers from taking decisions merely by guessing or by us-
ing thumb rules. Management is a multidimensional and dynamic concept. It is
multidimensional in the sense that management problems and their solutions have
consequences in several dimensions, such as human, economic, social and political
fields. Also, the manager operates his system in an environment, which will never
remain static, hence the dynamic nature. Hence any manager, while making deci-
sions, must consider all aspects in addition to economic aspect, so that his solution
should be useful in all aspects.
The general approach is to analyse the problem in economic terms and then im-
plement the solution if it is not aggressive or does not impact negatively on other
aspects like humanity, social and political factors.
In summary we can say operations research has the following features:-
1
HEPM3203 OPERATIONS RESEARCH
• While analysing the problems all aspects are considered and examined and
analysed scientifically for finding the optimal solution for the problem on
hand.
In other words, operations research can be said to have the following characteristics
2
HEPM3203 OPERATIONS RESEARCH
the various activities in a way that is most effective for the organization as a whole.
These kinds of problems and the need to find a better way to solve them provided
the environment for the emergence of operations research (commonly referred to
as OR). The roots of OR can be traced back many decades, when early attempts
were made to use a scientific approach in the management of organizations. How-
ever, the beginning of the activity called operations research has generally been
attributed to the military services early in World War II. Because of the war effort,
there was an urgent need to allocate scarce resources to the various military opera-
tions and to the activities within each operation in an effective manner. Therefore,
the British and then the U.S. military management called upon a large number of
scientists to apply a scientific approach to dealing with this and other strategic and
tactical problems. In effect, they were asked to do research on (military) operations.
These teams of scientists were the first OR teams. By developing effective meth-
ods of using the new tool of radar, these teams were instrumental in winning the
Air Battle of Britain. Through their research on how to better manage convoy and
antisubmarine operations, they also played a major role in winning the Battle of the
North Atlantic. Similar efforts assisted the Island Campaign in the Pacific. When
the war ended, the success of OR in the war effort spurred interest in applying OR
outside the military as well. As the industrial boom following the war was running
its course, the problems caused by the increasing complexity and specialization in
organizations were again coming to the forefront. It was becoming apparent to a
growing number of people, including business consultants who had served on or
with the OR teams during the war, that these were basically the same problems that
had been faced by the military but in a different context. By the early 1950s, these
individuals had introduced the use of OR to a variety of organizations in business,
industry, and government. The rapid spread of OR soon followed.
3
HEPM3203 OPERATIONS RESEARCH
6. Implement.
4
HEPM3203 OPERATIONS RESEARCH
2. Buy one NBI-KSM, four KSM-NBI-KSM that span weekends and one KSM-
NBI.
3. Buy one NBI-KSM-NBI to cover Monday of the first week and Wednesday
of the last week and four KSM-NBI-KSM to cover the remaining legs. All
tickets in this alternative span at least one weekend.
The restriction on these options is that you should be able to leave NBI on Monday
and return on Wednesday of the same week.
An obvious objective criterion for evaluating the proposed alternative is the price of
the tickets. The alternative that yields the smallest cost would be the best. Specifi-
cally, we have
5
HEPM3203 OPERATIONS RESEARCH
2(l + w) = L
l≥0 , w≥0
Finally, the objective of the problem is maximization of the area of the rectangle. If
we let z to be the area of the rectangle, then, the complete model becomes
maximize z = lw
subject to
2(l + w) = L
l, w ≥ 0
Based on these two examples, the general OR model can be given as
Maximize or minimize an Objective Function
subject to
Constraints
6
HEPM3203 OPERATIONS RESEARCH
A solution of the model is feasible if it satisfies all the constraints, and optimal if,
in addition yo being feasible, it yields the best (maximum or minimum) value of the
objective function.
Problem: identify a fourth feasible alternative for the tickets problem.
7
HEPM3203 OPERATIONS RESEARCH
3. Waiting Line Model or Queuing Model-A model used for solving a prob-
lem where certain service facilities have to provide service to its customers,
so as to avoid lengthy waiting line or queue, so that customers will get satis-
faction from effective service and idle time of service facilities are minimized
is waiting line model or queuing model.
8
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . .......
Solution:
for revision
9
HEPM3203 OPERATIONS RESEARCH
LESSON 2
Linear Programming
2.1. Introduction
A model, which is used for optimum allocation of scarce or limited resources to
competing products or activities under such assumptions as certainty, linearity, fixed
technology, and constant profit per unit, is a linear programming model.
Linear Programming is one of the most versatile, powerful and useful techniques
for making managerial decisions
Linear programming (LP) is a technique for optimization of a linear objective func-
tion, subject to linear equality and linear inequality constraints. Informally, linear
programming determines the way to achieve the best outcome (such as maximum
profit or lowest cost) in a given mathematical model and given some list of require-
ments represented as linear equations.
It is a mathematical technique concerned with the allocation of scarce resources.
It is a procedure that optimizes the value of some objective function (maximizing
profits or minimizing costs) when the factors involved (e.g. labour or machine
hours) are subject to some constraints (e.g. only 1,000 labour hours available in a
week).
Problems to be solved must conform to the following:
10
HEPM3203 OPERATIONS RESEARCH
2. The relationship between variables in the problem and the resources available
is linear. Here the term linearity implies proportionality and additivity. This
assumption is very useful as it simplifies modelling of the problem.
3. We assume here fixed technology i.e., production requirements are fixed dur-
ing the planning period and don’t change in the period.
6. Only one decision is required for the planning period. This condition shows
that the linear programming model is a static model, implying that the linear
programming problem is a single stage decision problem. (Note: Dynamic
Programming problem is a multistage decision problem).
7. All variables are restricted to non-negative values (i.e., their numerical value
will be 0).
1. Study the given situation, find the key decision to be made. Hence, identify
the decision variables(issues or factors in the problem whose values are to be
determined) in the problem, specifying their units of measurement.
11
HEPM3203 OPERATIONS RESEARCH
The objective function, the set of constraints and the non-negativity restrictions
together form the LP model.
In particular, this model is seeks to select the values for x1 , x2 , . . . , xn so as to
Optimize z = c1 x1 + c2 x2 + · · · + cn xn
Subject to a11 x1 + a12 x2 + · · · + a1n xn (≤, =, ≥)b1
a21 x1 + a22 x2 + · · · + a2n xn (≤, =, ≥)b2
..
.
am x1 + am x2 + · · · + amn xn (≤, =, ≥)b2m (2.1)
and x1 , x2 , . . . , xn ≥ 0
n
Optimize z = ∑ c jx j
j=1
Subject to ∑nj=1 ai j x j (≤, =, ≥)b1 , i = 1, 2, . . . , m
and xn ≥ 0, j = 1, 2, . . . , n
12
HEPM3203 OPERATIONS RESEARCH
Table 2.1:
Table 2.2:
A market survey indicates that, the daily demand for interior paint cannot exceed
that of exterior paint by more than 1 ton. Also the maximum daily demand for
interior paint is 2 tons. Marangi paint company wants to determine the optimum
(best) product mix for interior and exterior paints that maximizes the daily prots.
13
HEPM3203 OPERATIONS RESEARCH
Solution:
Step 1. Identify the decision variables. These are the amounts of exterior and
interior paints that need to be produced. Let x1 and x2 represent the tons of exterior
and interior paints to be produced daily respectively.
Step 2. Formulate the objective function. The company wants to maximize prof-
its. Letting z represent the total daily profit (in thousands of dollars), the objective
function can be given as,
Step 3. Formulate the constraints that restrict raw material usage and express the
demand. For raw material usage we have:-
For the demand restrictions we have the first one saying that the difference between
the daily production of interior and exterior paints, x2 − x1 , does not exceed 1 tonne.
This translate to x2 − x1 ≤ 1. The second restriction stipulates that the maximum
daily demand for interior paint is limited to two tons, which translates to x2 ≤ 2.
Step 4. Add the non-negativity constraints.
Therefore the complete Marangi Model is:
subject to
14
HEPM3203 OPERATIONS RESEARCH
6x1 + 4x2 ≤ 24
x1 + 2x2 ≤ 6x
−x1 + x2 ≤ 1
x2 ≤ 2
and
x1 , x2 ≥ 0
Example . (KICOMI Garment Problem). The KICOMI retail store stocks two
types of shirts A and B, These are packed in attractive cardboard boxes. In one
week the store can sell a maximum of 400 shirts of type A and a maximum of 300
shirts of type B. The storage capacity, however, is limited to a maximum of 600 of
both types combined.
Type A shirt fetches a profit of Kshs. 20/- per unit and type B a profit of Kshs. 50/-
per unit. The store wants to establish how many of each type of shirt they need to
stock per week in order to maximize their total profit. Formulate a mathematical
model for this problem.
Solution:
Step 1. We require the decision variables with regard to the quantities we need to
stock weekly. Let x1 and x2 represent the numbers of shirts A and B to be stocked
weekly respectively.
Step 2. The store is seeking to maximize weekly profits. The profit contributions
for types A and B are 20/- and 50/- per unit respectively, so if z represents the
weekly profits for KICOMI store, then the objective function becomes.
z = 20x1 + 50x2
Step 3. We are limited by the sales and storage capacities so we consider the max-
imum sales and the maximum storage. The sales and storage constraints are given
as
15
HEPM3203 OPERATIONS RESEARCH
x1 ≤ 400
x2 ≤ 300
x1 + x2 ≤ 600
Step 4. Finally
x1 , x2 ≥ 0
16
HEPM3203 OPERATIONS RESEARCH
Revision Questions
17
HEPM3203 OPERATIONS RESEARCH
LESSON 3
Linear Programming (cont’d)
Table 3.1:
Solution:
Step 1. Let x1 and x2 represent the quantities of Tonic I and II that can be purchased
Step 2. Let the total cost of purchasing these tonics be z. The objective function
considering the costs becomes
We are limited by the proportion of each vitamin in the tonics and their minimum
daily requirements. The constraints will then be given by
18
HEPM3203 OPERATIONS RESEARCH
Finally
x1 , x2 ≥ 0
Example . (Diet Problem). Polly wonders how much money she must spend on
food in order to get all the energy (2,000 kcal), protein (55 g), and calcium (800
mg) that she needs every day. She chooses six foods that seem to be cheap sources
of the nutrients and collects her data in the following table of nutritive value per
serving. She also decides to impose servings-per-day limits on all foods. Present
this problem in standard form.
Table 3.2:
Solution:
19
HEPM3203 OPERATIONS RESEARCH
To design the most economical menu, she speculates about some as yet unspecified
menu, consisting of x1 servings of oatmeal, x2 servings of chicken, and so on. She
wants to find numbers x1 , x2 , . . . , x6 that satisfy her self-imposed servings-per-day
limits, meet the requirements for energy, protein, calcium, and yet minimize the
cost. This diet problem can be nicely formulated as follows.
and x1 , x2 , . . . , x6 ≥ 0
1. The Graphical Method: This method limits us to problems that have two
decision variables in the problem. (To deal with more decision variables by
20
HEPM3203 OPERATIONS RESEARCH
4. The Simplex method. When the problem is having more than two decision
variables, simplex method is the most powerful method to solve the problem.
It has a systematic algorithm used to solve the problem.
• A feasible solution is a solution for which all the constraints are satisfied.
• An optimal solution is a feasible solution that has the most favourable value
of the objective function. Most problems will have just one optimal solution.
However, it is possible to have more than one. Another possibility is that of
having no optimal solutions.
21
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . ...
Solution: for revision
E XERCISE 3. ..
22
HEPM3203 OPERATIONS RESEARCH
LESSON 4
The Concepts of Inventory and Inventory Management
1. It is the stock of any items or resources held in an organization for sale or use.
There is a distinction between manufacturing firm inventory and service firm in-
ventory. Manufacturing firm inventory refers to all items held in inventory that
contributes to or become part of organizations products e.g. raw materials, finished
goods, supplies, work in progress and piece parts. Service firm’s inventory refers
to all tangible goods to be sold (stock in trade) and the supplies necessary to ad-
minister the service. e.g. a mobile phone company such as Safaricom keeps stock
of scratch cards, SIM cards, packaging material etc in order to offer competitive
services to its clients.
2. Raw materials. These are basic materials or outputs from the primary sec-
tor which undergo production transformation processes to become finished
products e.g. steel, barley, cotton. Finished products of one firm may be raw
materials for another firm; e.g. Logs → paper → printing industry. Mining
→steel →steel products.
4. Piece parts. They are all small components manufactured from raw materials
e.g bolts, nuts.
5. Bought parts These are finished parts or assemblies purchased from outside
suppliers to be used as raw materials or to be sold as spares or accessories.
23
HEPM3203 OPERATIONS RESEARCH
The bought parts could be protected by patents or the outside supplier may be
producing in large quantities and thus enjoying economies of scale and hence
buying is preferred to making.
11. Scrap and residues. They include the waste or surplus materials or parts aris-
ing from manufacturing processes/activities e.g. sawdust (+ve), pollutants
(-ve)
13. General materials. Are all goods that do not fall within another category.
These are basically the maintenance, repair and operating supplies which are
consumed in the production process but do not become part of the final prod-
uct e.g. lubrication oil.
24
HEPM3203 OPERATIONS RESEARCH
It is the activity of determining the rate and quantities and the procedures of ma-
terials to be stocked in an organization and the regulation of receipts and issues of
those stocks.
• Provides both internal and external customers the required service levels in
terms of quantities and the order rate fill (timing).
• Ascertains present and future requirements for all types of inventory to avoid
overstocking or under- stocking.
• Keeps costs at the minimum by variety reduction, economic lot sizes and
analysis of costs incurred in obtaining and keeping inventories.
25
HEPM3203 OPERATIONS RESEARCH
• Operations - Low cost of operations - Right product in the right place at the
right time (excellent customer services)
26
HEPM3203 OPERATIONS RESEARCH
based on the average demand for the year. Excess production in the lean periods is
kept in inventory to take care of high demand. In cases where raw material is avail-
able seasonally, the products are manufactured and stocked as inventory to meet the
demand of the finished product throughout the year. e.g agricultural produce.
Economies of scale. Products are manufactured at focused factories to achieve
economies of scale. This is done because of the availability of the latest technology,
raw materials and skilled labour. Hence the product is kept in store for distribution
to consumption centers as and when it is required.
Other reasons for keeping inventory include: - To take advantage of quantity dis-
counts. - As a necessary part of production process e.g. the maturing of whisky/
wine products. - Case of critical and strategic products such as petroleum or cere-
als (strategic food reserve). - As a contractual obligation e.g. the oil sector. Note:
Sometimes the firm finds itself with stocks for non-logical reasons such as:
27
HEPM3203 OPERATIONS RESEARCH
Inspite of the many factors to consider, some two authorities: - Lysons and Farring-
ton, noted that inventory management comprises such activities as:
• Managing items with difficulty in supply and demand patterns, related sea-
sonal demand, changes in end user applications or meeting demands for the
customization of products.
• Reviewing safety stocking cost and controlling minimum and maximum amounts
of inventory in terms of quality and value.
• Ensuring the safety and security of supplies and the avoidance of loss as a
result of any factor such as deterioration, theft, waste, obsolescence etc.
• Preparation and interpretation of reports on stock levels, stock usage and sur-
plus stock.
28
HEPM3203 OPERATIONS RESEARCH
• Insurance against fire, theft . . . etc iv) Security costs such as security person-
nel, alarm systems, electric fencing. . . etc
• Perishability costs. These are for perishable items such as edibles (bread,
milk, fruits, vegetables, newspapers and other periodicals; tax reports, fresh
flowers. . . etc)
• Pilferages.
29
HEPM3203 OPERATIONS RESEARCH
• Transportation costs.
• Insurance on transit.
In the case of imported products, valuation is done on the basis of the current ex-
change rates in the market. Any fluctuations may increase or decrease the value of
the product. Due to this, there is the risk of selling stocks at prices lower than the
landed costs.
Shortage costs. These are incurred as a result of the item not being in stock. Exam-
ples:
• Loss of goodwill; could lead to loss of customers. ii) Contribution lost, due
to not making a sale.
• Back order costs - these are costs of dealing with disappointed customers.
• Costs of idle resources e.g.:- production personnel being paid when there’s a
raw material missing.
Purchase Costs: This is what is paid to the supplier /seller by the buyer in exchange
of the product. Inventory is usually a large investment for many firms. It is normally
the second largest item in the balance sheet among the assets after fixed assets.
Thus, inventory should only be held if the benefits (service to customers) exceeds
the inventory costs. Also in inventory modeling, purchase costs is a relevant factor
to inventory policy due to availability of quantity discounts. Thus, for inventories,
(Total Cost) TC = Purchase + Holding + Ordering + Shortage costs costs costs costs
30
HEPM3203 OPERATIONS RESEARCH
31
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . ...
Solution:
for revision
E XERCISE 4. ...
32
HEPM3203 OPERATIONS RESEARCH
LESSON 5
Transportation Models
Learning Outcomes
A study of this lesson should enable students to:
• Use probabilistic techniques that covers problems in which all parameters are
not known with certainty
– Transportation model
– North west corner rule
– Least cost method
– Vogels Approximation Method
5.1. Introduction
Many practical problems in operations research can be broadly formulated as linear
programming problems, for which the simplex this is a general method and cannot
be used for specific types of problems like,
i) Transportation models
Remark.
The above models are also basically allocation models. We can adopt the simplex
technique to solve them, but easier algorithms have been developed for solution of
such problems. The following sections deal with the transportation problems and
their streamlined procedures for solution.
33
HEPM3203 OPERATIONS RESEARCH
Table 5.1:
Origins Destinations(warehouse)Available
(factory) 1 2 ........... n
1 C11 C12 C1n a1
2 C21 C22 C2n a2
... ... ... ... ...
M Cm1 Cm2 Cmn am
Required b1 b2 bn
Table 5.2:
Origins Destinations(warehouse)Available
(factory) 1 2 ........... n
1 x11 x12 x1n a1
2 x21 x22 x2n a2
... ... ... ... ...
M xm1 xm2 xmn am
Required b1 b2 bn
34
HEPM3203 OPERATIONS RESEARCH
Plant Location 1 2 3
Production (units) 40 70 90
Example . A company has plants located at three places where the production
pattern is described in the following table.
The potential demand at five places has been estimated by the marketing department
and is presented below.
35
HEPM3203 OPERATIONS RESEARCH
Distribution centre 1 2 3 4 5
Potential demand (units) 30 40 60 40 60
The cost of transportation from a plant to the distribution centre has been displayed
in the table 5.3
Represent the above data in a table to represent a transportation problem
Solution:
In this example the total supply and the total demand do not match as supply is less
than demand. Hence a dummy row (dummy plant) is introduced at a unit trans-
portation cost of 0. The following is the tabular representation of the transportation
problem.
Note: If the total demand (requirements) is less than the total supply (availability),
a dummy column (dummy destination) is introduced with a unit transportation cost
of 0.
36
HEPM3203 OPERATIONS RESEARCH
• STEP 3 - Move one cell to the right if there is any remaining supply. Other-
wise, move one cell down. If both are impossible, stop or go to step (2).
37
HEPM3203 OPERATIONS RESEARCH
and the same can be allotted to the destination R. Now the origin C is emptied and
the requirement at the destination R is also complete. This completes the initial
solution to the problem.
The above calculations are performed conveniently in a table 5.6 as shown :
The total cost of transportation by this method will be;
65 × 5 + 5 × 7 + 30 × 4 + 7 × 7 + 43 × 7 = Kshs. 830
As the solution obtained by the North West Corner Rule may not be expected to
be particularly close to the optimal solution, we have to explore a promising initial
basic feasible solution, so that we can reach the optimal solution to the problem
with minimum number of iterations.
• STEP 2: Identify the row and allocate the maximum feasible quantity in the
cell corresponding to the least cost in the row. Then eliminate that row (col-
umn) when an allocation is made.
• STEP 3: Repeat steps 1 and 2 for the reduced transportation table until all
the available quantities are distributed to the required places. If the minimum
cost is not unique, the tie can be broken arbitrarily.
38
HEPM3203 OPERATIONS RESEARCH
30 items to P and thus origin B is exhausted. P still requires 35 more units. Hence,
deleting the row B, we have the reduced matrix as in the table 5.8 below
In the reduced matrix (table 5.8) we observe that 5 is the least element in the cell
(A, P) and examine the supply at A and demand at P. The destination P requires 35
items and this requirement is satisfied from A so that the column P is deleted next.
So we have the reduced matrix as in table 5.9
In the reduced matrix (table 5.8) we choose 7 as least element corresponding to the
cell (A. Q). We supply 35 units from A to Q so have the reduced matrix in table
5.10.
We now have the allotment as per the least cost method as shown in the table 5.11
The cost of the allocation by the least cost method is
35 × 5 + 35 × 7 + 30 × 4 + 7 × 7 + 43 × 7 = Kshs. 890
39
HEPM3203 OPERATIONS RESEARCH
• STEP 2: Select the smallest element in each row and the next to the smallest
40
HEPM3203 OPERATIONS RESEARCH
element in that row. Find the difference. This is the penalty written on the
right hand side of each row. Repeat the same for each column. The penalty
is written below each column.
• STEP 3: Select the row or column with largest penalty. If there is a tie, the
same can be broken arbitrarily.
• STEP 4: Allocate the maximum feasible amount to the smallest cost cell in
that row or column.
• STEP 5: Allocate zero else where in the row or column where the supply or
demand is exhausted.
• STEP 6: Remove all fully allocated rows or columns from further considera-
tion. Then proceed with the remaining reduced matrix till no rows or columns
remain.
Let us apply Method to the above example as given below in table 5.12
The difference between the smallest and next to the smallest element in each row
and in each column is calculated. This is indicated in the parenthesis. We choose
the maximum from among the differences. The first individual allocation will be to
the smallest cost of a row or column with the largest difference. So we select the
column Q (penalty = 3) for the first individual allocation, and allocate to (B, Q) as
much as we can, since this cell has the least cost location. Thus 30 units from B are
allocated to Q. This exhausts the supply from B. However, there is still a demand
of 12 units from Q. The allocations to other cells in that column are 0, as indicated.
41
HEPM3203 OPERATIONS RESEARCH
The next step is to write down the reduced matrix (as in table 5.13) eliminating row
B (as it is exhausted).
From the table 5.13, (2) is the largest unit difference corresponding to the row A.
This leads to an allocation in the corresponding minimum cost location in row A,
namely cell (A, P). The maximum possible allocation is only 65 as required by P
from A and allocation of 0 to others in the row A. Column P is thus deleted and the
reduced matrix is given in table 5.14.
Maximum difference is 1 in row A and in column C. Select arbitrarily A and allot
the least cost cell (A, Q) 5 units. Delete row A.
Now, we have only one row C and two columns Q and R (Table 5.15) indicating
that all the available amount from C has to be moved to Q and R as per their re-
quirements. Hence we have the table 5.15
We obtain as our basic feasible solution by re-tracking various positive allocations
in successive stages. We have the solution by Vogel’s Approximation Method as
shown in the table 5.16
The cost of allocation by Vogel’s Approximation Method will be
65 × 5 + 5 × 7 + 30 × 4 + 7 × 7 + 43 × 7 = 325 + 35 + 120 + 49 + 301 = Kshs. 830
42
HEPM3203 OPERATIONS RESEARCH
NOTE
Cost of allocation for the same problem with three methods:
NWC method - Kshs. 830/-
Least cost method - Kshs.890/-
Vogel’s Approximation Method - Kshs. 830/-
Generally VAM gives a better initial solution
43
HEPM3203 OPERATIONS RESEARCH
Revision Questions
44
HEPM3203 OPERATIONS RESEARCH
LESSON 6
Assignment Problem
Learning Outcomes
A study of this lesson should enable students to:
6.1. Introduction
A special type of problem called the assignment problem is also an allocation prob-
lem. Here we have n jobs to perform with n persons and the problem is how to
distribute the jobs to the different persons involved. Depending on the intrinsic
capacity or merit or potential of the individual, he will be able to accomplish the
task in different times. Then the objective function in assigning the different jobs
to different persons is to find the optimal assignment that will minimize the total
time taken to finish all the jobs by the individuals. For example, we have four
different building activities say, construction of a hotel, a theatre, a hospital and a
multistoried building and there are four contractors competing for these jobs. Each
contractor has to be assigned only one job. The allocation should aim to minimize
the total time taken to complete the construction of all four activities after assigning
only one job to one individual. In fact there are 4 permutations possible for allo-
cating 4 jobs to 4 contractors. We have 24 possible ways and it is tiresome to list
all the possible ways and find the best one. If we have more jobs to be allocated,
it is even difficult to list out the different permutations of allocations, then what to
speak of choosing the best combinations.
The problem may be stated formally as follows. Given an n × n array of real num-
bers representing the individual return associated with assigning one item to one
person. We have to find the best assignment so that the total return is optimal.
Consider the following example, given below in the table 6.1
In the above example, the elements of the matrix represent the times taken by A,
B, C and D in accomplishing the jobs 1, 2, 3 and we have to find which job is
45
HEPM3203 OPERATIONS RESEARCH
Table 6.1:
Men
Jobs
A
D
B
C
1 5 6 8 7
2 4 7 6 6
3 5 4 6 5
4 6 7 4 6
to be assigned to whom so that the total time taken will be minimum. This is the
objective function. Thus, this is also an allocation problem. A solution can be found
to the above problem by the algorithm used to solve the transportation problem of
degenerate transportation problem. In this way only 4 cells will be allocated. This
leads to problem of degenerate transportation problem. There should be (4 + 4 + 1)
= 7 allocations in the initial basic feasible solution, but we have only 4 allocations.
Hence it is the degeneracy.
Subject to restrictions,
Row restrictions
x11 + x12 + x13 + x14 = 1 for job 1
x21 + x22 + x23 + x24 = 1 for job 2
x31 + x32 + x33 + x34 = 1 for job 3
x41 + x42 + x43 + x44 = 1 for job 4
Column restrictions
x11 + x21 + x31 + x41 = 1 for person 1
46
HEPM3203 OPERATIONS RESEARCH
Table 6.2:
Worker
Jobs
A
D
B
C
1 10 20 18 24
2 15 25 9 25
3 30 19 17 12
4 19 24 20 10
Example . A works manager has to allocate four different jobs to four workmen.
Depending on the efficiency and the capacity of the individual the times taken by
each differ as shown in the table 6.2. How should the tasks be assigned one job to a
worker so as to minimize the total man-hours?
The following steps are followed to find an optimal solution
STEP 1: Consider each row. Select the minimum element in each row. Subtract
this smallest element from all the elements in that row. This results in the table 6.3.
STEP 2: We subtract the minimum element in each column from all the elements
in its column. Thus we obtain table 6.4
47
HEPM3203 OPERATIONS RESEARCH
Table 6.3:
Worker
Jobs
A
D
B
C
1 0 10 8 4
2 6 16 0 6
3 18 7 5 0
4 9 14 10 0
Table 6.4:
Worker
Jobs
A
D
B
C
1 0 3 8 4
2 6 9 0 16
3 18 0 5 0
4 9 7 10 0
STEP 3: In this way we make sure that in the matrix each row and each column has
at-least one zero element. Having obtained at-least one zero in each row and each
column, we assign starting from first row.
In the first row, we have a zero in (1, A). Hence we assign job 1 to the worker A.
This assignment is indicated by a shaded cell. All other zeros in the column are
crossed (X) to show that the other jobs cannot be assigned to worker A as he has
already been assigned. In the above problem we do not have other zeros in the first
column A.
Proceed to the second row. We have a zero in (2, C). Hence we assign the job 2 to
worker C, indicating by shading the cell. Any other zero in this column is crossed
(X).
Proceed to the third row. Here we have two zeros corresponding to (3, B) and (3,
D). Since there is a tie for the job 3, go to the next row deferring the decision for
the present. Proceeding to the fourth row, we have only one zero in (4, D). Hence
we assign job 4 to worker D. Now the column D has a zero in the third row. Hence
cross (3, D).
All the assignments made in this way are as shown in table 6.5.
48
HEPM3203 OPERATIONS RESEARCH
Table 6.5:
Worker
Jobs
A
D
B
C
1 0 3 8 4
2 6 9 0 16
3 18 0 5 0
4 9 7 10 0
Table 6.6:
Jobs to
Worker
1 A
2 C
3 B
4 D
STEP 4: Now having assigned certain jobs to certain workers we proceed to the
column 1. Since there is an assignment in this column, we proceed to the second
column. There is only one zero in the cell (3, B); we assign the jobs 3 to worker
B. Thus all the four jobs have been assigned to four workers. Thus we obtain the
solution to the problem as shown in the table 6.6.
We summarise the above procedure as a set of following rules:
1. Subtract the minimum element in each row from all the elements in its row
to make sure that at least we get one zero in that row.
2. Subtract the minimum element in each column from all the elements in its
column in the above reduced matrix, to make sure that we get at least one
zero in each column.
3. Having obtained at least one zero in each row and atleast one zero in each
column, examine rows successively until a row with exactly one unmarked
zero is found and mark/highlight this zero, indicating that assignment in made
there. Mark (X) all other zeros in the same column, to show that they cannot
be used to make other assignments. Proceed in this way until all rows have
been examined. If there is a tie among zeros defer the decision.
49
HEPM3203 OPERATIONS RESEARCH
4. Next consider columns, for single unmarked zero, highlight them and mark
(X) any other unmarked zero in their rows.
5. Repeat (c) and (d) successively until one of the two occurs.
50
HEPM3203 OPERATIONS RESEARCH
B Machine
Jobs
A
C
X 19 28 31
Y 11 17 16
Z 12 15 13
III Jobs
Men IV V
II
I
A 3 10 3 8 2
B 7 9 8 7 2
C 5 7 6 4 2
D 5 3 8 4 2
E 6 4 10 6 2
Revision Questions
E XERCISE 8. Five men are available to do five different jobs. From past records
the time in hours that each man takes for each job is known and is given below.
Find the assignment of men to jobs that will minimize the total time taken.
51
HEPM3203 OPERATIONS RESEARCH
LESSON 7
Network Model
Learning Outcomes
A study of this lesson should enable students to:
• Use a critical path analysis method to find the viable cost of doing a project
52
HEPM3203 OPERATIONS RESEARCH
7.1. Introduction
PERT is an acronym for “Programme Evaluation and Review Technique”. This
was created as a means to plan and accelerate the development of the Polaris Bal-
listic Missile. In USA the defense department developed a nuclear missile to be
launched from beneath the ocean’s surface by a mobile submarine, which would be
an effective deterrent against aggression by an enemy. This paved way to plan how
to design, develop and plan the different stages in the production of a missile and
how quickly this task could be completed. A planning and scheduling technique
named PERT gave the answer to these questions.
In any new venture, uncertainties are bound to creep in. PERT incorporated these
uncertainties into a model, which provides a reasonable answer to these uncertain-
ties. There are certain statistical aspects scheduling large projects consisting of
numerous activities whose completion times are uncertain and are independent of
one another. PERT is an event-oriented technique. By ‘event’ we mean reaching a
certain stage of completion of the project.
Another technique, Critical Path Method, abbreviated as CPM, has emerged simul-
taneously. It is also a network technique but it is concerned with obtaining the
trade-off, between cost and completion date for large projects. In any project con-
sisting of several activities each activity can be completed in a normal duration with
normal cost. If we employ more persons or skilled people or given overtime to the
workers, the activity could be completed in a reduced duration known as crash du-
ration. But this involves an increased cost in the form of additional resources. With
CPM the amount needed to complete the various activities is assumed to be known
with certainty. So, the direct costs for the activities increase and hence the cost of
the project also increases. By reducing the activity duration of some or all possi-
ble completed ahead of the schedule. This will naturally reduce the overhead cost
for the entire project. On one hand the direct expenses increase, if we shorten the
activity duration, but, the indirect expenses for the project are reduced. We have to
strike a balance or an optimum time schedule, or a least cost schedule is to be ob-
tained. This is the purpose of the Critical Path Method. Thus CPM is not concerned
with uncertain job times as in PERT. PERT is useful in research and developmen-
tal projects, whereas CPM is mostly used in construction projects, or in situations
already handled, so that the details like the normal completion time, crash duration
and cost of crashing are already known.
53
HEPM3203 OPERATIONS RESEARCH
Table 7.1:
Physical Situation Nodes Branches Flow
Highway systems Intersections Roads vehicles
Communication systems Switching point Wires Messages
Fluid supply systems Pump stations Pipes fluid
Production system Work centers Handling routes Jobs
Project management Decision points Activities Time
Airway systems Airports Airlines Aircraft
The following are the suggested applications when PERT or CPM is found useful.
A node is the intersection of the two branch lines. It is denoted by a circle. Each
branch represents an activity. Each node represents an event, which is a specific
definable accomplishment recognizable at a particular instant of time. The arrow-
heads indicate the sequence in which events must be achieved. Thus an event is the
completion of all the activities leading into that node and this event must precede
the initiation of the activity leading out of the node.
54
HEPM3203 OPERATIONS RESEARCH
Figure 7.1:
Figure 7.2:
55
HEPM3203 OPERATIONS RESEARCH
b) No two activities can be identified by the same end events. This means that
there should not be loops in the network.
c) Time follows from left to right. All the arrows point in one direction. Arrows
pointing in opposite direction must be avoided.
e) Every node must have at least one activity preceding it and at least one activity
following it, except for the nodes at the very beginning and at the very end of
the network.
NOTE
Remember that a ’network’ is defined as a graphic representation with a flow of
some type in its branches. It represents nodes and branches.
56
HEPM3203 OPERATIONS RESEARCH
Figure 7.3:
Table 7.3:
Path Time (days)
1-3-4 5+3 = 8 days
1-2-3-4 6+7+3 = 16 days
1-2-4 6+6 = 12 days
We have five activities A, B, C, D and E with the time of completion of the activities
5, 6, 7, 3 and 6 days respectively. We represent the activities in a network shown in
the same figure 7.3.
In this network, there are three ways to get from the starting point at node 1 and
travel through the network to end at node 4. These ways are called paths. Thus,
a path is defined as “a set of nodes connected by lines which begin at the initial
node of a network and end at the terminal node”. In the above figure there are three
paths namely, 1-3-4, 1-2-3-4 and 1-2-4 where the numbers represent the nodes. The
length of a path in a network is the total time it takes to travel along the path. This
time is calculated by adding the individual times between the connected nodes on
the path. A path is called a critical path if it is the longest the path in a project
network. We have the times of the three distinct paths as shown in table 7.3.
The path connecting the nodes 1, 2, 3 and 4 constitutes the longest path and hence
1-2-3-4 is the critical path. The minimum time to complete the project is the time
taken for the longest path namely 16 days. The activities B (1- 2), C (2-3) and
D (3-4) constitute the critical activities. These jobs are critical in determining the
project’s duration.
Example . Consider the following project. Draw an arrow diagram to represent
the project.
57
HEPM3203 OPERATIONS RESEARCH
Activity A B C D F G H I
Precedence - - A A B, C F B, C, D H, G
Solution:
Thus the pessimistic time estimate is the longest time the activity would require
and is denoted by t p . On the other hand if everything goes on exceptionally well
or under the best possible conditions, the time taken to complete an activity may
58
HEPM3203 OPERATIONS RESEARCH
be less than the most likely time estimate. This time estimate is the smallest time
estimate known as the optimistic time estimate and denoted by to .
Thus, given the three time estimates for an activity, we have to find the expected
duration of an activity or expected time of an activity as a weighted average of
the three time estimates. PERT makes the assumption that the optimistic and pes-
simistic activity (to and t p ) are occur. It also assumes that the most probable activity
time tm, is four times more likely to occur than either of the other two. This is
based on the properties of Beta distribution. Beta distribution was chosen as a rea-
sonable approximation of the distribution of activity times. The Beta distribution is
uni-model, has finite non-negative end points and is not necessarily symmetrical-all
of which seen desirable properties for the distribution of activity times. The choice
of Beta distribution was not based on empirical data. Since most activities in a
development project occur just once, frequency distribution of such activity times
cannot be developed from past data.
So, if we follow Beta distribution with weights of 1, 4, 1 for optimistic, mostly
likely and pessimistic time estimates respectively a formula for the expected time
denoted by te can be written as;
to + 4tm + t p
te =
6
For example if we have 2, 5 and 14 hours as the optimistic (to ), most likely (tm ) and
pessimistic (t p ) time estimate then the expected time for the activity would be;
te = 2+4(5)+14
6 = 366 = 6hrs
If the time required by an activity is highly variable (i.e) if the range of our time
estimates is very large, then we are less confident of the average value. We calculate
them if the range were narrower. Therefore it is necessary to have a means to
measure the variability of the duration of an activity. One measure of variability
of possible activity times is given by the standard deviation of their probability
distribution.
PERT simplifies the calculation of standard deviation denoted by St as estimated by
the formula,
t p − to
St =
6
St is one sixth of the difference between the two extreme time estimates, namely
59
HEPM3203 OPERATIONS RESEARCH
pessimistic and optimistic time estimates. The variance Vt of expected time is cal-
culated as the square of the deviation i.e
2
t p − to
Vt =
6
In the above examle;
St = 14−2
6 = 2hrs
14−2 2
= 4hrs2
Vt = 6
60
HEPM3203 OPERATIONS RESEARCH
In many cases the scheduling problem does not involve only smoothing of require-
ments but also allocation of resources. Almost there are some constraints, which
may be in the form of limited men, machines or finance. The various activities
have to work at their optimum taking into considerations these restrictions. The
resource-leveling model could be modified to give us the desired results. The con-
straint of the fixed due date would have to be removed and concentrate on pushing
down the trigger levels until peak requirements are all under resource limits. If the
limits are confining, the jobs will be pushed to the right, thereby delaying the project
due date on the schedule graph. The constraints cannot be based both on project
due date and resource limits. Resources are allocated on a period-by-period basis
to accommodate some available job, after their predecessors have been completed.
The essential elements are determining which jobs are to be scheduled and which
are to be postponed. The slack is usually the basis on which priority is accorded to
various job. Hence, the jobs, which are most critical, will be scheduled first. In any
problem on resource allocation, the following three rules may be applied.
61
HEPM3203 OPERATIONS RESEARCH
i) The resources are to be allocated in the order of time i.e. start on the first day
and schedule all possible jobs then the second day etc.
ii) When several jobs compete for the same resources preference should be given
to the job with least slack.
iii) The non-critical jobs should be rescheduled so that resources would be free
for scheduling the critical jobs.
E XERCISE 9. ......
62
HEPM3203 OPERATIONS RESEARCH
LESSON 8
Network Optimization Models
8.1. Introduction
Networks arise in numerous settings and in a variety of guises. Transportation,
electrical, and communication networks pervade our daily lives. Network represen-
tations also are widely used for problems in such diverse areas as production, dis-
tribution, project planning, facilities location, resource management, and financial
planning to name just a few examples. In fact, a network representation provides
such a powerful visual and conceptual aid for portraying the relationships between
the components of systems that it is used in virtually every field of scientific, social,
and economic endeavor.
One of the most exciting developments in operations research (OR) in recent years
has been the unusually rapid advance in both the methodology and application of
network optimization models. A number of algorithmic breakthroughs have had
a major impact, as have ideas from computer science concerning data structures
and efficient data manipulation. Consequently, algorithms and software now are
available and are being used to solve huge problems on a routine basis that would
have been completely intractable two or three decades ago.
Many network optimization models actually are special types of linear program-
ming problems. For example, both the transportation problem and the assignment
problem have network representations.
Some applications of network models include
5. Determining the minimum cost ow schedule from oil fields to refineries through
a pipeline network.
In this section, we discuss four important kinds of network problems and some
basic ideas of how to solve them. These are:-
63
HEPM3203 OPERATIONS RESEARCH
Each of the first three types have a very specific structure that arises frequently in
applications. The fourth type provides a unified approach to many other applica-
tions because of its far more general structure.
64
HEPM3203 OPERATIONS RESEARCH
A spanning tree is one that connects all nodes in the network. If a connected net-
work has n nodes, every spanning tree has exactly n − 1 arcs
a diagram
The example below will be used subsequently to illustrate the approach to the first
three of these problems.
Nairobi National Park has recently been set aside for a limited amount of sight-
seeing and backpack hiking. Cars are not allowed into the park, but there is a
narrow, winding road system for trams and for jeeps driven by the park rangers.
This road system is shown in the Figure below, where location O is the entrance into
the park; other letters designate the locations of ranger stations (and other limited
facilities). The numbers give the distances of these winding roads in miles. The park
contains a scenic wonder at station T. A small number of trams are used to transport
sightseers from the park entrance to station T and back. The park management
currently faces three problems.
1. To determine which route from the park entrance to station T has the small-
est total distance for the operation of the trams.(This is an example of the
shortest- path problem)
2. Telephone lines must be installed under the roads to establish telephone communi-
cation among all the stations (including the park entrance). Because the in-
stallation is both expensive and disruptive to the natural environment, lines
will be installed under just enough roads to provide some connection be-
tween every pair of stations. The question is where the lines should be laid
to accomplish this with a minimum total number of miles of line installed.
(This is an example of the minimum spanning tree problem)
3. More people want to take the tram ride from the park entrance to station T
than can be accommodated during the peak season. To avoid unduly dis-
turbing the ecology and wildlife of the region, a strict ration has been placed
on the number of tram trips that can be made on each of the roads per day.
(These limits dier for the dierent roads, as we shall see later) Therefore, dur-
ing the peak season, various routes might be followed regardless of distance
to increase the number of tram trips that can be made each day. The question
pertains to how to route the various trips to maximize the number of trips
65
HEPM3203 OPERATIONS RESEARCH
that can be made per day without violating the limits on any individual road.
(This is an example of the maximum ow problem)
diagram
maximize Z = ∑ ci j xi j
all defined arcs (i, j)
The constraints represent the conservation of flows equations at each node.
Applying this algorithm to the Nairobi National Park problem gives:- After the
work shown above, the shortest path from the destination to the origin can be traced
back through the last column of table 5.1 as either T ! D ! E ! B ! A ! O or T ! D !
B ! A ! O. Therefore, the two alternates for the shortest path from the origin to the
destination have been identified as O ! A ! B ! E ! D ! T and O ! A ! B ! D ! T, with
a total distance of 13 miles on either path.
table 5.1
66
HEPM3203 OPERATIONS RESEARCH
two towns may pass through one or more other towns. The most economical design
of the road system would call for minimizing the total miles of paved roeds.
For the minimum spanning tree problem, if we consider the problem of the Nairobi
National Park, the required property is that the chosen links must provide a path
between each pair of nodes.
The minimum spanning tree problem can be summarized as follows.
1. You are given the nodes of a network but not the links. Instead, you are given
the potential links and the positive length for each if it is inserted into the
network.(Alternative measures for the length of a link include distance, cost,
and time.)
2. You wish to design the network by inserting enough links to satisfy the re-
quirement that there be a path between every pair of nodes.
3. The objective is to satisfy this requirement in a way that minimizes the total
length of the links inserted into the network.
A network with n nodes requires only (n=1) links to provide a path between each
pair of nodes. No extra links should be used, since this would needlessly increase
the total length of the chosen links. The (n = 1) links need to be chosen in such a
way that the resulting network (with just the chosen links) forms a spanning tree.
Therefore, the problem is to find the spanning tree with a minimum total length
of the links. So the figure below illustrates this concept of a spanning tree for the
Nairobi National Park problem. This network is a feasible solution (with a value of
24 miles for the total length of the links)
diagram
67
HEPM3203 OPERATIONS RESEARCH
allowed per day in the outbound direction on each individual road. For each road,
the direction of travel for outgoing trips is indicated by an arrow in the figure below.
The number on the arrow gives the upper limit on the number of outgoing trips
allowed per day.
diagram
Given the limits, one feasible solution is to send 7 trams per day, with 5 using the
route O → B → E → T, 1 using O → B → C → E → T and 1 using O → B → C →
E → D → T. However, because this solution blocks the use of any routes starting
with O → C (because the E → T and E → D capacities are fully used), it is easy
to find better feasible solutions. Many combinations of routes (and the number of
trips to assign to each one) need to be considered to find the one(s) maximizing
the number of trips made per day. This kind of problem is called a maximum ow
problem.
In general terms, the maximum ow problem can be described as follows.
2. All the remaining nodes are transshipment nodes. (These are nodes A, B, C,
D, and E in the Seervada Park problem.)
3. Flow through an arc is allowed only in the direction indicated by the arrow-
head, where the maximum amount of ow is given by the capacity of that arc.
At the source, all arcs point away from the node. At the sink, all arcs point
into the node.
4. The objective is to maximize the total amount of ow from the source to the
sink. This amount is measured in either of two equivalent ways, namely,
either the amount leaving the source or the amount entering the sink.
68
HEPM3203 OPERATIONS RESEARCH
considers ow through a network with limited arc capacities. Like the shortest-path
problem, it considers a cost (or distance) for ow through an arc. Like the trans-
portation problem or assignment problem, it can consider multiple sources (supply
nodes) and multiple destinations (demand nodes) for the ow, again with associated
costs. In fact, all four of these previously studied problems are special cases of the
minimum cost ow problem, as we will demonstrate shortly. The reason that the
minimum cost ow problem can be solved so efficiently is that it can be formulated
as a linear programming problem so it can be solved by a streamlined version of the
simplex method called the network simplex method.
The minimum cost ow problem is described below.
5. Flow through an arc is allowed only in the direction indicated by the arrow-
head, where the maximum amount of ow is given by the capacity of that arc.
(If ow can occur in both directions, this would be represented by a pair of
arcs pointing in opposite directions.)
6. The network has enough arcs with sufficient capacity to enable all the ow
generated at the supply nodes to reach all the demand nodes.
7. The cost of the ow through each arc is proportional to the amount of that ow,
where the cost per unit ow is known.
8. The cost of the ow through each arc is proportional to the amount of that ow,
where the cost per unit ow is known.
9. The objective is to minimize the total cost of sending the available supply
through the network to satisfy the given demand. (An alternative objective is
to maximize the total profit from doing this.)
69
HEPM3203 OPERATIONS RESEARCH
70
HEPM3203 OPERATIONS RESEARCH
71
HEPM3203 OPERATIONS RESEARCH
1. Each activity is represented by one and only one arrow in the network.
2. No two activities can be identified by the same head and tail events.
3. To ensure the correct precedence relationship in the arrow diagram, the fol-
lowing questions must be answered as every activity is added to the network:
(a) What activities must be completed immediately before these activity can
start ?
(b) What activities must follow this activity ?
(c) What activity must occur concurrently with this activity ?
Example 5.1. VIVA company is planning to move their operations from Nairobi
to Kisumu. The manager in charge of planning the move, wants to ensure that
everything comes o according to plan, and making sure that the deadline is met.
Table 5.2 shows a list of all the activities the manager plans.
table 5.2
NOTE The numbers assigned to the nodes are arbitrary. They are simply used
to identify events and do not imply anything about precedence relationships. In
the network diagram each activity must start at the node in which its immediate
predecessors ended. Dummy activities can also be included to avoid problems of
hanging events when drawing the network diagram. A dummy activity in a project
network analysis has zero duration.
The network diagram is as below:
diagram
72
HEPM3203 OPERATIONS RESEARCH
for all defined (i, j)activities with ESi = 0. Thus in order to compute ES j for event
j, ESi for the tail events of all the incoming activities (i, j) must be computed first.
With the computation of all ES j , the forward pass calculations are completed.
The backward pass starts from the \end"event. The objective of this phase to cal-
culate LCi , the latest completion time for all the activities coming into the event i.
Thus if i = n is the end event LCn = ESn initiates the backward pass. In general for
any node i,
for all defined activities are calculated, which ends the calculation of backward
pass.
The critical path activities can now be identified by using the results of the forward
and backward passes. An activity (i, j) lies on the critical path if it satisfies the
following conditions.
73
HEPM3203 OPERATIONS RESEARCH
1.
ESi = LCi
2.
ES j = LC j
3.
ES j − ESi = LC j − LCi
These conditions actually indicate that there is no oat or slack time between the
earliest stand and the latest start of the activity. Thus the activity must critical.
Example 5.2. Consider a network which stands from node 1 and terminate at node
6, the time required to perform each activity is indicated on the arcs.
diagram
Let us start with forward pass with ES1 = 0
Since there is only one incoming activity (1, 2) to event 2 with D12 = 3.
Let us consider the end 3, since there is only one incoming activity (2, 3) to event
3, withD23 = 3
To obtain ES4 , since there are two activities (3, 4) and (2, 4) to the event 4 with
D24 = 2and D34 = 0.
74
HEPM3203 OPERATIONS RESEARCH
LC6 = 19 = ES6
LC6 = 19 − 6 = 13
LC3 = 6, LC2 = 3and LC1 = 0 and hence activities (1, 2), (2, 3) (3, 4) (4, 5) (5, 6)
are critical and (2, 4) (4, 6), (3, 6), are non-critical. Thus the activities (1, 2), (2,
3) (3, 4) (4, 5) (5, 6) define the critical path which is the longest possible time to
complete the project.
a +¯ b + 4m
D=
6
This estimate can be used to study the single estimate D in the critical path calcula-
tion. The variance of each activity denoted by V is defined by
2
b−a
V=
6
The earliest expected times for the node i denoted by E(κi) for each node i is obtained
by taking the sum of expected times of all activities leading to the node i, when
more than one activity leads to a node i, then greatest of all E(κi) is chosen. Let
75
HEPM3203 OPERATIONS RESEARCH
= prob (Z ≤ Ki )
where
Z ∼ N (0, 1)and Ki = STi −E[µ
√
V
i]
i
76
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . ...
Solution:
for revision
77
HEPM3203 OPERATIONS RESEARCH
LESSON 9
Simulation
Simulation deals with the study of (dynamic) systems over time. There are three
types of simulations
• Analogue
• Continuous
• Discrete
78
HEPM3203 OPERATIONS RESEARCH
9.2. Introduction
Many conflicting situations are found in everyday life, in economic, social, polit-
ical, military, battles, advertising and marketing campaign by competing business
firms. In these situations two or more individuals have to take decisions that involve
conflicting interests.
A basic feature in many of these situations is that the final result depends primarily
on the combination of strategies selected by the person’s involved, called adver-
saries. Game theory handles such situations. Von Neumann originally developed
the Game Theory.
The following properties hold good for a competitive game.
2. Each of the competitors has a finite list of possible courses of actions known
as strategy. The number of strategies need not be the same for each competi-
tor.
3. A play of the game results when each of the competitors chooses a single
course of action from the list of strategies available to him. The choices are
assumed to be made simultaneously so that no competitor knows his oppo-
nent’s choices until he is already committed to his own.
79
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . ...
Solution:
for revision
80
HEPM3203 OPERATIONS RESEARCH
LESSON 10
Waiting Line Theory or Queuing Model
Here customer or element represents a person or machine or any other thing, which
is in need of some service from servicing point and service represents any type of
attention to the customer to satisfy his need. For example,
1. Person going to hospital to get medical advice from the doctor is an element
or a customer,
2. A person going to railway station or a bus station to purchase a ticket for the
journey is a customer or an element,
6. A machine break down and waiting for the attention of a maintenance crew.
81
HEPM3203 OPERATIONS RESEARCH
In general we can say that a ow of customers from infinite or nite population towards
the service facility forms a queue or waiting line on account of lack of capability to
serve them all at once.
Queues or waiting lines stand for the number of customers waiting to be served.
Queue does not include the customer being served. The process or system that
performs the services to the customer is termed as service channel or service facility.
4. Customer behavior.
Components of the queuing system are arrivals, the element waiting in the queue,
the unit being served, the service facility and the unit leaving the queue after service.
• Size of arrivals: This greatly depends on the nature of size of the population,
which may be infinite or nite. The arrival pattern can be more clearly de-
scribed in terms of probabilities and consequently the probability distribution
for inter-arrival times i.e. the time between two successive arrivals or the dis-
tribution of number of customers arriving in unit time must be defined. Here
we assume that customers arrive in Poisson or Completely random fashion.
82
HEPM3203 OPERATIONS RESEARCH
• Customer behavior: The length of the queue or the waiting time of a cus-
tomer or the idle time of the service facility mostly depends on the behavior
of the customer. Here the behavior refers to the impatience of a customer
during the stay in the line. Customer behavior can be classified as:
1. Balking: This behavior signifies that the customer does not like to join the
queue seeing the long length of it. This behavior may effect in loosing a
customer by the organization. Always a lengthy queue indicates insufficient
service facility and customer may not turn out next time.
2. Reneging: In this case the customer joins the queue and after waiting for
some time looses his patience and leaves the queue. This behavior of the
customer may also cause loss of customer to the organization.
3. Collusion: In this case several customers may collaborate and only one of
them may stand in the queue. One customer represents a group of customer.
Here the queue length may be small but service time for an individual will be
more. This may break the patience of the other customers in the waiting line
and situation may lead to any type of worst episode.
83
HEPM3203 OPERATIONS RESEARCH
1. Single channel queues: Only one unit can be served at a time, hence arriving
customers form a queue near the facility. The next element is drawn into
service only when the service of the previous customer is over.
2. Multi Channel queues: When the input rates increases, and the demand for
the service increases, the management will provide additional service facil-
ities to reduce the rush of customers or waiting time of customers. In such
cases, different queues will be formed in front of different service facilities.
1. First In First Out (FIFO) or First Come First Served (FCFS). We are quite
aware that when we are in a queue, we wish that the element which comes
should be served first, so that every element has a fair chance of getting ser-
vice. Moreover it is understood that it gives a good morale and discipline in
the queue.
2. Last in first out (LIFO) or Last Come First Served (LCFS). In this system, the
element that arrived last will have a chance of getting service first. In general,
this does not happen in a system where human beings are involved. But this
84
HEPM3203 OPERATIONS RESEARCH
is quite common in Inventory system. This can also be written as First In Last
Out (FILO).
3. Service In Random Order (SIRO). In this case the items are called for service
in a random order. The element might have come first or last does not bother;
the servicing facility calls the element in random order without considering
the order of arrival. This may happen in some religious organizations but
generally it does not followed in an industrial / business system.
4. Service By Priority. Priority disciplines are those where any arrival is chosen
for service ahead of some other customers already in queue. As an exam-
ple, in a doctors clinic, when the doctor is treating a patient with stomach
pain, suddenly a patient with heart stroke enters the clinic, the doctor asks the
patient with stomach pain to wait for some time and give attention to heart
patient. This is the rule of priority.
85
HEPM3203 OPERATIONS RESEARCH
4. Average idle time or Busy time distribution: The average time for which the
system remains idle. We can estimate the probability distribution of busy
periods. If we suppose that the server is idle initially and the customer ar-
rives, he will be provided service immediately. During his service time some
more customers will arrive and will be served in their turn according to the
system discipline. This process will continue in this way until no customer
is left unattended to and the server becomes free again after serving all the
customers. At this stage we can conclude, that the busy period is over.
• S: The number of service channels in the system. For example the item is
served at one service facility or the person will receive service at 3 facilities
etc.
• d: Capacity of the system. That is the maximum number of units the system
can accommodate at any time. For example, the system has limited capacity
of 40 units or the system has infinite capacity etc.
• f: The manner or order in which the arriving units are taken into service i.e.
FIFO / LIFO / SIRO /Priority.
86
HEPM3203 OPERATIONS RESEARCH
10.3.1. Notations
• X: Inter arrival time between two successive customers (arrivals).
• w: The waiting time for any customer before it is taken into service.
• n: Number of customers in the system, (in the waiting line) at any time,
including the number of customers being served.
87
HEPM3203 OPERATIONS RESEARCH
Revision Questions
Example . ...
Solution:
for revision
88
HEPM3203 OPERATIONS RESEARCH
Solutions to Exercises
Exercise 3. for revision Exercise 3
89