Professional Documents
Culture Documents
Operation Research FREE Book PDF - P. Sankara Iyer - McGraw Hill - GetPDFs
Operation Research FREE Book PDF - P. Sankara Iyer - McGraw Hill - GetPDFs
Operation Research FREE Book PDF - P. Sankara Iyer - McGraw Hill - GetPDFs
RESEARCH
About the Author
P. Sankara Iyer is presently Retired Reader in Mathematics at Alagappa University, Karaikudi in Tamil
Nadu. After holding the position of a Lecturer in Mathematics at Alagappa College from 1966 to 1981,
he became Professor in 1981. He then joined Alagappa University in 1985 and retired as Reader in
Mathematics in the year 2001. He is M.Sc. (Mathematics), M.Phil. (Mathematics) and Ph.D. (Computer
Applications in Operations Research). He has done a Certificate course in Computer Programming and
a Certificate course in Evaluation Methodology and Examination by A.I.U. His teaching experience is
vast—B.Sc. (19 yrs), M.Sc. (19 yrs), M.C.A. (15 yrs) and M.Phil. (18 yrs). He has taught all subjects at
B.Sc. level; Operations Research, Differential Equations, Differential Geometry, Classical Mechanics,
Space Mechanics, Quantum Mechanics, Algebra, Statistics and Numerical Analysis at M.Sc. level;
Resource Management Techniques (OR) and Computer based Numerical Methods at M.C.A. level; and
Algebra at M.Phil. level. His study material for M.Sc. Mathematics (Operations Research and Differential
Equations), M.Sc. Industrial Mathematics (Operations Research)—2 books, M.C.A. (Resource
Management Techniques) and M.B.A. (Operations Research) of Alagappa University book are very
popular among the students. He is a member of (i) Operations Research Society of India, (ii) Ramanujan
Mathematical Society and (iii) Forum for Advancement of Science and Human Development.
Prof. Sankara Iyer’s primary area of research is Operations Research: Fractional Programming
(Computer Applications). He has published seven research papers and guided more than 50 students for
M.Phil. Research Project. He has attended twelve conferences and seminars in Algebra, Operations
Research, Analysis Statistics and Stochastic Processes. He has been the Cultural Coordinator of Alagappa
University for 15 years, Director of Social Service in Alagappa College for 10 Years, Director of Fine
Arts in Alagappa College for 8 Years and Secretary of Staff Club for 6 Years. He is musically inclined
and has composed and tuned nearly 200 songs and given public performances. He has written and
directed social dramas (besides acting as the main protagonist), promoting national integration, communal
harmony and eradication of dowry. Tamil Isai Sangam, Karaikudi conferred the title ‘MUTHAMIZH
SELVAR’ (year 2001), in appreciation of his service in the field of literature, music, and drama. He
gives a musical discourse every year on the life of Saint Thyagaraja during Thyagaraja Aradhana Festival
at Tiruvaiyaru in Thanjavur District, Tamil Nadu.
OPERATIONS
RESEARCH
P. Sankara Iyer
Reader in Mathematics (Retd)
Alagappa University
Karaikudi, Tamil Nadu
Information contained in this work has been obtained by Tata McGraw-Hill, from sources believed to be reliable.
However, neither Tata McGraw-Hill nor its authors guarantee the accuracy or completeness of any information
published herein, and neither Tata McGraw-Hill nor its authors shall be responsible for any errors, omissions, or
damages arising out of use of this information. This work is published with the understanding that Tata McGraw-Hill
and its authors are supplying information but are not attempting to render engineering or other professional services.
If such services are required, the assistance of an appropriate professional should be sought.
Typeset at Text-o-Graphics, B-1/56, Arawali Appartment, Sector 34, Noida 201 301, and printed at
Lalit Offset, 219, F.I.E., Patpar Ganj Industrial Area, Delhi - 110 092
RZLCRRAXRQBLY
Foreword
I had the golden opportunity of being a student of Prof. P. Sankara Iyer, the author of this book. He is a
model teacher and we (all his students) consider him as our great Guru and Guide. I feel proud to write
this foreword for a book written by my beloved teacher.
Mathematics is the source of all knowledge. It is a vast ocean and the author of this book has dived
deep into a particular branch of this subject, namely Operations Research.
The contents of this book have been arranged on the principle of gradation. The chapters are in a
logical sequence: Introduction, Linear Programming, Integer Programming, Transportation, Assignment,
Decision Theory, Games Theory, Dynamic Programming, Sequencing, Queueing, Inventory, Replacement,
PERT and CPM, and Simulation.
There are two distinctive features that make this book stand apart. The first one is that the examples
and exercises provided in each chapter are indeed a boon to the students and they can assess their
understanding of each chapter clearly. Another unique feature is that the entire book has been based on
a self-taught new method, culminating from Prof. Sankara Iyer’s rich teaching experience of 35 years.
Also, while structuring this book, he has kept both the instructor and the student in his purview, and
hence it will prove to be a valuable resource for them.
The book covers the syllabi of almost all Indian universities. Therefore not only students of
Mathematics but also students of M.C.A., M.B.A., C.A. and I.C.W.A. will benefit from this book.
I earnestly wish that the student community and faculty members derive maximum benefit from this
magnificent creation.
Dr V. VEMBAIYAN
Principal,
Alagappa Govt. Arts College,
Karaikudi, Tamil Nadu.
Preface
In recent years, Operations Research—the mathematical analysis of a process, used in making decisions—
has become a very popular branch of mathematics studied by undergraduate and postgraduate students.
This interdisciplinary branch of Applied Mathematics has wide applications in various types of real life
situations. A large number of research papers have been published on this subject and a great deal of
research is being carried out.
Purpose
The primary objective of writing this book is to provide the students with a basic knowledge of the
processes involved in Operations Research and the enormous practical applications of the techniques to
daily life problems. Presently, there are limited good books in the market, with even fewer offering well
illustrated problems and also, the style of presentation in foreign books is not very helpful to our Indian
students—this generates a need for a single book that covers all the topics of this subject in order to
cater to the requirement of students in various universities. This book fulfills the purpose.
Users
This book is primarily meant for the course on Operations Research to be studied by the engineering
students of all branches. It offers coverage of different topics pertaining to the syllabus prescribed for
the students of Mathematics and Statistics (UG and PG), M.C.A., M.B.A., M.Com., B.E. and B.Tech. of
Indian Universities and also, C.A. and I.C.W.A. This book is a fine reference for competitive (UG and
PG levels) and I.A.S. examinations.
Highlights
What makes this book unique is its lucid presentation of the subject aided by plenty of solved and
unsolved problems. Brief yet adequate theory clearly explained in simple language supported by worked
out examples (with step by step solution) and exercise problems facilitate quick learning by the students.
The chapters have been structured in a planned manner so that the students can study the subject
independently.
It is a comprehensive text which helps students in understanding problem solving methods based on
model formulation, solution procedure and analysis. The salient features of the book are
(i) Provides sound knowledge of the OR techniques in managerial decision making.
(ii) Incorporates important chapters like Sequencing Problems, Replacement Models, Project
Scheduling, Artificial Variables and Bounded Variable Techniques.
viii Preface
(iii) Numerous solved examples give an overall view of the applications of OR techniques. Solved
examples from various university question papers are an effective tool for examinations.
(iv) To clarify concepts, figures and tables are used exhaustively.
(v) To carry out self evaluation, students can solve multitude of exercises that are provided in each
chapter along with their answers.
Chapters Organisation
In the first chapter, the importance of the study of OR and its various applications have been discussed.
Chapter 2 describes the method of mathematical formulation of a real life problem (in the form of a
Linear Programming Problem) and the graphical method of solving an L.P.P having two decision variables.
Simplex Method, an important method of solving a general L.P.P has been discussed in detail in chapter
3. Various modifications of simplex method such as Big M method, Two Phase Method, Dual Simplex
Method, Principle of Duality, and Revised Simplex Method have been covered in the subsequent chapters
4, 5, 6 and 7. When the variables are restricted to assume values within certain given limits, we have to
apply Bounded Variable Technique described in chapter 8. Another restriction that the variables can
take only integer values, leads to Integer Programming which is given in chapter 9. Also, a study of the
effect on the optimal solution due to changes in the values of the parameters, which is called Sensitivity
Analysis, has been discussed in chapter 10.
Then follow chapters 11, 12, 13, 14, 15 and 16 dealing with applications of OR techniques namely
Transportation and Assignment Problems, Decision Theory, Game Theory, Dynamic Programming and
Sequencing of Jobs. Another set of applications have been provided in detail in chapters 17 (Queueing
theory), 18 (Inventory models), 19 (Replacement theory), and 20 (P.E.R.T - C.P.M). Simulation Techniques
of solving different types of problems have been taken up for discussion in the last chapter (chapter 21).
Acknowledgements
I would like to express my gratitude to all the authors who were a source of inspiration while writing this
book. I wish to express my indebtedness to my teachers and well wishers. I wish to acknowledge my
sincere thanks to late Dr M K Venkataraman for his inspiration and encouragement in this project. My
thanks are also due to my wife and children, and M.Phil. Scholar, R G N Nagarajan of Alagappa University
for their continuous help and cooperation in fulfilling the project. I express my deepest sense of gratitude
to the following reviewers, whose suggestions have helped me bring the text to its present form.
J S Oberoi S K Tiwari
Baba Banda Singh Bahadur Institute of National Institute of Technology, Jalandhar
Engineering, C M Agarwal
Fatehgarh sahib, Punjab Maulana Azad National Institute of Technology,
Bhopal
Preface ix
I am truly grateful to the publishers at McGraw-Hill Education India for coming forward to publish
this book and for their efficient management of the project. I am sure that this book will receive good
response from the teachers and the taught. Suggestions from the readers for the improvement of the
book are most welcome and will be duly acknowledged and incorporated.
P. Sankara Iyer
Email id: psankaraiyer@yahoo.com
Contents
Preface vii
1 OPERATIONS RESEARCH 1
1.1 What is Operations Research? 1
1.2 Characteristics of OR 1
1.3 Phases of OR 2
1.4 Scope of OR 2
1.5 Drawbacks and Difficulties of OR 2
2 LINEAR PROGRAMMING 3
2.1 Introduction 3
2.2 Formulation 3
2.3 Graphical Method of Solution 13
Exercises 20
Answers 22
3 SIMPLEX METHOD 23
3.1 Introduction 23
3.2 Simplex Method 24
Short Answer Questions 35
Exercises 36
Answers 39
4 ARTIFICIAL VARIABLES 41
4.1 Artificial Variables 41
4.2 Big M Method (Charne’s Penalty Method) 41
4.3 Two-Phase Method 46
Short Answer Questions 49
Exercises 50
Answers 53
xii Contents
6 DUALITY 59
6.1 Rules for Writing the Dual of a Primal 59
6.2 Duality Theorems 62
6.3 Principle of Duality 63
6.4 Economic Interpretation of the Dual 66
6.5 Complementary Slackness Theorem 67
Short Answer Questions 67
Exercises 68
Answers 69
9 INTEGER PROGRAMMING 89
9.1 Gomary’s Cutting Plane Method 90
9.2 Gomary’s Algorithm (Step-by-Step Procedure) 90
9.3 Mixed Integer Programming 93
9.4 Branch and Bound Method 97
Exercises 95, 101
Answers 96, 102
21 SIMULATION 280
21.1 Introduction 280
21.2 Event Type Simulation 280
21.3 Monte–Carlo Technique 281
Exercises 284
Answers 284
Index 286
1
Operations Research
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Example 2.3 A soft drink plant has two bottling Example 2.4 (Diet Problem) In our daily diet,
machines A and B manufacturing 1 litre and 2 litre proteins, fats and carbohydrates are required with
bottles. The following table gives the a minimum of 5, 2 and 3 units respectively. We
manufacturing data: consider the foodstuff consisting of bread, butter
and milk. The yields of these nutritional
Machine 1 litre bottle 2 litre bottle
requirements and the cost per unit of the food items
A 100/min 60/min are given below:
B 50/min 80/min
Table 2.3
The machines can be run 8 hours per day, 5 days
Food Yield per unit Cost per unit
per week. Weekly production of the drink cannot
Protein Fat Carbohydrate of food
exceed 3,00,000 litre and the demand for 1 litre
and 2 litre bottles are 25,000 and 8000 per week Bread 4 1 2 12
respectively. The manufacturer gets a profit of Butter 3 2 1 60
50 paise on 1 litre bottle and 75 paise on 2 litre Milk 3 2 1 7
bottle. It is required to find the number of bottles
Minimum 5 2 3
to be manufactured in each type so as to maximize requirement
the total profit.
Formulation Let us assume that x1 units of 1 litre It is required to determine the combination of
bottle and x2 units of 2 litre bottle be produced the food items such that minimum requirement
weekly. The total profit is Rs (0.5)x1 + (0.75)x2 is satisfied and the total cost of the food is
and this has to be maximized. Thus we get the minimum.
objective function Z = (0.5)x1 + (0.75)x2. Formulation Let us assume that the numbers of
The machines run for 5 days per week at the units of bread, butter and milk to be consumed are
rate of 8 hrs per day. Hence the total time they run x1, x2 and x3 respectively. The total cost of the food
per week is 40 hrs or 2400 min. On machine A, is 12x1 + 60x2 + 7x3 and this has to be minimized.
100 units of 1 litre and 60 units of 2 litre bottles Hence the objective function is
are produced per minute. Therefore we get the Z = 12x1 + 60x2 + 7x3.
constraint x1/100 + x2/60 £ 2400.
Similarly, on machine B, we get the constraint Considering the minimum requirement of
protein per day we get
x1/50 + x2/80 £ 2400.
4x1 + 3x2 + 3x3 ≥ 5.
Total weekly production cannot exceed
3,00,000 Similarly, we get the constraints for the
x1 + x2 £ 300000. minimum requirement of fat and carbohydrates
as
Considering the demand for the items in the
market, we get the constraints, x1 + 2x2 + 2x3 ≥ 2 and
x1 ≥ 25000 and x2 ≥ 8000. 2x1 + x2 + x3 ≥ 3.
Thus the formulated LPP is Thus the formulation of LPP is
Maximize Z = (0.5)x1 + (0.75)x2 subject to the Minimize Z = 12x1 + 60x2 + 7x3 subject to the
constraints constraints
x1/100 + x2/60 £ 2400 (or) 3x1 + 5x2 £ 720000 4x1 + 3x2 + 3x3 ≥ 5
x1/50 + x2/80 £ 2400 (or) 8x1 + 5x2 £ 960000
x1 + 2x2 + 2x3 ≥ 2
x1 + x2 £ 300000
x1 ≥ 25000 2x1 + x2 + x3 ≥ 3
x2 ≥ 8000. x1, x2, x3 ≥ 0.
6 Operations Research
Example 2.5 (Blending Problem) A firm Example 2.6 Three grades of coal A, B and C
manufactures an alloy having the following contain phosphorus and ash as impurities. For a
specifications: particular industrial process a maximum of
(i) Specific gravity £ 0.95 100 tons of coal is required which should
(ii) Chromium ≥ 10% contain not more than 3% of ash and not more
(iii) Melting point ≥ 420°C. than 0.03% of phosphorus. The percentage of
Details of raw materials A, B and C and their impurities and the profits from each grade are
properties are given below: given below
Table 2.4 Table 2.5
Property Raw Material Coal Phosphorus (%) Ash (%) Profit (Rs/ton)
A B C
A 0.02 3 12
Specific gravity 0.92 0.96 1.05 B 0.04 2 15
Chromium 8% 12% 15% C 0.03 5 14
Melting point 380°C 400°C 480°C
Find the proportions in which the three grades
Cost of the raw materials are Rs 100, Rs 300 are to be used in order to maximize the profit.
and Rs 50 per ton for A, B and C respectively.
It is required to determine the proportion in Formulation Let x1, x2, x3 be the quantities in
which the raw materials are to be used to tons of grades A, B and C respectively. Then the
manufacture the alloy such that the total cost is objective function (profit) to be maximized is
minimum. Z = 12x1 + 15x2 + 14x3
Phosphorus content should not exceed 0.03%.
Formulation It is assumed that x1, x2 and x3 tons
Therefore we get a constraint
of raw materials A, B and C be used for making
the alloy. The total cost of the raw materials is 0.02x1 + 0.04x2 + 0.03x3 £ 0.03 (x1 + x2 + x3)
100x1 + 300x2 + 50x3 and this has to be minimized. Equivalently, 2x1 + 4x2 + 3x3 £ 3 (x1 + x2 + x3)
Total specific gravity is 0.92x1 + 0.96x2 + 1.05x3 or – x1 + x2 £ 0
and this should be less than 0.95. Therefore we Considering the constraint on the ash contents,
get a constraint 0.92x1 + 0.96x2 + 1.05x3 < 0.95. we get
It is given that the chromium content should be 3x1 + 2x2 + 5x3 £ 3 (x1 + x2 + x3)
greater than 10%. Hence we must have 8x1 +
12x2 + 15x3 > 10. or – x2 + 2x3 £ 0
Also the melting point of the alloy has to be Also the total quantity required is not more than
greater than 420°C. This constraint can be 100. So we have x1 + x2 + x3 £ 100.
written as Thus the formulated LPP is
380x1 + 400x2 + 480x3 ≥ 420. Minimize Z = 12x1 + 15x2 + 14x3 subject to the
Thus the LPP can be written as constraints
Minimize Z = 100x1 + 300x2 + 50x3 – x1 + x2 £ 0
subject to the constraints
– x2 + 2x3 £ 0
0.92x1 + 0.96x2 + 1.05x3 £ 0.95
x1 + x2 + x3 £ 100
8x1 + 12x2 + 15x3 ≥ 10.
380x1 + 400x2 + 480x3 ≥ 420 x1, x2, x3 ≥ 0
x1, x2, x3 ≥ 0 Example 2.7 A farmer cultivates tomato,
carrot and potato in his farm of area 100 acres.
Linear Programming 7
Average yield per acre is 2000 kg of tomato, Labour cost = Rs 60 (5x1 + 6x2 + 5x3)
2000 kg of carrot and 1000 kg of potato. The cost The total profit P = total sales – total cost.
of the fertilizer is Rs 3 per kg and the requirement P = Rs (10000x1 + 16000x2 + 10000x3) –
of fertilizer is 100 kg each for tomato and carrot (300x1 + 300x2 + 180x3) – (300x1 +
and 60 kg for potato per acre. Labour required is 360x2 + 300x3)
5 man-days for tomatoes and potatoes and 6 man-
days for carrot per acre. A total of 400 man-days i.e. P = Rs (9400x1 + 15340x2 + 9520x3)
are available at Rs 60 per man-day. which is to be maximized.
Formulate this problem as a LPP so as to Total area £ 100 acres
maximize the farmer’s profit if he can sell the items \ x1 + x2 + x3 £ 100
at Rs 5 per kg for tomato, Rs 8 per kg for carrot Total labour is restricted to 400 man-days
and Rs 10 per kg for potato. i.e., 5x1 + 6x2 + 5x3 £ 400
Formulation Let us assume that the farmer Thus the LPP is
cultivates tomato, carrot and potato in x1, x2 and Maximize P = 9400x1 + 15340x2 + 9520x3
x3 acres respectively. Then the total sale of item is subject to the constraints
Rs (2000x1 (5) + 2000x2 (8) + 1000x3 (10)). x1 + x2 + x3 £ 100
Total expenditure for fertilizer is 5x1 + 6x2 + 5x3 £ 400
Rs 3 (100x1 + 100x2 + 60x3) x1, x2, x3 ≥ 0
EXERCISES
■ ■ ■ ■ ■ ■ ■
Totally 400 board feet of timber and 450 man- 7. An oil refinery has to decide on the optimal
hours are available. Determine the number of mix of two possible blending processes. The
chairs and tables to be manufactured in order input and output per production run are given
to maximize the profit. below.
4. A firm manufactures four different machine Process Input Output
parts A, B, C and D using copper and zinc.
Crude A Crude B Gasoline X Gasoline Y
The requirement of copper and zinc for each
part and their availability and the profit 1 5 3 5 8
earned from each part are given below: 2 4 5 4 4
Item Requirement (kg) Profit (Rs) The maximum quantity of crude A and B
Copper Zinc available are 200 units and 150 units
respectively. At least 100 units of X and
A 5 2 12 80 units of Y are required in the market. The
B 4 3 8 profit per production run from process 1 and
C 2 8 14
process 2 are Rs 300 and Rs 400 respectively.
D 1 1 10
Determine the optimal number of production
Availability 100 75 runs of process 1 and process 2.
How many of each part should be 8. M.K.V. Foods company is developing a diet
manufactured in order to maximize the supplement called Hi-Pro. The specifications
profit? and the calorie, protein and vitamin content
5. A company produces three types of products of three basic foods are given below:
A, B and C. The production department pro- Nutritional Units of nutritional elements per 100 gm
duces components sufficient to make 50 units elements Basic foods Hi-Pro
of A, 25 units of B and 30 units of C per day. F1 F2 F3 specifications
In the assembly department, only 100 man Calories 350 250 200 300
hours are available to assemble the products Proteins 250 300 150 200
daily. The assembly times for A, B and C are Vitamin A 100 150 75 100
0.8 hr, 1.7 hrs and 2.5 hrs respectively and Vitamin C 75 125 150 100
the profits on them are Rs 12, Rs 20 and Cost per
Rs 45 respectively. The company has an 100 g (Rs) 1.50 2.00 1.20
order commitment of 20 units of A and a
total of 15 units of B and C. How many of Determine the quantities of F1, F2, F3 to be
each product are to be produced so that the used to meet the requirements with minimum
profit is maximum? cost.
6. A company sells two products A and B 9. A sports goods company manufactures two
making a profit of Rs 40 and Rs 30 per unit types of soccer balls X and Y. There are two
respectively. The total capacity of the types of employees—semi-skilled and
skilled. The time required for each type of
production process is 30000 man-hours. It
ball and the time available per week are given
takes three hours to produce one unit of A
below:
and one hour to produce one unit of B. It has
been found that a maximum of 8000 units of Type of employee Time required Time available
A and 12000 units of B can be sold in the (hrs) (hrs per week)
market. Find the number of units of A and Ball X Ball Y
that of B to be produced so as to get maximum Semi-skilled 2 3 80
profit. Skilled 4 6 150
Linear Programming 9
The wages for semi-skilled and skilled 13. A mining company is taking a certain kind
employees are Rs 6 and Rs 10 per hour of ore from two mines A and B. The ore is
respectively. At least 15 balls of type X and divided into three groups g1, g2 and g3 based
at least 10 balls of type Y must be on the quality. Every week the company has
manufactured in order to meet with the to supply 240 tons of g1, 160 tons of g2 and
weekly demand. Determine the number of 440 tons of g3. The cost per day of running
balls of each type to be manufactured so that mine A is Rs 5000 and of running mine B is
the cost of production is minimum. Rs 3000. Each day A will produce 60 tons of
10. A media specialist has to decide in the g1, 20 tons of g2 and 40 tons of g3. The
allocation of advertising in three media 1, 2 corresponding figures for B are 20, 20 and
and 3. For advertising once, the costs are Rs 80. How many days per week should A and
1000, Rs 750 and Rs 500 respectively. The B work in order to minimize the total cost of
total annual allotment of funds is Rs 20000. production.
Media 1 is a monthly magazine and it is 14. An automobile manufacturing company has
desired to advertise not more than once in three plants A, B and C for production. Plant
one issue. At least six messages should A produces 40 scooters and 35 motorcycles
appear in media 2 while the number of per week. Plant B produces 65 scooters only
advertisements in media 3 must be between and plant C produces 53 motorcycles only
4 and 8. The expected effective audiences per week. The cost of operating plants A, B
for one advertisement in each media are and C are respectively Rs 20,000, Rs 18,000
80,000, 60,000 and 45,000 respectively. and Rs 1,60,000 per week. The company has
Determine the optimal allocation that would to fulfill a production scheme of 1500
maximize the total effective audience. scooters and 1100 motorcycles in 20 weeks.
11. A company produces refrigerators in unit I Determine the production plan of minimum
and heaters in unit II. The two products are cost.
produced and sold on a weekly basis. The 15. A soap manufacturing company has two
factories A and B each producing toilet soap,
weekly production should not exceed 25 in
washing soap and washing powder. The
unit I and 36 in unit II. Only 60 workers can
number of units produced per day are as
be employed at the maximum. A refrigerator
follows:
requires 2 man-weeks of labour and a heater
requires 1 man-week of labour. The profit is Item Plant A Plant B
Rs 1200 per refrigerator and Rs 800 per Toilet soap 1500 1200
heater. Determine the number of refrigerators Washing soap 3000 2000
and heaters to be produced per week so that Washing powder pkts 2000 4000
the total profit is maximum.
12. Old hens can be bought for Rs 25 each but There is a monthly demand of 25,000 toilet
young ones cost Rs 50 each. The old hens soaps, 40,000 washing soap and 45,000
lay 3 eggs per week and the young ones 5 packets of washing powder. The operating
eggs per week. The cost of an egg is Rs 2. costs are Rs 8000 and Rs 6000 per day for
The cost of feeding a hen is Rs 5 per week. plants A and B respectively. Determine how
If there are only Rs 600 for purchasing the many days each plant should work in one
hens and if it is not possible to house more month so as to minimize the production cost.
than 20 hens at a time, find how many of 16. A company produces both exterior and
each kind should be purchased in order to interior house paints. Two raw materials A
get maximum profit per week. and B are used for manufacturing the paints.
10 Operations Research
The daily requirements of A and B in tons Rs 650,000 for the year 2008. There are 5
for the two types of paints are given below investment projects under consideration. The
Requirement per Availability estimated returns and expected expenditure
ton of paint (tons) of each project in two years are as follows:
Exterior Interior Project Estimated returns Cash expenditure
(in thousands) (in thousands)
A 1 2 6
Year 2007 Year 2008
B 2 1 8
A 240 120 320
The factory has capacity to produce a B 390 550 594
maximum of 3 tons of exterior and two tons C 80 118 202
of interior paints per day. The price per ton of D 150 250 340
exterior and interior paints are Rs 15,000 and E 182 324 474
Rs 10,000 respectively. Determine how much
Assuming that the returns are directly
quantity of these paints should be produced
proportional to the investment, determine the
per day in order to maximize the sales.
proportions of investment in each project.
17. A company produces washing machines and
20. An advertisement company wishes to plan
TV sets. The weekly production cannot its advertising strategy in three different
exceed 30 washing machines and 25 TV sets. media, TV, Radio and Magazine. Following
Two workers are required for a washing data has been obtained from market survey.
machine and one worker for a TV per week.
TV Radio Maga- Maga-
Totally there are 80 workers in the company.
zine 1 zine 2
The profits are Rs 500 and Rs 300 on washing
machine and TV respectively. How many of Cost of an 30,000 20,000 15,000 10,000
each item should the company produce in advertising unit
(in Rs)
order to maximize the profit. No. of customers 2,00,000 6,00,000 1,50,000 1,00,000
18. A company has two plants each of which reached
produces two products A and B. Each plant per unit
can work up to 16 hours per day. In plant I it No. of female 1,50,000 4,00,000 70,000 50,000
takes 3 hours to prepare and pack 1000 units customers reached
per unit
of A and 1 hour to prepare and pack one unit
of B. In plant II it takes 2 hours to prepare The company wants to spend not more than
and pack 1000 units of A and 1.5 hour to Rs 4,50,000 on advertising. Further require-
prepare and pack one unit of B. In plant I it ments are:
costs Rs 15,000 to prepare and pack 1000 (i) At least 10,00,000 exposures take place
units of A and Rs 28,000 to prepare and pack among female customers
one unit of B whereas these costs are (ii) Advertising in magazines is limited to
Rs 18,000 and Rs 26,000 respectively in Rs 1,50,000
plant II. The company must produce at least (iii) At least 3 advertising units be bought on
10000 units of A and 8 units of B. Determine magazine 1 and 2 units on magazine 2.
the production schedule so as to minimize The number of units in TV and Radio should
the total production cost. be each between 5 and 10. Determine the
19. An engineering company plans to diversify number of units to be bought in TV, Radio,
its operations during the year 2007–2008. An Magazine 1 and Magazine 2, such that
amount of Rs 5,15,000 has been allotted for the maximum number of customers are
this purpose during 2007 and an amount of reached.
Linear Programming 11
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. Maximize Z = 5x1 + 6x2 + 3x3 subject to the 8. Minimize C = (1.50)x1 + (2.00)x2 + (1.20)x3
constraints subject to the constraints
4x1 + 8x2 + 2x3 £ 2000 350x1 + 250x2 + 200x3 ≥ 300
9x1 + 7x2 + 4x3 £ 2500 250x1 + 300x2 + 150x3 ≥ 200
x1, x2, x3 ≥ 0 100x1 + 150x2 + 75x3 ≥ 100
2. Maximize P = (0.25)x1 + (1.00)x2 + (0.95)x3 75x1 + 125x2 + 150x3 ≥ 100
subject to the constraints x1, x2, x3 ≥ 0
8x1 + 5x2 + 8x3 £ 200 9. Minimize C = 52x1 + 78x2 subject to the
4x1 + 5x2 + 5x3 £ 100 constraints
3x1 + 4x2 + 3x3 £ 120 2x1 + 3x2 £ 80
x1, x2, x3 ≥ 0 4x1 + 6x2 £ 150
3. Maximize P = 45x1 + 80x2 subject to the x1 ≥ 15
constraints x2 ≥ 10
5x1 + 20x2 £ 400 x1, x2 ≥ 0
10x1 + 15x2 £ 450 10. Maximize Z = 80000x1 + 60000x2 + 45000x3
x1, x2 ≥ 0 subject to the constraints
4. Maximize Z = 12x1 + 8x2 + 14x3 + 10x4 sub-
100x1 + 750x2 + 500x3 £ 20000
ject to the constraints
x1 £ 12
5x1 + 4x2 + 2x3 + x4 £ 100
x2 ≥ 6
2x1 + 3x2 + 8x3 + x4 £ 75
4 £ x3 £ 8
x1, x2, x3, x4 ≥ 0
5. Maximize P = 12x1 + 20x2 + 45x3 subject to x1, x2, x3 ≥ 0
the constraints 11. Maximize Z = 1200x1 + 800x2 subject to the
0.8x1 + 1.7x2 + 2.5x3 £ 100 constraints
x1 £ 50 2x1 + x2 £ 60
x2 £ 25 x1 £ 25
x3 £ 30 x2 £ 36
x4 ≥ 20 x1, x2 ≥ 0
x2 + x3 ≥ 15 12. Maximize P = x 1 + 5x 2 subject to the
x1, x2, x3 ≥ 0 constraints
6. Maximize Z = 40x1 + 30x2 subject to the x1 + x2 £ 20
constraints 25x1 + 50x2 £ 600
3x1 + x2 £ 3000 x1, x2 ≥ 0
x1 £ 8000 13. Minimize C = 5000x1 + 3000x2 subject to
x2 £ 12,000 the constraints
x1, x2 ≥ 0 3x1 + x2 ≥ 12
7. Maximize Z = 300x1 + 400x2 subject to the x1 + x2 ≥ 8
constraints x1 + 2x2 ≥ 11
5x1 + 4x2 £ 200 x1, x2 ≥ 0
3x1 + 5x2 £ 150 14. Minimize C = 20000x1 + 18000x2 + 16000x3
5x1 + 4x2 ≥ 100 subject to the constraints
8x1 + 4x2 ≥ 80 40x1 + 65x2 ≥ 1500
x1, x2 ≥ 0 35x1 + 53x3 ≥ 1100
12 Operations Research
(3, 0)
O X
(0,2) B ( ,–)
2 1
2
(0,1)
C ( –,– )
14 6
5 5 O (1,0) (2,0) (3,0) (4,0) X1
( )
0 , 1–
2
(2)
O A B X1
(1,0) (2,0) (3,0) (4,0) Fig. 2.11
(3)
Solution Draw the lines x1 – 2x2 = 1 and x1 +
(1)
2x2 = 3 and mark the regions x1 – 2x2 £ 1 and x1 +
2x2 ≥ 3. We find that the common region (feasible
region) is not closed above. The feasible region is
unbounded. We have only two vertices A and B.
A is the point (0, 3/2) and by solving the equations
we get B as the point (2, ½).
Now Z = 5x1 + 4x2,
ZA = 5(0) + 4(3/2) = 6,
ZB = 5(2) + 4(1/2) = 12.
Fig. 2.10 The minimum value is 6. Therefore the solution
of the given LPP is
Thus we have the vertices A (1, 0), B (2, 0),
x1 = 0 x2 = 3/2, Z* = 6.
C (14/5, 6/5), D (0, 4) and E (0, 3)
Now Z = 5x1 + 2x2 Note: If the question is given as “Maximize
ZA = 5(1) + 2(0) = 5; Z = 5x 1 + 4x 2 this problem has unbounded
ZB = 5(2) + 2(0) = 10; solutions.
ZC = 5(14/5) + 2(6/5) = 82/5; Example 2.13 Solve graphically
ZD = 5(0) + 2(4) = 8; Maximize Z = 2x 1 + 3x 2 subject to the
ZE = 5(0) + 2(3) = 6. constraints
18 Operations Research
2x1 + x2 £ 2
3x1 + 4x2 ≥ 12 X2
x1, x2 ≥ 0.
40
Solution The following graph gives the regions
represented by the constraints.
X2 30
(0,26)
(3)
(0,4)
20
(6,11)
(0,3)
10 C B (8,10)
(0,5) D
(0,2)
B (13,0)
O 10 20 30 40 X1
(–5,0)
(0,1) (1) (2)
The next constraint on the time taken on less than 50 kg. At least 20 kg of X and not more
machine B is given by than 40 kg of Y can be used. The cost of X is Rs 10
6x1 + 6x2 £ 30 or (x1 + x2 £ 5) per kg and that of Y is Rs 25 per kg. Determine
Also, x1 £ 4. how much of X and Y are to be used to minimize
Finally the non-negativity constraints are the total cost.
x1 ≥ 0 and x2 ≥ 0. Solution
Hence we get the LPP
Maximize P = 50x1 + 100x2 subject to the Formulation
constraints. Let us assume that x1 kg of X and x2 kg of Y
2x1 + 5x2 £ 16 are used to form the product. At least 20 kg of X
x1 + x2 £ 5 and not more than 40 kg of Y are to be used.
x1 £ 4 Therefore we have x1 ≥ 20 and x2 £ 40.
x1, x2 ≥ 0. Also the weight of the product must be not less
Let us represent the problem graphically. than 50 kg. This implies that
x1 + x2 ≥ 50.
The total cost of the product is 10x1 + 25x2
which is to be minimum.
Thus the LPP is
Minimize C = 10x 1 + 25x 2 subject to the
constraints
x1 ≥ 20, x2 £ 40, x1 + x2 ≥ 50, x1, x2 ≥ 0
Fig. 2.14
Thus the optimal solution is x1 = 50 x2 = 0 order to minimize the total cost and the minimum
C* = 500. cost is Rs 500.
Therefore 50 kg of X alone has to be used in
EXERCISES
■ ■ ■ ■ ■ ■ ■
x1 + x2 £ 6 x1 + 3x2 ≥ 400
x1 – x2 £ 2 x1 + 2x2 £ 350
x1, x2 ≥ 0 x1 + x2 ≥ 200
26. Maximize Z = 20x1 + 10 x2 subject to the x1, x2 ≥ 0
constraints 29. Maximize Z = 50x1 + 30x2 subject to the
x1 + 2x2 £ 40 constraints
3x1 + x2 ≥ 30 2x1 + x2 ≥ 18
4x1 + 3x2 ≥ 60 x1 + x2 ≥ 12
x1, x2 ≥ 0 3x1 + 2x2 £ 34
27. Maximize Z = 2x 1 + 3x 2 subject to the x1, x2 ≥ 0
constraints 30. Maximize Z = x1 + 3x2 subject to the con-
x1 + x2 £ 30 straints
12 ≥ x2 ≥ 3
x1 + x2 £ 7
x1 – x2 ≥ 0
x2 £ 5
x1 ≥ 0
3x1 + 10x2 ≥ 30
28. Minimize Z = 200x1 + 400x2 subject to the
constraints x1, x2 ≥ 0
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
(ii) All the constants bj (j = 1, 2, 3, 4,…, m) must Maximize Z = –2x1¢ + 3x2 + 4x3 subject to the
be positive. If there is a negative constant constraints
then multiply the constraint inequality – x1¢ + 3x2 + 5x3 £ 10
on both sides by –1. For example the 3x1¢ + x2 + 2x3 ≥ 4
constraint 3x1 + 2x2 + 5x3 £ –2 can be written x1, x2, x3 ≥ 0
as – 3x1 – 2x2 – 5x3 ≥ 2 Finally, we change the constraints to equalities.
[when multiplied by –1, the £ sign changes By introducing a slack variable s1 and a surplus
to ≥ and vice versa]. variable s2 we get the standard form as
(iii) All the variables must be non-negative. If one Maximize Z = –2x1¢ + 3x2 + 4x3 subject to the
variable, say xr, is negative then put xr¢ = – xr constraints
and replace xr with – xr¢ in the problem. Now – x1¢ + 3x2 + 5x3 + s1 = 10
xr¢ ≥ 0. Again if a variable xr is unrestricted 3x1¢ + x2 + 2x3 – s2 = 4
in sign (it can assume either +ve or –ve value) x1, x2, x3, s1, s2 ≥ 0
then put xr = ur – vr, where both ur and vr are Example 3.2 Change the following LPP into
non-negative. ur > vr Æ xr is +ve and ur < vr standard form:
Æ xr is –ve. Minimize Z = 2x1 + 2x2 + 4x3 + x4 subject to the
(iv) Finally all the constraints must be equalities. constraints
If a constraint inequality is of upper bound 3x1 + 2x2 + x3 + 9x4 £ 16
type (£) then we add a new variable sj called 7x1 + 2x2 + 4x3 + x4 £ 24
slack variable and convert it into equality. x1. x2, x3 ≥ 0 x4 unrestricted.
The constraint Solution The objective function has to be written as
a11x1 + a12x2 + … + a1nxn £ b1can be changed Maximize W = – Z = – 2x1 – 2x2 – 4x3 – x4
into Since x4 is unrestricted, write
a11x1 + a12x2 + … + a1nxn + s1 = b1 x4 = u4 – v4
The problem becomes
Similarly, in case of lower bound type
Maximize W = –2x1 – 2x2 – 4x3 – (u4 – v4)
constraints (≥) we subtract a new variable sj
subject to the constraints
called surplus variable and obtain the 3x1 + 2x2 + x3 + 9 (u4 – v4) £ 16
equality. Accordingly, the constraint 7x1 + 2x2 + 4x3 + u4 – v4 £ 24
a11x1 + a12x2 + … + a1nxn ≥ b1can be changed x1, x2, x3, u4, v4 ≥ 0
into Introducing slack variables s1 and s2 we get the
a11x1 + a12x2 + … + a1nxn – s1 = b1 standard form as
It should be noted that all the variables should Maximize W = –2x1 – 2x2 – 4x3 – u4 + v4 subject
satisfy the non-negativity constraint. to the constraints
Example 3.1 Rewrite the following LPP in the 3x1 + 2x2 + x3 + 9u4 – 9v4 + s1 = 16
standard form: 7x1 + 2x2 + 4x3 + u4 – v4 + s2 = 24
Maximize Z = 2x1 + 3x2 + 4x3 subject to the x1, x2, x3, u4, v4, s1, s2 ≥ 0
constraints Note: If a constraint is given in the form of
x1 + 3x2 + 5x3 £ 10 equality then we can express it as two inequalities,
3x1 – x2 – 2x3 £ –4 one (£ ) type and the other (≥) type.
x1 £ 0 x2, x3 ≥ 0 Example 3.3 Rewrite in the standard form:
Solution Multiplying the second constraint by Maximize Z = 5x1 + 2x2 + x3 subject to the
–1, we get constraints
–3x1 +x2 + 2x3 > 4 2x1 + x2 – x3 = 6
Given x1 £ 0. Therefore put x1 = –x1¢ x1 + x2 + x3 £ 8
Thus the problem becomes x1, x2, x3 ≥ 0
26 Operations Research
Table 3.1
x1 x2 x3 .... xs .... xn s1 s2 .... .... sm Const
CB B c1 c2 c3 .... cs .... cn 0 0 .... .... 0 0
0 s1 a11 a12 a13 .... a1s .... a1n 1 0 .... .... 0 b1
0 s2 a21 a22 a23 .... a2s .... a2n 0 1 .... .... 0 b2
0 s3 a31 a32 a33 a3s a3n 0 0 1 0 b3
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
0 sr ar1 ar2 ar3 . ars . arn . . . . . br
. . . . . . . . . . . . . . .
0 sm am1 am2 am3 . ams . amn 0 0 . . 1
Zj–cj –c1 –c2 –c3 .... –cs .... –cn 0 0 .... .... 0 0
Z x1 x2 s1 s2 s3 Const
The most negative c j is –3 and therefore x3
CB B 3 2 0 0 0 0
enters the basis. Minimum ratio is obtained as Min
0 s1 0 0 1 3 –1 4 (10/1, 0/3) = 0 corresponding to s3. Hence s3 leaves
3 x1 1 0 0 1 0 2 the basis. The necessary row transformations are
2 x2 0 1 0 –1 1 1 given by
Zj – cj 0 0 0 1 2 8 R1¢ = R1 – (1/3) R3; R2¢ = R2 + (1/3)R3;
R3¢ = (1/3)R3
Here all the Zj – cj are non-negative and hence
The new table is (I Iteration)
the current solution is optimal. The optimal
solution is Table 3.6
s1 = 4, x1 = 2, x2 = 1
Since the coefficient of the slack variable s1 is Z 1 –1 3 0 0 0 0
zero in the objective function it need not be taken CB B x1 x2 x3 s1 s2 s3 Const
into account. We give the solution in terms of the
0 s1 1/3 5/3 0 1 0 – 1/3 10
decision variables x1 and x2 only. Thus the optimal
solution is 0 s2 8/3 – 2/3 0 0 1 1/3 2
x1 = 2, x2 = 1, Z* = 8 3 x3 2/3 – 2/3 1 0 0 1/3 0
Example 3.5 Maximize Z = x1 – x2 + 3x3 subject Zj – cj 1 –1 0 0 0 1 0
to the constraints
x1 + x2 + x3 £ 10
2x1 – x3 £ 3 Pivot element is 5/3. x2 enters the basis and s1
2x1 – 2x2 + 3x3 £ 0 leaves.
x1, x2, x3 ≥ 0 Performing R1¢ = R1 (3/5) we get (II Iteration)
Solution The given LPP can be expressed in the R2¢ = R2 – (– 2/3)/(5/3)R1
standard form as follows: (i.e. R2¢ = R2 + (2/5)R1)
Maximize Z = x1 – x2 + 3x3 + 0s1 + 0s2 + 0s3 R3¢ = R3 – (– 2/3)/(5/3)R1
subject to (i.e. R3¢ = R3 + (2/5)R1)
30 Operations Research
All the relative cost factors are non-negative. x1 and x2 both have the same relative cost factor
Hence this solution is optimal. and hence the selection of entering variable is at
The solution is our choice. Let us choose x1 to enter the basis. The
x1 = 0, x2 = 6, x3 = 4, Z* = 6 minimum ratio is 120 and hence s1 leaves the basis.
Note: One of the decision variables x1 = 0. This Perform the operations
is called a degenerate solution. R1¢ = (3/5)R1; R2¢ = R2 – (1/5)R1,
Example 3.6 Maximize Z = 2x1 + 2x2 + 4x3 R3¢ = R3 – (2/5)R1
subject to the constraints We get the II iteration
2x1 + 3x2 + x3 £ 300
x1 + x2 + 3x3 £ 300 Table 3.10
x1 + 3x2 + x3 £ 240 Z 2 2 4 0 0 0
x1, x2, x3 ≥ 0
Solution The standard form of the LPP is CB B x1 x2 x3 s1 s2 s3 Const
Maximize Z = 2x 1 +2x 2 +4x 3 +0s 1 +0s 2 +0s 3 2 x1 1 8/5 0 3/5 – 1/5 0 120
subject to 4 x3 0 – 1/5 1 – 1/5 2/5 0 60
2x1 + 3x2 + x3 + s1 = 300 0 s3 0 8/5 0 – 2/5 – 1/5 1 60
x1 + x2 + 3x3 + s2 = 300
Zj – cj 0 2/5 0 2/5 6/5 0 480
x1 + 3x2 + x3 + s3 = 240
x1, x2, x3, s1, s2, s3 ≥ 0 Optimality is reached. The optimal solution is
The starting table is x1 = 120, x2 = 0, x3 = 60, Z* = 480
Table 3.8 (This is a degenerate solution since x2 = 0)
Example 3.7 Maximize Z = 2x1+4x2+x3 subject
Z 2 2 4 0 0 0 0
to the constraints
CB B x1 x2 x3 s1 s2 s3 Const x1 + 3x2 £ 4
0 s1 2 3 1 1 0 0 300 2x1 + x2 £ 3
0 s2 1 1 3 0 1 0 300 x2 + 4x3 £ 3
0 s3 1 3 1 0 0 1 240 x1, x2, x3 ≥ 0
Solution Standard form
Zj–cj –2 –2 –4 0 0 0 0
Maximize Z = 2x1 + 4x2 + x3 + 0s1 + 0s2 + 0s3
subject to the constraints
x3 enters the basis since – 4 is the most negative x1 + 3x2 + s1 = 4
relative cost factor. The minimum among the 2x1 + x2 + s2 = 3
ratios {300/1, 300/3, 240/1} is 100 which x2 + 4x3 + s3 = 3
corresponds to s2 and hence s2 leaves the basis.
x1, x2, x3, s1, s2, s3 ≥ 0
Take R 1¢ = R1 – (1/3) R2; R 2¢ = (1/3)R2; R3¢ =
R3 – (1/3)R2. We get the table (I iteration) Initial table
Simplex Method 31
Step 6 In the new table include xr as a basic vari- x2 enters the basis and s1 leaves.
able and cr as its coefficient, in place of the leav- R1¢ = R1; R2¢ = R2 + R1; R3¢ = R3 – R1
ing variable. Find the relative cost factors Zj – cj.
This completes one iteration. Table 3.17
S H O RT A N S W E R Q U E S T I O N S
■ ■ ■ ■ ■ ■ ■
(vii) The leaving variable row is called a (iii) Graphical method is useful when the
__________. (Ans: pivot row) problem involves two variables.
(viii) A constraint of £ type is changed to (Ans: True)
equality by adding a _________. (iv) Optimal solution occurs at one of the
(Ans: slack variable) vertices of the feasible region.
(ix) A constraint of ≥ type is reduced to (Ans: True)
equality by introducing a _________. (v) An LPP may have more than one optimal
(Ans: surplus variable) solution. (Ans: True)
(x) A slack variable is introduced in £ (vi) Every basic solution is a feasible
inequality constraint to obtain a solution. (Ans: False)
__________. (Ans: basic solution) (vii) An optimal solution is a feasible
solution. (Ans: True)
16. State whether True or False
(viii) Every feasible solution is optimal
(i) The main components of an LPP include (Ans: False)
the decision variables, constraints and (ix) In an LPP of standard form all the
the objective function. (Ans: True) variable are non-negative (Ans: True)
(ii) A feasible solution satisfies all the (x) In the simplex iteration the pivot element
constraints. (Ans: True) cannot be zero or negative. (Ans: True)
EXERCISES
■ ■ ■ ■ ■ ■ ■
100 tons of coal is required which should 27. Maximize Z = 2x 1 + 3x 2 subject to the
contain not more than 3 per cent of ash and constraints
not more than 0.03 per cent of phosphorus. –x1 + 2x2 £ 4
The percentage of impurities and the profits x1 + x2 £ 6
from each grade are given below. x1 + 3x2 £ 9
x1, x2 ≥ 0
Coal Phosphorus % Ash % Profit Rs/ton 28. Maximize Z = 4x1 + 10x2 subject to the
A .02 3 12 constraints
2x1 + x2 £ 10
B .04 2 15
2x1 + 5x2 £ 20
C .03 5 14 2x1 + 3x2 £ 18
Find the proportions in which the three x1, x2 ≥ 0
grades are to be used in order to maximize 29. Maximize Z = 2x 1 + x 2 subject to the
the profit. constraints
x1 – 2x2 £ 1
22. Maximize Z = 2x 1 + 3x 2 subject to the
x1 + x2 £ 6
constraints
x1 + 2x2 £ 10
–x1 + 2x2 £ 4
x1 – x2 £ 2
x1 + x2 £ 6 x1, x2 ≥ 0
x1 + 3x2 £ 9 30. Maximize Z = 4x 1 + 6x 2 subject to the
x1, x2 unrestricted constraints
23. Minimize Z = 3x + 2y subject to the x1 + 3x2 £ 240
constraints 3x1 + 4x2 £ 270
–2x + 3y £ 9 2x1 + x2 £ 180
–x + 5y £ 20 x1, x2 ≥ 0
x, y ≥ 0 31. Maximize Z = 30x1 + 40x2 + 20x3 subject to
24. Maximize Z = 6x1 + 8x2 + 4x3 + 3x4 subject the constraints
to the constraints 10x1 + 12x2 + 7x3 £ 10000
2x1 + 3x2 + x3 £ 900 7x1 + 10x2 + 8x3 £ 8000
x2 + 2x3 £ 600 x1 + x2 + x3 £ 1000
3x1 + 2x2 + 2x3 £ 1200 x1, x2, x3 ≥ 0
3x3 + x4 = 100 32. Maximize Z = 2x1 + 4x2 + 3x3 subject to the
x1, x2, x3, x4 ≥ 0 constraints
[Hint: x4 can be taken as an initial basic 3x1 + 4x2 + 2x3 £ 60
variable] 2x1 + x2 + 2x3 £ 40
25. Maximize Z = 5x 1 + 2x 2 subject to the x1 + 3x2 + 2x3 £ 80
constraints x1, x2, x3 ≥ 0
33. Maximize Z = 10x1 + x2 + 2x3 subject to the
2x1 + x2 £ 8
constraints
x2 £ 4
x1 + x2 – 2x3 £ 10
x1 £ 3 4x1 + x2 + x3 £ 20
x1 ≥ 0, x2 unrestricted. x1, x2, x3 ≥ 0
26. Maximize Z = 4x 1 + 3x 2 subject to the 34. Maximize Z = x1 + x2 + 3x3 subject to the
constraints constraints
2x1 + x2 £ 1000 3x1 + 2x2 + x3 £ 3
x1 + x2 £ 800 2x1 + x2 + 2x3 £ 2
x1, x2 ≥ 0 x1, x2, x3 ≥ 0
Simplex Method 39
35. Maximize Z = 3x1 + 5x2 + 4x3 subject to the 38. Maximize Z = 3x1 + 4x2 + x3 + 5x4 subject to
constraints the constraints
2x1 + 3x2 £ 8 8x1 + 3x2 + 2x3 + 2x4 £ 10
2x2 + 5x3 £ 10 2x1 + 5x2 + x3 + 4x4 £ 5
3x1 + 2x2 + 4x3 £ 15 x1 + 2x2 + 5x3 + x4 £ 6
x1, x2, x3 ≥ 0 x1, x2 , x3, x4 ≥ 0
36. Maximize Z = 4x1 + x2 + 3x3 + 5x4 subject to 39. Maximize Z = 15x1 + 6x2 + 9x3 + 2x4 subject
the constraints
to the constraints
4x1 – 6x2 – 5x3 – 4x4 ≥ – 20
2x1 + x2 + 5x3 + 6x4 £ 20
–3x1 – 3x2 + 4x3 + x4 £ 10
–8x1 – 3x2 + 3x3 + 2x4 £ 20 3x1 + x2 + 3x3 + 25x4 £ 24
x1, x2 , x3, x4 ≥ 0 7x1 + x4 £ 70
37. Maximize Z = 2x1 + x2 – 3x3 + 5x4 subject to x1, x2 , x3, x4 ≥ 0
the constraints 40. Maximize Z = 2x1 – 4x2 + 5x3 – 6x4 subject
x1 + 7x2 + 3x3 + 7x4 £ 46 to the constraints
3x1 – x2 + x3 + 2x4 £ 8 x1 + 4x2 – 2x3 + 8x4 £ 2
2x1 + 3x2 – x3 + x4 £ 10 –x1 + 2x2 + 3x3 + 4x4 £ 1
x1, x2 , x3, x4 ≥ 0 x1, x2 , x3, x4 ≥ 0
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. Maximize Z = 3x1 + 2x2 + 0s1 + 0s2 + 0s3 5. Maximize Z = u1–v1 + 2x2 + 5x3 + x4 + 0s1 +
subject to the constraints 0s2 subject to the constraints
–2x1 + x2 + s1 = 1 2u1 – 2v1 + x2 + 3x3 – x4 + s1 = 10
x1 + s2 = 2 u1 – v1 + 3x2 + x3 + 2x4 + s2 = 16
x1 + x2 + s3 = 3 u1, v1, x2, x3, x4, s1, s2 ≥ 0 (x1 = u1 – v1)
x1, x2, s1,s2, s3 ≥ 0. 6. x1 = 0, x2 = 20, Z* = 200
2. Maximize Z = 5x1 + 7x2 + 0s1 + 0s2 + 0s3 7. x1 = 0, x2 = 100, x3 = 230, Z* = 1350
subject to the constraints 8. x1 = 4, x2 = 8, Z* = 96
x1 + x2 + s1 = 8 9. x1 = 0, x2 = 1/2, Z* = –1
3x1 + 4x2 + s2 = 20 10. x1 = 30, x2 = 15, Z* = 12000
6x1 + 7x2 + s3 = 24 11. x1 = 0, x2 = 100, x3 = 50, Z* = 22500
x1, x2, s1, s2, s3 ≥ 0 12. x1 = 0, x2 = 10, x3 = 23, Z* = 135
3. Maximize (–Z) = –2x1 – 3x2 – x3 subject to 13. x1 = 30, x2 = 70, Z* = 540
the constraints 14. x1 = 5, x2 = 0, x3 = 4, Z* = 35
–x1 + 2x2 – 3x3 + s1 = 4 15. x1 = 6, x2 = 0, x3 = 8, Z* = 86
2x1 + 5x2 – 7x3 + s2 = 8 16. x1 = 0, x2 = 5/4, x3 = 0, Z* = –5/2
x1, x2, x3, s1, s2 ≥ 0 17. x1 = 0, x2 = 12, x3 = 5, Z* = 49
4. Maximize Z = 4x1 + 2x2 – 6x3¢ + 0s1 + 0s2 + 18. x = 11, y = 9, z = 4, Z* = 65
0s3 subject to the constraints 19. x1 = 0, x2 = 2, x3 = 10/3, Z* = 74/3
2x1 + 3x2 – 2x3¢ – s1 = 6 20. Maximize Z = 30x1 + 40x2 + 20x3 subject to
3x1 + 4x2 – x3¢ + s2 = 8 the constraints
x1, x2, x3¢, s1, s2 ≥ 0 (x3¢ = –x3) 10x1 + 12x2 + 7x3 £ 10000
40 Operations Research
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Table 4.4
Z x1 x2 x3 s1 s2 s3 R1 R2 Const Ratio
CB B –5 –4 –3 0 0 0 –M –M 0
–M R1 1 1 1 0 0 0 1 0 100 100
0 s1 1 0 0 1 0 0 0 0 20 –
–M R2 0 1 0 0 –1 0 0 1 30 30
0 s3 0 0 1 0 0 1 0 0 40 –
Zj – cj –M + 5 –2M + 4 –M + 3 0 M 0 0 0 –130M
R1¢ = R1 – R3 No other change
Table 4.5
I Iteration
–M R1 1 0 1 0 1 0 1 –1 70 70
0 s1 1 0 0 1 0 0 0 0 20 –
–4 x2 0 1 0 0 –1 0 0 1 30 –
0 s3 0 0 1 0 0 1 0 0 40 –
Zj – cj –M + 5 0 –M + 3 0 –M + 4 0 0 2M – 4 –120 – 70M –
s2 is chosen to enter the basis in order to get rid of R1 : R3¢ = R3 + R1
Table 4.6
II Iteration
0 s2 1 0 1 0 1 0 1 –1 70 70
0 s1 1 0 0 1 0 0 0 0 20 –
–4 x2 1 1 1 0 0 0 1 0 100 100
0 s3 0 0 1 0 0 1 0 0 40 40
Zj – cj 1 0 –1 0 0 0 –4 + M M –400 –
R1¢ = R1 – R4 R3¢= R3 – R4
Table 4.7
III Iteration
0 s2 1 0 0 0 1 –1 1 –1 30 –
0 s1 1 0 0 1 0 0 0 0 20 –
–4 x2 1 1 0 0 0 –1 1 0 60 –
–3 x3 0 0 1 0 0 1 0 0 40 –
Zj – cj 1 0 0 0 0 1 –4 + M M –360 –
The optimal solution is
x1= 0, x2 = 60, x3 = 40, Z* = –W* = 360
44 Operations Research
Table 4.8
Z x1 x2 x3 x4 s1 s2 R1 R2 R3 Const Ratio
CB B 1 2 3 –1 0 0 –M –M –M 0
–M R1 1 2 3 0 0 0 1 0 0 15 15/3
–M R2 2 1 5 0 –1 0 0 1 0 20 20/5
–M R3 1 2 1 1 0 –1 0 0 1 10 10/1
Zj – cj –4M – 1 –5M – 2 –9M – 3 –M + 1 M M 0 0 0 –45M
Table 4.9
I Iteration
–M R1 –1/5 7/5 0 0 3/5 0 1 –3/5 0 3 15/7
3 X3 2/5 1/5 1 0 –1/5 0 0 1/5 0 4 20
–M R3 3/5 9/5 0 1 1/5 –1 0 –1/5 1 6 30/9
Zj – cj (–2M+1)/5 (–16M – 7)/5 0 –M + 1 (–4M – 3)/5 M 0 (9M + 3)/5 0 –9M + 12
Table 4.10
II Iteration
2 x2 –1/7 1 0 0 3/7 0 5/7 –3/7 0 15/7
3 x3 3/7 0 1 0 –2/7 0 –1/7 2/7 0 25/7
–M R3 6/7 0 0 1 –4/7 –1 –9/7 4/7 1 15/7
Zj – cj –6M/7 0 0 –M+1 4M/7 M (16M+7)/7 3M/7 0 –15M/7+15
Table 4.11
III Iteration
Z x1 x2 x3 x4 s1 s2 R1 R2 R3 Const Ratio
CB B 1 2 3 –1 0 0 –M –M –M 0
2 x2 –1/7 1 0 0 3/7 0 5/7 –3/7 0 15/7 –
3 x3 3/7 0 1 0 –2/7 0 –1/7 2/7 0 25/7 25/3
–1 x4 6/7 0 0 1 –4/7 –1 –9/7 4/7 1 15/7 15/6
Zj – Cj 0 0 0 4/7 1 (16M + 7)/7 –4/7 + M –1 + M 90/7
Table 4.12
IV Iteration
2 x2 0 1 0 1/6 1/3 –1/6 1/2 –1/3 1/6 5/2
3 x3 0 0 1 –1/2 0 1/2 1/2 0 –1/2 5/2
1 x1 1 0 0 7/6 –2/3 –7/6 –3/2 2/3 7/6 5/2
Zj – cj 0 0 0 1 0 0 1+M M M 15
R1¢ = R1+(3/8)R3, R2¢ = R2 – 4R3, Solution Introducing surplus variables with zero
R3¢ = (5/8)R3 costs and artificial variables with costs –1 in the
objective function we obtain the standard form of
Table 4.24 the problem as
II Iteration Maximize Z = – 4x1 – 3x2 – 9x3 + 0s1 + 0s2 – R1 –
R2 subject to the constraints
W x1 x2 x3 s1 s2 R1 R2 Const Ratio 2x1 + 4x2 + 6x3 – s1 + R1 = 15
CB B 0 0 0 0 0 –1 –1 0 6x1 + x2 + 6x3 – s2 + R2 = 12
0 x2 1/2 1 0 –1/8 0 1/8 3/8 15/4 x1, x2, x3, s1, s2, R1, R2 ≥ 0
0 s2 3 0 0 –2 1 2 –4 30
Phase I The objective function is W = –R1 – R2
0 x3 1/2 0 1 1/8 0 –1/8 5/8 5/4
with the given constraints. The starting table is
cj 0 0 0 0 0 1 1 0
Table 4.26
Optimality is reached. There is no artificial
variable in the optimal basis. Hence we proceed W x1 x2 x3 s1 s2 R1 R2 Const Ratio
to phase II omitting R1and R2 from the table.
CB B 0 0 0 0 0 –1 –1 0
Phase II Maximize Y = –5x1 + 6x 2 + 7x 3 + –1 R1 2 4 6 –1 0 1 0 15 15/6
0s1 + 0s2 –1 R2 6 1 6 0 –1 0 1 12 12/6
The starting table is
cj –8 –5 –12 1 1 0 0 –27
Table 4.25
R1¢ = R1 – R2, R2¢ = (1/6)R2
Y x1 x2 x3 s1 s2 Const Ratio
CB B –5 6 7 0 0 0 –
Table 4.27
6 x2 1/2 1 0 –1/8 0 15/4 – I Iteration
0 s2 3 0 0 –2 1 30 – –1 R1 –4 3 0 –1 1 1 –1 3 3/3
7 x3 1/2 0 1 1/8 0 5/4 – 0 x3 1 1/6 1 0 –1/6 0 1/6 2 12
cj 23/2 0 0 1/8 0 125/4 – cj 4 –3 0 1 –1 0 1 –3
Optimality is reached.
R1¢ = (1/3)R1, R2¢ = R2 – (1/18)R1
Solution
x1 = 0, x2 = 15/4, x3 = 5/4, Table 4.28
Z* = –Y* = –125/4
II Iteration
Example 4.7 (Solve using the two-phase
method) 0 x2 –4/3 1 0 –1/3 1/3 1/3 –1/3 1
Maximize Z = – 4x1 – 3x2 – 9x3 subject to the 0 x3 11/9 0 1 1/18 –2/9 –1/18 2/9 11/6
constraints cj 0 0 0 0 0 1 1 0
2x1 + 4x2 + 6x3 ≥ 15
The optimality is reached. No artificial variable
6x1 + x2 + 6x3 ≥ 12
appears in the optimal basis. Hence we proceed to
x1, x2, x3 ≥ 0 phase II
Artificial Variables 49
Phase II Z = –4x1 – 3x2 – 9x3 + 0s1 + 0s2 Solution The standard form of the LPP is
The starting table is Maximize Z = 5x1 + 3x2 + 0s1 + 0s2 – R1 subject
to the constraints
Table 4.29
2x1 + x2 + s1 = 1
Z x1 x2 x3 s1 s2 Const Ratio
x1 + 4x2 – s2 + R1 = 6
CB B – 4 –3 –9 0 0 0 x1, x2, s1, s2, R1 ≥ 0
–3 x2 –4/3 1 0 –1/3 1/3 1 – The objective function of the auxiliary LPP is
–9 x3 11/9 0 1 1/18 –2/9 11/6 9/6
W = –R1
cj –3 0 0 1/2 1 –39/2
The starting table is
R1¢ = R1 + (12/11)R2, R2¢ = (9/11)R2
Table 4.31
Table 4.30
W x1 x2 s1 s2 R1 Const Ratio
I Iteration
CB B 0 0 0 0 –1 0
Z x1 x2 x3 s1 s2 Const Ratio
0 s1 2 1 1 0 0 1 1/1
CB B –4 –3 –9 0 0 0 –1 R1 1 4 0 –1 1 6 6/4
–3 x2 0 1 12/11 –3/1 1/11 3 cj –1 –4 0 1 0 –6
–4 x1 1 0 9/11 1/22 –2/11 3/2
R1¢ = R1, R2¢ = R2 – 4R1
cj 0 0 27/11 7/11 5/11 –15
S H O RT A N S W E R Q U E S T I O N S
■ ■ ■ ■ ■ ■ ■
EXERCISES
■ ■ ■ ■ ■ ■ ■
3x1 + x2 ≥ 12 4x1 + x2 + x3 £ 6
x1 + x2 ≥ 8 x1, x2 , x3 ≥ 0
x1 + 2x2 ≥ 11 35. Maximize Z = 2x1 + 3x2 + 5x3 subject to the
x1, x2 ≥ 0 constraints
28. Maximize Z = 2x1 + 3x2 – 5x3 subject to the 3x1 + 10x2 + 5x3 £ 15
constraints 33x1 – 10x2 + 9x3 £ 33
x1 + x2 + x3 = 7 x1 + 2x2 + x3 ≥ 4
2x1 – 5x2 + x3 ≥ 10 x1, x2 , x3 ≥ 0
x1, x2, x3 ≥ 0 Solve using the two-phase method
29. Minimize Z = 3x 1 + 2x 2 subject to the 36. Maximize Z = 3x1 + 2x2 + 2x3 subject to the
constraints constraints
x1 + x2 ≥ 2 5x1 + 7x2 + 4x3 £ 7
x1 + 3x2 £ 3 –4x1 + 7x2 + 5x3 ≥ –2
3x1 + 4x2 – 6x3 ≥ 29/7
x1 – x2 = 1
x1, x2 , x3 ≥ 0
x1, x2 ≥ 0
37. Maximize Z = 5x 1 + 3x 2 subject to the
30. Maximize Z = 2x 1 + x 2 subject to the
constraints
constraints
x1 + x2 £ 6
3x1 + x2 = 3
2x1 + 3x2 ≥ 3
4x1 + 3x2 ≥ 6
x1 ≥ 3
x1 + 2x2 £ 3 x2 ≥ 3
x1, x2 ≥ 0 x1, x2 ≥ 0
31. Maximize Z = 5x 1 + 8x 2 subject to the 38. Minimize Z = 20x1 + 10x2 subject to the
constraints constraints
3x1 + 2x2 ≥ 3 x1 + 2x2 £ 40
x1 + 4x2 ≥ 4 3x1 + x2 ≥ 30
x1 + x2 £ 5 4x1 + 3x2 ≥ 60
x1, x2 ≥ 0 x1, x2 ≥ 0
32. Minimize Z = –2x 1 – x 2 subject to the 39. Maximize Z = 2x 1 + 3x 2 subject to the
constraints constraints
x1 + x2 ≥ 2 x1 + x2 £ 30
x1 + x2 £ 4 x1 – x2 ≥ 0
x1, x2 ≥ 0 x1 £ 20, x2 ≥ 3, x2 £ 12
33. Minimize Z = 12x1 + 20x2 subject to the x1, x2 ≥ 0
constraints 40. Maximize Z = –3x1 + 6x2 subject to the
6x1 + 8x2 ≥ 100 constraints
7x1 + 12x2 ≥ 120 x1 + 2x2 + 1 ≥ 0
x1, x2 ≥ 0 –4x1 + x2 + 23 ≥ 0
34. Maximize Z = x1 + 2x2 + x3 subject to the 2x1 + x2 – 4 ≥ 0
constraints x1 – 4x2 + 13 ≥ 0
2x1 + x2 – x3 £ 2 x1 – x2 + 1 ≥ 0
–2x1 + x2 – 5x3 ≥ –6 x1, x2 ≥ 0
Artificial Variables 53
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. x1 = 0, x2 = 15/4, x3 = 5/4, Z* = –125/4 x2 = 42/5, Z* = 48. Since there are two optimal
2. No solution solutions it means that there are infinite number
3. x1 = 4, x2 = 2, Z* = 22 of solutions.
4. x1 = 9/7, x2 = 10/21, x3 = 0, Z* = 64/21 20. x1 = 3, x2 = 2, x3 = 0, Z* = 8
5. x1 = 4, x2 = 1, Z* = 11 21. Unbounded solution
6. x1 = 0, x2 = 1, Z* = 2 22. x1 = 3/5, x2 = 3, Z* = 21/5
7. No solution 23. x1 = 24/5, x2 = 63/5, Z* = 222/5
85 24. x1 = 15, x2 = 5/4, Z* = 205
8. x1 = 23/3, x2 = 5, x3 = 0, Z* = 25. x1 = 35/2, x2 = 15/4, Z* = 195
3
9. x1 = 15, x2 = 5/4, Z* = 205 26. x1 = –6/5, x2 = –6/5, Z* = –48/5
10. x1 = 0, x2 = 0, x3 = 1, Z* = 1 27. x1 = 2, x2 = 6, Z* = 18
11. x1 = 0, x2 = 13/6, x3 = 5/2, Z* = 43/6 28. x1 = 45/7, x2 = 4/7, x3 = 0, Z* = 102/7
12. x1 = 3, x2 = 0, x3 = 1, x4 = 3, Z* = 2 29. x1 = 3/2, x2 = 1/2, Z* = 11/2
13. x1 = 1, x2 = 4, Z* = 11 30. x1 = 3/5, x2 = 6/5, Z* = 12/5
14. x1 = 3/5, x2 = 6/5, Z* = 18/5 31. x1 = 0, x2 = 5, Z* = 40
15. x1 = 3, x2 = 3, Z* = 27 32. x1 = 4, x2 = 0, Z* = –8
16. x1 = 0, x2 = 0, x3 = 3/2, Z* = 3 33. x1 = 15, x2 = 5/4, Z* = 205
17. x1 = 0, x2 = 0, x3 = 5/2, Z* = 5/2 34. x1 = 0, x2 = 4, x3 = 2, Z* = 10
18. x1 = 23/3, x2 = 5, x3 = 0, Z* = 85/3 35. No solution
19. x1 = 8, x2 = 0, Z* = 48 36. x1 = 1, x2 = 2/7, x3 = 0, Z* = 25/7
In exercise No. 19, we find Z j – C j = 0 37. x1 = 3, x2 = 3, Z* = 24
corresponding to the non-basic variable x2 in the 38. x1 = 6, x2 = 12, Z* = 240
optimal table. Hence we can bring x2 into the basis 39. x1 = 18, x2 = 12, Z* = 72
and obtain another optimal solution x1 = 12/5, 40. x1 = 3, x2 = 4, Z* = 15
5
Dual Simplex Method
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
5.1 DUAL SIMPLEX METHOD Step 3 If all the constants are non-negative and
some Zj – cj < 0 then apply simplex method for
The simplex method starts with an initial basic optimization.
feasible solution and moves towards optimality.
If the constants bi are all non-negative (bi ≥ 0) the Step 4 If bi < 0 for some i and Zj – cj < 0 for
solution is feasible. Simplex method is terminated some j then there exists no solution. Stop.
when an optimal solution is reached (Zj – cj ≥ 0 Step 5 If bi < 0 for some i and Zj – cj ≥ 0 " j then
for all j). choose the most negative bi, say br. The corre-
In certain cases some constants bi may be sponding row is the pivot row and the correspond-
negative (infeasibility), but at the same time ing basic variable leaves the basis.
optimality conditions are satisfied (Zj – cj ≥ 0 for
all j) in the starting table. In other words we start Step 6 Examine the elements of the pivot row.
with an infeasible but optimal solution. Here If all the arj ≥ 0 there exists no solution. Stop.
regular simplex method cannot be used. Instead
we apply dual simplex method and work towards Step 7 If some a rj < 0 then find the ratios
feasibility. Finally we arrive at an optimal and | (Zj – cj)/arj | where arj < 0 and select the minimum
feasible solution [Zj – cj ≥ 0 and bi ≥ 0 " i, j]. among them, say | Zs – cs /ars |, then the sth column
is the pivot column and the corresponding non-
5.1.1 Dual Simplex Algorithm basic variable enters the basis. ars is called the pivot
Step 1 Rewrite the LPP in the standard form. Con- element.
vert ≥ type constraints to £ type by multiplying both Step 8 Perform row operations, making the ele-
sides by –1. Introduce slack variables, form the sim- ment ars as 1 and the other elements of the pivot
plex table and obtain the initial basic solution. column, zero. We get the improved solution.
Step 2 If all the constants are non-negative and Repeat steps 5 to 8 till optimality is reached
Zj – cj ≥ 0 " j the solution is optimal. Stop. [i.e. bi > 0 " i and Zj – cj ≥ 0 " j].
Dual Simplex Method 55
Example 5.1 Apply the dual simplex method to R1 – (1/3) R2, R2/(–3), R3 – (2/3) R2
solve:
Minimize Z = 2x1 + x2 subject to the constraints Table 5.2
3x1 + x2 ≥ 3 I Iteration
4x1 + 3x2 ≥ 6
x1 + 2x2 ≥ 3 Z x1 x2 s1 s2 s3
x1, x2 ≥ 0 XB
CB B –2 –1 0 0 0
Solution Converting the objective function to 0 s1 –5/3 0 1 –1/3 0 –1
maximization type and the constraints to £ type –1 x2 4/3 1 0 –1/3 0 2
we get
0 s3 5/3 0 0 –2/3 1 1
Maximize W = – Z = – 2x1 – x2 subject to the
constraints Zj–cj 2/3 0 0 1/3 0 –2
–3x1 – x2 £ –3
s1 leaves the basis.
– 4x1 – 3x2 £ –6
Min {|(2/3) / (–5/3)|, | (1/3)/(–1/3) |}
–x1 – 2x2 £ –3
= Min {2/5,1} = 2/5
x1, x2 ≥ 0
Hence x1 enters the basis. The pivot element
The standard form is
is –5/3.
Maximize W = –2x1 – x2 + 0s1 + 0s2 + 0s3
The necessary row transformations are
subject to the constraints
R1(–3/5), R2 + (4/5)R1, R3 + R1
–3x1 – x2 + s1 = –3
The resulting table is
–4x1 – 3x2 + s2 = – 6
–x1 – 2x2 + s3 = –3 Table 5.3
x1, x2, s1, s2, s3 ≥ 0
The initial simplex table is Z x1 x2 s1 s2 s3
XB
CB B –2 –1 0 0 0
Table 5.1
–2 x1 1 0 –3/5 1/5 0 3/5
Z x1 x2 s1 s2 s3 –1 x2 0 1 4/5 –3/5 0 6/5
XB
CB B –2 –1 0 0 0 0 s3 0 0 1 –1 1 0
0 s1 –3 –1 1 0 0 –3 Zj–cj 0 0 2/5 1/5 0 –12/5
0 s2 –4 –3 0 1 0 –6
0 s3 –1 –2 0 0 1 –3 bi ≥ 0 " i, Zj – cj ≥ 0 " j. Hence optimality is
Zj – cj 2 1 0 0 0 0 reached. The solution is x 1 = 3/5, x 2 = 6/5,
Z* = 12/5.
Note: We use the notation XB to represent the Example 5.2 Solve using the dual simplex
values of the current basic variables. method
All Zj – cj ≥ 0 and all the bi < 0 the solution is Maximize Z = –3x 1 – 2x 2 subject to the
not optimal. The most negative bi is –6. Hence the constraints
corresponding basic variable s2 leaves the basis. x1 + x2 ≥ 1
ìï Z j - c j üï x1 + x2 £ 7
Min í : a2 j < 0 ý x1 + 2x2 ≥ 10
ïî a2 j ïþ
x2 £ 3
= min {|2/(–4)| , |1/(–3)|}
= min {1/2, 1/3} = 1/3 x1, x2 ≥ 0
Hence the corresponding variable x2 enters the Solution Rewrite the problem as
basis. –3 is the pivot element. Make the row Maximize Z = –3x1 – 2x2 subject to the cons-
transformations traints
56 Operations Research
W x1 x2 x3 s1 s2 s3 XB –2x1 – x2 + s1 = –2
–1 x1 1 0 0 –1 0 –1 6 x1 + x2 + s2 = –1
0 s2 0 0 3 1 1 2 0 x1, x2, s1, s2 ≥ 0
–2 x2 0 1 –1 0 0 –1 2 The starting simplex table is
S H O RT A N S W E R Q U E S T I O N S
■ ■ ■ ■ ■ ■ ■
1. What is the difference between the regular 2. State the optimality condition in the dual
simplex method and the dual simplex method. simplex method.
EXERCISES
■ ■ ■ ■ ■ ■ ■
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. x1 = 0, x2 = 2/3, x3 = 0 Z* = 4/3 9. x1 = 0, x2 = 1, Z* = –1
2. x1 = 0, x2 = 1, Z* = – 1 10. x1 = 0, x2 = 2/3, x3 = 0, Z* = 4/3
3. x1 = 5, x2 = 7, Z* = 212 11. x1 = 0, x2 = 2, Z* = 2
4. x1 = 1/4, x2 = 5/4, x3 = 0, Z* = 10 12. x1 = 15, x2 = 5/4, Z* = 205
5. x1 = 0, x2 = 3, x3 = 1, Z* = – 36 13. x1 = 4, x2 = 1, Z* = –11
6. x1 = 0, x2 = 14, x3 = 9, Z* = – 9 14. x1 = 3, x2 = 18, Z* = 48
7. x1 = 0, x2 = 2, Z* = 4 15. x1 = 0, x2 = 60, x3 = 40, Z* = –360
8. x1 = 0, x2 = 0, x3 = 4, Z* = 16 16. x1 = 0, x2 = 0, x3 = 5/2, Z* = 5/2
6
Duality
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Given any LPP we can associate another LPP with 6.1 RULES FOR WRITING THE
it. The given problem is called primal and the DUAL OF A PRIMAL
newly constructed problem is called dual. If the
primal has n variables and m constraints then the Primal Dual
dual has m variables and n constraints. The
primal and dual are so related that we can get (i) Maximization Z Æ Minimization W
the solution of the primal from the solution of (ii) Minimization Z Æ Maximization W
(iii) Coefficients of the ü
the dual. Also if the number of constraints in
objective function ý Æ Constants
the primal is greater than the number of variables þ
(iv) Constants Æ Coefficients of the
(m > n) then in the dual the number of constraints objective function
n will be less than the number of variables m. It (v) n variables Æ n constraints
is easier to solve the dual with less number of x1, x2, …, xn
constraints (manipulation work is reduced). Hence (vi) m constraints Æ m variables y 1 ,
we prefer to solve the dual and from the solution y2,…, ym
of the dual we can obtain the solution of the given ü
(vii) Matrix of constraint ýÆ AT
primal. coefficients A þ
In an LPP if the objective is maximization, (viii) ith variable ≥ 0 Æ ith constraint is of
the constraints are £ type and the variables ≥ 0 standard type
it is called the standard type of problem. If the ith variable £ 0 Æ ith constraint not of
objective is minimization then the problem is standard type
of standard type if the constraints are ≥ type ith variable Æ ith constraint is an
and the variables ≥ 0. We give below the rules unrestricted equality
for constructing the dual problem, given a (ix) jth constraint: Æ jth variable ≥ 0
primal. standard type
60 Operations Research
i.e. any feasible solution to the primal is less in the optimal solution of the primal. If x i
than or equal to any feasible solution to the dual. corresponds to si, then xi = a If xi corresponds to
Note: If W Æ • (unbounded solution to the dual) Ri then the value of xi in the optimal solution is
then the primal cannot have a feasible solution. Also xi = b. This fact can be stated as follows. “In the
if Z Æ • (unbounded solution to the primal) solution of the dual find the relative cost factors
then the dual cannot have a feasible solution. of the starting basic variables in the optimal table.
Primal unbounded Æ Dual infeasible In case of a slack variable it represents the optimal
Dual unbounded Æ Primal infeasible. value of the corresponding primal variable. In case
of an artificial variable delete M and change the
Theorem 3 (Fundamental theorem): If both
sign. It gives the optimal value of the corres-
primal and dual have optimal solutions then their
ponding primal variable. This is called principle
optimum values must be equal.
of duality. It helps us to give the solution of the
i.e. Z* = W*.
primal from the solution of the dual without
Proof: Let Z* and W* be the optimum values of Z
solving the primal directly. Also Z* = W*.
and W respectively. The primal is a maximization
problem and the dual is a minimization problem. Example 6.7 Solve the following problem by
Hence for any feasible solutions Z and W of the solving its dual
primal and dual we have Z £ Z* and W* £ W. Maximize Z = x1 + 2x2 subject to the constraints
But we have proved that Z £ W. – x1 + 3x2 £ 10
Since Z* and W* are also feasible solutions we x1 + x2 £ 6
find that Z* £ W* x1 – x2 £ 2
Thus Z £ Z* £ W* £ W. x1 + 3x2 £ 6
Suppose Z* < W*. Then there is a value of Z, 2x1 + x2 £ 4
say Z1 such that Z1 £ W* and Z* < Z1. But Z1 is a x1, x2 ≥ 0
feasible solution of the primal and max Z = Z*. Solution The dual of the given problem is
Hence Z1 £ Z*. But this is a contradiction. Minimize W = 10y1 + 6y2 + 2y3 + 6y4 + 4y5
Hence Z* = W* subject to the constraints
–y1 + y2 + y3 + y4 + 2y5 ≥ 1
6.3 PRINCIPLE OF DUALITY 3y1 + y2 – y3 + 3y4 + y5 ≥ 2
y1, y2, y3, y4, y5 ≥ 0
Each variable xi of the primal corresponds to a The standard form of the dual is
constraint ci of the dual. This constraint contains Maximize W1 = –W = –10y1 – 6y2 – 2y3 – 6y4 –
a slack or artificial variable (si or Ri) of the dual 4y5 subject to the constraints
which becomes a starting basic variable. In the – y1 + y2 + y3 + y4 + 2y5 – s1 + R1 = 1
optimal table of the dual note down the relative 3y1 + y2 – y3 + 3y4 + y5 – s2 + R2 = 2
cost factor of si (say a) or Ri (say M – b). This y1, y2, y3, y4, y5, s1, s2, R1, R2 ≥ 0
corresponds to the value of the primal variable xi The simplex table (Big M method) is
Table 6.1
W1 y1 y2 y3 y4 y5 s1 s2 R1 R2
XB
CB B – 10 –6 –2 –6 –4 0 0 –M –M
–M R1 –1 1 1 1 2 –1 0 1 0 1
–M R2 3 1 –1 3 1 0 –1 0 1 2
cj 10 – 2M 6 – 2M 2 6 – 4M 4 – 3M M M 0 0 – 3M
R1 – (1/3)R2 R2/3
64 Operations Research
y1 y2 y3 y4 y5 s1 s2 R1 R2
XB
CB B –10 –6 –2 –6 –4 0 0 –M –M
–M R1 –2 2/3 4/3 0 5/3 –1 1/3 1 –1/3 1/3
–6 y4 1 1/3 –1/3 1 1/3 0 –1/3 0 1/3 2/3
c j 4 + 2M 4 – (2M/3) 4 – (4M/3) 0 2 – (5M/3) M 2 – (M/3) 0 4M/3 – 2 – 4 – M/3
R1(3/5), R2 – (1/5)R1
–4 y5 –6/5 2/5 4/5 0 1 –3/5 1/5 3/5 –1/5 1/5
–6 y4 7/5 1/5 –3/5 1 0 1/5 –2/5 –1/5 2/5 3/5
cj 32/5 16/5 12/5 0 0 6/5 8/5 M – 6/5 M – 8/5 – 22/5
The optimality is reached. Relative cost factors Maximize W1 = – y1 + 4y2¢ – 3y3 + 0s1 + 0s2
of the starting basic variables R1 and R2 in the – MR1 – MR2 subject to the constraints
optimal table are M – 6/5 and M – 8/5. Deleting M y1 – y2¢ + y3 – s1 + R1 = 3
and changing the sign we get 6/5, 8/5. Variables – y1 – y2¢ – 3y3 – s2 + R2 = 4
corresponding to the constraints are x1 and x2. y1, y2¢, y3 ≥ 0
Therefore, x1 = 6/5 and x2 = 8/5 are the values of The simplex table is
x1 and x2 giving optimal solution of the primal.
Thus x1 = 6/5, x2 = 8/5, Z* = W* = – W1* = 22/5 is Table 6.2
the solution of the given LPP. W1 y1 y 2¢ y3 s1 s2 R1 R2
XB
Example 6.8 Using the duality theory solve: CB B –1 4 –3 0 0 –M –M
Maximize Z = 3x 1 + 4x 2 subject to the –M R1 1 –1 1 –1 0 1 0 3
constraints –M R2 –1 –1 –3 0 –1 0 1 4
x1 – x2 £ 1
x1 + x2 ≥ 4 cj 1 2M – 4 2M + 3 M M 0 0 –7M
x1 – 3x2 £ 3
The current solution is optimal. But R1 and R2
x1, x2 ≥ 0
are present in the optimal basis at + ve level. Hence
Solution The given problem (primal) is
W1 Æ – •, which shows that the primal problem
Maximize Z = 3x 1 + 4x 2 subject to the
has no feasible solution.
constraints
x1 – x2 £ 1 Example 6.9 Using duality theory solve
x1 + x2 ≥ 4 Maximize Z = 4x 1 + 3x 2 subject to the
x1 – 3x2 £ 3 constraints
x1, x2 ≥ 0 2x1 + x2 £ 10
The dual is x1 + x2 £ 8
Minimize W = y1 + 4y2 + 3y3 subject to the x1, x2 ≥ 0
constraints Solution The dual problem is
y1 + y2 + y3 ≥ 3 Minimize W = 10y 1 + 8y 2 subject to the
– y1 + y2 – 3y3 ≥ 4 constraints
y1 ≥ 0, y2 £ 0, y3 ≥ 0 2y1 + y2 ≥ 4
Take y2¢ = – y2 y1 + y2 ≥ 3
The standard form of the dual is y1, y2 ≥ 0
Duality 65
Solution The dual problem is Maximize W1 = y1¢ – 7y2 – 10y3 – 3y4 + 0s1
Minimize W = y1 + 7y2 + 10y3 + 3y4 subject to + 0s2 – MR1 – MR2 (y1¢ = – y1) subject to the
the constraints constraints
y1 + y2 + y3 ≥ 3 – y1¢ + y2 + y3 – s1 + R1 = 3
y1 + y2 + 2y3 + y4 ≥ 2 – y1¢ + y2 + 2y3 + y4 – s2 + R2 = 2
y1 £ 0, y2, y3, y4 ≥ 0 y1¢, y2, y3, y4, s1, s2, R1, R2 ≥ 0
The standard form is The simplex table is
Table 6.5
W1 y1¢ y2 y3 y4 s1 s2 R1 R2 XB
CB B 1 –7 –10 –3 0 0 –M –M
–M R1 –1 1 1 0 –1 0 1 0 3
–M R2 –1 1 2 1 0 –1 0 1 2
cj 2M – 1 7 – 2M 10 – 3M 3–M M M 0 0 – 5M
R1(2), R2 + R1
0 S2 –1 1 0 –1 –2 1 2 –1 4
–10 y3 –1 1 1 0 –1 0 1 0 3
cj 4 –3 0 3 10 0 M – 10 M –30
R1 – R2
0 s2 0 0 –1 –1 –1 1 1 –1 1
–7 y2 –1 1 1 0 –1 0 1 0 3
cj 6 0 3 3 7 0 M–7 M –21
resources. The dual objective is to minimize the Proof: In the optimal table if a primal variable
cost of the resources by considering many xj has Zj – cj > 0 then xj is non-basic and hence
alternatives. The worth of the alternative uses is xj = 0.
called accounting or shadow prices of the Also in the optimal dual table, if a dual variable
resources. The shadow prices are determined along yi has positive value then the ith primal constraint
with minimization objective. The management of n
the business will be interested in finding the å aij x j £ bi must become an equation since the
j =1
shadow prices so as to minimize the expenditure
associated with existing capacities of the various corresponding slack variable is zero.
If we assume that vj is the surplus variable for
resources.
the jth dual constraint and si is the slack variable
for the ith primal constraint then
6.5 COMPLEMENTARY m
SLACKNESS THEOREM vj = Zj – cj = å aij yi - c j (1)
i =1
A pair of primal and dual feasible solutions n
xi (i = 1, 2, 3….n) and yj (j = 1, 2, 3…m) are optimal and si = bi – å aij x j (2)
i =1
to their respective problems if and only if the
In other words, if
following conditions are satisfied:
vj > 0 then xj = 0 and if yi > 0 then si = 0.
æ n ö Therefore for the optimal solutions of the primal
yi ç bi - å aij x j ÷ = yi si = 0 i = 1, 2, 3, ..., m and dual
è j =1 ø
vjxj = 0 and yisi = 0 for all i and j.
æm ö This result can be restated as
x j ç å aij yi - c j ÷ = x j v j = 0 j = 1, 2, 3, ..., n é ù
è i =1 ø ém ù n
x j êå aij yi - c j ú = 0 and yi êbi - å aij x j ú = 0
where si and vj are slack and surplus variables ë i =1 û ëê j =1 ûú
associated with the primal and dual constraints. Hence the result.
S H O RT A N S W E R Q U E S T I O N S
■ ■ ■ ■ ■ ■ ■
EXERCISES
■ ■ ■ ■ ■ ■ ■
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Step 2 Obtain an initial basic feasible solution. Taking e(1) as B0(1) we can write B1 as
Initial basis matrix B = Im. Corresponding to each æ 1 -CB ö
B1 = ç
è 0 B ÷ø
column a j of the matrix A, a new (m + 1)
component vector is defined as
[a0j, a1j, a2j º amj] = [– cj, a1j, a2j º amj] B0(1) B1(1) B2(1) K Bm(1)
\ aj(1) = [– cj aj] æ 1 -CB1 -CB 2 L - CBm ö
Similarly, b(1) = [0, b1, b2 º bm]T ç0 B B12 L - B1m ÷
= ç ÷
11
= [0 b]T ç: : : : ÷
ç0 B Bmn ÷ø
The column corresponding to Z (or x 0) is è m1 Bm 2
the (m + 1) component unit vector denoted by e(1). Since B is invertible, we get
The basis matrix B1 of order (m + 1) can be
æ 1 CB B -1 ö
written as
B1 = ç
–1 ÷
B1 = [ e1(1) B1(1) B2(1) º Bm(1)] è 0 B -1 ø
The initial simplex table is
Basic B0(1)( = Z) B1(1)( = s1) B2(1)( = s2) º Bm(1)( = sm) Solution YK(1)
Variable º values
B XB(1)
Z 1 0 0 º 0 0 Zk – ck
s1 0 1 0 º 0 b1 y1k
s2 0 0 1 º 0 b2 y2k
M M M M º M M M
sm 0 0 0 º 1 bm ymk
Step 3 Select the entering variable (Pivot Step 5 Update the current solution
column) Update the initial table by introducing the
For each non-basic variable calculate new basic variable x k (= a k(1)) into the basis
and removing the variable xr (= Br(1)) from the
Zj – cj = CBB1–1 aj(1) – cj
basis.
If all the Zj – cj = 0 current solution is optimal. Repeat step 3 to step 5 till an optimal solution
If some Zj – cj < 0 then select is reached or there is an indication of unbounded
Zk – ck = Max {| Zj – cj | : Zj – cj < 0 } solution (yik £ 0 for all i)
Step 4 Select the leaving variable (Pivot row) Example 7.1 Solve the following LPP using the
Calculate yk(1) = B1– 1ak(1) revised simplex method.
Maximize Z = 2x1 + x2
where ak(1) = [– ck ak] subject to the constraints
Find the ratio 3x1 + 4x2 £ 6
xBr /yrk = Min {xBi/yik : yik > 0 } 6x1 + x2 £ 3
Thus the vector Br(1) leaves the basis. x1, x2 ≥ 0
Revised Simplex Method 73
æ1 0 0ö
æ -2 ö
Basic matrix B1 = ç 0 0÷ = I
ç
1
÷ = ak(1)= ç 3÷ for k = 1
è0 0 1ø ç ÷
è 6ø
æ 1 CB B -1 ö xB(1) = B – 1b
B1–1 = ç ÷, æ 0ö
è 0 B -1 ø
= b = ç 6÷
ç ÷
æ1 0ö è 3ø
B= ç
è0 1 ÷ø xBr /yrk = Min {6/3 3/6}
= 3/6 = xB2/y21
CB = [ 0 0 ] \ B2(1) leaves the basis
Initial table is We get B1(1) B2(1) XB(1) y1(1)(Zk – ck)
æ 0 0 0 -2 ö
B0(1) B1(1) B2(1) XB(1) Yk(1) ç1 0 6 3÷
Basic
variables Z s1 s2 ç ÷
B è0 1 3 6ø
Z 1 0 0 0 Zk – ck Make row operations
R¢1 = R1 + (2/6) R3,
s1 0 1 0 6
R¢2 = R2 – (3/6) R3,
s2 0 0 1 3
R¢3 = R3/6
74 Operations Research
XBr /yrk = Min {XBi /yi2, yi2 > 0} B1(1) B2(1) B3(1) XB(1) Y2(1)
= Min {XB1/y12, XB2/y22, XB3/y32} æ0 0 0 0 -5ö
= Min {4/0, 6/1, 18/2 } ç1 0 0 4 0÷
ç0 1 0 6 1÷
= 6 = xB2/y22 è0 0 1 18 2ø
(1)
Thus B2 (s2) leaves the basis.
Make row transformations
We get
R11 = R1 + 5R3, R21 = R2, R31 = R3, R41 = R4 – 2R3
y3(1) = B1–1a3(1) Zj – cj = 1 0 - M
( ( 3M - 2 ) /2 )
æ1 0 -M -M ö æ 2ö æ -4 1 0 M ö
ç0 1 0 0 ÷ ç 2÷ ç 2 -3 0 0 ÷
= ç ÷ ç ÷ ç ÷
ç0 0 1 0 ÷ ç 3÷ ç -5 2 -1 0 ÷
çè 0 0 0 1 ÷ø
çè 2 ÷ø çè -3 0 0 1÷ø
æ -5M + 2 ö
ç 2 ÷ = ëé M 2 - 1, -2 M + 1, M , ( 5M - 2 ) /2 ûù
ç ÷ x2 enters the basis
= ç 3 ÷
çè 2 ÷ø y2(1) = B1–1 a2(1)
æ1 0 -M (3M - 2)/2 ö æ 1ö
XB(1) = B1–1b1 ç0 1 0 -1 ÷ ç -3÷
æ1 0 -M -M ö æ 0ö ç ÷ ç ÷
= ç0 0 1 -3 2 ÷ ç 2÷
ç0 0 ÷ ç 12 ÷ çè 0 1 2 ÷ø çè 0÷ø
1 0
= ç ÷ ç ÷ 0 0
ç0 0 1 0 ÷ ç 4÷
çè 0 0 0 1 ÷ø
çè 1÷ø æ -2M + 1ö
ç -3 ÷
æ -5M ö = ç ÷
ç 12 ÷ ç 2 ÷
= ç ÷ çè 0 ÷ø
ç 4÷
çè XB(1) = B1– 1b1
1÷ø
XBr /yrk = XBr /Yr3 æ1 0 -M (3M - 2)/2 ö æ 0ö
ç0 1 0 -1 ÷ ç 12 ÷
= Min (12 2 4 3 1 2 ) = 1/2 ç ÷ ç ÷
= ç0 0 1 -3 2 ÷ ç 4÷
\ r=3 \ R2 leaves the basis çè 0
We get 0 0 1 2 ÷ø çè 1÷ø
EXERCISES
■ ■ ■ ■ ■ ■ ■
ANSWERS
■ ■ ■ ■ ■ ■ ■
In general the variables of a linear programming become infeasible. Therefore we use a special
problem have to satisfy the non-negativity technique for upper bound constraints.
constraint xj ≥ 0. In certain LP problems, some or Instead of taking the constraint
all of the variables may have lower and upper limits xj + x¢j = uj
to their values. Such a problem can be written as We modify the feasibility condition of the
Maximize Z = CX simplex method. In the regular simplex method
subject to AX = b all non-basic variables are assigned zero values.
lj £ xj £ uj ( j = 1, 2, 3, …, n) But in the upper bound technique a basic variable
becomes non-basic with its upper bound value.
where lj and uj are the lower and upper limits of
Also when a non-basic variable enters the basis
the variable xj. We may convert these constraints
its value should not exceed its upper bound.
to equalities by introducing slack and surplus
variables as follows:
8.1 STEP-BY-STEP PROCEDURE
xj + x¢j = uj
xj – x≤j = lj
OF BOUNDED VARIABLE
TECHNIQUE
This gives rise to 3n variables and m + 2n
constraints. This problem can be reduced in size Step 1 Write the given LPP in the standard form
as follows.
by introducing slack and surplus variables.
xj – x≤j = lj can be written as
xj = lj + x≤j for lower bound constraint Step 2 If any variable xj has lower bound it
should be substituted with xj = lj + x¢j where x¢j ≥ 0.
This eliminates xj from all the other constraints
and the problem can be solved as usual. If we take Step 3 Obtain an initial basic solution.
xj = uj – x¢j for upper bound constraint then a
difficulty arises. There is no guarantee that uj – x¢j Step 4 If Zj – cj = 0 " j, then the current solution
is non-negative and hence the problem may is optimal. Otherwise choose the most negative
Bounded Variable Technique 83
Step 7 Go to step 4 and repeat the procedure till Introduce x2 and drop s1 . R2 – R1
optimality is reached.
x1 x2 x3 s1 s2 XB
Example 8.1 Use bounded variable technique
CB B 1 3 –2 0 0
and solve:
Maximize Z = x1 + 3x2 – 2x3 3 x1 0 1 –2 1 0 1
0 s2 2 0 4 –1 1 7
subject to the constraints
Zj – cj –1 0 –4≠ 3 0 3
x2 – 2x3 £ 1
uj 1 3 2 • •
2x1 + x2 + 2x3 £ 8
0 £ x1 £ 1, 0 £ x2 £ 3, 0 £ x3 £ 2 II Iteration x3 enters the basis
q1 = min {7/4} = 7/4 corresponding to s2
Solution The standard form of the LPP is
q2 = min {u2 – XB1/ – a13} = (3 – 1)/– (–2)
Maximize Z = x1 + 3x2 – 2x3 + 0s1 + 0s2
= 2/2 = 1 corresponding to x2
subject to the constraints
q3 = u3 = 2
0x1 + x2 – 2x3 + s1 = 1
q = min {q1, q2, q3} = min {7/4, 1, 2} = 1
2x1 + x2 + 2x3 + s2 = 8 q = q2
0 £ x1 £ 1, 0 £ x2£ 3, 0 £ x3 £ 2,0 £ s1 £ •, \ x2 leaves the basis.
0 £ s2 £ • Introduce x3 and drop x2 R1/ – 2, R2 + 2R1
84 Operations Research
x1 x2 s1 s2 s3 s4 s5 XB x1 x2 s1 s2 s3 s4 s5 XB
CB B 3 2 0 0 0 0 0 CB B 3 2 0 0 0 0 0
3 x1 1 –3 1 0 0 0 0 3 0 s1 –1/2 0 1 –3/2 0 0 0 –3
0 s2 0 1 –1 1 0 0 0 1 2 x2 –1/2 1 0 –1/2 0 0 0 –2
0 s3 0 7 –2 0 1 0 0 14 0 s3 5/2 0 0 1/2 1 0 0 22
0 s4 0 6 –1 0 0 1 0 27 0 s4 5/2 0 0 3/2 0 1 0 36
0 s5 0 –2 1 0 0 0 1 9 0 s5 –1/2 0 0 1/2 0 0 1 8
Zj – cj –0 –11 3 0 0 0 0 9 Zj – cj –4 0 0 –1 0 0 0 –4
uj 8 6 • • • • • uj 8 6 0 0 0 0 0
R2 – R1, R3 – 2R1, R4 – R1, R5 + R1
x1 becomes non-basic. It must be substituted at its
upper bound. Hence we get,
II Iteration x2 enters the basis.
q1 = min {1/1 14/7 27/6} x1 = 8 – x1¢
= 1 corresponding to s2 X¢B1 = XB1 – a11u1 = –3 – (–1/2)8 = 1
q2 = min {(8 – 3)/ – (–3), •} = 5/3 X¢B2 = XB2 – a21u1 = –2 – (–1/2)8 = 2
q3 = u2 = 6 X¢B3 = XB3 – a31u1 = 22 – (5/2)8 = 2
q = min {1, 5/3, 6} X¢B4 = XB4 – a41u1 = 36 – (5/2)8 = 16
= 1 corresponding to s2
X¢B5 = XB5 – a51u1 = 8 – (–1/2)8 = 12
\ s2 leaves the basis
Z¢0 = Z0 – (Z1 – c1)u1 = – 4 – (– 4)8 = 28
x1 x2 s1 s2 s3 s4 s5 XB The updated table is
CB B 3 2 0 0 0 0 0
x1¢ x2 s1 s2 s3 s4 s5 XB
3 x1 1 0 (–2) 3 0 0 0 6
0 x2 0 1 –1 1 0 0 0 1 CB B –3 2 0 0 0 0 0
0 s3 0 0 5 –7 1 0 0 7 0 s1 1/2 0 1 –3/2 0 0 0 1
0 s4 0 0 5 –6 0 1 0 21 2 x2 1/2 1 0 –1/2 0 0 0 2
0 s5 0 0 –1 2 0 0 1 11 0 s3 –5/2 0 0 1/2 1 0 0 2
Zj – cj 0 0 –8 ≠ 11 0 0 0 20 0 s4 –5/2 0 0 3/2 0 1 0 16
uj 8 6 • • • • • 0 s5 1/2 0 0 1/2 0 0 1 12
–4 0 0 –1 ≠ 0 0 0 28
R1 + 3R2, R3 – 7R2, R4 – 6R2, R5 + 2R2
EXERCISES
■ ■ ■ ■ ■ ■ ■
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
In linear programming each variable is allowed to x1, x2, x3, …, xn ≥ 0 and are all integers.
take any non-negative real (fractional) value. But We may be tempted to solve this problem by
there are certain problems in which the variables the simplex method, ignoring the integer restriction
cannot assume fractional values. For example if
and then round off the non-integral values of the
x 1 represents the number of workers and x 2
represents the number of machines then their variables in the optimal solution. But then the
values can be only integers. It is meaningless to integer valued solution may not satisfy all the
take 8.7 workers or 3.2 machines. Hence in such constraints, leading to an infeasible solution. For
situations the variables must have only integer example, consider the LPP.
values. In a problem if all the decision variables Maximize Z = x1 + x2
are required to assume non-negative integer values subject to the constraints
it is called pure integer programming. If, on the
other hand, only some of the variables are 3x1 + 4x2 £ 14
restricted to assume non-negative integer values x1, x2 ≥ 0 and are integers.
it is called mixed integer programming problem. The optimal solution of this problem is found
Problems involving allocation of goods, men, (by graphical method) to be
machines, etc. are integer programming problems. x1 = 14/3, x2 = 0, Z* = 14/3
Suppose that the given pure integer program-
ming problem is If we round off the solution as x1 = 5, x2 = 0
Maximize Z = c1x1 + c2x2 + … + cnxn then the constraint 3x1 + 4x2 £ 14 is not satisfied.
subject to the constraints On the other hand if we take x1 = 4 then Z* = 4
a11x1 + a12x2 + … + a1nxn = b1 which is not optimal.
a21x1 + a22x2 + … + a2nxn = b2 Thus we find that it is necessary to develop a
: : : systematic and efficient method to solve an integer
am1x1 + am2x2 + … + amnxn = bm programming problem (IPP).
90 Operations Research
Step 1 Solve the given LPP using the simplex In the optimal solution obtained x2 assumes
method ignoring the integer constraint. integer value. But x1 has a fractional value. Hence
Step 2 If the optimal values of all the variables we generate a Gomary’s cut. The constraint
are integers it is itself the solution of the LPP. Stop. corresponding to x1 is
Integer Programming 91
x1 x2 s1 s2 s t XB we have frj – xj £ – 1 + fr
CB B 1 4 0 0 0 0 Multiply both sides by the negative number
(fr /fr – 1).
4 x2 0 1 0 0 1 0 1
We get (fr /fr – 1) S frj – xj ≥ fr (2)
0 s2 0 0 0 1 7 –5 7
1 x1 1 0 0 0 –2 1 1
Combining (1) and (2) we find that any feasible
solution must satisfy the inequality,
0 s1 0 0 1 0 0 –2 1
S frj + xj + (fr /fr – 1) S frj – xj ≥ fr
Zj - cj 0 0 0 0 2 1 5 (Optimal)
Introducing a slack variable s,
Solution of the given IPP is s + fr = S frj + xj + (fr /fr – 1) S frj – xj
x1 = 1, x2 = 1, Z* = 5 or s – S frj + xj – (fr /fr – 1) S frj – xj = – fr 0 < fr < 1
This is the Gomary’s constraint.
9.3 MIXED INTEGER
Adding this new constraint to the table find
PROGRAMMING a new optimal solution using dual simplex
In the previous section we discussed Gomary’s method.
method to solve IPP where all the variables Example 9.4 Solve the following mixed integer
including slack variables were restricted to take programming problem:
integer values. In the mixed integer programming, Maximize Z = – 3x1 + x2 + 3x3
only some of the decision and slack variables are
subject to the constraints
restricted to assume integer values.
Ignoring the integer restriction, we solve the – x1 + 2x2 + x3 £ 4
LPP. In the optimal table suppose xr has the largest 2x2 – (3/2)x3 £ 1
fractional part. Then the corresponding constraint x1 – 3x2 + 2x3 £ 3
can be written as
x1, x2, x3 ≥ 0 x3 is an integer.
br = xr + S arj xj + S arj xj (j π r)
(arj ≥ 0 ) (arj < 0) Solution The standard form is
[br] + fr = (1 + 0) xr + S {[arj] + frj} xj (arj ≥ 0) + Maximize Z = –3x1 + x2 + 3x3 + 0s1 + 0s2 + 0s3
S{[arj] + frj}xj (arj < 0). subject to the constraints
Rewriting this equation such that all the integer – x1 + 2x2 + x3 + s1 = 4
coefficients appear on the RHS, we get 4x2 – 3x3 + s2 = 2
S + frj xj + S – frj xj = fr + [br] – xr – arj + – arj – x1 – 3x2 + 2x3 + s3 = 3
= fr + I (0 < fr < 1) x1, x2, x3, s1, s2, s3 = 0 x3 is an integer.
where I is the integer value. LHS is positive or The simplex table is
negative according as fr + I is positive or negative.
x1 x2 x3 s1 s2 s3 XB
Case (I) Let fr + I be positive.
CB B –3 1 3 0 0 0
Then S frj+ xj + S frj – xj ≥ fr 0 s1 –1 2 1 1 0 0 4
Since S frj + xj ≥ S frj + xj + S frj–xj 0 s2 0 4 –3 0 1 0 2
we have S frj + xj ≥ fr (1) 0 s3 1 –3 2 0 0 1 3
x1 x2 x3 s1 s2 s3 XB x 1 x 2 x3 s1 s2 s3 s XB
CB B –3 1 3 0 0 0 CB B –3 1 3 0 0 0 0
0 s1 –3/2 7/2 0 1 0 –1/2 5/2
1 x2 –1/3 1 0 1/2 0 0 –1/2 1
0 s2 3/2 –1/2 0 0 1 3/2 13/2
3 x3 1/2 –3/2 1 0 0 1/2 3/2 0 s2 1/3 0 0 –2 1 0 5 4
Zj – cj 9/2 –11/2 0 0 0 3/2 9/2 3 x3 –1/3 0 1 0 0 0 1 2
x1 x2 x3 s1 s2 s3 s XB R1 –R2/10, R2/4
EXERCISES
■ ■ ■ ■ ■ ■ ■
x1 + x2 £ 5 x2 £ 5
–2x1 + 4x2 £ 11 x1, x2 ≥ 0 and are integers.
x1, x2 ≥ 0 x2 is an integer. 16. Minimize Z = 3x1 + 2.5x2
10. Minimize Z =10x1 + 9x2 subject to the constraints
subject to the constraints x1 + 2x2 ≥ 20
x1 £ 8 3x1 + 2x2 ≥ 50
x2 £ 10 x1, x2 ≥ 0 and are integers.
5x1 + 3x2 ≥ 45 17. Maximize Z = 2x1 + 3x2
x1, x2 ≥ 0 x1 is an integer. subject to the constraints
11. Maximize Z = 4x1 + 6x2 + 2x3 x1 + 3x2 £ 9
subject to the constraints 3x1 + x2 £ 7
4x1 – 4x2 £ 5 x1 – x2 £ 1
–x1 + 6x2 £ 5 x1, x2 ≥ 0 and are integers.
–x1 + x2 + x3 £ 5 18. Maximize Z = 7x1 + 6x2
x1, x2, x3 ≥ 0 x1, x3 are integers. subject to the constraints
12. Maximize Z = 20x1 + 17x2 2x1 + 3x2 £ 12
subject to the constraints 6x1 + 5x2 £ 30
4x1 + 3x2 £ 7 x1, x2 ≥ 0 and are integers.
x1 + x2 £ 4 19. Maximize Z = 5x1 + 4x2
x1, x2 ≥ 0 and are integers.
subject to the constraints
13. Maximize Z = 4x1 + 3x2
subject to the constraints x1 + x2 ≥ 2
5x1 + 3x2 £ 15
x1 + 2x2 £ 4
3x1 + 5x2 £ 15
2x1 + x2 £ 6
x1, x2 ≥ 0 and are integers.
x1, x2 ≥ 0 and are integers.
14. Maximize Z = 3x1 + 2x2 20. Maximize Z = 3x1 + 2x2 + 5x3
subject to the constraints subject to the constraints
2x1 + x2 £ 60 5x1 + 3x2 + 7x3 £ 28
x1 £ 25 4x1 + 5x2 + 5x3 £ 30
x2 £ 35 x1, x2 , x3 ≥ 0 and are integers.
x1, x2 ≥ 0 and are integers. 21. Maximize Z = 3x1 + 6x2 + 8x3
15. Maximize Z = 3x1 + 5x2 subject to the constraints
subject to the constraints 5x1 + 4x2 + 8x3 £ 24
2x1 + 4x2 £ 25 2x1 + 4x2 – x3 £ 7
x1 £ 8 x1, x2 , x3 ≥ 0 and x3 is an integer.
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. x1 = 1, x2 = 1, Z* = 4 [x1 = 0, x2 = 2, Z* = 4] 6. x1 = 4, x2 = 3, Z* = 55
2. x1 = 1, x2 = 2, Z* = – 8 7. x1 = 9, x2 = 2, Z* = 101
3. x1 = 3, x2 = 2, Z* = 5, [x1 = 4, x2 = 1, Z* = 5] 8. x1 = 2, x2 = 0, x3 = 2, Z* = –16
4. x1 = 4, x2 = 3, Z* = 10 9. x1 = 1/2, x2 = 3, Z* = –17/2
5. x1 = 0, x2 = 3, Z* = 12 10. x1 = 8, x2 = 5/3, Z* = 95
Integer Programming 97
x1 + 2x2 + s2 = 4 X2
x1, x2, s1, s2 ≥ 0 4
Z x1 x2 s1 s2 XB
CB B 2 2 0 0 (0, –83 ) 3
0 s1 5 3 1 0 8
0 s2 1 2 0 1 4
2
cj –2 –2 0 0 0
R1/5, R2 – R1/5 (1,1) (3)
(0,1) 1
2 x1 1 3/5 1/5 0 8/5
0 s2 0 7/5 –1/5 1 12/5
cj 0 – 4/5 2/5 0 16/5 O 1 2 3 4 X1
( –8 , 0
) (1) (2)
R1 – (3/7)R2, R2(5/7) 3
2 x1 1 0 2/7 –3/7 4/7
Fig. 9.1
2 x2 0 1 –1/7 5/7 12/7
cj 0 0 2/7 4/7 32/7(Optimal) The solution is x1 = 1, x2 = 1, Z* = 4 which is an
integer solution. The lower bound of Z is 4. No
The non-integer optimal solution is sub-problem is to be taken. It is fathomed.
x1 = 4/7, x2 = 12/7, Z* = 32/7 Solution of the sub-problem (2)
x2 has the maximum fractional part 5/7
X2
x2 = 12/7, 1< x2 < 2
Take two constraints 4
x2 £ 1 and x2 ≥ 2
Sub-problem (1) (0, 83– ) 3
Maximize Z = 2x1 + 2x2
subject to the constraints ( –25 , 2) (3)
5x1 + 3x2 £ 8 (0,2) 2
x1 + 2x2 £ 4
x2 £ 1 (1,1)
1
x1, x2 ≥ 0
Sub-problem (2)
Maximize Z = 2x1 + 2x2 O 1 2 3 4 X1
subject to the constraints (1) (2)
5x1 + 3x2 £ 8
x1 + 2x2 £ 4 Fig. 9.2
x2 ≥ 2 The optimal integer solution is
x1, x2 ≥ 0
x1 = 0, x2 = 2, Z* = 4. It is fathomed. Hence the
Solution of sub-problem (1) (by graphical integer solution is given by
method) x1 = 1, x2 = 1, Z* = 4. (or) x1 = 0, x2 = 2, Z* = 4
Integer Programming 99
30
(0,25)
20
10
(16,2) (3)
O 10 20 30 40 X1
(2) (1)
Fig. 9.4
Fig. 9.3
Solution of sub-problem (2) (Graphical method)
The solution is X2
x1 = 15, x2 = 2.5, Z1 = 51.25 40
Z1 = 51.25 is the lower bound. Z value in the
subsequent sub-problems cannot be less than
51.25. 30
x2(= 2.5) is the only non-integer value. Hence
(0,25)
we get two sub-problems (1) and (2).
20
Sub-problem (1)
Minimize Z = 3x1 + 2.5x2
subject to the constraints
x1 + 2x2 ≥ 20
10 (44
— , 2)
3
3x1 + 2x2 ≥ 50 (3)
x2 £ 2 O 10 20 30 40 X1
x1, x2 are non-negative integers. (2) (1)
Sub-problem (2)
Minimize Z = 3x1 + 2.5x2 Fig. 9.5
subject to the constraints
x1 + 2x2 ≥ 20 The solution is x1 = 44/3, x2 = 3, Z3 = 51.5
100 Operations Research
X2
(4)
40
30
(0,25)
20
Fig. 9.8
10
Example 9.8 Branch and Bound Method
(14,4) (3)
Maximize Z = 7x1 + 9x2
subject to the constraints
O 10 20 30 40 X1
(2) (1)
–x1 + 3x2 £ 6
7x1 + x2 £ 35
Fig. 9.6
x1 £ 7
x2 £ 7
Solution is x1 = 14, x2 = 4, Z4 = 52 x1, x2 are non-negative integers.
Integer Programming 101
EXERCISES
■ ■ ■ ■ ■ ■ ■
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. x1 = 0, x2 = 3, Z* = 12 6. x1 = 2, x2 = 1, Z* = 3
2. x1 = 4, x2 = 1, Z* = 540 7. x1 = 4, x2 = 3, Z* = 10
3. x1 = 0, x2 = 3, Z* = 9 8. x1 = 3, x2 = 0, Z* = 12
4. x1 = 9, x2 = 2, Z* = 101 9. x1 = 13, x2 = 34, Z* = 107
5. x1 = 1, x2 = 1, Z* = 5 10. x1 = 1, x2 = 1, Z* = 37
10
Sensitivity Analysis
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Table 10.7
Example 10.4 Consider the LPP
Maximize Z = 4x1 + 6x2 + 2x3 subject to the
II Iteration constraints
3 x3 1/5 0 1 0 2/5 1/10 –1/10 11/10 x1 + x2 + x3 £ 3
2 x2 1 1 0 0 0 5/2 1/2 21/2 x1 + 4x2 + 7x3 £ 9
4 x4 2/5 0 0 1 –1/5 17/5 3/10 47/10
x1, x2, x3 ≥ 0
Discuss the effect on the optimal solution when
c j 16/5 0 0 0 2/5 189/10 19/10 431/10 the constants are changed from (3, 9) to (9, 6).
106 Operations Research
Solution The optimal solution obtained by the Solution By using the big M method the
simplex method is following optimal solution is obtained
The condition for the current optimal solution 10.4 ADDITION OF A VARIABLE
to remain optimal, is
Max {–(Zj – cj)/l) £ Dark = Min {–(Zj – cj)/l} Suppose we add a new variable with coefficients
l>0 l<0 column an+1 and cost cn+1 in the objective function.
We compute
Example 10.6 Consider the LPP yn + 1 = B–1an + 1
Maximize Z = 5x1 + 12x2 + 4x3 subject to the and Zn + 1 – cn + 1 = CB yn + 1 – cn + 1
constraints If Zn + 1 – cn + 1 ≥ 0 the current solution continues
x1 + 2x2 + x3 £ 5 to be optimal.
2x1 – x2 + 3x3 = 2 If Zn + 1 – cn + 1 < 0 apply the simplex method
x1, x2, x3 ≥ 0 and obtain a new optimal solution.
Discuss the effect of changing the column
Example 10.7 Consider the LPP
æ 1ö æ -5ö Maximize Z = 3x1 + 5x2 subject to the constraints
a3 = ç ÷ to ç ÷
è 3ø è 2ø 3x1 + 2x2 £ 18
on the optimal solution. x1 £ 4
Solution Applying big-M method we get the x2 £ 6
x1, x2 ≥ 0
optimal solution as
Discuss the change in the optimal solution when
Table 10.11 a new variable x3 is introduced with cost coefficient
2 and
x1 x2 x3 s1 R1
XB æ 1ö
CB B 5 12 4 0 –M
a3 = çç 1÷÷
12 x2 0 1 –1/5 2/5 –1/5 8/5
è 1ø
5 x1 1 0 7/5 1/5 2/5 9/5
Solution Introducing slack variables s1, s2, s3 and
cj 0 0 3/5 29/5 M–2/5 141/5 applying the simplex method we get the optimal
solution.
æ -5ö Table 10.13
When the x3 column is changed to ç ÷ the
è 2ø x1 x2 s1 s2 s3
rd
XB
new 3 column is CB B 3 5 0 0 0
3 x1 1 0 1/3 0 –2/3 2
æ a13¢ ö æ 2 / 5 -1 / 5ö æ -5ö æ -12 / 5ö
= = 0 s2 0 0 –2/3 1 4/3 0
èç a23¢ ø÷ èç 1 / 5 2 / 5ø÷ èç 2 ø÷ èç -1 / 5ø÷ 5 x2 0 1 0 0 1 6
The table becomes Cj 0 0 1 0 3 36
y3 = B–1a3
æ yj ö
æ 1 / 3 0 -2 / 3ö æ 1ö æ -1 / 3ö = ç ÷
è m +1, j
a - y jø
= ç -2 / 3 1 4 / 3 ÷ ç 1÷ = ç 5 / 3 ÷
a
ç ÷ç ÷ ç ÷
è 0 0 1 ø è 1ø è 1 ø Now Zj* – cj = Z*yj* – cj
Z3 – c3 = CBy3 – c3 æ yj ö
æ -1 / 3ö = [CB CBm +1 ] ç - cj
è am +1, j - a y j ÷ø
= (3 0 5 ) çç 5 / 3 ÷÷ - 2 > 0
= CByj + CBm+1 am+1, j – CB m+1 a yj – cj
è 1 ø
Hence the current solution itself is optimal. where CBm+1 is the cost associated with the new
variable introduced in the basis. Since the
10.5 ADDITION OF A new variable is a slack or surplus variable its
CONSTRAINT coefficient in the objective function is zero.
Therefore, CBm+1= 0
If a new constraint am + 1, 1 x1 + am + 1, 2 x2 +… +
a m + 1, n x n £ b m + 1 is added to the system of \ Zj*–cj = CB yj – cj = Zj – cj
constraints of an LPP then two cases arise. Therefore the values of c j are the same for the
Case (I) The optimal solution of the original prob- new problem also.
lem satisfies the new constraint. In this case the cur- æX ö
rent optimal solution continues to be optimal. Also Z * = [CB 0 ] ç B ÷ = CB X B = Z
è s ø
Case (II) The optimal solution XB of the original
Thus the optimum value remains unchanged.
problem does not satisfy the new constraint. In
Since the optimal solution of the original problem
this case we obtain a new optimal solution to the
modified problem. Let B be the basis matrix for does not satisfy the new constraints the slack or
the original problem and B1 be the basis matrix surplus variable possesses negative value. Hence
for the new problem with m + 1 constraints. we have to use the dual simplex method and obtain
the new optimal solution.
æ B 0ö
\ B1 = ç Note: If the new constraint is an equation then
è a 1 ÷ø an artificial variable appears in the basis at
where a = (am + 1, 1 am + 1, 2 …am + 1, n) and the 2nd a positive value and Big-M method can be
æ 0ö applied.
column ç ÷ corresponds to the slack or surplus
è 1ø Example 10.8 Consider the LPP
variable added in the new constraint. Maximize Z £ 3x1 + 5x2 subject to the constraints
æ B -1 0ö 3x1 + 2x2 £ 18
Now B1–1 = ç ÷ x1 £ 4
è -a B -1 1 ø
x2 £ 6
and yj* = B1–1aj* x1, x2 ≥ 0
æ B -1 0ö æ a j ö Discuss the effect of adding a new con-
= ç ÷ç ÷ straint 2x 1 + x 2 £ 8 to the given set of con-
-1
è -a B 1 ø è am +1, j ø straints.
æ B -1a j ö Solution The given problem has an optimal
= ç -1 ÷ simplex table as given below.
è -a B a j + am +1, j ø
Sensitivity Analysis 109
EXERCISES
■ ■ ■ ■ ■ ■ ■
Determine the ranges for discrete changes in (2,2,2) T and coefficient in the objective
b1 and b2 in order to maintain the optimality function, 5.
of the current solution. 7. Solve the LPP
3. Consider the problem, Maximize Z = 4x1 + 6x2 + 2x3 subject to the
Maximize Z = 3x 1 + 5x 2 subject to the constraints
constraints x1 + x2 + x3 £ 3
3x1 + 2x2 £ 18 x1 + 4x2 + 7x3 £ 9
x1 £ 4 x1, x2, x3 ≥ 0
x2 £ 6 (i) What is the new optimal solution when
x1, x2 ≥ 0 c3 is increased from 2 to 12?
Discuss the effect on the optimality of the (ii) Find the effect of changing the objective
solution when the objective function is function to Z = 2x1 + 8x2 + 4x3
changed to 3x1 + x2. 8. Consider the LPP
4. Consider the LPP Maximize Z = 45x1 + 100x2 + 30x3 + 50x4
Maximize Z = 3x 1 + 5x 2 subject to the subject to the constraints
constraints 7x1 + 10x2 + 4x3 + 9x4 £ 1200
x1 £ 4 3x1 + 40x2 + x3 +x4 £ 800
3x1 + 2x2 £ 18 x1, x2 , x3, x4 ≥ 0
x1, x2 ≥ 0 Find the change in the optimal solution when
Solve the LPP. If a new variable x3 is added a new variable x 5 is added with cost
æ 1ö æ 10 ö
to the problem with column ç ÷ and cost coefficient 120 and column ç ÷
è 2ø è 10 ø
coefficient 7 find the change in the optimal 9. Solve the LPP
solution. Maximize Z = 3x 1 + 5x 2 subject to the
5. In the problem constraints
Maximize Z = 5x1 + 12x2 + 4x3 subject to the x1 £ 4
constraints 3x1 + 2x2 £ 18
x1 + 2x2 + x3 £ 5 x1, x2 ≥ 0
2x1 + x2 + 3x3 = 2 Discuss the change in the optimal solution
x1, x2, x3 ≥ 0 when
Discuss the change in the optimal solution (i) a constraint x2 £ 10 is added
æ 1ö æ 2ö (ii) a constraint x2 £ 6 is added.
when a3 is changed from ç ÷ to ç ÷
è 3ø è 5ø 10. Solve
6. Given the LPP Maximize Z = 3x1 + 2x2 + 5x3 subject to the
Minimize Z = 3x 1 + 8x 2 subject to the constraints
constraints x1 + 2x2 + x3 £ 430
x1 + x2 = 200 3x1 + 2x2 £ 460
x1 £ 80 x1 + 4x2 £ 420
x2 ≥ 60 x1, x2, x3 ≥ 0
x1, x2 ≥ 0 Find the new optimal solution when x 1
discuss the effect on the optimality by adding column is changed to (1,1,6)T , c2 = 1 and
a new variable x3 with column coefficients c3 = 3.
Sensitivity Analysis 111
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Transportation problem deals with the trans- i.e. xi1 + xi2 + xi3 +
+ xin = ai (1)
portation of commodity from different sources to (i = 1, 2, 3,
, m)
different destinations. Similarly, the total demand at the destination
Given m sources and n destinations, the total Dj is bj.
quantity available at each source, the total quantity i.e. x1j + x2j + x3j +
xmj = bj (2)
required at each destination, and the costs of ( j = 1, 2, 3,
, n)
transportation of unit commodity from each source m
to each destination, it is required to determine the Also the total availability å ai and the total
quantity of commodity to be transported from each i =1
n
source to different destinations such that the total
cost of transportation is minimum. This is demand å bj must be equal
j =1
transportation problem.
m n
Minimize Z =
m n
å å cij xij If å ai = å b j then the problem is called a
i =1 j =1
i =1 j =1
balanced problem. In order to obtain a feasible
The total availability at the source Si is ai solution we need a balanced problem.
Transportation Problem 113
(Rs)
Now (2, 1) cell is the north-west corner cell.
S1 Æ D1 30 units : cost 30 × 6 = 180
The maximum quantity that can be allotted is the
minimum of 40 and 5. Thus we can assign 5 units S2 Æ D1 5 units : cost 5 × 5 = 25
to the (2, 1) cell and no more allotment is possible S2 Æ D2 28 units : cost 28 × 11 = 308
in the first column. S2 Æ D3 7 units : cost 7 × 9 = 63
S3 Æ D3 25 units : cost 25 × 7 = 175
S3 Æ D4 25 units : cost 25 × 13 = 325
Total cost = Rs 1076
Here x11 = 30, x21 = 5, x22 = 28, x23 = 7, x33 = 25,
and x34 = 25.
All other xij are zeroes.
Also m + n 1 = 3 + 4 1 = 6. We have 6 basic
cells.
Now choose the north-west corner cell of Example 11.2 Find an initial basic feasible
the reduced table which is the (2, 2) cell. Allot solution to the following transportation problem
28 units which is the minimum of (35, 28). We get using north-west corner rule:
Now allot 25 units to the (3, 3) cell and the The next allotment is for the (2, 1) cell and
remaining 25 to the (3, 4) cell. We obtain a basic min(8, 2) = 2 and hence we can allot 2 units there.
feasible solution as Now the table reduces to
Transportation Problem 115
O3 Æ D2 3 units : cost 3 ¥ 4 = 12
O3 Æ D3 4 units : cost 4 ¥ 7 = 28
O4 Æ D3 14 units : cost 14 ¥ 2 = 28
Total cost = Rs 102
11.2.2 Row Minima Method
In the transportation table consider the cell having
the least cost in the first row and allot the maximum
Now we consider the cell (2, 2) which is the possible quantity to that cell. Then we take the
north-west corner cell and allot 6 units there since cell containing the next higher cost and allot the
min(6, 9) = 6. The resulting table is maximum possible quantity. If there is a tie
between the cells choose the cell of your choice.
Repeat the process till the availability a 1 is
exhausted. Now take the second row and allot the
quantities starting from the cell having the least
cost. After exhausting a2 consider the third row
and so on. Finally we get the initial solution when
all the rows have been filled up.
Example 11.3 Obtain an initial basic feasible
The north-west corner of the table is the (3, 2) solution to the following transportation problem
cell for which a maximum of 3 units can be using the row minima method.
allotted. We get the table
(Rs)
O1 Æ D1 5 units : cost 5 ¥ 2 = 10
O2 Æ D1 2 units : cost 2¥3 = 6
O2 Æ D2 6 units : cost 6 ¥ 3 = 18
116 Operations Research
The next higher cost in the 2nd row is 7 and 4 exhausted the first column go to the 2nd column
units can be allotted there. We get and repeat the process. Finally after making the
allotments in the last column we obtain an initial
basic feasible solution.
Example 11.4 Obtain an initial basic feasible
solution to the following transportation problem
using the column minima method.
are m + n 1 = 5 basic cells. The initial basic The next higher cost is 2 in the (2, 3) cell where
feasible solution obtained is we can allot 10 units. Now the table becomes
EXERCISES
■ ■ ■ ■ ■ ■ ■
Obtain an initial basic feasible solution using Obtain an initial basic feasible solution using
north west corner rule: least cost rule.
6.
1.
2. 7.
8.
3.
11. 12.
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. O1 D1 : 5 ; O2 D1 : 2; O2 D2 : 6; 7. O1 D2 : 6; O2 D3 : 2; O2 D4 : 6;
O3 D2 : 3; O3 D3 : 4; O4 D3 : 14 O3 D1 : 4; O3 D3 : 6;
Total cost = Rs 102 Total cost = Rs 28
2. F1 M1: 30; F2 M1 : 5; F2 M2: 28 8. A W1 : 20; A W3 : 10 ; B W2 : 20;
F2 M3 : 7; F3 M3 : 25; F3 M4 : 25 B W3 : 20; B W4 : 10; C W2 : 20
Total cost = Rs 1076 Total cost = Rs 180
3. O1 D1 : 6 ; O1 D2 : 8; O2 D2 : 2; 9. A D1 : 5; B D3 : 8; C D2 : 7
O2 D3 : 14 O3 D3 : 1; O3 D4 : 4 D D1 : 2; D D2 : 2; D D3 : 10
Total cost = Rs 128 Total cost = Rs 80
4. O1 D1 : 6; O2 D1 : 1; O3 D2 : 5; 10. S1 D1 : 200; S1 D2 : 50; S2 D2 : 175;
O3 D3 : 3; O3 D4 : 2 S2 D4 = 125; S2 D3 : 275; S3 D4 : 125
Total cost = Rs 116 Total cost = Rs 12075
5. I B : 1; II A : 2; II B : 1; III A : 2 11. A W2 : 25; A W3 : 9; B W1 : 15
III C : 2 Total cost = Rs 855 CW1 = 4; C W3 : 8; D W1 : 2
6. O1 D2 : 2; O1 D3 : 3; O2 D3 : 8; D W4 : 17 Total cost = Rs 195
O3 D2 : 7; O4 D1 : 7; O4 D3 : 7 12. P1 C1 : 1; P1 C2 : 5; P2 C4 : 1
Total cost = Rs 83 P3 C1: 6; P3 C3 : 3; P3 C4 : 1
Total cost = Rs 102
11.3 TESTING FOR OPTIMALITY
, um, v1, v2 ..., vn. To solve these equations we
have to reduce the number of variables to
We can find an initial solution to a transportation (m + n 1). Hence we assign zero value to one of
problem, using any one of the methods described the simplex multipliers. In order to make the
previously. The next step is to examine whether procedure easy, we assign zero value to the simplex
the solution obtained is optimal or not. multiplier which corresponds to the row or column
We introduce simplex multipliers (dual having the maximum number of basic cells.
variables) ui (i = 1, 2, 3,
., m) and vj (j = 1, 2, 3, Now we have (m + n 1) variables and they
, n) for the m rows and n columns with the can be solved and the values of u1 and vj (for each
condition that they should satisfy the equations i and j) can be obtained.
ui + vj = cij where cij is the cost of transportation Next we calculate the relative cost factors cij
in the (i,j)th cell which is a basic (occupied) cell.
For (m + n 1) basic cells we get (m + n 1) for each non-basic cell using the formula
equations and there are (m + n) variables u1, u2, cij = cij ui vj
Transportation Problem 121
the equations ui + vj = cij for the basic cells. We Taking u2 = 0 and solving these equations we
have obtain
u1 + v2 = 8 u2 + v2 = 11 u1 = 2 u2 = 0 u3 = 1 v1 = 5
u1 + v4 = 5 u3 + v2 = 9 v2 = 10 v3 = 8 v4 = 7
u2 + v1 = 5 u3 + v3 = 7 Using these values we calculate the relative cost
Since the 2nd column contains the maximum factors cij for the non basic cells.
number of basic cells we take v2 = 0. Substituting c11 = c11 u1 v1 = 3 c13 = c13 u1 v3 = 2
v2 = 0 in the above equations and solving them we c23 = c23 u2 v3 = 1 c24 = c24 u2 v4 = 0
get
c31 = c31 u3 v1 = 4 c34 = c34 u3 v4 = 7
u1 = 8 u2 = 11 u3 = 9 v1 = 6
Since all the relative cost factors are non
v2 = 0 v3 = 2 v4 = 3
negative the current solution is optimal. The
Using these values we calculate cij = cij ui vj optimal solution is
for the non-basic cells. (Rs)
c11 = c11 u1 v1 = 4; c13 = c13 u1 v3 = 2 S1 Æ D2 : 10 units cost 80
c23 = c23 u2 v3 = 0; c24 = c24 u2 v4 = 1 S1 Æ D4 : 20 units cost 100
c31 = c31 u3 v1 = 5; c34 = c34 u3 v4 = 7 S2 Æ D1 : 35 units cost 175
We find c24 is negative and hence (2, 4) is the S2 Æ D4 : 5 units cost 35
S3 Æ D2 : 18 units cost 162
entering cell. Introduce q in (2, 4) cell and form a
S3 Æ D3 : 32 units cost 224
loop as shown below.
Total cost = 776
Example 11.8 A company has three factories A,
B and C which supply units to warehouses X, Y
and Z every month. The capacities of the factories
are 60, 70 and 80 units at A, B and C respectively.
The requirements of X, Y and Z per month are
50, 80 and 80 units respectively. Transportation
The vertices (2, 2) and (1, 4) of the loop have cost per unit in rupees are given in the
5 q, 25 q. The least quantity is 5 and hence following table. Find out the minimum cost of
q = 5 is the maximum value of q such that all the transportation
entries are non-negative (feasible). Thus, taking
q = 5 we find that (2, 2) cell becomes non-basic
and (2, 4) cell becomes basic with an allotment of
5. The improved solution is
The least cost is 5 in (1, 3) cell and (3, 3) cell. Assign zero value to u2 we get the solutions
Select (1, 3) cell and allot 60 unit. We have, u1 = 2 v1 = 6
u2 = 0 v2 = 8
u3 = 2 v3 = 7
The relative cost factors for the non-basic cells
are
c11 = c11 u1 v1 = 4 c12 = c12 u1 v2 = 1
c23 = c23 u2 v3 = 2 c31 = c31 u3 v1 = 5
All cij ≥ 0. Hence this solution is itself optimal.
The least cost in the reduced table is 5 in (3, 3) The optimal solution is
cell. Allot 20 units there. We get (Rs )
A Æ Z : 60 units Cost 300
B Æ X : 50 units Cost 300
B Æ Y : 20 units Cost 160
C Æ Y : 60 units Cost 360
C Æ Z : 20 units Cost 100
Total cost = Rs 1220
(2, 1) cell and (3, 2) cell both have the minimum 11.5 DEGENERACY
cost 6. Select (2, 1) cell for an allotment of 50 As we have discussed earlier, the number of basic
units. The table becomes cells in a transportation table of m rows and n
columns, should be m + n 1. If we get less than
(m + n 1) basic cells optimality test cannot be
carried out. This is called a degenerate solution.
In order to overcome this difficulty and to solve
the degeneracy, we need (m + n 1) basic cells.
Suppose we have only (m + n 2) basic cells,
then we select a non-basic cell which does not form
Now we can allot 20 units to (2, 2) cell and 60 a loop with the existing basic cells. Allot an
units to (3, 2) cell. The initial solution is infinitesimal quantity Œ to this selected cell and
make it a basic cell. This infinitesimal quantity
will not affect the other allotments when it is added
or subtracted. In other words it is only a dummy
allotment. But it helps us to carry out the iteration.
Now we have (m + n 1) basic cells and we can
perform optimality test and proceed with the
iteration if necessary. Finally Œ is taken as zero.
Example 11.9 Solve the following transportation
m + n 1 = 5 and we have 5 basic cells.
problem:
Defining simplex multipliers ui and vj for the rows
and columns we get the equations for the basic
cells,
u1 + v3 = 5 u3 + v2 = 6
u2 + v1 = 6 u3 + v3 = 5
u2 + v2 = 8
124 Operations Research
The relative cost factors for the non-basic cells quantity available at the sources must be equal to
are given by the total quantity required at the destinations
c13 = 7 0 3 = 4 c31 = 9 1 8 = 0 m n
c21 = 12 1 8 = 3 c33 = 10 1 3 = 6 i.e. å ai = å b j
c22 = 9 1 10 = 2 c34 = 8 1 6 = 1 i =1 j =1
Since c22 is negative (2, 2) cell enters the basis. If this condition is not satisfied, then the
Allot a quantity q to this cell. problem is called an unbalanced transportation
problem. We solve this type of problem by
changing it to a balanced problem.
When the availability is greater than the
requirement, we introduce a dummy destination
in the table. The cost of transportation from each
source to this destination is assumed to be zero.
The excess of availability is assigned as the
A loop is formed with cells (1, 2) (2, 2) (2, 4) requirement at this dummy destination. Now the
and (1, 4). We find that q = Œ. Substituting q = Œ problem is balanced and it can be solved.
we get the improved solution as given below. When the requirement is more than the
availability, we introduce a dummy source in the
table. The cost of transportation from this source
to each destination is taken as zero. The excess of
demand is assigned as the availability at this
dummy source. Thus the problem is changed
to a balanced one and can be solved in the usual
way.
The relative cost factors for the non-basic cells Example 11.11 Solve the following transporta-
are tion problem
c13 = 7 10 + 5 = 2 c31 = 9 11 + 2 = 0
c21 = 12 9 + 2 = 5 c33 = 10 11 + 5 = 4
c24 = 7 9 + 4 = 2 c34 = 8 11 + 4 = 1.
Since all the cij are non negative, the current
solution is optimal. The optimal solution is
(Rs ) Solution Here Sai = 34, Sbj = 30
W1 Æ M1 : 25 units Cost 200 Therefore the problem is unbalanced. The total
W1 Æ M2 : 2 units Cost 20 supply is 4 units in excess of total demand and
W1 Æ M4 : 23 units Cost 138 hence we introduce a dummy destination D0 with
W2 Æ M3 : 40 units Cost 160 demand 4 and change the problem into a balanced
W3 Æ M2 : 30 units Cost 330 problem. The table is
Total Cost = Rs 848
11.6 UNBALANCED
TRANSPORTATION
PROBLEM
In order that a transportation problem should yield We obtain an initial basic feasible solution by
a feasible solution it is necessary that the total VAM as given below.
126 Operations Research
S3 Æ D1 : 4 units Cost 24
S3 Æ D3 : 6 units Cost 24
Total cost = Rs 80 (Œ = 0)
Example 11.12 Solve the following trans-
portation problem
m + n 1 = 6 + 3 1 = 8. But we have only A company operates three coal mines A, B, C
7 basic cells. Hence this solution is degenerate. which provide 400, 500, and 700 tonnes res-
Let us choose the cell (1, 1) which doest not form pectively per week. Orders for 500, 400, 300, 300
a loop with the basic cells. Allot an infinitesimal and 600 tonnes per week have been received from
quantity Œ to this cell. Now have 8 basic cells. customers C 1 , C 2 , C 3 , C 4 , C 5 respectively.
Introduce the simplex multipliers u1, u2, u3 for Transportation costs in rupees per tonne from each
the rows and v0, v1, v2, v3, v4 and v5 for the columns. mine to each customer are given below
Form the equations ui + vj = cij for the basic cells.
We get u1 + v1 = 4 u2 + v5 = 1
u1 + v2 = 2 u3 + v0 = 0
u1 + v4 = 2 u3 + v1 = 6
u2 + v4 = 2 u3 + v3 = 4
Setting u1 = 0. We get the solution.
u1 = 0 v0 = 2 For each tonne of coal demanded but not supplied
u2 = 0 v1 = 4 there is a loss of one rupee per tonne for the company.
u3 = 2 v2 = 2 Find the weekly shipping (transporting) schedule
v3 = 2 which minimizes the total expenses.
v4 = 2 Solution Here, the total supply is 1600 units. But
v5 = 1 the total demand is 2100 units. Hence it is an
unbalanced problem. We introduce a dummy mine
D which provides 500 tonnes per week. The loss
of one rupee per tonne is taken as the transportation
cost from this mine D to each customer. The
balanced transportation table is given below.
The relative cost factors for the non basic cells are
c10 = 0 0 + 2 = 2 c22 = 4 0 2 = 2
c13 = 3 0 2 = 1 c23 = 5 0 2 = 3
c15 = 6 0 1 = 5 c32 = 5 2 2 = 1
We find an initial basic feasible solution by
c20 = 0 0 + 2 = 2 c34 = 7 2 2 = 3 VAM as shown below:
c21 = 5 0 4 = 1 c35 = 3 2 1 = 0
We find that all cij ≥ 0. Hence the current
solution is optimal. The optimal solution is
(Rs)
S1 Æ D2 : 4 units Cost 8
S1 Æ D4 : 4 units Cost 8
S2 Æ D4 : 4 units Cost 8
S2 Æ D5 : 8 units Cost 8
Transportation Problem 127
Defining simplex multipliers ui and vj and Solution First we convert the problem to
forming the equations minimization problem by subtracting each element
ui + vj = cij from the highest figure 90. We get the following
for the basic cells we obtain table:
u1 + v1 = 4 u3 + v2 = 1
u1 + v3 = 1 u3 + v5 = 2
u2 + v2 = 10 u4 + v1 = 1
u2 + v3 = 8 u4 + v4 = 1
Take u1 = 0 and solve the equations. We get
u1 = 0 u2 = 7 u3 = 2 u4 = 3
v1 = 4 v2 = 3 v3 = 1 v4 = 4 v5 = 4 We obtain an initial basic feasible solution by
The relative cost factors for the non-basic cells are VAM as given below
c12 = 13 c14 = 12 c15 = 10 c21 = 7 (m + n 1 = 4 + 3 1 = 6)
c24 = 1 c25 = 1 c31 = 4 c33 = 5
c34 = 11 c42 = 1 c43 = 3 c45 = 0
Hence the current solution is optimal.
A Æ C1 : 300 units A Æ C3 : 100 units
B Æ C2 : 300 units B Æ C3 : 200 units
C Æ C2 : 100 units C Æ C5 : 600 units
Minimum cost is 1200 + 100 + 3000 + 1600 +
100 + 1200 + (200 + 300) = Rs 7700.
Writing the equations ui + vj = cij for the basic
11.7 MAXIMIZATION TYPE cells we get
u1 + v2 = 39 u2 + v4 = 9 where u2 = 0
In general, transportation problem is motivated u2 + v1 = 10 u3 + v1 = 0
towards minimizing the transportation cost of u2 + v2 = 48 u3 + v3 = 24
goods from various sources to different The solutions are
destinations. But in certain cases the objective may u1 = 9 v1 = 10 u2 = 0 v2 = 48
be to maximize the profit or total output. To solve u3 = 10 v3 = 34 v4 = 9
such type of problems of maximization we change The relative cost factors for the non-basic cells
the sign of the costs to negative and then apply are
minimization algorithm. c11 = 75 + 9 10 = 74
If it is found to be inconvenient to deal with
c13 = 48 + 9 34 = 23
negative figures we can subtract all the costs in
the table from the highest cost given and then apply c14 = 57 + 9 9 = 57
minimization process. c23 = 64 0 34 = 30
Example 11.13 Solve the following trans- c32 = 50 + 10 48 = 12
portation problem to maximize the total profit. c34 = 30 + 10 9 = 31
Transportation Problem 129
cij ≥ 0 for all i, j. Hence the current solution is S2 Æ M2 : 8 units Profit 8 ¥ 42 = 336
optimal and the optimal solution is S2 Æ M4 : 30 units Profit 30 ¥ 81 = 2430
(Rs) S3 Æ M1 : 17 units Profit 17 ¥ 90 = 1530
S1 Æ M2 : 23 units Profit 23 ¥ 51 = 1173 S3 Æ M3 : 16 units Profit 16 ¥ 66 = 1056
S2 Æ M1 : 6 units Profit 6 ¥ 80 = 480 Total Profit = Rs 7005
EXERCISES
■ ■ ■ ■ ■ ■ ■
6. Solve the TP
2. A company has three mines A, B and C and
five factories F1, F2, F3, F4 and F5. The mines
can supply 80, 100 and 140 tonnes of ore
daily and the requirements of the factories
are 40, 50, 70 and 80 respectively. The
following table gives the unit transportation
cost of ore.
7. Solve the TP
9. Solve the TP
4. Solve the TP
130 Operations Research
18. Solve
12. Solve
27.
22.
28.
23. 29.
24. 30.
132 Operations Research
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
12.1 WHAT IS AN ASSIGNMENT worker to do the jth job (Cost of the assignment) is
given as cij, and xij denotes the assignment. The
PROBLEM? problem can be written in the form
Given n jobs, n workers, and the time taken by n n
each worker to do each job, the objective is to allot Minimize Z = å å cij x j
the different jobs to the workers such that (i) no i =1 j =1
worker is given more than one job (ii) no job is subject to the constraints
allotted to more than one worker and (iii) the total n
time taken to complete all the jobs is minimum. å xij = 1 (i = 1, 2, 3,
, n)
This is called an assignment problem. j =1
The problem can also have cost or profit instead n
of time taken for each job. In that case we have to å xij = 1 ( j = 1, 2, 3,
, n)
maximize the total profit or minimize the total cost. i =1
In other words we have to optimize the objective xij = 0 or 1 for all i and j.
assigning the jobs to the workers suitably. This is We take xij = 1 if ith worker gets jth job.
the same as transportation problem except that here xij = 0 otherwise
the availability at each source and the demand at
each destination are taken to be one. We may note that in the table of assignment
there would be one and only one assignment in
12.2 MATHEMATICAL each row or column. In other words, if xij = 1 then
there is no other assignment in the ith row and no
FORMULATION other assignment in the j th column.
We are given n jobs J1, J2, J3,
, Jn and n workers The data is given in the form of a table (matrix)
W1, W2, W3,
, Wn. The time taken by the ith as given below:
Assignment Problems 135
J1 J2 J3
... ... Jn Having finished all the rows, subtract the least
element of each column from all the elements of
W1 c11 c12 c13 . . . c1n
that column.
W2 c21 c22 c23 . . . c2n
W3 c31 c32 c33 . . . c3n Step 2 Draw horizontal and vertical lines to cover
. all the zeroes obtained in step 1. If the minimum
. number of lines required to cover all the zeroes is
. equal to n (number of jobs) then optimal solution
Wn cn1 cn2 cn3 cnn is reached. Go to step 4.
Step 3 If the minimum number of lines required
12.3 METHOD OF SOLVING AN AP to cover all the zeroes is less than n, it means that
the current solution is not optimal. Examine the
First of all the problem can be solved by finding a elements not covered by any of the lines drawn.
list of all possible solutions which means that we Select the least among these elements and subtract
have to evaluate n! assignments and choose the it from all the elements not covered by the lines.
optimal one from among them. When n is large, Add this least element to every element lying at
this method involves a large number of the intersections of the lines. This gives rise to a
calculations and hence it is not suitable for manual new table. Again draw vertical and horizontal lines
calculations. to pass through the zeroes. Check whether the
Another method of solving an AP is by the minimum number of lines required, is equal to n.
simplex method. We can treat it as a 0 1 integer Repeat step 3 till an optimal table is reached.
programming problem. There are n2 decision
variables and 2n equalities. This again is difficult Step 4 (Obtaining the optimal solution) In
to solve when n becomes large. the optimal table examine the first row. If there is
An assignment problem can be taken as a only one zero in the first row, square it and cancel
transportation problem wherein we have n basic all the other zeroes in that column. If there are
cells. But we must have 2n 1 (n + n 1) basic more than one zero in the first row, pass on to the
cells. Hence we have to introduce n 1 dummy second row. If there is only one zero in the second
allotments in order to apply the transportation row square it and cancel all the other zeroes in
algorithm. Thus it gives rise to computational that column. In case the second row contains more
difficulties. than one zero leave it and pass on to the third row.
The Hungarian method which we are going to After exhausting all the rows, take the columns
discuss, is the best choice for solving an AP. The one by one and repeat the procedure of squaring
algorithm is very easy to apply and there is no the zeroes. If there is a tie use your choice and
difficulty in manual calculations. square the zeroes. Finally we get the optimal
solution with n zeroes (each row having exactly
12.4 STEP-BY-STEP PROCEDURE one zero and each column having exactly one
zero). A zero in the (i, j) cell indicates that ith
OF HUNGARIAN METHOD
worker is allotted with the jth job. This cell is a
(MINIMIZATION PROBLEM) basic cell. In the original assignment table add all
the times (costs) of the basic cells. This gives the
Step 1 In the assignment table subtract the least total minimum time required (minimum cost) to
element of the first row from all the elements in complete all the jobs.
the first row. Subtract the least element of the
second row from all the elements of the second Example 12.1 Solve the following assignment
row. Repeat this for all the rows one by one. problem.
136 Operations Research
Jobs 1 J2 J3 J4
J1 J2 J3 J4 W1 0 20
W1 10 15 24 30 2
Workers
W2 16 20 28 10 W3 3 3
W3 12 18 30 16 W4 0 9 8 8
W4 9 24 32 18
Now we find that the minimum number of lines
required to cover all the zeroes is 4 (n = 4). Hence
Solution
an optimal solution is reached.
Step 1 Subtract the least element of each row
from all the elements of the respective row. We get Step 4 In the first row there are two zeroes.
Therefore take the second row and there is only
J1 J2 J3 J4 one zero in (2, 4) cell. Squaring it we have
W1 0 5 14 20
J1 J2 J3 J4
W2 6 10 18 0
W1 1 0 0 20
W3 0 6 18 4
W2 7 5 4 0
W4 0 15 23 9
W3 0 0 3 3
Subtract the least element of each column from W4 0 9 8 8
all the elements of the respective column. We have
The third row has two zeroes. Go to the fourth
J1 J2 J3 J4 row. Square the only zero in (4, 1) cell and cancel
the zero in the first column (3, 1) cell. We have
W1 0 0 0 20
W2 6 5 4 0 J1 J2 J3 J4
W3 0 1 4 4
W1 1 0 0 20
W4 0 10 9 9 W2 7 5 4 0
W3 3 3
Step 2 All the zeroes can be covered by a
W4 0 9 8 8
minimum of 3 lines as shown below.
Now examine the columns. In the first column
1 J2 J3 J4 one zero has been squared already. In the second
W1 0 20 column there are two zeroes. Go to the third
2
column. There is only one zero in the third column
W3 0 1 4 4 (1, 3) cell. Square it and cancel the zero in (1, 2)
cell. This gives
W4 0 10 9 9
Now there is only one zero in the third row (or I II III IV
second column) (3, 2) cell.
A 5 0 8 10
Squaring that zero also we get the optimal
solution table. B 0 6 15 0
C 8 5 1 0
J1 J2 J3 J4 D 0 6 4 2
W1 0 20
Subtracting the least element of each column
W2 7 5 4 0
from all the elements of the same column, we get
W3 3 3
W4 0 9 8 8 I II III IV
A 5 0 7 10
The optimal assignment is
B 0 6 14 0
W1 Æ J3 : 24 C 8 5 0 0
W2 Æ J4 : 10 D 0 6 3 2
W3 Æ J2 : 18
W4 Æ J 1 : 9 Drawing the minimum number of lines to cover
all the zeroes we have
Total = 61 Optimum cost = 61
Example 12.2 The assignment costs of four II III
operators to four machines are given in the 7
following table. B 0 6 14 0
Operators C
D 0 6 3 2
I II III IV
A 10 5 13 15 We find that the minimum number of lines
Machines
I II III IV I II III IV
A 10 5 13 15 A 5 0 7 10
B 3 9 18 3 B 14 0
C 10 7 3 2 C 8 5 0 0
D 5 11 9 7 D 0 6 3 2
Subtracting the least element of each row from Now consider the unassigned columns. In the 3rd
all the elements of the same row, we get column there is only one zero in the (3, 3) cell.
138 Operations Research
Square it and cancel the zero in the (3, 4) cell. This Since the number of lines is less than 4,
gives rise to only one zero in the fourth column optimality is not reached.
(2, 4) cell. Square it. Thus the optimal assignment is Select the least element 5 not covered by the
lines and subtract from all the elements not on the
I II III IV lines and add it to the elements at the points of
A 5 0 7 10 intersection of the lines. The resulting table with
B 14 0 the minimum number of lines covering all the
C 8 5 0 zeroes is
D 0 6 3 2
M1 M2 M3 M4
The optimal solution is J1 2 6 0 0
A Æ II : 5 J2 1
B Æ IV : 3
J3 23 0 2 5
C Æ III : 3
J4
D ÆI : 5
Total = 16
Since the number of lines is 4, optimality is
Minimum total cost = Rs 16.
reached.
Example 12.3 Solve the following AP: Square the zero in (3, 2) cell and the zero in the
(4, 4) cell and cancel (1, 4) cell. Next square the
Machines
zero in (2, 1) cell and cancel (2, 3) cell. Square the
M1 M2 M3 M4 zero in (1, 3) cell. This gives the optimal solution
J1 18 26 17 11 as given below.
Jobs
J2 13 28 14 26
J3 38 19 18 15 M1 M2 M3 M4
J4 19 26 24 10 J1 2 6 0
J2 0 11 18
Solution Subtracting the least element of each J3 23 0 2 5
row and column from all the elements of the
J4 4 7 8 0
respective row and column we get the reduced
matrix as follows.
J1 Æ M3 : 17
M1 M2 M3 M4 J2 Æ M1 : 13
J1 7 11 5 0 J3 Æ M2 : 19
J2 0 11 0 13 J4 Æ M4 : 10
J3 23 0 2 0
J4 9 12 13 0 Total = 59
Example 12.4 Solve the following AP
The minimum number of lines required to cover
all the zeroes is 3 as shown below: Machines
1 2 3 4 5
M1 M2 M3 M4
A 5 5 2 6
Operators
J1 7 11 5 0 B 7 4 2 3 4
J2 0 11 0 3 C 9 3 5 3
J3 23 0 2 0 D 7 2 6 7 2
J4 9 12 13 0 E 6 5 7 9 1
Assignment Problems 139
Solution Here we find that the operator A Since the number of rows is 5 and we have only
cannot operate the machine 3 and the operator 4 lines this solution is not optimal.
C cannot operate the machine 4. Hence we assume Now, the least element not covered by any line,
that the time taken by A on 3 and by C on is 1. Subtract 1 from all the elements not on the
4 are • each. lines and add 1 to the elements at the points of
Therefore the table is intersection of lines. We get
1 2 3 4 5 1 2 3 4 5
A 5 5 • 2 6 A
B 7 4 2 3 4 B
C 9 3 5 • 3 C 2 0 2 • 0
D 7 2 6 7 2 D 1 0 4 4 0
E 6 5 7 9 1 E 1 4 6 7 0
Subtracting the least element from all the Again we find that 4 lines are enough to cover
elements in each row we get all the zeroes. Hence we repeat the step. The
smallest element not covered by any line is 1.
1 2 3 4 5 Subtract 1 from all the elements not on the lines
and add 1 to the elements at the intersection of the
A 3 3 • 0 4 lines. Now we have
B 5 2 0 1 2
C 6 0 2 • 0
D 5 0 4 5 0
E 5 4 6 8 0 A • 0 6
B
Subtracting the least element in each column C • 0
from all the elements of that column, we obtain D
E 0 4 5 6 0
1 2 3 4 5
Now the minimum number of lines required to
A 0 3 • 0 4 cover all the zeroes is 5 and hence optimality is
B 2 2 0 1 2 reached.
C 3 0 2 • 0 All the rows contain more than one zero. The
D 2 0 4 5 0
third column contains only one zero. Square the
E 2 4 6 8 0
zero in (2, 3) cell and cancel the zero in (2, 4) cell.
Let us try to cover all the zeroes by the minimum Now fourth column has only one zero in (1, 4)
number of vertical and horizontal lines. We find cell. Square it and cancel the zero in (1, 1) cell.
that just 4 lines are sufficient to cover all the zeroes, We have
as shown below:
1 2 3 4 5
A • 0 6
A B 1 3 0 0 3
B 2 2 0 1 2 C 1 0 1 • 0
D 0 0 3 3 0
C 3 0 2 • 0
E 0 4 5 6 0
D 2 0 4 5 0
E 2 4 6 8 0 Now there is a tie in each row and column. We
use our choice.
140 Operations Research
(Rs) M1 M2 M3 M4
A Æ 1 Profit 16
J1 0 6 10 14
B Æ 3 Profit 15 J2 0 5 9 11
C Æ 2 Profit 15 J3 0 5 9 12
D Æ 4 Profit 15 J4
Total Profit = Rs 61.
We find that only two lines are necessary to
12.6 UNBALANCED cover all the zeroes and hence it is not optimal.
ASSIGNMENT PROBLEM Subtract the least element 5, not covered by the
lines from all the elements not on the line and add
If the number of jobs and the number of workers
5 to the point of intersection of the lines we get
(machines) are not equal it is called an unbalanced
assignment problem. As in the case of transporta-
M1 M2 M3 M4
tion problem, we introduce a dummy job or a
dummy worker in order to balance the problem. J1 5 9
We assign the cost zero for every cell in the newly J2 0 0 4 6
J3 0 0 4 7
introduced row or column. Now we can apply
J4
Hungarian method and solve this balanced assign-
ment problem.
Again we find that all the zeroes can be covered
Example 12.6 Three jobs are to be done by 4 by only 3 lines and hence optimality is not reached.
machines. Each job can be assigned to one and Subtract the least element 4 from all the
only one machine. The cost of each job on each elements not on the lines and add 4 to the points
machine is given in the following table. of intersection of the lines. We have the new table
M1 M2 M3 M4 M1 M2 M3 M4
J1 18 24 28 32 J1 0 1 1 5
J2 0 0 0 2
Job
J2 8 13 17 19
J3 0 0 0 3
J3 10 15 19 22 J4 9 4 0 0
What are the job assignments which will This table requires at least 4 lines to cover all
minimize the total cost? the zeroes and hence it gives optimal solution.
Solution It is an unbalanced problem with 3 jobs Square the zero in (1, 1) cell and cancel the
and 4 machines. Therefore we introduce a dummy other zeroes in the first column. Square the zero
job J4 having all the costs zero in the 4th row. We in (4, 4) cell and cancel the zero in the (4, 3) cell.
have the balanced problem We get
M1 M2 M3 M4 M1 M2 M3 M4
J1 18 24 28 32 J1 0 1 1 5
J2 8 13 17 19 J2 0 2
J3 10 15 19 22 J3 0 3
J4 9 4 0
J4 0 0 0 0
Now there is a tie. Square the zeroes in (2, 3)
Subtracting the least element from all the
and (3, 2) cells or square the zeroes in (2, 2) and
elements of each row we get
142 Operations Research
(3, 3) cells. We get two optimal solutions given visited twice. With these restrictions we solve the
below: problem as an assignment problem. If the optimal
(i) solution does not satisfy the route (cycle) condition
we make adjustments in the assignment and make
M1 M2 M3 M4
it a cycle with minimum possible increase in the
J1 0 1 1 5 total cost.
J2 0 2
J3 3 Example 12.7 Solve the travelling salesman
J4 9 4 0 problem with the following cost matrix:
Cities
(Rs)
A B C D
J1 Æ M1 Cost 18
J2 Æ M3 Cost 17 A • 46 16 40
J3 Æ M2 Cost 15 Cities B 41 • 50 40
C 82 32 • 60
Total cost = Rs 50. D 40 40 36 •
M4 remains idle
(ii) Solution The given cost matrix is
M1 M2 M3 M4 A B C D
J1 0 1 1 5 A • 46 16 40
J2 2 B 41 • 50 40
J3 0 3 C 82 32 • 60
J4 9 4 0 D 40 40 36 •
Subtract 3 from all the elements not on the lines Solution Assign • value to the diagonal cells
and add 3 to the points of intersection of the lines. and consider the assignment problem
This gives,
A B C D E
A B C D
A • 4 7 3 4
A • 27 0 21 B 4 • 6 3 4
B 0 • 13 0 C 7 6 • 7 5
C 49 0 • 28 D 3 3 7 • 7
D 0 1 0 • E 4 4 5 7 •
Optimality is reached. Square the zero in (1, 3) Subtracting the least element of each row from
cell and the zero in (3, 2) cell. Now square the zero all the elements of that row we obtain the table,
in (2, 4) cell and cancel the (2, 1) cell. Finally square
the zero in (4, 1) cell. The optimal solution is A B C D E
reached.
A • 1 4 0 1
B 1 • 3 0 1
A B C D C 2 1 • 2 0
A • 27 0 21 D 0 0 4 • 4
B 0 • 13 0 E 0 0 1 3 •
C 49 0 • 28
D 0 1 0 • Subtracting the least element in each column
from all the elements of that column we get
(Rs)
A Æ C 16
A B C D E
B Æ D 40
C Æ B 32 A • 1 3 0 1
D Æ A 40 B 1 • 2 0 1
Total Cost = Rs 128 C 2 1
We get A Æ C, C Æ B, B Æ D, D Æ A D 0 0 3 4
E
or AÆCÆBÆDÆA
which is a cycle. Hence the solution is A Æ C Æ
Just with 4 lines all the zeroes have been
BÆDÆA
covered (4 < 5). Hence the table is not optimal.
with minimum total cost Rs 128.
Subtract 1 from all the elements not on the lines
Example 12.8 A salesman has to visit five cities and add 1 to the elements at the points of
A, B, C, D and E. The distances (in 100 km) intersection of the lines. The resulting table is
between any two cities are given in the following
table. The salesman starts from A and has to come • 0 2 0 0
0 • 1 0 0
back to A after visiting all the other cities in a cycle.
2 1 • 3 0
Which route he has to select in order that the total 0 0 3 • 4
distance travelled by him is minimum? 0 0 0 4 •
A B C D E Since the minimum number of lines required to
A 4 7 3 4 cover all the zeroes is 5 we have reached optimality.
Square the zero in (3, 5) cell in the 3rd row and
From
B 4 6 3 4
C 7 6 7 5 cancel the other zeroes in the 5th column. Square
D 3 3 7 7 the zero in (5, 3) cell in the 3rd column and cancel
E 4 4 5 7 the other zeroes in the 5th row. We have
144 Operations Research
A B C D E A Æ D
A • 0 2 0 0 B Æ A
B 0 • 1 0 0 C Æ E
C 2 1 • 3 0 D Æ B
D 0 0 3 • 4
E • E Æ C
We get
Now make arbitrary assignments. Square the A Æ D Æ B Æ A, C Æ E Æ C
zero in (1, 4) cell. Then we can square zero in
It is not a cycle. Hence we have to modify the
(2, 1) cell and finally square the zero in (4, 2). We
solution. The smallest non-zero element is 1 in
get an optimal solution to the assignment problem.
(2, 3) and (3, 2) cells. Let us make an assignment
to (2, 3) cell. Now we get
A B C D E
AÆD BÆC CÆE DÆB EÆA
A •
B 0 • i.e. A Æ D Æ B Æ C Æ E Æ A
C 2 1 • 3 0 which is the optimal route and the total distance is
D 0 0 3 • 4 3 + 3 + 6 + 5 + 4 = 21 (2100 km)
E •
EXERCISES
■ ■ ■ ■ ■ ■ ■
J3 10 9 12 12 12
J4 15 11 9 9 12 3 44 25 24 21
J5 11 9 10 14 12 4 23 30 28 14
Assignment Problems 145
Workers
Districts W2 15 13 20
1 2 3 4 W3 4 8 10 6
A 14 8 12 9
Salesman
B 12 9 13 13 12. Solve
C 13 13 11 10 M1 M2 M3 M4
D 11 10 12 13
J1 60 51 32 32
8. The efficiency of 5 machines on each of 5 J2 48 37 43
J3 39 26 33
jobs is given below. Determine an assign-
J4 40 51 30
ment schedule of the jobs to the machines
such that the total efficiency is maximum.
13. Solve
Job Machine
1 2 3 4 5 M1 M2 M3 M4
O1 5 5 2
Operators
I 62 78 50 101 82
Machine
II 70 85 60 75 55 O2 7 4 2 3
III 88 96 118 85 71 O3 9 3 5
IV 48 64 87 77 80 O4 7 2 6 7
V 60 70 98 66 83
14. Solve the following travelling salesman
9. There are 5 jobs and 4 machines. The problem:
expected profits on each job on each machine A B C D
is given below. Determine an optimal A 4 7 3
assignment of the machines to the jobs so B 4 6 3
that the total profit is maximum. C 7 6 7
D 3 3 7
Job
1 2 3 4 5 15. Solve the following travelling salesman
I 62 78 50 101 82 problem
Machine
II 71 84 61 73 59 A B C D E F
III 87 92 111 71 81 A 5 12 6 4 8
IV 48 64 87 77 80 B 6 10 5 4 3
C 8 7 6 3 11
Hint: Introduce a dummy machine V with D 5 4 11 5 8
zero profit for each job. Then convert into E 5 2 7 8 4
the minimization type. F 6 3 11 5 4
10. Solve the AP and find the minimum cost 16. Solve the following AP.
W1 W2 W3 W4 A B C
A 18 24 28 32 1 120 100 80
B 8 13 17 19 2 80 90 110
C 10 15 19 22 3 110 140 120
146 Operations Research
Machine
C 10 7 2 2 2 M2 12 9 10 9
D 7 11 9 7 12 M3 11 14 11 7
E 7 9 10 4 12 M4 14 8 12 7 8
18. P Q R S T 25. 1 2 3 4
A 85 75 65 125 75 A 10 24 30 15
B 90 78 66 132 78 B 16 22 28 12
C 75 66 57 114 69 C 12 20 32 10
D 80 72 60 120 72 D 9 26 34 16
E 76 64 56 112 68
26. Job
1 2 3 4
19. I II III IV V
A 4 7 5 6
A 2 9 2 7 1
B 8 7 4
B 6 8 7 6 1
C 3 5 3
C 4 6 5 3 1
D 6 6 4 2
D 4 2 7 3 1
E 5 3 9 5 1
27. The expected sales by four salesmen in each
of the four zones are given below
20. A B C D E
1 2 3 4
1 160 130 175 190 200
A 42 35 28 21
2 135 120 130 160 175
B 30 25 20 15
3 140 110 155 170 185
C 30 25 20 15
4 50 50 90 80 110
D 24 20 16 12
5 55 35 70 80 105
Determine the optimal assignment so as to
21. A B C D maximize the sales.
I 200 200 400 100 28. Maximization type
II 300 100 300 300
III 400 100 100 500 A B C D E
IV 200 200 400 200 1 32 38 40 28 40
2 40 24 28 21 36
22. I II III IV 3 41 27 33 30 37
4 22 38 41 36 36
A 8 26 17 11
5 29 33 40 35 39
B 13 28 4 26
C 38 19 18 15
D 19 26 24 10 29. Maximization type
1 2 3 4 5
23. A B C D A 2 8 • 5 6
1 5 3 2 8 B 0 1 8 2 6
2 7 9 2 6 C 5 6 1 4 •
3 6 4 5 7 D 7 4 8 2 3
4 5 7 7 8 E 5 4 0 6 7
Assignment Problems 147
Product
Production Cost
B 60 70 51 74
Plant
C 55 67 53 70
1 2 3 4
D 58 65 54 68
A 49 60 45 61
Product
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
(best among the worst) and choose the alternative corresponding to the maximum sum is
corresponding action. selected. The procedure is explained by the
Maximax criterion is based on the optimistic following steps.
outlook. We select the best among the best. Select
Step 1 Choose a weight a (degree of optimism)
the maximum possible pay-off for each strategy
for the maximum pay-off and a weight 1 a
and choose the maximum from among these. The
(degree of pessimism) for the minimum pay-off
strategy giving this pay-off is selected as the course
(0 < a < 1).
of action.
Step 2 Determine h = a (maximum) + (1 a)
Example 13.1 A business man has three
minimum for each alternative.
alternatives, X, Y and Z, each of which gives rise
to four possible events A, B, C and D. The pay-off Step 3 Select the alternative corresponding to the
(in Rs) are given below. maximum h.
The Laplace criterion assigns equal probability
Alternative Pay-off to all the events. In other words, we take the
(Action) A B C D average pay-off corresponding to each action
X 8 0 10 6 (expected pay off). The action corresponding to
Y 4 12 18 2 the maximum expected pay-off is selected.
Z 14 6 0 8
Example 13.2 A company wants to introduce a
Find the best possible alternative using (i) new product in place of an old one. It is to be
Maximin criterion (ii) maximax criterion decided whether the price is to be fixed as very
high, moderate or slightly increased (H, M or S).
Solution The following table gives the minimum Three possible outcomes are expected, viz.
and maximum pay-off corresponding to each increase in sales, no change in sales or decrease in
alternative sales (I, N or D). The expected sales are given in
the following table (in lakhs of rupees)
Minimum Maximum
Alternative
Pay-off Pay-off Events
X 10 8 Strategies
I N D
Y 4 18
Z 0 14 H 70 30 15
M 50 45 0
Maximum among the minimum pay-offs is 0. S 30 30 30
Hence under maximin criterion Z is to be chosen.
Maximum among the maximum pay-offs is 18. Which alternative should be chosen according
Hence under maximax criterion Y is to be chosen. to (i) Maximin criterion (ii) Hurwicz criterion with
a = 0.6 and (iii) Laplace criterion?
13.4 HURWICZ CRITERION AND Solution
LAPLACE CRITERION (i) Maximin criterion
In decision-making we cannot be completely I N D Minimum
optimistic nor pessimistic and therefore we have H 70 30 15 15
to adopt a mixture of both. In Hurwicz criterion M 50 45 0 0
we take into account both minimum and maximum
S 30 30 30 30 Æ
pay-off for each alternative and assign them some
weight or probability. We find the sum of these Maximin value is 30. Hence the company
weighted pay-offs for each alternative. The should adopt the strategy S.
Decision Theory 151
Daily sales of puffs 10 11 12 13 his profit is only Rs 26 (The cost of 2 unsold puffs
is Rs 4). Thus we can find the profit for each
No. of days sold 15 20 40 25 combination of action and event.
The profit (pay-off) for each combination is
Apply EMV criterion to determine how many given by the following table:
puffs the shopkeeper has to stock everyday in order Conditional pay-off
to maximize his profit.
Solution We have 4 events Conditional pay-off
E1 : Demand for 10 puffs Events (Demand)
Actions 10 11 12 13
E2 : Demand for 11 puffs
E1 E2 E3 E4
E3 : Demand for 12 puffs
E4 : Demand for 13 puffs 10 A1 30 30 30 30
(stock)
11 A2 28 33 33 33
The courses of action are
12 A3 26 31 36 36
A1 : Stock 10 puffs
13 A4 24 29 34 39
A2 : Stock 11 puffs
A3 : Stock 12 puffs From the sales details in the past 100 days we
A4 : Stock 13 puffs find that the probabilities of demand are
Stocking less than 10 or more than 13 need not 10 puffs: 15/100 = 0.15
be considered as they have zero probability of 11 puffs: 20/100 = 0.20
sales. The profit on each puff sold is Rs 3. Suppose 12 puffs: 40/100 = 0.40
that the shopkeeper stocks 10 puffs and all of them 13 puffs: 25/100 = 0.25
are sold. Then he gets a profit of Rs 30. At the Multiplying these probabilities with the pay-
same time if he stocks 12 puffs and only 10 are offs we get the expected conditional pay-offs as
sold then he loses Rs 4 on unsold puffs and hence given below:
Prob. E1 E2 E3 E4 EMV
0.15 0.20 0.40 0.25 (Total) Rs
A1 30 (.15) 30 (.20) 30 (.40) 30 (.25) 4.5 + 6 + 12 + 7.5 = 30
A2 28 (.15) 33 (.20) 33 (.40) 33 (.25) 4.2 + 6.6 + 13.2 + 8.25 = 32.25
A3 26 (.15) 31 (.20) 36 (.40) 36 (.25) 3.9 + 6.2 + 14.4 + 9 = 33.5
A4 24 (.15) 29 (.20) 34 (.40) 39 (.25) 3.6 + 5.8 + 13.6 + 9.75 = 32.75
Since the EMV for A3 is maximum, the shopkeeper should stock 12 puffs at the beginning of each day.
Example 13.7 A flower merchant purchases Solution Here the events and actions are
roses at Rs 10 per dozen and sells them at Rs 30. E1: Demand for 7 dozens with prob 0.1
Unsold flowers are donated to a temple. The daily E2: Demand for 8 dozens with prob 0.2
demand for roses has the following probability
E3: Demand for 9 dozens with prob 0.4
distribution:
E4: Demand for 10 dozens with prob 0.3
Demand (in dozen) 7 8 9 10 A1: Purchase 7 dozens
Probability 0.1 0.2 0.4 0.3 A2: Purchase 8 dozens
A3: Purchase 9 dozens
Using EMV criterion determine how many
dozens should he purchase in order to maximize A4: Purchase 10 dozens
the profit. What is the maximum expected profit? The conditional pay-off table is as follows:
154 Operations Research
Purchase
A3 120 150 180 180 15 A1 450 450 450 450
A4 110 140 170 200 16 A2 420 480 480 480
Expected conditional pay-offs are given by 17 A3 390 450 510 510
18 A4 360 420 480 540
Prob. E1 E2 E3 E4
0.1 0.2 0.4 0.3 Multiplying the pay-off by the corresponding
A1 14 28 56 42 probability we get the following table giving
A2 13 32 64 48 expected conditional pay-off:
A3 12 30 72 54
E1 E2 E3 E4 EMV
A4 11 28 68 60
A1 45 90 180 135 450
é Profit per dozen = Rs 20 ù A2 42 96 192 144 474
êë Loss per unsold dozen = Rs 10 úû A3 39 90 204 153 486 Æ
A4 36 84 192 162 474
EMV of A1 = Rs 140
EMV of A2 = Rs 157 Since the highest EMV is 486, the course of
EMV of A3 = Rs 168 Æ action to be chosen is A3. Thus the merchant should
EMV of A4 = Rs 167 purchase 17 baskets everyday.
We find that A3 has the maximum EMV and
hence A3 is to be chosen. In other words the 13.7 EXPECTED OPPORTUNITY
merchant should purchase 9 dozens of roses LOSS CRITERION (EOL)
everyday and the maximum expected profit is
Rs 168. This method is the same as that of EMV criterion
except that, here we choose the act which leads to
Example 13.8 A fruit merchant purchases
minimum loss. EOL is the amount of pay-off that
orange at Rs 50 per basket and sells them at
is lost by not selecting the course of action that
Rs 80. Unsold oranges are disposed off at Rs 20 per
has the greatest pay-off for the event that actually
basket the next day. Past record of sales for 120
occurs. For a given event find the difference
days is as given below:
between the maximum conditional pay-off and the
Baskets sold 15 16 17 18 pay-offs corresponding to different actions. This
is called Conditional Opportunity Loss (COL).
No. of days 12 24 48 36
Multiplying these values by the respective
Find how many baskets the merchant should probabilities we obtain the EOL. The sum of the
purchase everyday in order to maximize his profit. expected COL of an action is the EOL. The action
yielding the minimum EOL is chosen. The steps
Solution Here unsold baskets have a salvage of this procedure are
value of Rs 20 each. Therefore the loss per basket
is 50 20 = 30. Thus the profit is given by 1. Determine the conditional pay-off for each
30 (no. of baskets sold) 30 (no. of baskets unsold) act event combination.
Decision Theory 155
A2 17 29 34 34 34 34
Stock
E1 E2 E3 E4 E5 E6 EMV E1 E2 E3 E4 E5 E6
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. Apply Maximax, Maximin and Laplace 2. Apply Hurwicz the criterion with a = 0.6
criteria for the following decision problems: for the following problems:
(a) Events (a) Strategies
E1 E2 E3 E4 A B C D
A1 400 10 600 1800 E1 3 4 4 5
Events
Acts
A2 2000 500 40 0 E2 6 2 1 3
A3 2000 1500 200 100 E3 1 8 8 4
(b) Events
(b) E1 E2 E3 E4 Alternatives I II III
A1 4 0 5 3 A 3 3 7
A2 2 6 9 1 B 4 3 2
A3 7 3 2 4 C 2 5 3
Decision Theory 157
3. Solve the following problems using EMV (a) The pay-offs of three acts A1, A2, A3 and
criterion: the events E1, E2, E3 are given below:
(a) A business man buys an item at Rs 8
and sells it at Rs 12. Unsold items are E1 E2 E3
useless. The following table gives the A1 25 400 650
sales details for the past 100 days. A2 10 440 740
A3 125 400 750
Number of
25 26 27 28 29
items sold The probabilities of the events E1, E2,
No. of days 10 10 25 40 15 E3 are 0.1, 0.7 and 0.2 respectively.
Determine which act can be chosen as
Determine how many items he has to the best.
purchase in order to maximize his profit. (b) A company is proposing manufacture of
(b) The cost of a cake is Rs 2 and it is sold three products X, Y and Z. The demand
at Rs 4. Unsold cakes are given free of for each product may be good, moderate
cost to poor people at the end of the day. or poor. The probabilities of the states
The probability distribution of the of nature are given below.
demand for the cakes is given below.
Nature of demand
Demand 15 16 17 18 19
Product Good Moderate Poor
Prob. 0.1 0.2 0.3 0.25 0.15
X 0.7 0.2 0.1
Determine the number of cakes to be Y 0.5 0.3 0.2
purchased in order to get maximum Z 0.4 0.5 0.1
profit. The estimated profit or loss in thousands
(c) A farmer wants to decide which of the of rupees under the three states is given
three crops rice, wheat or corn he should below.
cultivate in his 100 acre farm. The prof-
its from the crops depend on the nature Good Moderate Poor
of rainfall: high, moderate or low. The X 30 20 10
following table gives the pay off from Y 60 30 20
the crops under different conditions Z 40 10 15
(events).
Give your advice to the company about
Profit the choice of the product.
Rice Wheat Corn (c) A boat manufacturer finds that the
distribution of the demand for the boat
Rainfall
5. Apply Minimax Regret Criterion A cake costs Rs 3 and sells for Rs 5. Apply
E1 E2 E3 EOL criterion and determine how many
A1 70 30 15 cakes should be purchased in order to
A2 50 45 10 maximize the profit (unsold cakes are given
A3 30 30 20 to poor people free of cost).
10. The cost of manufacturing an item is Rs 25
6. Apply Minimax Regret Criterion and the selling price is Rs 30. Unsold items
E1 E2 E3 E4 are sold at Rs 20 per item at the end of the
week. The following table shows the weekly
A1 40 1 60 180
sales and the number of weeks from past
A2 200 50 4 0
experience.
A3 200 150 20 10
Weekly sales less 4 5 6 7 greater
7. Apply EMV criterion than 3 than 7
A1 A2 A3 Prob. No. of weeks 0 10 20 40 30 0
E1 25 10 125 0.1
Find the optimum number of items to be
E2 400 440 400 0.7
manufactured per week.
E3 650 740 750 0.2
11. The probability distribution of monthly sales
8. A pharmacist purchases a particular vaccine of an item is as follows:
on Monday each week. Unsold vaccine Monthly sales 0 1 2 3 4 5 6
becomes useless the next week. The cost is Probabilities 0.01 0.06 0.25 0.30 0.22 0.10 0.06
Rs 2 per dose and the pharmacist sells it at
Unsold items are stored at a cost of Rs 30
Rs 4 per dose. The demand for the medicine
per unit, per month and the loss due to
over the past 50 weeks is given below:
shortage is Rs 70 per unit. Determine the
Doses per week 20 25 50 60 optimum stock per month.
No. of weeks 5 15 25 5 12. The cost of storing a TV for a week is Rs 50.
Loss due to shortage is Rs 200 per TV. The
Using EMV. criterion determine how many probability distribution of the demand is
doses he should buy every week. given below:
9. The following table gives the information
Weekly demand 0 1 2 3 4 5
on the sales of cakes in a bakery.
Probabilities 0.05 0.1 0.2 0.3 0.2 0.15
Sales per day 25 26 27 28
How many TV sets should the dealer order
No. of days 10 30 50 10 per week?
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
(i) There are exactly two players and each player (iii) Note down the maximum pay-off in each
has a finite number of courses of action column.
(strategies). (iv) Select the minimum among these and square
(ii) The given matrix refers to the pay-off values it. It is the minimax value.
for A. (v) If the maximin and minimax values are equal
(iii) Each player knows all possible pay-offs for then mark the position of that pay-off in the
himself as well as for the other player. matrix. This element represents the value of
the game and it is called the saddle point of
14.3 GAMES WITH SADDLE the game.
POINT (PURE STRATEGY) This procedure is called solving the game with
the given pay-off matrix.
Maximin and Minimax Principle Note: In general maximin v £ v £ minimax v
Each row of the pay-off matrix represents If v = 0 = v the game is said to be fair.
the pay-off for A, corresponding to different If v = v = v the game is said to determinable
strategies of B. In the first row we find the pay-off (stable).
values of A1 corresponding to B1, B2, ..., Bn. A Example 14.1 Solve the game with the pay-off
wants to ensure the minimum profit. Hence the matrix
minimum of the I row is taken. Similarly for B1 B2 B3 B4
A2 the minimum of the II row is chosen and thus A1 1 7 3 4
we note down the minimum pay-off in each row.
Thus A is assured of these pay-offs for his actions A2 5 6 4 5
A1, A2, A3, …, Am. Now he selects the maximum A3 7 2 0 3
among these (maximin) value v and plays the
Solution
corresponding strategy. In case of B, each column
gives his loss corresponding to different strategies B1 B2 B3 B4 Row minimum
of A. He wants to minimize his loss. But A adopts A1 1 7 3 4 1
the strategy giving maximum gain. B cannot lose A2 5 6 4 5 4
more than the maximum pay-off of each column A3 7 2 0 3 0
(corresponding to B1, B2, ..., Bn). In order to
minimize his loss B has to choose the minimum Col. max 7 7 4 5
among these maximum pay-offs v . This value is Maximin value = 4 = Minimax value. v = v = v .
the minimax value and he chooses to play the The value of the game is 4. Saddle point is
corresponding strategy. (2, 3). Optimal strategy of A is A2 and that of B
If the maximin and the minimax values are is B3.
equal then the game is said to have Saddle point Example 14.2 Solve the following game:
and the corresponding pay-off is called the value
B1 B2 B3 B4
of the game v. ( v = v = v). The step-by-step
procedure is given below. A1 20 15 12 35
(i) Note down the minimum pay-off in each A2 25 14 8 10
row. A3 40 2 10 5
(ii) Select the maximum among these and square
it. It is the maximin value.
A4 −5 4 11 0
Theory of Games 161
Solution Row minimum and column maximum Solution Ignoring p and q we find the maximin
values are given below and minimax values.
B1 B2 B3 B4 Row minimum B1 B2 B3 Row minimum
A1 20 15 12 35 12 maximin A1 2 6 5 2
A2 25 14 8 10 8
A2 10 7 q 7 maximin
A3 40 2 10 5 0 5 p 8 5
A3
A4 −5 4 11 0 − 5 Col. max 10 7 8
minimax
Col. max 40 15 12 35 v = v = v = 12
We find that v = v = 7. Given that the saddle
minimax point is at (2, 2). Therefore v = 7 and p £ 7 and
We find that maximin = minimax =12. q ≥ 7.
Therefore the value of the game is 12 and the
saddle point is (1, 3). The optimal strategies are 14.4 GAMES WITHOUT SADDLE
A1 of A and B3 of B.
POINTS (MIXED STRATEGY)
Example 14.3 If the following game is deter-
When there is no saddle point the players select
minable find the limits for the value of λ .
the strategies with some probabilities. A selects
B1 B2 B3 his strategies A1, A2, A3, …, Am with probabilities
A1 λ 6 4 p1, p2, …, pm respectively, where p1 + p2 + p3 +
… + pm = 1.
A2 −1 λ −7
B selects his strategies B1, B2, B3, …, Bn with
A3 −2 4 λ probabilities q1, q2, q3,…, qn where q1 + q2 + …
Solution Ignoring the value of λ the maximin + qn = 1. For each strategy of A we can find the
and minimax values are expected gain.
B1 B2 B3 Row minimum
A1 λ 6 4 4 maximin
14.5 FORMULA FOR FINDING
THE VALUE OF THE GAME
A2 −1 λ −7 −7
IN CASE OF 2 × 2 GAMES
A3 −2 4 λ −2 WITHOUT SADDLE POINT
Col. max −1 6 4
Let the pay-off matrix for A be
minimax
maximin value = 4 B1 B2
minimax value = –1 A1 a11 a12
If the game is determinable then v = v = v .
A2 a21 a22
Here v = 4 and v = –1
The strategies and probabilities are
\ l = lies between –1 and 4.
A1 A2 B1 B2
Example 14.4 If the saddle point is (2, 2) in the SA = p p and SB = q q
following pay-off matrix find the range of the 1 2 1 2
Similarly, corresponding to A’s strategy A1 the These formulae are important and are used
expected loss of B is E1 (q) = a11q1 + a12q2. frequently in solving games without saddle point.
Corresponding to A2, expected loss of B is E2(q)
Example 14.5 Solve the following game
= a21q1 + a22q2.
If the value of the game is v, then B1 B2
E1( p) ≥ v and E2( p) ≥ v A1 8 −3
E1( p) £ v and E2( q) £ v
A2 −3 1
For optimal strategy we should have E1( p) =
E2( p) = v and E1(q) = E2(q) = v. Solution First let us find whether the matrix has
\ a11p1 + a21p2 = a12p1 + a22p2. a saddle point.
p1(a11 – a12) = p2 (a22 – a21) B1 B2 Row min
a22 − a21
p1/p2 = A1 8 −3 −3
a11 − a12
A2 −3 1 −3
a11 − a12
or p2/p1 = a Col. max 8 1
22 − a21 Since there is no saddle point we apply the
Also p1 + p2 = 1. method of mixed strategy.
a −a (a22 − a21 )
p2/p1 + 1 = 11 12 + 1 p1 =
a22 − a21 (a11 + a22 ) − (a12 + a21 )
a11 − a12 + a22 − a21
(p1+ p2)/p1 = 1+ 3
a22 − a21 = = 4/15
(8 + 1) − (−3 − 3)
(a11 + a22 ) − (a12 + a21 ) p2 = 1 – p1 = 11/15
1/p1 =
(a22 − a21 ) (a22 − a12 )
q1 =
(a22 − a21 ) (a11 + a 22 ) − (a12 + a21 )
\ p1 = (1)
(a11 + a22 ) − (a12 + a21 ) (1 + 3)
= = 4/15
(a11 − a12 ) (8 + 1) − (−3 − 3)
\ p2 = 1 – p1 = (2)
(a11 + a22 ) − (a12 + a21 ) q2 = 1 – q1 = 11/15
Again taking E1 (q) = E2 (q) we get Value of the game is
(a − a12 ) (a11a22 − a12 a21 ) 8−9
q1/q2 = 22 = = – 1/15
(a11 − a21 ) (a11 + a22 ) − (a12 + a21 ) 15
(a22 − a12 ) The optimal strategies are
and q1 = (3)
(a11 + a22 ) − (a12 + a21 ) A A2
SA = 1
(a11 − a21 ) 4 15 11 15
q2 = (4)
(a11 + a22 ) − (a12 + a21 ) B1 B2
SB =
The value of the game is given by 4 15 11 15
v = a11p1 + a21p2
a11 (a22 − a21 ) + a21 (a11 − a12 ) Example 14.6 Solve the following game
= B1 B2
(a11 + a22 ) − (a12 + a21 )
A1 5 1
(a11a22 − a21a12 )
=
(a11 + a22 ) − (a12 + a21 )
(5) A2 3
4
Theory of Games 163
Thus E1(p1) is represented by the line joining Example 14.13 Solve the following game using
the points (0, 1) on the 0 axis and (1, 2) on the the graphical method
1 axis. Now E2(p1) is the line joining (0, 0) and B1 B2 B3 B4
(1, 1)
A1 2 2 3 −2
E3(p1) is the line joining (0, 3) and (1, 0)
E4(p1) is the line joining (0, 2) and (1, –2) A2 4 3 2 6
Let us represent these 4 lines in the graph as given
Solution
below.
A1 A2
Let SA = p
p2
1
E1 (p1) = (2 – 4) p1 + 4 = – 2p1 + 4 (1)
E2 (p1) = (2 – 3)p1 + 3 = – p1 + 3 (2)
E3 (p1) = (3 – 2)p1 + 2 = p1 + 2 (3)
E4 (p1) = (– 2 – 6)p1 + 6 = – 8p1 + 6 (4)
E1 (0) = 4
E1 (1) = 2 Line joining (0, 4) and (1, 2)
E2 (0) = 3
E2 (1) = 2 Line joining (0, 3) and (1, 2)
E3(0) = 2
E3 (1) = 3 Line joining (0, 2) and (1, 3)
E4 (0) = 6
Fig. 14.1 E4 (1) = – 2 Line joining (0, 6) and (1, – 2)
From the graph we find that the highest point The graph is
of the lower envelope is H which is the intersection
of E2 (p1) and E4 (p1). Therefore B2 and B4 are the
optimal strategies of B. This leads to the 2 ¥ 2
pay-off matrix.
B2 B4
A1 æ 1 -2 ö
A2 çè 0 2 ÷ø
We have D = (1 + 2) – (0 – 2) = 5
p1 = (2 – 0)/5 = 2/5, p2 = 3/5
q2 = (2 + 2)/5 = 4/5, q4 = 1/5
Value of the game
v = (2 – 0)/5 = 2/5
The optimal strategies are
Fig. 14.2
A1 A2
SA = In the graph the highest point of the lower
2 5 3 5
envelope is H which is the intersection of (3) and
æ B1 B2 B3 B4 ö (4). Therefore B3 and B4 are the optimal strategies.
SB = ç
è 0 4 5 0 1 5 ÷ø We get the pay-off matrix.
168 Operations Research
The graph is B1 B2
and SB = 11 20 9 20
Example 14.15 Solve the game
B
1 −3
3 5
−1 6
A
4 1
2 2
−5 0
Solution Let the player B play the mixed strategy
æ B1 B2 ö
SB = ç q q2 ÷ø
è 1
B’s expected pay-offs corresponding to A’s pure
strategies are given by
A1 Æ E1 (q1) = 4q1 – 3,
E1 (0) = – 3, E1 (1) = 1
Fig. 14.3 A2 Æ E2 (q1) = – 2q1 + 5,
E2 (0) = 5, E2 (1) = 3
The minimax point H is the intersection (4) and
(5). Therefore the optimal strategies of A are A4 A3 Æ E3 (q1) = – 7q1 + 6,
and A5. E3 (0) = 6, E3 (1) = – 1
We have the pay-off matrix A4 Æ E4 (q1) = 3q1 + 1,
B1 B2 E4 (0) = 1, E4 (1) = 4
A4 −2 5 A5 Æ E5 (q1) = 2,
A5 7 −6 E5 (0) = 2, E5 (1) = 2
D = (– 2 – 6) – (7 + 5) = – 20 A6 Æ E6 (q1) = – 5q1,
p4 = (– 6 – 7)/ – 20 = 13/20 E6 (0) = 0, E6 (1) = – 5
p5 = 7/20 In the graph we draw the lines joining
q1 = (– 6 – 5)/ – 20 (0, – 3) and (1, 1) (1)
= 11/20 (0, 5) and (1, 3) (2)
q2= 9/20 (0, 6) and (1, – 1) (3)
v = (12 – 35)/ – 20 = 23/20 (0, 1) and (1, 4) (4)
A1 A2 A3 A4 A5 (0, 2) and (1, 2) (5)
SA = (0, 0) and (1, – 5) (6)
0 0 0 13 20 7 20
170 Operations Research
æ B1 B2 B3 .... Bn ö
and SB = çè q q2 q3 .... qn ÷ø
1
If the value of the game is v then
a11 p1 + a21 p2 + a31 p3 + ü
ï
K + am1 pm ³ v ï
a12 p1 + a22 p2 + a32 p3 + ïý Maximin
Fig. 14.4 K + am 2 pm ³ v ï principle
. . . . ï
The lowest point of the upper envelope is H ï
which is the intersection of (2) and (4). Hence A’s a1n p1 + a2n p2 + … + amn pm ≥ vïþ
optimal strategies are A2 and A4. We have the pay- Also
off matrix a11q1 + a12 q2 + K + a1n qn £ v ü
B1 B2 a21q1 + a22 q2 + K + a2 qn £ v ïï
Minimax
. . . ý principle
A2 æ 3 5ö . . . ï
A4 çè 4 1÷ø am1q1 + am 2 q2 + K + am qn £ v ïþ
D = (3 + 1) – (4 + 5) = – 5 In order to obtain the value of the game, we
p2 = (1 – 4) / – 5 = 3/5, p4 = 2/5 convert these inequalities into equations. Thus we
q1 = (1 – 5) / – 5 = 4/5, q2 = 1/5 get
v = (3 – 20) / – 5 = 17/5 a11p1 + a21p2 + … + am1pm = v
The optimal strategies are a12p1 + a22p2 + … + am2pm = v
æ A1 A2 A3 A4 A5 A6 ö M M M M
SA = ç
è 0 3/5 0 2/5 0 0 ÷ø a1np1 + a2np2 + … + amnpm = v
a11q1 + a12q2 + … + a1nqn = v
æ B1 B2 ö
and SB = ç
è 4 / 5 1 / 5÷ø
a21q1 + a22q2 + … + a2nqn = v
M M M M
14.8 ALGEBRAIC METHOD am1q1 + am2q2 + … + amnqn = v
In a game with m ¥ n type pay-off matrix if there Solving these equations we obtain the values
is no saddle point and if it is not possible to reduce of p1, p2, …, pm; q1, q2,…, qn in terms of v.
Theory of Games 171
\ V = 91/24 2 2
y1 = 1/13 fi q1 = v/13 = 7/24 x3 = fi p3 = ¥ v = 1/12
91 91
y2 = 40/273 fi q2 = 40v/273 = 5/9 Thus we get
y3 = 11/273 fi q3 = 11v/273 = 11/72
æ A1 A2 A3 ö
By principle of duality we get (from the Cj of SA = ç
è 3 8 13 24 1 12 ÷ø
the optimal table)
9 9 æ B1 B2 B3 ö
x1 = fi p1 = ¥ v = 3/8 and SB = çè 7 24 5 9 11 72 ÷ø
91 91
1 1 v = 91/24
x2 = fi p1 = ¥ v = 13/24
7 7
EXERCISES
■ ■ ■ ■ ■ ■ ■
æ -5 3 1 10 ö æ -2 5ö
(m) ç 5 5 4 6 ÷ ç -5 3÷
ç ÷ ç ÷
è 4 -2 0 -5ø (e) ç 0 -2÷
ç -3 0÷
æ 30 40 -80 ö ç ÷
ç ÷ çè 1 -4 ÷ø
(n) ç 0 15 -20 ÷
è 90 20 50 ø æ 2 4ö
æ 2 -2 4 1ö ç 2 3÷
ç ÷
ç 6 1 12 3÷ (f) ç 3 2 ÷
(o) ç ÷ çè -2 6 ÷ø
ç -3 2 0 6 ÷
çè 2 -3 7 1÷ø
æ 1 3 11ö
(g) ç
æ -1 -2 8ö è 8 5 2 ÷ø
(p) ç 7 5 -1÷ æ 1 3 -1 4 2 -5ö
ç ÷ (h) çè -3 5 6 1 2 0 ÷ø
è 6 0 12 ø
æ 8 10 9 14 ö æ -2 -4 3 4ö
(q) ç 10 11 8 12 ÷ (i) çè -6 -5 2 1÷ø
ç ÷
è 13 12 14 13ø æ 3 5ö
æ 2 4 3 8 4ö ç -1 6÷
ç 5 6 3 7 8÷ (j) ç ÷
(r) ç ÷ ç 4 1÷
ç 6 7 9 8 7÷ çè 2 2 ÷ø
çè 4 2 6 4 3÷ø
æ 19 6 7 5ö
æ 6 8 6ö ç 7 3 14 6 ÷
(s) ç ç ÷
è 4 12 2 ÷ø (k) ç 12 8 18 4 ÷
2. Use graphical method to solve çè 8 7 13 -1÷ø
æ 3 0 6 -1 7 ö Hint: Reduce using dominance property.
(a) ç
è -1 5 -2 2 1÷ø 3. Use algebraic method to solve
æ 1 0 4 -1ö æ 1 -1 -2 ö
(b) çè -1 1 -2 5÷ø (a) ç -1 1 1÷
ç ÷
è 2 -1 0 ø
æ 2 -4 6 -3 5ö
(c) ç æ 9 1 4ö
è -3 4 -4 1 0 ÷ø
(b) ç 0 6 3 ÷
ç ÷
æ 2 3ö è 5 2 8ø
ç 6 7÷
ç ÷ æ 4 2 4ö
(d) ç -6 10 ÷ (c) ç 2 4 0 ÷
ç -3 -2÷ ç ÷
ç ÷ è 4 0 8ø
çè 3 2÷ø
Theory of Games 175
æ 1 -1 3ö æ -1 2 1ö
ç ÷ (b) ç 2 -2 2 ÷
(d) ç 3 5 -3÷ ç ÷
è 6 2 -2 ø è 3 3 -3ø
æ 1 -2 1ö æ 0 2 2ö
(e) ç -1 3 2 ÷ (c) ç 3 -1 3÷
ç ÷ ç ÷
è -1 -2 3ø è 4 4 -2 ø
4. Use the LPP method to solve æ 1 -1 -1ö
æ 3 -4 2 ö (d) ç -1 -1 3÷
(a) ç 1 -3 -7 ÷ ç ÷
ç ÷ è -1 2 -1ø
è -2 4 7 ø
ANSWERS
■ ■ ■ ■ ■ ■ ■
æ A1 A2 ö æ A1 A2 A3 A4 ö
(b) SA = çè 2 3 1 3÷ø and (j) SA = ç
2 5 0 ÷ø
and
è3 5 0
æ B1 B2 B3 B4 ö æ B1 B2 ö
SB = çè 1 3 2 3 0 0 ÷ø v = 2/3 SB = ç 4 5 1 5÷ Value = 17/5
è ø
æ A1 A2 ö æ A1 A2 A3 A4 ö
(c) SA = ç
è 4 9 5 9 ÷ø
and (k) SA = ç
0 ÷ø
and
è3 4 1 4 0
æ B1 B2 B3 B4 ö æ B1 B2 B3 B4 ö
SB = çè 4 9 0 5 9 ÷ø v = –7/9 SB = ç 0 1 4 0 3 4 ÷ø
0 è
æ A1 A2 A3 A4 A5 ö Value = 21/4
(d) SA = ç
0 ÷ø
and æ
è0 47 37 0 A A A 3 ö
3. (a) SA = ç 1 2
and
è 6 / 17 7 17 4 17 ÷ø
æ A1 A2 ö
SB = ç 5 7 2 7 ÷ v = 34/7 æ B B2 B3 ö
è ø SB = ç 1
è 2 17 9 17 6 17 ÷ø
æ A1 A2 A3 A4 A5 ö
(e) SA = ç 5 12 7 12 ÷ø and
Value = 5/17
è 0 0 0
æ A1 A2 A3 ö
æ B1 B2 ö (b) SA = ç
è 3 8 13 24 1 12 ÷ø
and
SB = çè 3 4 1 4 ÷ø v = – 1/4
æ B1 B2 B3 ö
æ A1 A2 A3 A4 ö SB = ç
è 7 24 5 9 11 72 ÷ø
v = 91/24
(f) SA = ç 1 3 0 2 3 0 ÷ø and
è
æ B1 B2 ö æ A1 A2 A3 ö
(c) SA = ç and
SB = ç
è 2 3 1 3 ÷ø
v = 8/3 è 0 2 3 1 3÷ø
æ A1 A2 ö æ B1 B2 B3 ö
SB = ç
è 0 2 3 1 3÷ø
(g) SA = ç 3 11 8 11÷ and v = 8/3
è ø
æ B1 B2 B3 ö æ A1 A2 A3 ö
(d) SA = ç and
SB = ç 0
è 2 11 9 11÷ø Value = 49/11 è 2 3 1 3 0 ÷ø
æ A1 A2 ö æ B1 B2 B3 ö
(h) SA = ç SB = ç 0 1 2 1 2 ÷ Value = 1
è 4 5 1 5÷ø
and è ø
æ B1 B2 B3 B4 B5 B6 ö æ A1 A2 A3 ö
SB = ç 0 3 5 0 (e) SA = ç 4 7 3 7 0 ÷ø and
è 2 5 0 0 ÷ø è
Value = 17/5 æ B1 B2 B3 ö
æ A1 A2 ö SB = ç 5 7 2 7 0 ÷ v = 1/7
è ø
(i) SA = ç and
è 1 3 2 3÷ø æ A1 A2 A3 ö
æ B1 B2 B3 B4 ö 4. (a) SA = ç 6 13 0 7 13÷ø and
è
SB = ç 1 5 4 5 0 0 ÷ø
è æ B1 B2 B3 ö
Value = –18/5 SB = çè 8 13 5 13 0 ÷ø v = 4/13
Theory of Games 177
æ A1 A2 A3 ö æ B1 B2 B3 ö
(b) SA = ç 12 25 9 25 4 25÷ and SB = ç
è 5 22 8 22 9 22 ÷ø
v = 17/11
è ø
æ B1 B2 B3 ö æ A1 A2 A3 ö
SB = ç 19 50 15 50 8 25÷ v = 18/25 (d) SA = ç
è 6 13 3 13 4 13÷ø
and
è ø
æ A1 A2 A3 ö æ B1 B2 B3 ö
(c) SA = çè 6 11 3 11 2 11÷ø and SB = çè 6 13 4 13 3 13÷ø v = – 1/13
15
Dynamic Programming
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Zone 1
0 1 2 3 4 5 6 7 8 9 No. of Salesmen
Zone 2
30 45 60 70 79 90 98 105 100 90 Profits
0 35 65 80 95 105 114 125 133 140 135 125
1 45 75 90 105 115 124 135 143 150 145
2 52 82 97 112 122 131 142 150 157
3 64 94 109 124 134 143 154 162
4 72 102 117 132 142 151 162
5 82 112 127 142 152 161
6 93 123 138 153 163
7 98 128 143 158
8 109 130 145
9 100 130
The maximum profit for each value of A are the profits for different combinations can be
represented in bold. found along the diagonal. The maximum
The above table shows the profits for all com- profits for various combinations are given
binations. For a given number of salesmen, below:
A 0 1 2 3 4 5 6 7 8 9
S 65 80 95 105 115 125 135 143 154 163
0+0 0+1 0+2 1+2 or 0+3 1+3 0+5 1+5 3+4 or 1+6 3+5 6+3
Stage III
Zone 1 + Zone 2
0 1 2 3 4 5 6 7 8 9
Zone 3
65 80 95 105 115 125 135 143 154 163
0 42 107 122 137 147 157 167 177 185 196 205
1 54 119 134 149 159 169 179 189 197 208
2 60 125 140 155 165 175 185 195 203
3 70 135 150 165 175 185 195 205
4 82 147 162 177 187 197 207
5 95 160 175 190 200 210
6 102 167 182 197 207
7 110 175 190 205
8 110 175 190
9 110 175
A = (x1 + x2) + x3
The maximum profits for different values of A are
A 0 1 2 3 4 5 6 7 8 9
S 107 122 137 149 159 169 179 190 200 210
0+0 0+1 0+2 1+2 1+3 1+4 1+5 5+2 5+3 5+4
Thus for A = 9. We find that the profit is Find the mode of allocation of the six boxes to
maximum for x1 + x2 = 4 and x3 = 5. From stage II the stores so as to maximize the profit.
we find that for A = 4, the profit has max value Solution Let us take stage I as the allocation of
115 with x1 = 3 x2 = 1. Therefore the optimal the boxes to 1 store
distribution of salesmen is
Stage I (Store 1)
Zone 1 ¾¾¾ ®3 ü
ï
Zone 2 ¾¾¾ ® 1ý Max profit = Rs 2,10,000 X 0 1 2 3 4 5 6
Zone 3 ¾¾¾ ®5 ï f1(x) profit 0 4 6 7 7 7 7
þ
Example 15.2 (Production allocation problem) Stage II (Stores 1 and 2) Total profit P = F2 (A)
The owner of four fruit shops has purchased six = Max {f2(x) + F1 (A – x)} where A denotes the
boxes of apple. The quantity in demand and the total number of boxes allocated. Distribution of
profits are different at these stores. The following different number of boxes at stores 1 and 2 is as
table gives the total profit at each store for various follows:
numbers of boxes allotted. Store 1 0 1 2 3 4 5 6 No. of
Number of Stores boxes
boxes 1 2 3 4 Store 2 0 4 6 7 7 7 7 Profit
0 0 0 0 0 0 0 0 4 6 7 7 7 7
1 4 2 6 2 1 2 2 6 8 9 9 9
2 6 4 8 3 2 4 4 8 10 11 11
3 7 6 8 4 3 6 6 10 12 13
4 7 8 8 4 4 8 8 12 14
5 7 9 8 4 5 9 9 13
6 7 10 8 4 6 10 10
Dynamic Programming 181
The maximum profits for different no of The maximum profits for different values of A
allocations to stores 1 and 2 are are
A 0 1 2 3 4 5 6 A 0 1 2 3 4 5 6
P 0 4 6 8 10 12 14 P 0 6 10 12 14 16 18
x1 + x2 0+0 0 +1 0 + 2 1 + 2 2 + 2 3 + 2 4 + 2 0+0 0+1 0+2 0+3 0+4 0+5 0+6
1+1 2+1 3 +1 4+1 1+2 1+3 1+4 1+5
We have F2(A) = Max [f2(x) + F1(A – x)] For four stores taken together, we find that the
max profit is 18, for 6 baskets.
Stage III (Stores 1, 2 and 3)
The optimal distributions are
P = F3 (A) = Max {f3(x) + F2 (A – x)}
The costs of advertising in newspaper, radio and Rs 4000 per week for advertisement. Determine the
television are Rs 500, Rs 1000 and Rs 2000 optimal combination of advertising media and
respectively per appearance. The budget provides frequency.
Solution Let us consider TV as stage I. The costs are C11 C12 C13 C14 for the frequencies and the
corresponding returns are R11 R12 R13 R14.
State Frequency
1 2 3 4
x1 C11 = 2000 C12 = 4000 C13 = 6000 C14 = 8000 Return Decision
R11 = 220 R12 = 275 R13 = 325 R14 = 350
500 – – – – 0 0
1000 – – – – 0 0
1500 – – – – 0 0
2000 220 – – – 220 1
2500 220 – – – 220 1
3000 220 – – – 220 1
3500 220 – – – 220 1
4000 220 275 – – 275 2
Stage III
TV, Radio and Newspaper
F3(A) = Max {f3(x) + F2(A – x)}
Thus the maximum return is 5,45,000. The optimal policy is: Twice in Newspaper, once in Radio and
once in TV per week.
Example 15.5 (Cargo loading problem) A 5 60 120 – 120 2
truck can carry a total of 10 tons of a product. 6 60 120 180 180 3
Three types of product are available for transport. 7 60 120 180 180 3
Their weight and values are given below. One unit in each of A and B must be taken.
Determine the loading such that the total value Hence x1 cannot exceed 7 tons. We take C and B
of the cargo is maximum (at least one unit of for stage II
each type must be loaded). F2(A) = Max {f2(x) + F(A – x)}
2 60 – – 60 1
Stage III (C, B and A are taken)
3 60 – – 60 1
F3 (A) = Max {f3(x) + F2 (A – x)}
4 60 120 – 120 2
Dynamic Programming 185
Example 15.10 Solve using dynamic pro- Example 15.11 Maximize z = 5x1 + 2x2
gramming Subject to x1 + 2x2 £ 43
Maximize z = 3x1 + 4x2 x1 £ 23
subject to the constraints x1, x2 ≥ 0
2x1 + 5x2 ≥ 120 Solution
2x1 + x2 £ 40 Stage I
x1 , x2 ≥ 0 f1 (B11 B21) = Max (5x1)
Solution Here we have two stages for two = 5 max (x1)
variables. = 5 min { 43 – 2x2, 23}
Stage I Stage II
f1 (B11 B21) = Max (c1 x1) f2 (B12, B22) = max [5 min {43 – 2x2, 23}
= Max (3x1) + 2x2]
= 3 Max(x1) ì5(43 - 2 x2 ) + 2 x2 if 43 - 2 x2 £ 23
From the constraints we find that = Max í
x1 £ (120 – 5x2 )/ 2 and î5(23) + 2 x2 if 43 - 2 x2 ³ 23
and x1 £ (40 – x2 )/ 2 ì 215 - 8 x2 if x2 ³ 10
= Max í
In order to satisfy both the constraints î115 + 2 x2 if x2 £ 10
x1 £ min {(120 – 5x2 )/ 2, (40 – x2 )/ 2} Both the values become equal when x2 = 10
\ f1 (B11 B21) = 3 min {(120 – 5x2 )/2, \ f2 (B12 B22) = (215 – 80)
(40 – x2 )/ 2} or (115 + 20) = 135
\ f2 (43 , 23) = 135 x2 * = 10
Stage II
x1 * = 43 – 2x2 = 23
f2 (B12 B22 ) = Max { f1(B11 B21 ) + 4x2}
\ Solution is x1 = 23, x2 = 10 z * = 135
= Max [3 min {(120 – 5x2)/2,
(40 – x2) / 2} + 4x2] Example 15.12 Maximize z = 3x1 + 2x2
subject to the constraints
ì3(120 - 5 x2 ) / 2 + 4 x2 if x1 + x2 £ 300
ï (120 - 5 x ) / 2 £ (40 - x ) / 2
ï 2 2 2x1 + 3x2 £ 800
= max í
ï 3(40 - x2 ) / 2 + 4 x2 if x1, x2 ≥ 0
ïî (120 - 5 x2 ) / 2 ³ (40 - x2 ) / 2 Solution We apply the backward procedure,
taking stage I with x2.
Now (120 – 5x2)/2 £ (40 – x2)/2 f2 (B12, B22) = max (2x2)
fi 120 – 5x2 £ 40 – x2 = 2 max (x2)
fi 80 £ 4x2 fi x2 ≥ 20 = 2 [min { 300 – x1, (800 – 2x1)/3}]
(120 – 5x2)/2 ≥ (40 – x2)/2
Stage II
fi x2 £ 20
f1 (B11 B21) = max [3x1 + 2x2]
When x2 = 20
= max [3x1 + 2 min{300 – x1, (800 – 2x1) / 3}]
3 (120 – 5x2) / 2 + 4x2
= 3 (40 – x2) / 2 + 4x2 = 110 ì3x1 + 2(300 - x1 ) if
ï 300 - x1 £ (800 - 2 x1 ) / 3
\ f2 (120, 40) = 110 x2* = 20 ï
= max í
x1* = (40 – x2 * )/ 2 = 10
ï3x1 + 2(800 - 2 x1 ) / 3 if
Solution is x1 = 10, x2 = 20, z* = 110 ïî 300 – x1 ³ (800 - 2 x1 ) / 3
Dynamic Programming 189
EXERCISES
■ ■ ■ ■ ■ ■ ■
(b) Maximize z = 5x1 + 10x2 ties of power failure for the systems are given
subject to the constraints below:
10x1 + 5x2 £ 250 Power cells Probability of power failure
4x1 + 10x2 £ 200 System 1 System 2 System 3
2x1 + 3x2 £ 900 1 0.50 0.60 0.40
x1, x2 ≥ 0 2 0.15 0.20 0.25
3 0.04 0.10 0.10
(c) Maximize z = 3x1 + 4x2 4 0.02 0.05 0.05
subject to the constraints 5 0.01 0.02 0.01
2x1 + x2 £ 6 Determine how many cells should be as-
2x1 + 3x2 £ 9 signed to each system so as to maximize the
x1, x2 ≥ 0 overall system reliability (least probability
(d) Maximize z = 4x1 + 3x2 of total power failure).
12. The following table gives the number of votes
subject to the constraints
(in thousands) gained by a political party in
2x1 + x2 £ 2 three districts corresponding to various
– x1 + x2 £ 1 allocation of six party workers in each district.
x1, x2 ≥ 0 Workers Districts
10. A student has five days at his disposal to D1 D2 D3
revise the subject before examination. The 0 0 0 0
course is divided into four sections. He may 1 25 20 33
study a section for one day, two days, three 2 42 38 43
days, etc. or not at all. The expected grade 3 55 54 47
points he will get for different alternative 4 63 65 50
arrangements are as follows: 5 69 73 52
6 74 80 53
Study Sections
I II III Determine the number of workers to be
assigned to each district so as to maximize
0 0 1 0
the number of votes gained.
1 1 1 1
2 1 3 3 13. A company has eight salesmen working in
3 3 4 3 three areas A1, A2, A3. The sales (in thousands
of rupees) by each salesman in the three areas
How should be distribute the available days are given below. Determine the optimum
to the different sections so that he may get allocation of salesmen in order to maximize
maximum grade points? the sales.
11. Consider the problem of designing electronic
devices to carry five power cells, each of Number of 0 1 2 3 4 5 6 7 8
salesmen
which must be located within three electronic
systems. If the power fails in one system then A1 15 22 30 38 45 48 54 60 65
A2 26 35 40 46 55 62 70 76 83
it will be powered on an auxiliary basis by
A3 30 38 44 50 60 65 72 80 85
the cells of the remaining systems. The
probability of power failure in a particular 14. World Health Council wants to determine the
system depends on the number of cells number of medical teams to be allocated
originally assigned to it. Estimated probabili- among three countries C1, C2 and C3. It has
192 Operations Research
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
The step-by-step procedure due to S.M. Johnson Solution The given table is
and R. Bellman is as follows.
Job Machines
Step 1 Examine the columns (showing the pro-
cessing times) on machines A and B and select the A B
smallest among all of them: min {Ai, Bi} 1 3 8
2 12 10
Step 2 3 5 9
(i) If the minimum value belongs to column A 4 2 6
schedule this job first on machine A. Suppose 5 9 3
this value falls in column B then schedule 6 11 1
this job last on machine A.
We find that the smallest value of time is 1 unit
(ii) If there are two equal minimum values one for job 6 in the 2 nd column B. Therefore we
in each column, schedule the one in the first schedule job 6 as last.
column as the first job and the other in the
second column as the last.
6
(iii) If both equal minimum values are in the first
column select the job corresponding to the The reduced processing times are
smallest subscript first.
Job A B
(iv) If the equal values occur in the second
1 3 8
column select the job corresponding to the
2 12 10
largest subscript first. 3 5 9
Step 3 Delete the assigned job. Continue the pro- 4 2 6
cess of placing the jobs next to first or next to last 5 9 3
till all the jobs are assigned. The resulting sequence
Now the smallest value is 2 for job 4 on A.
will minimize the total time T.
Hence we schedule job 4 as the first on A. We
Note: have
Idle time for the machine A (M1)
= Total time – Time when the last job is 4 6
finished on A.
The reduced table is
Idle time for the machine B (M2)
= Time at which the first job is finished on Job A B
A + S [Time of starting of the jth job on 1 3 8
B – Time when (j – 1)th job is finished 2 12 10
on B] 3 5 9
5 9 3
Example 16.1 Find the sequence of jobs that
minimizes the total elapsed time to complete the Now there are two equal minimum values 3 one
following jobs on two machines. for job 1 on A and the other for job 5 on B. By the
rule job 1 is scheduled next to job 4 and job 5
Job 1 2 3 4 5 6 before job 6. Thus we get
Machine A 3 12 5 2 9 11
4 1 5 6
Machine B 8 10 9 6 3 1
196 Operations Research
The reduced table is Now we have 8 tasks with the processing times
as shown below:
Job A B
Task B C D E F G H I
2 12 10
3 5 9 Machine 1 5 4 9 6 8 7 5 4
Machine 2 8 7 4 3 9 3 8 11
Here the minimum is 5 on A for job 3. Hence
job 3 is scheduled next to job 1 on A. Naturally In this table the minimum time is 3 on Machine
job 2 is assigned next to job 3. Thus we get the 2 corresponding to E and G. Since the processing
optimal sequence. time of E on Machine 1 is less than that of G on
Machine 1, E is placed as the last and G is
4 1 3 2 5 6 processed before E. Thus we have
Total time taken to complete all the jobs is Now we have the reduced table
61 hours. Job 2 3 5
Idle time for Machine 1 is 61 – 50 = 11 hours
Machine 1 12 15 10
Idle time for Machine 2 is 2 + 58 – 58 = 2 hours
Machine 2 10 10 12
Example 16.3 Determine the optimal
sequencing of the following 7 jobs on two Here we have 10 as the minimum value for job
machines Machine 1 and Machine 2. 5 on Machine 1 and job 2 and job 3 on Machine 2.
By the rule job 5 is processed next to job 4, job 2
Job 1 2 3 4 5 6 7 before job 7 and job 3 before job 2. This gives the
optimal sequence
Machine 1 3 12 15 6 10 11 9
Machine 2 8 10 10 6 12 1 3 1 4 5 3 2 7 6
Solution: The given table is The elapsed time according to this sequence is
given below:
Job 1 2 3 4 5 6 7
Job Machine 1 Machine 2 Idle time for
Machine 1 3 12 15 6 10 11 9 Time-in Time-out Time-in Time-out Machine 2
Machine 2 8 10 10 6 12 1 3
1 0 3 3 11 3
The least processing time is 1 on Machine 2 4 3 9 11 17 0
for job 6. Assign job 6, the last place. We get 5 9 19 19 31 2
3 19 34 34 44 3
6 2 34 46 46 56 2
7 46 55 56 59 0
Next we see that there are two equal values 3 6 55 66 66 67 7
one for job 1 on Machine 1 and the other for job 7
17 hrs
on Machine 2.
Total time taken is 67 hrs
Job 1 2 3 4 5 7 Idle time for Machine 1 is 67 – 66 = 1 hr
Machine 1 3 12 15 6 10 9 Idle time for Machine 2 is 17 hrs
Machine 2 8 10 10 6 12 3
16.3 PROCESSING n JOBS ON
Take job 1 as the first and job 7 as the last but
THREE MACHINES
one. Therefore we have
For processing n jobs on three machines say A, B
1 7 6 and C, the previous method can be extended.
198 Operations Research
Extension is possible with either one or both of The minimum value is 8 for job 3 on G. Hence
the following conditions. If neither condition holds job 3 is processed first
good this method fails. The conditions are
3
(i) the minimum time on machine A must be
greater than or equal to the maximum time The reduced columns are
on B. Job G H
(ii) the minimum time on C must be greater than
or equal to the maximum time on B. 1 13 9
2 16 15
One or both of these conditions must hold in 4 10 9
order to apply the method. 5 15 9
The procedure is given by the following steps:
Here the minimum is 9 for 3 jobs 1, 4 and 5 on
(i) Introduce two dummy machines G and H
H (decreasing order of the processing times on G
with the corresponding processing times
are 15, 13, 10). We place job 4 at the last, job 1
given by
next and job 5 before job 1. Job 2 is processed
Gj = Aj + Bj j = 1, 2, 3, …, n
next to job 3. Thus we get the sequence
Hj = Bj + Cj j = 1, 2, 3, …, n
(The processing times of the corresponding 3 2 5 1 4
jobs are added)
(ii) Consider the machines G and H and apply The elapsed time according to this sequence is
the previous method taking the order GH. given below.
Example 16.4 Determine the sequence which Job Machine
minimizes the total time for processing five jobs
A B C
on three machines A, B and C. The following table
gives the processing times. Time- Time- Time- Time- Time- Time-
in out in out in out
Job 1 2 3 4 5 3 0 6 6 8 8 16
Machine A 8 10 6 7 11 2 6 16 16 22 22 31
Machine B 5 6 2 3 4 5 16 27 27 31 31 36
Machine C 4 9 8 6 5 1 27 35 35 40 40 44
4 35 42 42 45 45 51
Solution In the table we find that
min Aj = 6 min Cj = 4 Total time elapsed 51 hrs
max Bj = 6 Idle time for A = (45 – 42) + (51 – 45) = 9 hrs
Idle time for B = 6 + 8 + 5 + 4 + 2 + 6 = 31 hrs
Since min Aj ≥ max Bj condition (i) is satisfied.
Idle time for C = 8 + 6 + 0 + 4 + 1 = 19 hrs
Now take Gj = Aj + Bj ( j = 1, 2, 3, 4, 5)
Hj = Bj + Cj ( j = 1, 2, 3, 4, 5) Example 16.5 The processing times of six jobs
We have on three machines M1, M2, M3 are given below.
G H 1 3 8 13
2 12 6 14
1 13 9 3 5 4 9
2 16 15 4 2 6 12
3 8 10 5 9 3 8
4 10 9 6 11 1 13
5 15 9
Determine the optimal sequence of jobs.
Sequencing Problems 199
Job M1 M2 M3 M4 M5 M6 M7
Time- Time- Time- Time- Time- Time- Time- Time- Time- Time- Time- Time- Time- Time-
in out in out in out in out in out in out in out
C 0 12 12 19 19 29 29 36 36 45 45 57 57 89
A 12 32 32 42 42 51 51 55 55 67 67 76 89 129
B 32 54 54 62 62 73 73 81 81 91 91 101 129 159
D 54 84 84 90 90 95 95 101 101 111 111 122 159 187
EXERCISES
■ ■ ■ ■ ■ ■ ■
Job 1 2 3 4 5 6 Job A B C D E F G
M1 8 3 7 2 5 1 M1 3 8 7 4 9 8 7
M2 3 4 5 2 1 6 M2 4 3 2 5 1 4 3
M3 6 7 5 11 5 6 12
M3 8 7 6 9 10 9
12. Five jobs on three machines
6. Four jobs on six machines
Job 1 2 3 4 5
Job Machines
M1 3 9 6 5 4
M1 M2 M3 M4 M5 M6 M2 4 5 1 2 3
A 18 8 7 2 10 25 M3 8 9 5 7 10
B 17 6 9 6 8 19
C 11 5 8 5 7 15 13. Six jobs on three machines
D 20 4 3 4 8 12
Job 1 2 3 4 5 6
7. Five jobs on four machines
M1 12 8 7 11 10 5
Job Machines M2 3 4 2 5 5 4
M3 7 10 9 6 10 4
M1 M2 M3 M4
A 10 3 5 14 14. Four jobs on four machines
B 12 2 6 7
C 8 4 4 12 Job 1 2 3 4
D 15 1 7 8
M1 15 5 5 15
E 16 5 3 10
M2 12 2 10 12
8. Five jobs on two machines M3 16 2 4 16
M4 18 3 4 18
Job 1 2 3 4 5
M1 3 8 5 7 4 15. Seven jobs on three machines
M2 4 10 6 5 8
Job 1 2 3 4 5 6 7
9. Five jobs on two machines M1 12 6 5 11 5 7 6
M2 7 8 9 4 7 8 3
Job 1 2 3 4 5 M3 3 4 1 5 2 3 4
M1 5 4 8 7 6
M2 3 9 2 4 10 16. Five jobs on four machines
Job A B C D E
10. Eight jobs on two machines
M1 11 13 9 16 17
Job A B C D E F G H M2 4 3 5 2 6
M1 14 26 17 11 9 26 18 15 M3 6 7 5 8 4
M2 21 15 16 21 22 12 13 25 M4 15 8 13 9 11
Sequencing Problems 203
ANSWERS
■ ■ ■ ■ ■ ■ ■
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
A queueing system can be completely described (iii) Service Mechanism This is the facility
by the following characteristics. available in the system to serve the customers. In
(i) Input process This gives the mode of arrival certain cases one server many find it difficult when
of the customers into the system. Generally the there is a large number of customers in a shop. Then
customers arrive in a random manner. Hence the the number of servers may be increased in order to
distribution of inter-arrival time follows some reduce the waiting time of the customers lest the
206 Operations Research
+ Pn + 1(t).P (no arrival in Dt) P (one departure i.e. mPn+1 = (l + m)Pn – lPn–1
in Dt) (l + m ) l
+ Pn – 1(t).P (one arrival in Dt) P (no departure Pn+1 = Pn - Pn -1 n ≥ 1 (3)
m m
in Dt)
Also from (2) we have l
= Pn(t)[1 – l(Dt) + 0Dt][1 – m(Dt) + 0(Dt)]
0 = –lP0 + mP1 or P1 = P0
+ Pn(t)[l(Dt) + 0Dt][m(Dt) + 0(Dt)] m
i.e. P1 = rP0
+ Pn + 1(t)[1 – l(Dt) + 0Dt][m(Dt) + 0(Dt)]
Substituting n = 1, 2, 3,… successively in the
+ Pn – 1(t)[l(Dt) + 0Dt][1 – m(Dt) + 0(Dt)].
recurrence relation (3) with
(n ≥ 1)
i.e. Pn(t + Dt) = Pn(t)[1 – l(Dt) – m(Dt) + 0(Dt)] l
P1 = P
+ Pn(t)[0(Dt)] m 0
+ Pn + 1(t)[m(Dt) + 0(Dt)] we get the value of Pn for all n, in terms of P0
+ Pn – 1(t)[l(Dt) + 0(Dt)] For n = 1
= Pn(t) – (l + m)Pn(t)(Dt) + mPn+1(Dt) (l + m ) l
+ lPn–1(t)(Dt) + 0(Dt) P2 = P1 - P0
m m
\ Pn(t + Dt) – Pn(t) = –(l + m)Pn(t)(Dt)
+ mPn+1 (t)(Dt) + lPn–1(t)(Dt) + 0(Dt) (l + m ) l l
= P0 - P0
Pn (t + D t ) - Pn (t ) m m m
= –(l + m)Pn(t) + mPn+1(t)
Dt l é (l + m ) ù
0( D t ) = mê m - 1ú P0
+ lPn–1(t) + ( D t ) ë û
2
Taking limits as Dt Æ 0 we get æ lö
= ç ÷ P0
Pn¢(t) = –(l + m) Pn(t) + mPn+1(t) + lPn–1(t) (1) è mø
For n = 0, Pn–1(t) does not exist. We take this
case separately. \ P2 = r2P0
P0(t + Dt) = P0(t).P (no arrival in (Dt)) For n = 2
+ P1(t).P (no arrival in (Dt)). P(one departure in (l + m ) l
P3 = P2 - P1
(Dt)) m m
= P0(t)[1 – l(Dt) + 0(Dt)] 2
+ P1(t)[1 – l(Dt) + 0(Dt)][m(Dt) + 0(Dt)] æ (l + m ) ö æ l ö l l
= ç ÷ ç ÷ P0 - . P0
= P0(t) – lP0(t)(Dt) + mP1(Dt) + 0(Dt)] è m ø è mø m m
P0(t + Dt) – P0(t) = –lP0t(Dt) + mP1(t)(Dt)
2
+ 0(Dt) æ lö æ (l + m ) ö
= ç ÷ P0 ç - 1÷
P0 (t + Dt ) - P0 (t ) è mø è m ø
= - l P0t + m P1 (t )
Dt 3
0( D t ) æ lö
+ . = ç ÷ P0
(D t ) è mø
Taking limits as Dt Æ 0 we get
\ P3 = r2P0
P0 ¢(t ) = - l P0 (t ) + m P1 (t ) (2) Thus we get \ P4 = r4P0 P5 = r5P0 and so on
For steady state probability Pn(t) and P0(t) are \ Pn = rnP0
independent of time. Hence Now the total probability is 1
Pn¢(t) = P0¢(t) = 0 \ P0 + P1 + P3 + ... + Pn + ... to • = 1
Therefore deleting the time t, we get i.e. P0 + rP0 + r2P0 + r3P0 + ... to • = 1
0 = -(l + m ) Pn + m Pn +1 + l Pn -1 from (1) P0[1 + r + r2 + r3 + ... •] = 1
208 Operations Research
l 10 2 1
r= = = E(m) is to be reduced to .
m 15 3 2
(i) The probability that an arriving car has to
wait Take the service rate as m1
= 1– P0 = 1 – (1 – r) l 16
\ 1/2 = 1 1 = 1 1
=r m ( m - l ) m ( m - 4)
= 2/3 2
= m - 4m - 32 = 0
1 1
(ii) Average time a car stays in the station
1 1
1 m = 8 or m = – 4 (not possible)
= Ws = \ m1 = 8
m-l
\ The revised service rate = 8
1 1 150
= 1 = = = 30 min \ Service time = 1/8 hr = 15/2 min
1 5 5
- Decrease in service time = 10 – 15/2 = 5/2 min
10 15 150 Increase in cost = 5/2 ¥ 10 = Rs 25
(iii) If the parking space is full, then there are \ The budget required
6 cars waiting for service and one car in = Rs 100 + Rs 25
service. Therefore n = 7. The new arrival has = Rs 125
to wait outside if n ≥ 8. The required Therefore in order to reduce the queue (increase
probability is the service rate to 8) the clinic has to provide
8 Rs 125 as the cost per patient.
æ 2ö
P (n ³ 8) = r8 = ç ÷
è 3ø Example 17.7 Trucks arrive at a loading dock
Example 17.6 On an average 96 patients per day at an average rate of 4 trucks per hour. The loading
require the service of an emergency clinic which of a truck takes 10 minutes on the average by a
can handle only one patient at a time. It takes on crew of three loadmen. The operating cost of a
the average 10 minutes to give treatment to a truck is Rs 20 per hour and the loadmen are paid
patient. The cost of the treatment is Rs 100 per at Rs 6 each per hour. Is it advisable to add another
patient for 10 minutes. The cost increases at crew of three loadmen?
Rs 10 per minute of time reduced. How much Solution Arrival rate of trucks = 4 per hour
amount should be budgeted by the clinic to reduce l=4
the queue size to 1/2? Service time (loading time) = 10 min = 1/6 hour
Solution Average number of arrivals = 96 per \ Service rate = 6 per hour
day m=6
96 Loading crew cost = 3 ¥ 6 = Rs 18
= = 4 per hour Total time taken by truck
24
\ l=4 1
= Ws =
Service time = 10 min per patient = 1/6 hr m-l
\ service rate = 6 per hour 1 1
m=6 = = hour
6-4 2
Queue length = E(m) Cost of waiting time
l2 16 1
= = = (arrival rate) ¥ (hourly cost)
m ( m - l ) 6(6 - 4) 2
4 1
= = ¥ 4 ¥ 20 = Rs 40
3 2
212 Operations Research
n =0 n =0 d r r [1 - ( N + 1) r N + N r N +1 ]
=
d N n (1 - r)(1 - r N +1 )
= P0 .r år
d r n =0 r(1 - r N )
-
d é 1 - r N +1 ù 1 - r N +1
= P0 .r ê ú
dr ë 1 - r û
r [1 - ( N + 1) r N + N r N +1
é (1 - r){- ( N + 1) r N } - ù
ê ú - (1 - r)(1 - r N )]
ê (1 - r N +1 )(-1) ú =
= P0 .r ê ú (1 - r)(1 - r N +1 )
ê (1 - r) 2 ú
ê ú r
ë û = [1 – (N + 1)rN
(1 - r)(1 - r N +1 )
r
= P0 . + NrN+1 – (1 – rN – r + rN + 1)]
(1 - r ) 2
r
[–(N + 1)rN(1 – r) + 1 – rN + 1] =
(1 r)(1 - r N +1 )
-
r
= P0 . [1 – (N + 1)rN + NrN+1] [r – NrN + (N – 1)rN + 1]
(1 - r)2
(1 - r) r r2
. =
= -
1 r N +1
-
(1 r) 2 (1 - r)(1 - r N +1 )
[1 – (N + 1)rN + NrN + 1] [1 – NrN – 1 + (N – 1)rN] (r π 1)
r N ( N - 1)
=
(1 - r)(1 - r N +1 ) E(m) = 2( N + 1) (r = 1)
[1 – (N + 1)rN + NrN + 1] (iii) Expected waiting time in the system
( r π 1)
N
E ( n)
1 where l1 = l(1 – PN)
E (n) = å n.
WS =
If r=1 l1
n =0 N +1
N ( N + 1)
1 N E (n)
= WS =
=
N +1 2 2 l (1 - PN )
(ii) Average number of customers in the queue (iv) Expected waiting time in the queue
N
E(m) = å (n - 1) Pn Wq =
E ( m)
=
E ( m)
n =1 l 1
l (1 - PN )
214 Operations Research
l ¥ n -C
= r we get rC æ rö
P0 å ç ÷
Taking
m =
C ! n =C è C ø
rn
Pn = P0 (1 £ n £ C) rC æ C m ö
n! .P0
C ! çè C m - l ø÷
=
r n P0
= n -C (n ≥ C) (ii) Probability that an arrival enters into service
C C!
without waiting, is given by P(n < C)
17.7.2 Expression for P0 P(n < C) = 1 – P(n ≥ C)
Total probability = 1 rC æ C m ö
¥ 1- .P0
C ! çè C m - l ÷ø
å Pn =1
n =0 (iii) Average queue length E(m)
c -1 n ¥ n
r P
å rn ! P0 + å C n -C 0C !
¥
n =0 n =C
=1 E(m) = å (n - C ) Pn
n =C
é c -1 r n ¥ ù rn
êå + å C n -C C ! ú P0 = 1 ¥
ë n =0 n ! n =C û = åK PK + C where K = n – C
K =0
é - ¥ n - C ù
c 1
r n
r C
æ rö
êå + å çè ÷ø ú P0 = 1 ¥
rC + K P0
ëê n = 0 n ! C ! n = C C ûú = å K. C !C K
K =0
é ù
ê c -1 r n rC ú rC ¥
rK r
êå +
1
ú P0 = 1 = P0 å K. Put = x
ê n =0 n ! C ! æ - r ö ú
K
C! K =0 C C
êë çè 1 ÷
C ø úû ¥
rC
(assuming that
r
< 1) =
C!
P0 å K xK
C K =0
1 ¥
rC r
P0 =
é c -1 r n r Cm ù = P0 å K x K -1
êå + . ú C! C K =1
ë n = 0 n ! C ! (C m - l ) û
Note: This result is valid only if rC +1
= P0 [1 + 2 x + 3x 2 + ... to ¥ ]
r l C.C !
< 1, or < 1 ie l < C m
C Cm rC +1
In other words, mean arrival rate must be the less = P0 (1 - x) -2
C .C !
than the maximum service rate.
Queueing Theory 217
Solution
rC +1 1 Arrival rate = 10 per hour
= P0 2
C.C ! æ rö l = 1/6 per min
çè 1 - ÷
Cø Service time = 4 min
Service rate m = 1/4 per min
rC +1 C2 r = 2/3 and C = 2
= P0
C.C ! (C - r ) 2 P0 =
1
é r2 2m ù
rC +1 P0 ê1 + r + . ú
= ë 2 2m - l û
(C - 1) !(C - r) 2
1
rC +1m 2 .P0 =
1
=
(C - 1) !(C m - l ) 2 2 1 4 2
1+ + .
(iv) Average number of customers in the system 3 2 9 æ 1 1ö
çè 2 - 6 ÷ø
l
E(n) = E (m) +
m 1 1
= =
2 1 2
rC +1 P0 1+ +
+r 3 3
(C - 1) !(C - r) 2
1
(v) Average waiting time of a customer in the P0 =
2
queue
l 2 1 1
E (m) rC m.P0 P1 = P0 = . =
Wq = = m 3 2 3
l (C - 1) !(C m - l ) 2
(i) Probability that an arrival has to wait
(vi) Average waiting time in the system = P(n ≥ 2)
1 = 1 – P0 – P1
WS = Wq +
m 1 1 1
(vii) Average number of idle servers = 1- - =
2 3 6
Number of servers remaining idle = C – (average (ii) Expected number of idle girls
number servers in service)
l
l = C-
C – [E(n) – E(m)] = C – r = C - m
m
= 2 – (2/3) = 4/3
Example 17.11 A supermarket has two sales Also, expected number of idle girls
girls. The service time for each customer is = 2.P0 + 1.P1
4 minutes on the average and the arrival rate is
10 per hour. Find æ 1ö æ 1ö 4
= 2 ç ÷ + 1ç ÷ =
(i) the probability that an arrival has to wait. è 2ø è 3ø 3
(ii) the expected percentage of idle time for each \ Probability that a girl is idle
girl.
(iii) the expected waiting time of a customer in Expected number of idle girls
=
the system. Total number of girls
218 Operations Research
4/3 2 25 3 32 3 4
= = = 0.67 . = . =
2 3 =
3!(4 - 2) 2
23 6.4 23 23
\ Percentage of idle time for each girl
= 67%
(iii) Average queue length = E(m) 17.8 MODEL 4(MULTICHANNEL
Expected waiting time in the queue SYSTEM WITH LIMITED
CAPACITY) M/M/C/N
E ( m)
Wq =
l In this model the maximum number of customers
is limited to N and there are C service channels.
rC m P0 Therefore we have
=
(C - 1) !(C m - l ) 2 ì l 0£ n£ N
ln = í
(2 / 3) 2 .1 / 4.1 / 2 1 î0 n > N
= =
1!(1 / 3) 2 2 ì n m 0£ n£ C
mn = í C m C £ n £ N
Average waiting time in the system î
æ 1ö
1
WS = Wq + = ç ÷ + 4 = 4.5 min ì rn
m è 2ø ï P0 1£ n £C
Example 17.12 There are 4 counters at a check ï n!
post for verifying the passport of the tourists. The ïï r n P0
Pn = í n -C
C £n£ N
arrival rate of the tourists is l and the service rate ï C !C
has an average l/2. Find the expected queue length ï0 n> N
at the check post. ï
Solution ïî
Given that arrival rate = l
Service rate = l/2 17.8.1 Expression for P0
l
\r = = 2 C=4 N C -1 N
l/2 We have å Pn = å Pn + å Pn =1
n =0 n =0 n =C
1
P0 = C -1 (total probability)
n
æ C
ö
å rn ! + rC ! çè C mC m- l ø÷ C -1 n N n
n =0
i.e. å rn ! P0 + å C ! rC n -C P0 = 1
n! n =C
1
=
r 2 r3 r 4 æ 4.l / 2 ö é C -1 r n rC N r n - C ù
1+ r + + + ç ÷ P0 ê å + å n -C ú = 1
2 6 4! è 4.l / 2 - l ø ë n = 0 n ! C ! n =C C û
1 n -C n -C
å æçè Cr ö÷ø
= = 3/23 N N
1 + 2 + 2 + 4 / 3 + 16 / 24(2 / 1) Now å Cr n -C =
Expected queue length n =C n =C
N -C
rC +1 P0 r æ rö æ Pö
2
N - C +1 N -C
æ rö rC P0 æ r ö
1- ç ÷
èCø = ç ÷
C! èCø
å K x K -1
= k =0
r
1- æ r ö
C çè x = C , K = n - C ÷ø
[Sum of N – C + 1 terms of the GP]
rC P0 r d æ N - C K ö
= C ! C dx ç å x ÷
1
\ P0 = é N - C +1 ù è k =0 ø
æ rö
C -1 n c ê 1 - çè ÷ø ú
å rn ! + Cr ! C ! êê C r úú rC P0 r d æ 1 - x K +1 ö
C ! C dx çè 1 - x ÷ø
= K=N–C
n =0
ê 1- ú
êë C úû
rC P0 r
ær ö = .
çè C ¹ 1÷ø
C! C
é (1 - x)( K + 1) x K (-1) - (1 - x K +1 )(-1) ù
r ê ú
Here need not be less than 1. ë (1 - x)2 û
C
rC P0 r
r E(m) =
If r = C then =1 C! C
C
n -C
é 1 - x K +1 - (1 - x)( K + 1) x K ù
ê ú
å æçè C ö÷ø
N
r
= N -C +1 ë (1 - x)2 û
n =C
r
1 where x = and K = N – C
P0 = C -1 n C
C
å rn ! + rC ! ( N - C + 1) (ii) Expected number of customers in the system
n =0
l
E(n) = E (m) + (1 - PN )
17.8.2 Important Formula m
(i) Expected number of customers in the queue (iii) Expected waiting time in the system
N E (n)
E(m) = å (n - C ) Pn WS =
l (1 - PN )
n =C
(iv) Expected waiting time in the queue
N
r n P0
= å (n - C )
C ! C n -C Wq = Ws -
1
=
E ( m)
n =C m l (1 - PN )
n -C Example 17.13 There are three stalls at an
rC P0
å (n - C ) æçè C ö÷ø
N
r
= automobile inspection centre. The centre can
C! n =C accommodate seven cars at the maximum (three
n - C -1 in service and four in waiting). On the average
rC P0 æ r ö N æ rö
ç ÷ å (n - C ) çè ÷ø
one car arrives every minute and the service time
=
C ! è C ø n =C C is 6 minutes. Find (i) the average number of cars
220 Operations Research
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. Arrivals at a telephone booth are poisson with 3. In a repair shop having a single mechanic,
an average inter-arrival time of 10 minutes. customers arrive at the rate of 4 per hour. It
The length of a phone call is exponential with takes the mechanic 6 minutes on the average
mean 3 minutes. to inspect one item. Find the
(i) Find the probability that a person (i) proportion of time the mechanic is idle.
arriving at the booth will have to wait. (ii) probability that there is at least one
(ii) Find the average length of the queue. customer.
(iii) Find the total time a person spends in (iii) average number of customers in the
the booth. shop.
2. In a single server queueing system the arrival (iv) average time spent by a customer in the
rate is 25 per hour. What must be the service shop.
rate in order that a customer has to wait for 4. Customers arrive at a box office window with
not more than 10 minutes to enter into service. a single server, at a mean rate of 30 per hour.
Queueing Theory 221
The time required to serve a customer is (i) the queue length at any time.
90 seconds on the average. Find the average (ii) the proportion of time, the booth is idle.
waiting time of a customer and the average 10. In a petrol pump cars arrive at an average
number of customers in the system. rate of 10 per hour. If there is only one serving
5. Customers arrive at a bank cash counter in a unit and the service time has an average of
poisson manner at an average rate of 30 per 3 minutes, find
hour. The cashier takes on an average (i) the average number of cars in the system.
1.5 minutes for each cash cheque. Calculate (ii) the average waiting time in the queue.
(i) the percentage of time the cashier is busy. (iii) the probability that there are two cars in
(ii) the average waiting time of a customer the system.
in the bank. 11. At a one-man saloon customers arrive at the
6. Trucks arrive at a factory for collecting rate of 5 per hour and the hair cutting time is
furnished goods, at the rate of 10 per hour on the average 10 minutes per customer. Find
and the loading rate is 15 per hour. (i) the average number of customers in the
Transporters complain that their trucks have saloon.
to wait for nearly 2 hours at the factory. (ii) the average number of customers waiting.
Examine whether their complaint is justified. (iii) the probability that a new arrival does
What is the probability that the loaders are not wait for service.
idle. 12. A single server coffee shop has space to
7. Customers arrive at a one — window drive - accommodate only 10 customers. If a new
in bank at the rate of 10 per hour. Average arrival finds that the shop is full he goes to
service time is 5 minutes. The space in front another shop. The arrival rate is 10 per hour
of the window can accommodate a maximum and the service time is 5 minutes per
of 3 cars including the one under service. customer Find P0 and Pn.
(i) Find the probability that an arriving car 13. Customers arrive at a photocopier shop at an
can directly drive to the space in front average rate of 5 per hour and they are served
of the window for service. at 6 per hour. There are only 5 seats available
(ii) What is the probability that an arriving for the customers. Find the average number
can will have to wait outside the of customers and the average time a customer
indicated space? spends at the shop.
(iii) How long is an arriving customer 14. An insurance company has three claim
expected to wait before starting service? adjusters. People with claims arrive at the
8. Letters arrive at the rate of 5 per hour, to a office at the rate of 20 per 8 hour day. The
typist’s table during an 8 hour day. The typing mean service time is 40 minutes per claimant.
rate is on the average 8 letters per hour. If (i) How many hours per week an adjuster
the time of the typist is valued at Rs 10 per is busy?
hour determine (ii) How much time a claimant spends in the
(i) equipment utilization office?
(ii) the period of time, an arriving letter has 15. Given an average arrival rate of 20 per hour
to wait there are two options for a customer: A single
(iii) average cost due to waiting and channel with service rate 22 customers per
operating the typewriter. hour or a two-server channel with service rate
9. In a public telephone both the arrivals are on of 11 customers per hour. Determine which
the average 15 per hour. A call on the average is a better option.
takes 3 minutes. If there is only one phone in 16. A tax consulting firm has 4 service counters
the booth. Find On the average 80 persons arrive during a
222 Operations Research
day of 8 hours. The average service time per 22. In a single server bank, working from 7 am
person is 20 minutes. Find to 1 pm, the average number of customers is
(i) the average number of customers in the 54 per day. Average service time is 5 min
system. per customer. Find the
(ii) the average time a customer spends in (i) Average number of customers in the
the system. system
(iii) the expected number of idle servers. (ii) Average number in the queue
(iv) the number of hours a server spends with (iii) Average waiting time.
customers during one week. 23. In a single server tools store operators arrive
17. A barber shop has two barbers and three at the rate of 10 per hour. Service time is
chairs for waiting customers. If a customer 3 minutes per operator. The rate of production
finds that there is no vacant chair he will is 100 units per day of 8 hours. If the cost
leave the shop. Customers arrive at the rate of product is Rs 200, find the loss due to
of 5 per hour and the service time is waiting.
15 minutes per customer. Find the expected 24. In a telephone exchange there are two
number of customers in the shop. Also find operators. Calls arrive at the rate of 15 per
the percentage of idle time for each server. hour and the average length of a call is
18. In a supermarket the average arrival rate of a 5 minutes. Find the
customer is 10 per 30 minutes. On the (i) probability that a customer has to wait.
average it takes 2.5 minutes to serve a (ii) average waiting time of a customer.
25. A petrol station has two pumps. Cars arrive
customer. Find the probability that there are
at the rate of 10 per hour and the average
more than 6 customers in the queue.
service time is 4 minutes per car. Find
19. In a telephone booth people arrive at the rate
(i) the probability that a customer has to
of 15 per hour. The duration of a call is
wait.
3 minutes on the average. Find
(ii) the percentage of idle time.
(i) The expected number of customers in the 26. There are four counters on the frontier of a
booth. country to check passports and other
(ii) The proportion of time, the booth is idle. documents of tourists. The arrival rate is l
20. At a telephone booth, the arrivals follow and the service rate is l/2. What is the
poison distribution with an inter arrival time average queue length at each counter?
of 12 min. The duration of a call is 4 minutes 27. The mean arrival rate at a railway reser-
on the average vation centre is 24 per hour and there are
(i) What is the probability that a fresh 3 counters
arrival will not have to wait for the (i) Find the probability that there are no cus-
phone? tomers if the mean service rate is
(ii) What is the probability that an arrival 10/hr.
has to wait for more than 10 min? (ii) the average time spent by a customer in
(iii) What is the average length of the queue? the system if there are 5 counters
21. People arrive at a theatre ticket booth at the 28. In a tax consulting company there are four
rate of 25 per hour. Service time for a service counters. On the average 80 persons
customer has an average of 2 min. Find the arrive during an 8 hour service day. The
following: average service time is 20 minutes per
(i) Mean number in the waiting line customer. Find the
(ii) Mean waiting time (i) average number of customers in the
(iii) Utilisation factor system.
Queueing Theory 223
(ii) average waiting time of a customer in (iii) number of hours , each consultant spends
the system. with the customers, per week.
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. (i) 0.3 (ii) 9/70 (iii) 30/7 For two server channel Wq = 0.43 hrs
1 Hence two server channel is better.
2. m ≥ 16. (i) 7 (ii) 40 min (iii) 1 (iv) 33 hrs
2
3. (i) 3/5 (ii) 21/25 (iii) 2/3 (iv) 10 min 17. E(n) = 3, Percentage of idle time = 37%
4. Wq = 9/2min, E(n) = 3 18. Required probability = 0.3348
5. (i) 75% (ii) Ws = 6min 19. Average number of customers = 4
6. Ws = 12 min. Complaint is not justified. Proportion of idle time = 1/4
Probability that the loaders are idle = 1/3 20. (i) 0.67 (ii) 0.63 (iii) 1.5
7. (i) 91/216 (ii) 125/216 (iii) 25 min 21. (i) 4 (ii) 9.6 min (iii) 0.833
8. (i) 62.5% of time (ii) 12.5 min (iii) Rs 133.30 22. (i) 3 (ii) 2.25 (iii) 20 min
23. Average waiting time is 2/5 hour. Loss due
1 to waiting
9. (i) Lq = 2 (ii)
4 = (2 / 5) (100 / 8) 200 = Rs 1000
10. (i) 1 (ii) 3 min (iii) 1/8 24. (i) 0.48 (ii) 3.2 min
11. (i) 5 (ii) 4 (iii) 1/6 25. (i) 0.167 (ii) 67%
12. P0 = 1/6, Pn = 1/6(5/6)n 26. Lq = 4/23
13. E(n) = 5, Ws = 6 27. (i) P0 = 0.019 (ii) 6 min
14. (i) 22 hrs during a 5-day week (ii) 50min 28. (i) 6.61 (ii) 0.66 hours
15. For a single channel, Wq = 0.45 hr (iii) 33.3 hours
18
Inventory Models
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
goods from suppliers. In the case of (ii) Order cycle The period of time between
production, setup cost includes the cost two consecutive placement of orders is called
involved in setting up the machines for order cycle.
production run. Ordering cost includes the (iii) Lead time When an order is placed, the
cost of stationery, postage, telephones, supplier takes some time to supply the item.
travelling expenses, handling of materials etc. Lead time is the time between the placement
Ordering cost = (Cost per order or per set up) of an order and the receipt of the material.
× (Number of orders or production runs) (iv) Replenishment of stock Replenishment of
It is denoted by CS stock may occur instantaneously without
(iii) Production cost (Purchase cost) lead time or uniform replenishment may
Production cost per unit item depends upon occur when the goods are manufactured by
the length of production runs. For long pro- the factory itself.
duction runs it is lower. Also purchase cost (v) Planning horizon (period) The duration
is less for orders of large quantity due to of time over which a particular inventory
quantity discounts or price breaks. level will be maintained is called planning
(iv) Shortage cost (Stock out cost) If the horizon.
inventory on hand is not sufficient to meet
with the demand of materials or finished 18.4 DETERMINISTIC
goods, then it results in shortage of supply. INVENTORY MODELS
There are two cases: (i) Orders are kept WITH NO SHORTAGE
pending and as soon as stock is replenished
back orders are supplied. (ii) Unfilled
18.4.1 Economic Lot Size Model
demand (order) results in lost sales and
cancellation of order. We consider only the
with Constant Demand
first case. Shortage cost per unit, per unit In this model demand is assumed to be constant
time of delay is denoted by C2. or completely pre-determined. Our problem is to
(v) Total inventory cost The total inventory determine the quantity to be ordered in the most
cost is denoted by C. economical manner. This quantity is called
C = ordering cost + Holding cost + Shortage Economic Order Quantity (EOQ). We make the
cost. If price discounts are available on following assumptions:
purchase cost then purchase cost is also to (i) Demand is known and is uniform. Q denotes
be included in the total cost. the lot size in each production run.
(ii) D denotes the total number of units produced
18.3 CHARACTERISTICS OF or supplied per unit period.
INVENTORY SYSTEM (iii) Shortages are not allowed. As soon as the
level of inventory reaches zero, the inventory
(i) Demand The nature of demand must be is replenished.
known for inventory control. Demand may (iv) Production or supply of materials is
be deterministic or probabilistic. In the instantaneous. In other words, replenishment
deterministic case the quantity of material of inventory is instantaneous without delay.
required over a period of time is certain and (v) Lead time is zero.
known before hand. The demand may be (vi) Set up cost per production run is CS.
uniform in many cases. But in the (vii) Holding cost (storage cost) is C1. If the
probabilistic case the nature of demand is holding cost is expressed as a percentage
uncertain and is given by some probability I of the unit cost C of the commodity then
distribution. C1 = IC.
226 Operations Research
Formula for EOQ (Wilson Harris Thus the total annual inventory cost is given by
Formula) CA = Total holding cost + Total set-up cost
Let us assume that the total period (say one year) 1 D
is divided into n parts each of length t. Let Q be = QC1 + CS
the quantity produced during each interval (run). 2 Q
Therefore the total quantity produced during n runs We want to determine Q such that C A is
is D = nQ. Also nt = 1. The following figure minimum. By the principle of maxima minima the
illustrates the model. dC A d 2C A
condition is = 0 and >0
dQ dQ 2
1 D
Now CA = QC1 + CS
2 Q
dC A 1 D
= C1 + − 2 CS
dQ 2 Q
C1 DCS d 2C A
− 2 obviously 2
> 0
2 Q dQ
If the demand rate is R then a quantity Q = Rt
must be produced in each run. The stock in a small dC A
= 0 fi C1Q2 = 2DCS
time interval dt is Rt dt. The total stock during the dQ
period t is given by
t 2 DCS
t2 1 1 \ Q=
ò Rt dt = R
2
= Rt.t = Q.t
2 2
C1
0 The optimum quantity is denoted by Q* which
1 / 2 Qt 1 is called Economic Order Quantity (EOQ)
\ Average stock = = Q.
t 2
2 DCS
1 \ EOQ = Q* =
[Area of the triangle OAP = Qt C1
2
1 This is called the Wilson Harris formula for
\ Total stock = Qt EOQ.
2
\ Average stock = 1/2 Q] Note: If the holding cost is expressed in terms of
1 the value of the stock held then C1 = IC and the
Holding cost per run = Q.C1.t value of Q* = Q*C.
2
1 1 2 DCS 2 DCS C
= Q.C1. = .C =
2 n IC I
1 1 The optimum annual inventory cost is
Annual holding cost = QC1 .n 1 D
2 n CA* = Q*C1 + * CS
(since there are n runs) 2 Q
1 1 2 DCS D
= QC1 = .C1 + CS
2 2 C1 2 DCS
Set-up cost per run = CS
Annual set-up cost = n .CS C1
D 1 1
= CS (Q D = nQ) = 2 DCS C1 + 2 DCS C1
Q 2 2
Inventory Models 227
1 Q k −r
= (k - r ) C1 2CS C1r
2 k =
k
CS
Set-up cost = n.Cs = 1 rC1 k − r
t No. of runs per year n = *
=
t 2CS k
S S Sk
Now t = t1 + t2 = = +
k-r r r (k - r ) Example 18.9 A contractor has to supply 10000
(k - r ) k Q bearings per day to an automobile manufacturer.
= Q. = He can produce 25000 bearings per day. The
k r (k - r ) r
holding cost is Rs 2 per year and the set-up cost is
Thus total inventory cost Rs 180. How frequently should the production run
1 æ k - rö r be made?
CA = ç
2è k ø
÷ QC1 + Q CS
Solution
dC A d 2C A We are given r = 10000, k = 25000
For CA to be minimum = 0 and >0
dQ dQ 2 CS = 180, CS = Rs 2 per year
dC A 1 k−r r = 0.0055 per day
Now = C1 − 2 CS = 0
dQ 2 k Q 2CS kr
EOQ = Q* =
r 1k−r rC1 k − r
⇒ 2
CS = C1
Q 2 k 2.180 25000.10000
= .
C kr 0.0055 15000
Q* = 2 S
C1 k − r = 33029 units
d 2C A Q* 33029
Obviously 2
> 0 \ CA minimum for Q* Period of one run t* = = = 3.3 days
dQ r 10000
2CS kr Example 18.10 A factory manufactures a
\ EOQ =
C1 k − r product at the rate of 100 units per day and the
daily demand is 40 units. The cost of one unit is
Q* Rs 5. Holding cost is 25% of the value per unit
\ Optimal period of a run t* =
r per year. Setup cost is Rs 150 per run. Determine
2CS k the economic lot size and the number of runs per
= year. (Take 250 days for one year.)
rC1 k − r
Total annual inventory cost Solution
Hence k = 100 per day
1k −r * r r = 40 per day
CA* = Q C1 + * CS
2 k Q C1 = 5 × 25/100 = 1.25 per year
1.25
1k−r 2CS kr = = 0.005 per day
= C1 250
2 k C1 k − r CS = Rs 150
C1 (k − r ) 2CS k
+ r. CS Q* =
2C1kr rC1 k − r
Inventory Models 231
The optimum quantity Qo depends on the value \ Q* < q < q1 (II zone)
of q (price break point). There are three zones. Qo = q = 15
0 < q < Q* (I zone); Q* < q < q1 (II zone) q ≥ q1 \ EOQ = 15
(III zone)
Equation (1) gives the value of Q* and using Example 18.13 The price break of a product is
(2) we can find q1. We can determine Qo as follows Rs 10 q < 500
Qo = Q* if 0 < q < Q* (I zone) Unit cost = Rs 9.25 q ≥ 500
= q if Q* < q < q1 (II zone) Monthly demand is 200 units. Storage cost is
= Q* if q ≥ q1 (III zone) 2% of the unit cost per month. Find the EOQ if
Example 18.12 The cost of a commodity is (i) ordering cost is Rs 350
Rs 2 for an order less than 15 and Re 1 for orders (ii) ordering cost is Rs 100
greater than or equal to 15. Holding cost per unit Solution
is Re 1 and setup cost is Rs 10 per run and the
requirement is 5 units per day. Find the EOQ. (i) Ordering cost CS = Rs 350
C1 = 10(0.02) = 0.2
Solution Given p1 = 2, p2 = 1
D = 200
D = 5, q = 15
CS = 10, C1 = 1 2 DCS 2.200.350
Q* = = = 837
Ignoring the price break we have C1 0.2
2 DCS q = 500 q < Q*
2.5.10
Q* = = = 10 units Hence Qo = Q* = 837
C1 1
(ii) CS = 100 C1 = 0.2 D = 200 q = 500
Since q = 15, we find that Q* < q
To find q1 p1 = 10 p1 = 9.25
D Q* 2 DCS 2.200.100
TC1(Q*) = Dp1 + CS + C1 Q* = = = 447
Q* 2 C1 0.2
5 × 10 10 \ Q* < q
= 10 + + .1 = 20 To find q1
10 2
D Q*
D
TC2(Q1) = Dp2 + CS + 1 .1
q TC1(Q* ) = Dp1 + CS + C1
q1 2 Q* 2
(1 / 2Q1t1 ) Also
Annual holding cost = × C1
t ∂C A Q12
1 = − C1
Total amount of shortage during t = Q2 t2 ∂Q 2Q 2
2
1 Q.2(Q − Q1 ) − (Q − Q1 ) 2 D
Annual shortage cost =
(1 / 2Q2 t2 )
× C2
+ C2 − 2 C S = 0
t
2 Q2 Q
D Q12 1
Set-up cost = nCS = CS i.e. − C1 + Q (Q − Q1 )C2 − (Q − Q1 ) 2 C2
Q 2 2
Total annual inventory cost − DCS = 0
(1 / 2Q1t1 ) (1 / 2Q2 t2 ) D 1 2 1
CA = C1 + C2 + C S − Q1 C1 + C2Q 2 − C2 QQ1 − Q 2 C2
t t Q 2 2
1 (t1 ) 1 (t2 ) D 1
= Q1C1 + Q2C2 + CS + QQ1C2 − Q12 C2 − DCS = 0
2 t 2 t Q 2
From similar triangles 1 2 2 2
t1 Q1 t Q Q C2 = Q1 C1 + Q1 C2 + DCS
= and 2 = 2 2 2 2
t Q t Q 2 2 2
Q C2 = Q1C1 + Q1 C2 + 2DCS
Qt Qt
\ t1 = 1 ; t2 = 2 2 DCS + Q12C1
Q Q Q2 = + Q12
C2
2 DCS + Q12C1
Q= + Q12 ...(2)
C2
QC2
From (1) Q1 =
C1 + C2
2 DCS Q 2 C22 C1
\ Q2 = +
1 Q12 1 ( Q − Q1 )
2
D C2 (C1 + C2 ) 2 C2
\ CA = C1 + C2 + CS
2 Q 2 Q Q Q 2 C22
(Q Q2 = Q – Q1) +
(C1 + C2 ) 2
If CA is to be minimum then
2 DCS Q 2 C22 C1 + C2
∂C A ∂C A = +
= =0 C2 (C1 + C2 ) 2 C2
∂Q1 ∂Q
∂C A 1 2Q1 1 2(Q − Q1 ) 2 DCS Q 2 C2
= C1 + (−1)C2 = 0 = +
∂Q1 2 Q 2 Q C2 (C1 + C2 )
Q1 Q C2 2 DCS
C1 + 1 C2 − C2 = 0 \ Q 2 1 − =
Q Q C1 + C2 C2
Q1 C2
(C1 + C2 ) = C2 fi Q1 = Q C1 2 DCS
Q C1 + C2 Q2 =
...(1) 1
C + C 2 C2
236 Operations Research
Q 7 ∞ y
t2 = 2 t = × 66 = 10.5 days f ( D )dD = 1 − ∫ f ( D)dD
Q 44
Now ∫
y 0
E[C(y)] D 0 1 2 3 4 5
= C1 ∑ ( y − D) f ( D) + C2 ∑ ( D − y ) f ( D) P(D £ y) 0.1 0.3 0.55 0.75 0.9 1
*
If E[C(y )] is minimum then
C2 2 2
E[C(y* – 1)] ≥ E[C(y*)] and = = = 0.6
C1 + C2 1+ 2 3
E[C(y* + 1) ≥ E[C(y*)] From the table we find that
C2 P(D £ 2) = 0.55 P(D £ 3) = 0.75
P[D £ (y* – 1)] £ and
C1 + C2 P(D £ 2) < 0.6 < P(D £ 3)
C2 \ y* = 3
P[D £ y*] ≥
C1 + C2 Example 18.22 A bookseller purchases a weekly
C2 magazine at Rs 3 and sells at Rs 7 each. He cannot
\ P[D £ (y* – 1)] £ £ P[D £ y*] return unsold magazines. Weekly demand has the
C1 + C2
following distribution.
This is the condition to be satisfied by y*.
D 23 24 25 26 27 28 29 30 31 32
Example 18.20 The demand of an item is given
f (D) .01 .03 .06 .1 .2 .25 .15 .1 .05 .05
1 / 10 0 ≤ D ≤ 10
by the p.d.f. f(D) =
0 D > 10 How many magazines should be ordered every
The holding cost is Re 1 per unit and shortage week?
cost is Rs 4 per unit. Find the EOQ.
Solution Given C1 = 3, C2 = 7 – 3 = 4
Solution Given C1 = 1, C2 = 4,
The cumulative distribution of demand is
C2 4 4
= = = 0.8
C1 + C2 1+ 4 5 D 23 24 25 26 27 28 29 30 31 32
P(D £ y) 0.01 0.04 0.10 0.20 0.40 0.65 0.80 0.90 0.95 1
1
f (D) =
10 C2 4 4
= = = 0.57
y *
y * C1 + C2 3 + 4 7
1 1
∫ ∫ 10 dD = 10 y
*
P[D £ y*] = f ( D)dD = From the table
0 0 P(D £ 27) = .4 P(D £ 28) = 0.65
* \ P(D £ 27) < .57 > P(D £ 28)
y
\ = 0.8 \ y* = 28
10
\ y* = 8 Note: If the cost, selling price and the salvage
value of unsold item are given then we use the
Example 18.21 The distribution of demand of formula
an item is given by Profit
P(D £ y*) =
D 0 1 2 3 4 5 Profit + loss
f (D) 0.1 0.2 0.25 0.2 0.15 0.1 Example 18.23 The sales of butter (demand for
butter) has the following probability distribution.
Holding cost is Re 1 and the shortage cost is
Rs 2. Find the EOQ. Demand (kg) 14 15 16 17 18 19 20
off at Rs 60 per kg at the end of the day. Determine \ Loss per kg of unsold sold butter = Rs 20
how much of butter is to be stocked at the Now, for y* the condition is
beginning of each day. Profit
P(D £ y*) =
Solution The cumulative distribution of demand Profit + loss
is given by 40
= = 0.67
40 + 20
D 14 15 16 17 18 19 20
From the table
Probability .02 .08 .1 .4 .2 .15 .05
P(D £ 17) = 0.6 P(D £ 18) = 0.8
P(D £ y) .02 .1 .2 .6 .8 .95 1
\ P(D £ 17) < 0.67 < P(D £ 18)
Profit per kg of butter = 120 – 80 = Rs 40 \ y* = 18
Salvage value = Rs 60 Every day 18 kg of butter is to be stocked.
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. A company purchases lubricants at the rate 6. A company has to supply 10000 auto parts
of Rs 42 per tin. The requirement is 1800 per day. They can produce 25000 parts per
per year. The cost of placing an order is day. Holding cost is 20 paise per unit per
Rs 16 and the holding charges are 20 paise year and the set-up cost is Rs 180 per run.
per rupee per year. Find the EOQ. How frequently should production be made?
2. Raw material costs Re 1 per unit and the 7. Given k = 24000, r = 12000, C1 =1.8,
annual requirement is 2000 units. Ordering CS = 400, find Q*.
cost is Rs 10 and carrying cost is 16% per 8. An item is produced at the rate of 50 per
year per unit. Find the EOQ and optimum day. The demand is 25 items per day. The
inventory cost per year. setup cost is Rs 100 and the holding cost is
3. An aircraft company requires rivets at the Re 0.01 per item per day. Find
rate of 5000 kg per year. The cost of the rivet (i) economic lot size
is Rs 20 per kg and the ordering cost is (ii) period of one run
Rs 200. The holding cost is 10% per kg per (iii) minimum total inventory cost.
year. How frequently should orders be 9. The production rate of tomato ketchup is 600
placed? What quantity should be ordered bottles per day and the demand is 150 bottles
for? per day. The cost per bottle is Rs 6. The set-
4. A company has a demand of 12000 units of up cost is Rs 90 per run and the holding cost
an item per year. Set-up cost is Rs 400 and is 20% of the cost per annum. Find the
the holding cost is 15 paise per unit per economic lot size and the number of
month. Find the EOQ and the optimum production runs.
inventory cost per year. 10. The annual sales of a particular grade of paint
5. The daily demand of an item is 30 units. is 30000 litres. The holding cost is Re 1 per
Holding cost is 5 paise per unit per day and litre. The setup cost is Rs 80 per run.
the setup cost is Rs 100. Find the economic Determine the economic lot size.
lot size, period of one run and the total 11. For a particular product the daily demand is
inventory cost. 20 units, setup cost is Rs 100 and the holding
240 Operations Research
cost is Rs 0.20 per day. The production rate holding cost is Rs 0.10 per unit per month
is 50 units per day. Determine the economic and the setup cost is Rs 350 per run. Find
lot size and the period of a run. the economic lot size.
12. A shopkeeper purchases an item at the rate 18. The demand of an item is at the rate of 25
of 50 units per month. The cost is Rs 6 for units per month. The fixed cost is Rs 15 per
orders less than 200 and Rs 5.70 for orders run. The carrying cost is Rs 0.30 per item
not less than 200 units. The ordering cost is per month. If the shortage cost is Rs 1.50
Rs 10 and the holding cost is 20% of the per item per month determine the economic
value per year. Find the EOQ. lot size and the period of a run.
13. Find the EOQ for a product for which the 19. A TV company requires speakers at the rate
price breaks are as follows: of 8000 units per month. The setup cost is
Rs 12000 per run. The holding cost is
Price (Rs) Quantity
Rs 0.30 per unit per month. Find the EOQ
10 q < 500 (i) when shortage are not allowed.
9 q ≥ 500 (ii) when the shortage cost is Rs 1.10 per
The monthly demand is 200 units. The unit per month.
ordering cost is Rs 350 and the holding cost 20. The demand for an item is 18000 units per
is 2% of the cost per month. year. The holding cost is Rs 1.20 per unit
14. The annual demand of an item is 10000 units. per year. The cost of production is Rs 400
The ordering cost is Rs 40 and the holding and the shortage cost is Rs 5. Determine the
cost is 20% of the cost per unit per year. The EOQ.
price of the item is Rs 4 and there is a 21. Find the EOQ if the demand is 16 units per
discount of 10% for orders of 1500 units or day, ordering cost is Rs 15, holding cost is
more. Find the EOQ. 15 paise per unit per day and the shortage
15. Given the following data find the EOQ and cost is 75 paise per unit per day.
the reorder level for an item 22. The annual demand of an automobile part is
Annual demand = 2500 units 6000 units. The setup cost per production
Ordering cost = Rs 12.50 run is Rs 500 and the storage cost per unit
Holding cost = 25% of the average per year is Rs 8. If the shortage cost is Rs 20
inventory per unit per year find
No.of working days = 250 per year (i) economic lot size
Lead time = 3 days. (ii) period of one run
(iii) number of shortages per run.
The cost of the item is Rs 4 per unit for orders
23. A newspaper boy purchases newspapers at
less than 200 and Rs 3 for orders not less
than 200. Rs 2 per copy and sells them at Rs 3. The
16. The cost of a notebook is Rs 10 with a demand for the newspaper has the following
discount of 5% for orders of 200 or more. probability distribution.
The demand is at the rate of 50 notebooks Demand 10 11 12 13 14 15 16
per month and the ordering cost is Rs 10. Probability 0.05 0.15 0.40 0.20 0.10 0.05 0.05
The holding cost is 20% of the value per year.
Determine the annual minimum inventory Unsold newspapers cannot be returned.
cost and the number of orders per year. Determine how many copies should he
17. A manufacturer has to supply 24000 units purchase in order to minimize his loss.
of his product per year. Penalty for delay in 24. The demand for a food commodity has the
supply is Rs 0.20 per unit per month. The probability distribution given below:
Inventory Models 241
39. The demand for an item is 18000 units per (iii) Monthly demand: 25 units
year. The setup cost is Rs 400 and the holding Set-up cost: Rs 15
cost is Rs 1.20. If the shortage cost is Rs 5 Holding cost: Rs 0.30 per month
determine the optimal order quantity. Shortage cost: Rs 1.50 per month
40. Determine the EOQ 41. The demand of an item has p.d.f
(i) Annual demand: 240 units f(x) = 0.1 0 £ x £ 10
Set-up cost: Rs 10 0 x > 10
Holding cost: Rs 0.25 per month The holding cost is Rs 0.50 per day
Shortage cost: Rs 1.25 per month Shortage cost is Rs 4.5 per day. Find the
optimum inventory level.
(ii) Weekly demand: 16 units
42. Annual demand: 3600 units
Set-up cost: Rs 15 Ordering cost: Rs 50
Holding cost: 15% per week Holding cost: 20% of the unit cost
Purchase cost: Rs 8 per unit Price break O < q < 100 – Rs 20
Shortage cost: Rs 0.75 per week Q > 100 – Rs 18
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. 83 23. y* = 13
2. Q* = 500; CA* = Rs 80 24. y* = 12
3. Q* = 1000; Order cycle = 2 months 12 days 25. y* = 2
4. Q* = 730; CA* = Rs 4157 26. y* = 4875
5. Q* = 346; Period of run = 11.5 days; 27. y* = 2750 kg
CA* = Rs 17.32 28. y* = 5750
6. Production run = 10.5 days 29. Q* = 365; Reorder level = 2000 units,
7. Q* = 3266 Rs 54.80
8. Q* = 1000; Period of run = 40; CA* = Rs 5 30. Q* = 466; 5.3 orders per year
9. Q* = 3309; No. of runs = 17 per year 31. 40 days; 943 units
10. Q* = 2191 32. Q* = 866; No. of orders = 10.4 / year; Time
11. Q* = 183; Period of run = 9 days between two orders = 35 days
12. Q0 = q = 200 Annual inventory cost = Rs 2080
13. Q0 = 837 33. 87 units
14. Q0 = 1500 34. Q* = 288; Inventory cost = Rs 65.80 per
15. Q0 = 250; Reorder level = 220 units week.
16. Q0 = 200; CA0 = Rs 494; 3 orders per year 35. Q* = 71.458 tons
17. Q* = 4583 36. t* = 73 days; Q* = 1000 kg
18. Q* = 17, t* = 20 days 37. Q* = 314
19. (i) 25298 (ii) 28540 38. t* = 4 months
20. Q* = 3857 39. Q* = 3856 units
21. Q* = 6 40. (i) 44 (ii) 32 (iii) 55
22. (i) Q* = 1024, (ii) t* = 2 months 41. 9
(iii) Q2* = 293 42. 134
19
Replacement Models
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
Type A
Year 1 2 3 4 5 6 7 8
Running cost 1100 1300 1500 1900 2400 2900 3500 4100
Resale price 3100 1600 850 475 300 300 300 300
Type B
Year 1 2 3 4 5 6 7 8
Running cost 1300 1600 1900 2500 3200 4100 5100 6200
Resale price 4100 2100 1100 600 400 400 400 400
Determine which type of autorickshaw is to be purchased.
Solution type B should be replaced at the end of the 5th
year. Also the annual average cost of A is less than
For type A, C = Rs 7000
that of B uniformly.
Year f(t) Sf(t) S(t) C – S(t) T TA Hence it is advisable to purchase the
1 1100 1100 3100 3900 5000 5000 autorikshaw of type A.
2 1300 2400 1600 5400 7800 3900
Example 19.5 Machine A costs Rs 8000.
3 1500 3900 850 6150 10050 3350
4 1900 5800 475 6525 12325 3081
Annual operating cost is Rs 1000 for the first
5 2400 8200 300 6700 14900 2980
year and is increasing at the rate of Rs 2000 per
6 2900 11100 300 6700 17800 2967 year afterwards. The machine has no resale
7 3500 14600 300 6700 21300 3043 value. Another machine B costs Rs 10,000.
8 4100 18700 300 6700 25400 3175 The annual operating cost is Rs 400 for the
first year and is increasing at the rate of Rs 800
For type B, C = Rs 9000 every year with no resale value. If the machine
Year f(t) Sf(t) S(t) C – S(t) T TA A is one year old, is it advisable to replace A with
1 1300 1300 4100 4900 6200 6200 B? If so find the appropriate time for replacement.
2 1600 2900 2100 6900 9800 4900 Solution
3 1900 4800 1100 7900 12700 4233 For machine A, C = 8000
4 2500 7300 600 8400 15700 3925
Year f(t) Sf(t) S(t) C – S(t) T TA
5 3200 10500 400 8600 19100 3820
6 4100 14600 400 8600 23200 3867 1 1000 1000 0 8000 9000 9000
7 5100 19700 400 8600 28300 4043 2 3000 4000 0 8000 12000 6000
8 6200 25900 400 8600 34500 4313 3 5000 9000 0 8000 17000 5667
4 7000 16000 0 8000 24000 6000
From the above tables we find that type A 5 9000 25000 0 8000 33000 6600
should be replaced at the end of the 6th year and 6 11000 36000 0 8000 44000 7333
246 Operations Research
per year afterwards. B costs Rs 1250 with running The table shows that B should be replaced after
cost Rs 600 per year for 6 years increasing by 8 years.
Rs 100 per year thereafter. If money is worth 10% The weighted average cost of A in
per year and both machines have no scrap value, 9 years (Rs 875.86) is more than that of B in
determine which machine should be purchased. 8 years (Rs 840.11). Hence it is advisable to
Solution Let us calculate the average cost for A. purchase B.
Year Cn vn–1 Cnvn–1 C + SCnvn–1 S vn R Example1 9.10 A scooter costs Rs 6000. The
1 400 1 400 2900 1 2900 running cost and the salvage cost are given below.
2 400 0.9091 363.64 3263.64 1.9091 1709.45 If the interest rate is 10% per year find when the
3 400 0.8264 330.56 3594.20 2.7355 1313.84 scooter should be replaced.
4 400 0.7513 300.52 3894.72 3.4868 1116.93
5 400 0.6830 273.20 4167.92 4.1698 999.50 Year 1 2 3 4 5 6 7
6 500 0.6209 310.45 4478.37 4.7907 948.23 Running cost 1200 1400 1600 1800 2000 2400 3000
7 600 0.5645 338.70 4817.07 5.3552 899.40 Salvage value 4000 2666 2000 1500 1000 600 600
8 700 0.5132 359.24 5176.31 5.8684 881.92
9 800 0.4665 373.20 5549.51 6.3349 875.86 Solution The salvage value is to be taken to
10 900 0.4241 381.69 5931.20 6.7590 877.35 account only at the end of the year. Hence we
We find that A should be replaced after 9 years. multiply C n by v n–1 and S n by v n and obtain
Average cost for machine B the total cost at the end of (n – 1) th year as
C + SCnvn – 1 – Snvn. For the first year we find C +
Year Cn vn–1 Cnvn–1 C + SCnvn–1 Svn R
C, v0 – S1v, for the second year we find C + (C1 +
1 600 1 600 1850 1 1850 C2v) – S2V2 and so on.
2 600 0. 9091 545.46 2395.46 1.9091 1254.75
At the end of the nth year the average cost
3 600 0.8264 495.84 2891.30 2.7355 1056.95
4 600 0.7513 450.78 3342.08 3.4868 958.49 becomes
5
6
600 0.6830
600 0.6209
409.80
372.54
3751.88
4124.42
4.1698 899.77
4.7907 860.92 C+ å Cn vn -1 - Sn vn
(n =1, 2, 3,….)
7
8
700 0.5645
800 0.5132
395.15
410.56
4519.57
4930.13
5.3552 843.96
5.8684 840.11
å vn -1
9 900 0.4665 419.85 5349.98 6.3349 844.52 The following table gives the average cost at
10 1000 0.4241 424.10 5774.08 6.7590 854.28 the end of each year.
C = 6000
n–1 n–1 n–1
Year Cn v Cnv SCnv Sn vn Snvn SCnvn–1 C + SCnvn–1 Svn–1 R
– Snvn – Snvn
1 1200 1 1200 1200 4000 0.9091 3636.4 – 2436.4 3563.6 1 3563.6
2 1400 0.9091 1272.7 2472.7 2666 0.8264 2203.2 269.5 6269.5 1.9091 3284.0
3 1600 0.8264 1322.2 3794.9 2000 0.7513 1502.6 2292.3 8292.3 2.7355 3031.3
4 1800 0.7513 1352.3 5147.2 1500 0.6830 1024.5 4122.7 10122.7 3.4868 2903.1
5 2000 0.6830 1366.0 6513.2 1000 0.6209 620.9 5892.3 11892.3 4.1698 2852.0
6 2400 0.6209 1490.2 8003.4 600 0.5645 338.7 7664.7 13664.7 4.7907 2852.3
7 3000 0.5645 1693.5 9696.9 600 0.5132 307.9 9389 15389 5.3552 2873.6
C6 < R < C7 [2400 < 2852.3 < 3000] Therefore it is advisable to replace the scooter
at the end of 6th year.
Replacement Models 249
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. The cost of a machine is Rs 6000. The resale Determine the best time for replacing the
value and maintenance costs every year are machine.
given below. 2. A machine costs Rs 6100. The scrap value is
Rs 100. The maintenance costs are given below:
Year 1 2 3 4 5 6
Year 1 2 3 4 5 6 7 8
Maintenance cost 1000 1200 1400 1800 2300 2800
Maintenance 100 250 400 600 900 1200 1600 2000
Resale value 3000 1500 750 325 200 200 cost
252 Operations Research
When should the machine be replaced? 8. The following failure rates have been
3. The purchase price of a taxi is Rs 60000. Its observed for an electric bulb
resale value decreases by Rs 6000 per year. End of 1 2 3 4 5 6 7 8
The operating cost every year is given below: week
Year 1 2 3 4 5 Prob. of 0.10 0.15 0.20 0.35 0.65 0.90 0.95 1.00
Maintenance 1000 12000 15000 18000 20000 failure
cost The cost of replacing an individual bulb
After 5 years the operating cost is Rs 6000k is Rs 3 and the cost of group replacement
(k = 6, 7, 8, 9, 10,…) every year. What is the is Re 1 per bulb. Discuss whether group
best replacement policy? replacement is better than individual
4. A vehicle costs Rs 50000. Running costs and replacement, if there are 1000 bulbs.
resale values every year are given below: 9. Determine the optimal group replacement
Year 1 2 3 4 5 6 7 policy if there are totally 1000 bulbs and the
Running 5000 6000 7000 9000 12500 16000 18000
cost of individual replacement is Rs 5 and
cost the cost of group replacement is Rs 2 per
Resale 30000 15000 7500 3750 2000 2000 2000 bulb. The failure rate is given by the
value following table.
Thereafter running cost increases by Rs 2000, End of week 1 2 3 4 5 6
but resale value remains constant at Rs 2000. Prob. of failure 0.10 0.25 0.50 0.85 0.97 1.0
At what time is a replacement due?
5. The cost of a machine is Rs 5000. The Find the optimal group replacement policy.
maintenance cost during the nth year is given 10. A computer contains 10000 resistors. The
by cn = 500(n – 1) where n = 1, 2, 3,… cost of replacing a resistor is Rs 2. If all the
Suppose the discount rate is 5% per year. resistors are replaced at the same time it costs
After how many years will it be economical only Rs 0.75 per resistor. The percentage of
to replace the machine? resistors surviving at the end of each month
6. An equipment costs Rs 3000. The running is given by the following table:
costs are given below
End of month 1 2 3 4 5 6
Year 1 2 3 4 5 6 7 Percentage of survival 96 90 65 35 20 0
Running
cost 500 600 800 1000 1300 1600 2000
What is the optimal replacement plan?
11. The cost of a machine is Rs 60000. The
If money is worth 10% per year determine following table gives the data on running the
the optimal period of replacing the machine.
equipment.
Year 1 2 3 4 5
7. The cost of a machine A is Rs 5000.
The running costs are Rs 800 per year Resale value 42000 30000 20400 14400 9650
for each of the first five years, increasing Cost of spares 4000 4270 4880 5700 6800
by Rs 200 per year thereafter. Another Cost of labour 14000 16000 18000 21000 25000
machine B costs Rs 2500 but has Determine the optimum period of
running costs Rs 1200 per year for six replacement.
years, increasing by Rs 200 per year 12. Purchase price of machine A is Rs 200000.
thereafter. If money is worth 10% per year The particulars on running cost and resale
determine which machine should be value are given below:
purchased.
Replacement Models 253
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. At the end of 5th year. 11. At the end of the 4th year.
2. At the end of 6th year. 12. (i) At the end of the 5th year.
3. At the end of first year. (ii) A should be replaced with B, when it is
4. At the end of 6th year. four years old.
5. At the end of 5th year. 13. After 5 years.
6. At the end of 4th year. 14. The present worth of the new machine after
7. It is advisable to purchase machine B. 8 years is Rs 58212. The present worth of
the old machine after 8 years is Rs 44103.20.
8. Group replacement after 3 weeks is
Hence the new machine need not be
advisable. purchased.
9. Individual replacement is cheaper Rs 1500 15. Purchase an automatic stamper.
per week. 16. After 9 years.
Group replacement may be done after 17. Plan A.
3 weeks. Total cost = Rs 4705. 18. Replace every 3 months.
10. Optimal plan is group replacement after 19. After 6 weeks.
2 years. 20. After every 2 weeks.
20
Project Scheduling
(PERT and CPM)
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
before starting another activity B then we write Example 20.1 Draw a network diagram for the
A < B. A is preceding B or B is succeeding A. Two following set of activities:
activities A and B can also be performed
A < B, C; B < D, E; C < D; D < F; E < G; F < G
simultaneously. Suppose A, B < C and B < E then
it is represented by introducing a dummy activity Solution
B1 as follows:
A C 5
3
E
C C1 E1
B1
1 2 4 6 7 8
A B D F G
B E
The network diagram of the project having the In this diagram C < D. Hence we introduce
activities A, B, C, D, E, F, G where A < B, C; B, C a dummy activity C1. Similarly, E < G. Therefore
< D; B < E, F; D, F < G is given by another dummy activity E1 is introduced.
D
Example 20.2 Draw a network diagram for the
C following set of activities:
B1 G
F
A < B, C; B < D, E; C < E; E < F; D, F < G;
A G<H
B E
Solution
There is no predecessor for A and hence A is
the beginning activity. B1 is a dummy activity.
There is no successor for E and G. Hence E and G
are the final activities.
20.2.4 Fulkersons Rule
After the network is drawn with the given activities
in their order we have to assign numbers to the (B1 is dummy)
events (nodes). The numbering is to be done
according to Fulkerson’s rule which gives the Example 20.3 Draw a network for the following
following steps: set of activities
(i) The initial node which has only outgoing Activity A B C D E F G H I
arrows is assigned (1). Immediate – – – A B,C A C D,E,F D
(ii) Delete all the arrows going out from (1). We predecessor
get a set of initial nodes. Assign numbers (2), Solution
(3), (4) etc. to these nodes.
G
(iii) Follow this method to the nodes (2) (3) (4)... 2 7
C1
and assign successive numbers to the newly
obtained nodes. C E H
(iv) Finally we are left with a single node with 3 6 I
1 B
no arrow going out. Assign the last number
F D1
to this end node. A D 5
(v) Always the numbers of the head node must 4
be greater than that of the tail node of each
activity. (C1 and D1 are dummy)
Project Scheduling (PERT and CPM) 257
Note: The time taken for completing the activity (ii) ESj = LSj
(i, j) is given by tij. In the network diagram tij is (iii) ESj = ESi = LSj – LSi = tij
marked by the side of the arrow representing the Total float for an activity (i, j) is the difference
activity (i,j).
between the maximum time available to finish the
activity and the time required to complete it.
20.3 CRITICAL PATH METHOD
[Total float is simply called as Float.] Total float
20.3.1 Time Calculation = LSj – ESi – tij
There are some terms which are associated with Free float is the time by which an activity can
the activities of a project. The Earliest Starting be delayed beyond its earliest finish time without
Time of the activity (i, j) is denoted by ESi and the affecting the earliest start time of a succeeding
Earliest Finishing Time of the activity (i, j) is activity
denoted by ESj. For the activity (i, j), ESj = ESi + tij. Free float = Total float – (LSj – ESj)
If more than one activity end at the node (j) then Independent Float = Total float – (LSi – ESi)
ESj = max {ESi + tij}. The path formed by all the critical activities is
i
tij called the critical path.
( j)
20.3.2 Step-by-Step Procedure
to Find the Critical Path
1. Draw the network diagram of the project and
indicate the time for each activity.
2. Calculate the earliest starting time at each
For the initial activity ES1 = 0. If (n) is the last
node.
node then ES n represents the time taken to
3. Calculate the latest starting time at each node.
complete the whole project. Also, ESn = EFn.
Starting from the last node we proceed 4. Prepare a table giving the time tij, ESi, ESj,
backward to calculate the latest times. The Latest LSi, and LSj for each activity.
Starting Time of the activity (i, j) is denoted by 5. Find the difference between the earliest time
LSi and the Latest Finishing Time of the activity ESi and the latest time LSi. Note down the
(i, j) is denoted by LSj. For the activity (i, j), difference (float) LSi – ESi, (LFj – EFj) for
LSi = LSj – tij . If more than one activity start from each activity.
(i) then LSi = min {LSj – tij} 6. Choose the critical activities with zero float
j and form the critical path by double line.
tij 7. The sum Stij of the critical activities gives
the time of completion of the project. (ESn
(i)
also denotes the time of completion of the
project.)
For the last node (n) ESn = LSn. For the activities Example 20.4 A project consists of a series of
(i, j) and (j, k) the earliest starting time ESj of (j, k) jobs A, B, C, D, E, F, G, H, I such that A < D, E; B,
is the same as the earliest finishing time EFj of the D < F; C < G; B < H; F, G < I
activity (i, j). Similarly, LSj = LFj. The time of completion of each job is given
An activity is called critical activity if a delay below:
in starting that activity will cause further delay in Job A B C D E F G H I
completing the project. For a critical activity (i, j)
the following equalities hold Time 23 8 20 16 24 18 19 4 10
(i) ESi = LSi (days)
258 Operations Research
Find the critical path and the minimum time Job Time Earliest time Latest time Float
required to complete the project. Start Finish Start Finish
Solution The network of the given project is as ESi ESj LSj ESj
shown below:
(1, 2) 23 0 23 0 23 0Æ
(1, 3) 8 0 8 31 39 31
(1, 4) 20 0 20 18 38 18
(2, 3) 16 23 39 23 39 0Æ
(2, 7) 24 23 47 43 67 20
(3, 5) 0 39 39 57 57 18
(3, 6) 18 39 57 39 57 0Æ
(4, 5) 19 20 39 38 57 18
(5, 6) 0 39 39 57 57 18
(5, 7) 4 39 43 63 67 24
(6, 7) 10 57 67 57 67 0Æ
D1 and D2 are dummy activities with tij = 0. From the table we find that the critical activities
The earliest and latest starting times at the nodes are (1, 2), (2, 3), (3, 6) and (6, 7). Hence the critical
are calculated as given below. path is 1 – 2 – 3 – 6 – 7. The minimum time
ES1 = 0 ES2 = ES1+t12 = 0+23 = 23 of completion of the project is 23 + 16 + 18 +
10 = 67 days.
ES3 = Max [ES1 + t13, ES2 + t23]
= Max [0 + 8, 23 + 16] = 39 Example 20.5 A project consists of jobs A, B,
ES4 = ES1 + t14 = 0 + 20 = 20 C, D, E, F, G, H, I such that A < D; A < E; B < F;
ES5 = Max [ES4 + t45, ES3 + t35] D < F; C < G; C < H; F < I; G < I
= Max [20 + 19, 39 + 0] = 39 The time taken for each job is given below:
ES6 = Max [ES3 + t36, ES5 + T56] Job A B C D E F G H I
= Max [39 + 18, 39 + 0] = 57 Time 8 10 8 10 16 17 18 14 9
ES7 = Max [ES2 + t27, ES6 + T67, ES5 = t57] (days)
= Max [23 + 24, 57 + 10, 39 + 4] = 67
Now, Draw the network diagram. Find the critical
LS7 = ES7 = 67 path and minimum time of completion of the
LS6 = LS7 – t67 = 67 – 10 = 57 project.
LS5 = Min [LS6 – t56’ LS7 – t57] Solution The network diagram is given below:
= Min [57 – 0, 67 – 4] = 57
LS4 = LS5 – t45 = 57 – 19 = 38
LS3 = Min [LS6 – t36’ LS5 – t35]
= Min [57 – 18, 57 – 0] = 39
LS2 = Min [LS3 – t23, LS7 – t27]
= Min [39 –16, 67 – 24] = 23
LS1 = Min [LS4 – t14, LS3 – t13, LS2 – t12]
= Min [38 –20, 39 – 8, 23 – 23] = 0
To find the critical nodes we prepare the table
as given below:
(H1 is a dummy activity)
[EFj = ESi + tij; LSi = LFj – tij = LSj – tij The earliest and latest times are calculated as
Float = LSi – ESi = LSj – ESj] follows:
Project Scheduling (PERT and CPM) 259
ES1 = 0 ES2 = ES1 + t12 = 0 + 8 = 8 The table giving the critical activities is
ES3 = Max [ES1 + t13, ES2 + t23]
Job Time Earliest time Latest time Float
= Max [0 + 10, 8 + 10] = 18
ES4 = ES1 + t14 = 0 + 8 = 8 Start Finish Start Finish
ES5 = Max [ES2 + t25, ES4 + t45] ESi ESj LSi LSj
= Max [8 + 16, 8 + 14] = 24 (1, 2) 8 0 8 0 8 0 Æ
ES6 = Max [ES4 + t46, ES3 + t36] (1, 3) 10 0 10 8 18 8
= Max [8 + 18, 18 + 17] = 35 (1, 4) 8 0 8 9 17 9
ES7 = Max [ES5 + t57, ES6 + t67] (2, 3) 10 8 18 8 18 0 Æ
= Max [24 + 0, 35 + 9] = 44 (2, 5) 16 8 24 28 44 20
ES7 = ES7 = 44 (3, 6) 17 18 35 18 35 0 Æ
LS6 = LS7 – t67 = 44 – 9 = 35 (4, 6) 18 8 26 17 35 9
(4, 5) 14 8 22 30 44 22
LS5 = LS7 – t57 = 44 – 0 = 44
(5, 7) 0 24 24 44 44 20
LS4 = Min [LS6 – t46, LS5 – t45] (6, 7) 9 35 44 35 44 0 Æ
= Min [35 – 18, 44 – 14] = 17
LS3 = LS6 – t36 = 35 – 17 = 18 From the table we find that the critical path is
LS2 = Min [LS5 – t25, LS3 – t23] 1 – 2 – 3 – 6 – 7.
= Min [44 – 16, 18 – 10] = 8 Minimum time of completion is 44 units.
LS1 = Min [LS4 – t14’ LS3 – t13, LS2 – t12] Example 20.6 Find the critical path of the
= Min [17 – 8, 18 – 10, 8 – 8] = 8 project with the following activities
Job (1, 2) (1, 3) (2, 4) (3, 4) (3, 5) (4, 9) (5, 6) (5, 7) (6, 8) (7, 8) (8, 10) (9, 10)
Time 4 1 1 1 6 5 4 8 1 2 5 7
Job Time Earliest time Latest time Float ES9 = Max [23 + 4, 19 + 1] = 27
ESi ESj Start Finish ES10 = Max [15 + 4, 27 + 7] = 34
LSi LSj LS10 = 34
(1, 2) 4 0 4 5 9 5 LS9 = 34 – 7 = 27
(1, 3) 1 0 1 0 1 0 Æ LS8 = 27 – 1 = 26
(2, 4) 1 4 5 9 10 5
(3, 4) 1 1 2 9 10 8 LS7 = 27 – 4 = 23
(3, 5) 6 1 7 1 7 0 Æ LS6 = Min [30, 15] = 15
(4, 9) 5 5 10 10 15 5
LS5 = 26 – 5 = 21
(5, 6) 4 7 11 12 16 5
(5, 7) 8 7 15 7 15 0 LS4 = 15 – 3 = 12
(6, 8) 1 11 12 16 17 5 LS3 = Min [16, 9] = 9
(7, 8) 2 15 17 15 17 0 Æ
(8, 10) 5 17 22 17 22 0 Æ LS2 = Min [2, 9] = 2
(9, 10) 7 10 17 15 22 5 LS1 = 2–2=0
The critical path is Job Time Earliest time Latest time Float
1 – 3 – 5 – 7 – 8 – 10
Time of completion is 22 days. Start- Finish- Start- Finish-
ESi ESj LSi LSj
Example 20.7 Find the critical path of a project
having the tasks as given below: (1, 2) 2 0 2 0 2 0 Æ
(2, 3) 7 2 9 2 9 0 Æ
Job Time Job Time (2, 4) 3 2 5 9 12 7
(1, 2) 2 (5, 8) 5 (3, 4) 3 9 12 9 12 0 Æ
(3, 5) 5 9 14 16 21 7
(2, 3) 7 (6, 7) 8 (4, 6) 3 12 15 12 15 0 Æ
(2, 4) 3 (6, 10) 4 (5, 8) 5 14 19 21 26 7
(3, 4) 3 (7, 9) 4 (6, 7) 8 15 23 15 23 0 Æ
(6, 10) 4 15 19 30 34 15
(3, 5) 5 (8, 9) 1
(7, 9) 4 23 27 23 27 0 Æ
(4, 6) 3 (9, 10) 7 (8, 9) 1 19 20 26 27 7
(9, 10) 7 27 34 27 34 0 Æ
Solution The network diagram is
The critical activities are (1, 2), (2, 3), (3, 4),
4 10 (4, 6), (6, 7), (7, 9), (9, 10). The critical path is 1 –
3 2 – 3 – 4 – 6 – 7 – 9 – 10
4 6 7
3 3 8 Time of completion is 34 days
7 14
Example 20.8 Find the critical path of the
2 7 5 5 5 1
1 2 3 8 9 project represented by the following network:
3 3 5 5 7
ES1 = 0
ES2 = 0+2=2
ES3 = 2+7=9 4 5 2 4
ES4 = Max [5, 12] = 12
ES5 = 9 + 5 = 14
1 1 2 5 4 4 6
ES6 = 12 + 3 = 15
ES7 = 15 + 8 = 23 Solution The earliest and latest times are
ES8 = 14 + 5 = 19 calculated as follows:
Project Scheduling (PERT and CPM) 261
Job (i, j) tij Earliest time Latest time Total float Free float Independent
ESi ESj LSi LSj LSi – ESi float
(1, 2) 6 0 6 0 6 0 Æ 0 0
(1, 3) 2 0 2 2 4 2 0 2
(1, 4) 13 0 13 1 14 1 0 1
(2, 5) 4 6 10 6 10 0 Æ 0 0
(2, 6) 9 6 15 8 17 2 2 2
(2, 7) 2 6 8 9 11 3 0 3
(3, 4) 10 2 12 4 14 2 1 0
(4, 9) 6 13 19 14 20 1 1 0
(5, 6) 7 10 17 10 17 0 Æ 0 0
(6, 9) 3 17 20 17 20 0 Æ 0 0
(7, 8) 4 8 12 11 15 3 0 0
(8, 10) 10 12 22 15 25 3 3 0
(9, 10) 5 20 25 20 25 0 Æ 0 0
The critical path is 1 – 2 – 5 – 6 – 9 – 10. The Variance of the distribution of time for each
time of completion is 25 weeks. activity is calculated using the formula
Notes: 2
(i) The difference between slack time and float æ t p - to ö
s ij2 =ç
time is that slack is used for nodes whereas è 6 ÷ø
float is applied for activities.
(ii) Total float of an activity (i, j) is LSi – ESi (ii) In CPM we find the minimum time required
(Slack at i) or LSj – ESj (Slack at j) to complete the project without considering
(iii) Free float = Total float – Slack time at j. the cost involved. But in PERT the cost
(iv) Independent float = Total float – Slack time involved in each activity is also taken into
at i account. The normal time required for each
(v) Negative value of a float is considered as activity can be crashed to the least time
zero. required at an increased cost. We crash the
activities in a systematic way and find the
20.4 PERT CALCULATIONS least possible time to complete the project at
an optimum cost.
20.4.1 CPM and PERT (iii) In CPM, the time calculations are activity
The following facts help to distinguish CPM and oriented. But in PERT each node represents
PERT calculations. an event and the calculations are based on
(i) In CPM the time of an activity is determinis- these events.
tic. But in PERT the time for each activity is (iv) In CPM the time of completion of the project
probabilistic. We are given three different is of deterministic nature where as in PERT
time estimates to = optimistic time (shortest we can find only the probability of
possible time to complete the activity), tm = completion of the project within a stipulated
most likely time (normal time the activity time.
would take in general), tp = pessimistic time
(longest time taken for the activity if things 20.4.2 Time Calculations and
go wrong).We find the expected time te for Critical Path
each activity using the formula Instead of calculating the starting and finishing
1
te =
6
(to + 4tm + t p ) times of an activity, we find the earliest expected
Project Scheduling (PERT and CPM) 263
time E(mi) of the event (i) and the latest expected Time calculations
time E(Li) of the event (i) E(mi) is found as in the E(m1) = 0
case of ESi in CPM. E ( mi ) = Max [ E ( mi ) + tij ]
i E(m2) = 0 + 3 = 3
Similarly E ( Li ) = Min [ E ( L j ) - tij ] . If E(mi) = E(m3) = 0 + 5 = 5
j
E(Li) then (i) is a critical node. The path joining E(m4) = 0 + 8 = 8
the critical nodes is the critical path. E(m5) = 3 + 7 = 10
Example 20.10 A project is represented by the E(m6) = Max [5 + 9, 3 + 10] = 14
network given below and has the following data:
E(m7) = Max [10 + 8, 14 + 8, 8 + 11] = 22
Task A B C D E F G H I
E(L7) = 22; E(L6) = 22 – 8 = 14
Optimistic time to 2 3 5 5 8 7 9 3 6 E(L5) = 22 – 8 = 14
Most likely time tm 3 5 8 7 10 9 11 8 8
Pessimistic time tp 4 7 11 9 12 11 13 13 10
E(L4) = 22 – 11 = 11
E(L3) = 14 – 9 = 5
3 F E(L2) = Min [14 – 10, 14 –7] = 4
9 I
B 6 7 E(L1) = Min [11 – 8, 5 – 5, 4 – 3] = 0
E 8
5 10 D 8 H
G
3 2 7
5 11 Event E(mi) E(Li) Slack
A
1 4 1 0 0 0 Æ
8 C 2 3 4 1
Determine the following: 3 5 5 0 Æ
(i) Expected task times, te 4 8 11 3
(ii) Variance of the tasks, s 2 5 10 14 4
(iii) Critical path 6 14 14 0 Æ
Solution We calculate the expected time and the 7 22 22 0 Æ
variance of each task as given below:
2 The critical path is 1 – 3 – 6 – 7. The expected
1 æ t p - to ö time of completion is 22 units.
te = (to + 4tm + t p ) s 2 = ç
6 è 6 ÷ø Example 20.11 Find the critical path of the
project given by the following network
Task t0 tm tp te s2
diagram
(1, 2) 2 3 4 3 0.111
(1, 3) 3 5 7 5 0.444
(1, 4) 5 8 11 8 1
(2, 5) 5 7 9 7 0.444
(2, 6) 8 10 12 10 0.444
(3, 6) 7 9 11 9 0.444
(4, 7) 9 11 13 11 0.444
(5, 7) 3 8 13 8 2.778
(6, 7) 6 8 10 8 0.444
264 Operations Research
Job (1, 2) (1, 3) (1, 5) (2, 3) (2, 4) (2, 5) (3, 4) (3, 7) (4, 6) (4, 7) (5, 6) (6, 7)
to 2 2 5 6 9 5 4 6 12 7 3 10
tm 4 5 8 7 10 9 8 9 13 10 6 13
tp 6 8 11 8 11 13 12 12 14 13 9 16
Solution The time calculations are given The expected time of completion of the project
below: is 45 units.
1 20.4.3 Probability of Completion
te = (to + 4tm + t p )
6 Within a Specified Time
Job to tm tp te In PERT since the time estimates are based on
(1, 2) 2 4 6 4 probability, the project may not be completed
(1, 3) 2 5 8 5 exactly in time. We can calculate the probability
(1, 5) 5 8 11 8 of completing the project within any scheduled
(2, 3) 6 7 8 7 time. It is assumed that the probability distribution
(2, 4) 9 10 11 10 of the activity times is normal distribution. The
(2, 5) 5 9 13 9 mean of the distribution is T (expected time of
(3, 4) 4 8 12 8 completion) and the variance is s 2 = Ss ij2 where
(3, 7) 6 9 12 9
s ij2 are the variances of the critical activities. We
(4, 6) 12 13 14 13
(4, 7) 7 10 13 10 can calculate the probability of completing the
(5, 6) 3 6 9 6 project in a given time t as follows:
(6, 7) 10 13 16 13
t -T
Define Z1 = . Now Z is a standard
E( m1) = 0; E( m2) = 4 s2
E( m3) = Max [4 + 7, 0 + 5] = 11 normal variate and hence we can use the table of
E( m4) = Max [4 + 10, 11 + 8] = 19 area under normal curve to find P [Z £ Z1]. This is
E( m5) = Max [0 + 8, 4 + 9] = 13 the required probability.
E( m6) = Max [19 + 13, 13 + 6] = 32 Example 20.12 A project consists of the
E( m7) = Max [19 + 10, 11 + 9, 32 + 13] = 45 following activities and time estimates.
E( L7) = 45; E(L6) = 32; E(L5) = 26 Activity Estimated duration in weeks
E( L4) = Min [45 – 10, 32 – 13] = 19 Optimistic Most likely Pessimistic
E( L3) = Min [45 – 9, 19 – 8] = 11
(1, 2) 1 1 7
E( L2) = Min [11 – 7, 19 – 10, 26 – 6] = 4 (1, 3) 1 4 7
E( L1) = Min [4 – 4, 11 – 5, 26 – 8] = 0 (1, 4) 2 2 8
(2, 5) 1 1 1
Event E(mi) E(Li) Slack
(3, 5) 2 5 14
1 0 0 0 Æ (4, 6) 2 5 8
2 4 4 0 Æ (5, 6) 3 6 15
3 11 11 0 Æ
4 19 19 0 Æ (i) Draw the network.
5 13 26 13 (ii) Find the expected time and variance for each
6 32 32 0 Æ activity.
7 45 45 0 Æ (iii) What is the probability that the project will
be completed 4 weeks earlier than the
The critical path is 1 – 2 – 3 – 4 – 6 – 7 expected time.
Project Scheduling (PERT and CPM) 265
1 0 0 0 Æ
7-9
6-9-12 9 10 2 7 7 0 Æ
2-4-6 0-0-0 6-7.5-12 8-13-18
3 11 11 0 Æ
1 2 4 6 8
6-7-8 8-12-16 3-4-5 5-9-13 4 19 23 4
5 25 25 0 Æ
Solution The time estimates to, tm, and tp are 6 23 27 4
given in the network diagram. The expected time 7 38 38 0 Æ
and variance of each activity is given by the 8 33 36 3
following table:
9 45 45 0 Æ
Activity to tm tp te Variance s 2 10 58 58 0 Æ
= 16 + 4 + 1 + 1.36 = 22.36
to 3 2 6 2 5 3 3 1 4 1 2
tm 6 5 12 5 11 6 9 4 19 3 4 \ s = 4.73
tp 12 14 30 8 17 15 27 7 28 8 12 Now T = 32.5 days. Given t = 35 days.
Precedence relationships are t -T 35 - 32.5
Z1 = = = 0.53
A < D, I; B < G, F; D < G, F; C < E; E < H, K s 4.73
F < H, K; G, H < J.
What is the probability that the project will be
completed in 35 days?
Solution The network diagram is given below
18 7
I J
2 K
6 3.5
A 6.5 D G 11 4 5
0 0.53
5 H
B F
1 6 3 5
7 From the table we find that
14 C E 11 P [Z £ 0.53] = 0.702
4 \ Probability that the project would be
completed in 35 days, is 0.702.
The expected time and variance of each job is
20.4.4 Cost Considerations in
given by the following table:
PERT
Job to tm tp te Variance
In PERT calculations the cost involved in
A (1, 2) 3 6 12 6.5 2.25 completing the project is also considered. There
B (1, 3) 2 5 14 6 4 are two kinds of costs, Direct cost and Indirect
C (1, 4) 6 12 30 14 16 cost. Direct costs are the costs associated with each
D (2, 3) 2 5 8 5 1 activity such as machine cost, labour cost, etc.
I (2, 7) 4 19 28 18 16
Direct cost varies inversely as the duration of the
F (3, 5) 3 6 15 7 4
G (3, 6) 3 9 27 11 16 activity. It increases when the time of completion
E (4, 5) 5 11 17 11 4 of the job is to be reduced (crashed) since more
H (5, 6) 1 4 7 4 1 machines and more labour, become necessary to
K (5, 7) 2 4 12 5 2.78 complete the job in less time. Indirect costs are
J (6, 7) 1 3 8 3.5 1.36 the costs due to management services, rentals, cost
of security, establishment charges and similar over-
Now E(m1) = 0; E(m2) = 6.5
head expenditures. When the duration of the
E(m3) = 11.5; E(m4) = 14 project is shortened, indirect cost decreases.
E(m5) = 25; E(m6) = 29 Therefore there is some optimum project duration
E(m7) = 32.5; E(L7) = 32.5 which is a balance between the direct costs
E(L6) = 29; E(L5) = 25; increasing with reducing of project duration and
E(L4) = 14; E(L3) = 18; the indirect costs increasing with the lengthening
E(L2) = 13; E(L1) = 0 of the duration. This method of finding the
The critical path is 1– 4 – 5 – 6 – 7 optimum duration is called Least Cost Schedule.
The expected time of completion of the project For each activity a normal time and normal cost
is 32.5 days is known. Also the crash time and the corres-
268 Operations Research
ponding crash cost are also given. In order to The critical path is 1 – 2 – 5 (Longest path)
reduce the duration we crash the critical activities Time of completion = 18 days
one by one and obtain the optimum duration. Direct cost (Normal cost) = Rs 580
Indirect cost = 18 × 70 = Rs 1260
Step-by-step procedure Total cost = 580 + 1260 = Rs 1840
(i) Draw the network diagram.
(ii) Determine the critical path, normal duration Crashing First we crash the critical activity
and total normal cost of the project. (1, 2) having the least cost slope 50. The new
(iii) Find the cost slope of each activity using the network is given below:
formula 10
2 5
æ Crash cost – Normal cost ö 6
Cost slope = çè ÷
Normal time – Crash time ø 2
3
(iv) Crash the critical activity having the least
1
slope. 4 3 4
5
(v) Calculate the revised total cost [Revised
direct cost + new indirect cost] for the The critical path remains the same with revised
reduced duration. duration 16 days
(vi) Determine the new critical path and repeat Direct cost = Rs 680 (580 + 100)
the process of crashing systematically till an Indirect cost = 16 × 70 = Rs 1120
optimum duration is obtained. Total cost = Rs 1800
Example 20.15 For the project represented by Next we crash the critical activity (2, 5)
the following network and the table showing time The new network is given below
and cost, find the optimum duration and cost. 5
2 5
Activity Normal Crash DT DC DC
6 2
Time Cost Time Cost DT
(days) (Rs) (days) (Rs) 3
The critical path becomes 1 – 2 – 5 with duration And the duration is 4 days. There is no indirect
11 days. cost. Hence the total cost is Rs 740.
Direct cost = Rs 1000 (980 + 20) Crashing The critical activities (4, 5) and
Indirect cost = Rs 11 × 70 = Rs 770 (5, 6) have the least slope 30. Hence we crash these
Total cost = Rs 1770 two activities by 4 days and 2 days respectively.
The critical activities (1, 2) and (2, 5) have been The network becomes
crashed already. Hence no more crashing can be 3
done. 6 7
Now we find that the activity (4, 5) can be 3
1 2 4 5 6
extended by one day without affecting the project 5 5 2 6
duration. This will save the crash cost of the Now the critical path (longest path) is 1 – 2 –
activity (4, 5) by one day. Thus we get the network 3 – 5 – 6 with duration 21 days
5
Total cost becomes 740 + 120 + 60 = Rs 920.
2 5 The critical activity (2, 3) has the least slope.
Hence we crash (2, 3) by one day. The new
6 2 network is
2
3
6 7
1 3 4 2
4 5
1 2 4 5 6
\ optimum duration = 11 days 5 5 2 6
Total cost = 1770 – 10 = Rs 1760 The critical path remains the same 1 – 2 – 3 –
Example 20.16 Find the optimum cost schedule 5 – 6 with duration 20 days. The total cost is
for the project with the following data Rs 960. Next we crash the critical activity (3, 5)
by 3 days. The revised net work is
Activity Normal Crash DT DC DC
3
Time Cost Time Cost DT
(days) (Rs) (days) (Rs) 6 4
2
(1, 2) 5 100 3 220 2 120 60
(1, 3) 6 120 3 195 3 75 25 1 2 4 5 6
5 5 2 6
(2, 3) 3 60 2 100 1 40 40 Now the critical path is 1 – 2 – 4 – 5 – 6 with
(2, 4) 5 80 3 170 2 90 45 duration 18 days. The total cost is Rs (960 + 150) =
(3, 5) 7 100 4 250 3 150 50
Rs 1110
(4, 5) 6 120 2 240 4 120 30
(5, 6) 8 160 6 220 2 60 30
The activity (2, 4) with slope 45 is to be crashed
next. The network becomes
740 Indirect cost is zero
3
Solution The network of the project is
6 4
2
3
7
6 1 2 4 5 6
3 5 3 2 6
1 2 4 5 6 Now the critical path 1 – 2 – 3 – 5 – 6 and the
5 5 6 8 duration is 17 days. The total cost is Rs 1200. Next
It is easily seen that the critical path (longest we crash the remaining critical activity (1, 2) by
path) is 1 – 2 – 4 – 5 – 6. 2 days. The new network is
270 Operations Research
3 1 2 5
8 10
3 4
2 The critical path is 1 – 2 – 5 and the duration of
the project is 18 days.
1
3
2
3
4
2
5
6
6 Direct cost = Rs 580
The critical path (longest path) is 1 – 2 – 3 – Indirect cost = Rs 1800
5 – 6. The duration is 15 days. Total cost is Total cost = Rs 2380
Rs 1395. Thus the minimum project duration is Crashing The critical activity (1, 2) having
15 days and the total cost is Rs 1395. However we the least slope, is crashed by 2 days. The network
want to decrease the cost without increasing the becomes
duration. We find that by increasing the duration
of (1, 3) by 2 days we save (2 × 25) Rs 50. Also by 3
5
4
increasing the duration of (2, 4) by one day we 3
save Rs 45. The critical path remains the same. 4
2
Thus the revised schedule of activities is given by
1 2 5
the following network. 6 10
3 The critical path remains the same (1 – 2 – 5)
5 4 with duration 16 days.
2 Direct cost = Rs 680
1 2 4 5 6
Indirect cost = Rs 1600
3 4 2 6 Total cost = Rs 2280
The optimum cost of the project is 1395 – 50 – Next we crash the activity (2, 5) by 5 days. We
45 = Rs 1300 have,
The optimum duration is 15 days.
3 4
Example 20.17 The following table gives the 5 3
cost particulars of a project 4
2
Activity Normal Crash DT DC Slope
1 2 5
Time Cost Time Cost 6 5
(days) (Rs) (days) (Rs)
The new critical path is 1 – 3 – 4 – 5 having
(1, 2) 8 100 6 200 2 100 50 duration 12 days.
(1, 3) 4 150 2 350 2 200 100 Direct cost = Rs 980
(2, 4) 2 50 1 90 1 40 40 Indirect cost = Rs 1200
(2, 5) 10 100 5 100 5 300 60
Total cost = Rs 2180
(3, 4) 5 100 1 200 4 100 25
Now we crash (4, 5) by 2 days. We obtain the
(4, 5) 3 80 1 100 2 20 10
Rs 580
network
Project Scheduling (PERT and CPM) 271
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. Construct the network for the projects whose activities and their relation ships are given below:
(a) A < B, C; C < G, F; D < G, F; E, F < H
(b) A < C; B < D, E; C, D < F; E < G; F<H
(c) A < C, D; B < E; C, E < F, G; D < H, G < I; H, I < J
(d) A < B, C; D < E; B, C, E < F; F < G; E < H; G, H < I
2. Find the critical path and time of completion of the projects described below:
(a) Activity (1, 2) (1, 3) (1, 4) (2, 5) (2, 6) (3, 5) (4, 6) (5, 6)
Time 4 2 10 12 12 6 8 9
(Days)
(b) Activity (1, 2) (1, 3) (2, 4) (3, 4) (3, 5) (4, 7) (5, 6) (5, 7) (6, 8) (7, 8)
Time 4 1 1 1 6 5 4 8 1 2
(Days)
(c) Activity (1, 2) (2, 3) (3, 4) (3, 7) (4, 5) (4, 7) (5, 6) (6, 7)
Time 3 4 4 4 2 2 3 2
(Days)
(d) Activity (1, 2) (1, 3) (2, 4) (3, 4) (3, 5) (4, 5) (4, 6) (5, 6)
Time 6 5 10 3 4 6 2 9
(Weeks)
(e) A < B, C, D, E; E < F; D < G; G, F < H; B < I
Activity A B C D E F G H I
Time
(Weeks) 1 4 2 3 2 3 2 1 3
(f) Job A B C D E F G H I J K
Time 13 8 10 9 11 10 8 6 7 14 18
A < B; B < C, E; C < D; E < F, H; D, F < G; H < I; G, I < J; J < K
272 Operations Research
(g) Job A B C D E F G H I J K L
Time 30 7 10 14 10 7 21 7 12 15 30 15
A < B, C; B < D, G, K; C < D, G; D < E; E < F; F < H, I, L; G < L; H, I < J; K < L
(h) A < B, C; B < D, E; C < F, G; F < H; D < I; E, G < K; H < J
Activity A B C D E F G H I J K
Time 10 9 7 6 12 6 8 8 4 11 7
(weeks)
2 (1, 2) 3 4 5
1 (1, 3) 1 2 3
2 5 4 3
1 3 7 8 9 (2, 3) 6 8 10
1 8 (2, 4) 2 5 8
5 (2, 5) 3 5 7
4 5
3
(j) (3, 4) 6 9 12
(4, 7) 1 1 1
12
2 6 (5, 6) 2 5 8
6 13 16 (6, 7) 4 8 12
7
7 14 8 6 (i) Draw the network
1 3 5 8 9
12 (ii) Determine the critical path and the
13
9
4 7 project length
9
4. For the project having the following jobs and time estimates find the probability of completing the
project in 66 days.
Activity (1, 2) (2, 3) (2, 4) (3, 5) (4, 5) (4, 6) (5, 7) (6, 7) (7, 8) (8, 9)
to 9 10 5 3 4 10 8 6 12 7
tm 10 13 9.5 5 7 15 12 7.5 15 11
tp 11 16 11 13 10 26 22 12 24 15
18. Find the critical path of the project having the following activities.
Activity (1, 2) (2, 3) (2, 4) (3, 5) (4, 6) (4, 7) (5, 8) (6, 7) (7, 8)
Time (days) 2 3 4 2 4 3 6 5 6
19. For the following project find the probability Activity Time estimates
of completion in 42 days. to tm tp
Activity to tp tm A 4 6 8
B 5 7 15
(1, 2) 6 10 8
C 4 8 12
(1, 3) 18 22 20
(1, 4) 26 40 33 D 15 20 25
(2, 5) 16 20 18 E 10 18 26
(2, 6) 15 25 20 F 8 9 16
(3, 6) 6 12 9 G 4 8 12
(4, 7) 8 12 10 H 1 2 3
(5, 7) 7 9 8 I 7 6 8
(6, 7) 3 5 4
A < B, C; B < D, E;
20. A project has the following data
C < F;
A < B, C; B, C < D
E < G;
B < E; D, E < F
D<G D, F < H;
G, H < I.
Activity Time estimates 22. Determine the critical path
to tm tp
A 1 4 7 Activity to tm tp
B 4 6 14 (1, 2) 3 4 5
C 3 3 3
(1, 3) 6 8 10
D 4 10 22
(1, 4) 2 3 4
E 3 8 13
F 2 5 14 (2, 5) 4 5 12
G 4 4 4 (3, 5) 5 7 9
(3, 6) 9 16 17
Find the expected time of completion. Also
find the probability that the project would (4, 7) 8 12 16
be completed in 30 days. (5, 9) 4 5 6
21. For the following data, draw the network, (6, 9) 7 8 15
calculate the expected time of completion and (7, 8) 8 11 14
find the probability of completing the project
(8, 9) 8 10 12
in 50 weeks.
276 Operations Research
ANSWERS
■ ■ ■ ■ ■ ■ ■
D
F
I
C
A G
E
B
(d) 1 – 2 – 3 – 4 – 5 – 6 – 7; Time = 57;
E H Probability = 0.7995
8.
G
D E1 F
C
A B1
B
2. (a) 1 – 2 – 5 – 6; Time = 25
(b) 1 – 3 – 5 – 7 – 8; Time = 17
(c) 1 – 2 – 3 – 4 – 5 – 6 – 7; Time = 18
(d) 1 – 2 – 4 – 5 – 6; Time = 31
(e) A – B – I; Time = 8 1 – 2 – 3 – 6 – 7 – 9 – 10 – 11; Time = 53;
(f) A – B – E – F – G – J – K; Time = 82 Probability = 0.8
(g) A – C – C1 – D – E – F – I Time = 98 9. 1 – 3 – 6 – 9; Duration = 15
– I1 – J; Free float is zero for all the activities except
(h) A – C – F – H – J; Time = 42 (5, 8), which has Free Float 4.
Project Scheduling (PERT and CPM) 277
Independent float is zero for all activities (b) Normal duration is 13 days.
except (1, 4) with I.F. 1 and (3, 7) with I.F. 1. Total cost = Rs 1493
10. Critical path: 1 – 2 – 4 – 5
After crashing the critical activities, we
obtain the optimal duration 8 days
Optimal cost = Rs 1523
(c) Normal duration is 27 days.
Total cost = Rs 5450
Critical path: 1 – 2 – 4 – 5 – 6
After crashing the critical activities, we
obtain the optimal duration 22 days
Optimal cost = Rs 5700
(d) Normal duration is 14 days.
Total cost = Rs 1900
Critical path: B – F
After crashing the critical activities, we
Critical path: 1 – 2 – 6 – 7 – 8 obtain the optimal duration 10 days
Optimal cost = Rs 2300
Duration: 67
13. Network
Free Float: (3, 7) – 45; (4, 7) – 18; (5, 8) –
20; Zero for other activities
Independent Float: (2, 5) – 20; (3, 7) – 14;
Zero for other activities
11. 10
4
12 0 16
E1 J
14 2 22 3 E 16 24
1
A B D 8 I 9 Critical paths: E – A – B – C – I – J
10 Completion time: 37 weeks
C 8 H
6 14. Network
5 7
G
10 F1
F
0
6
Critical path: 1 – 2 – 3 – 5 – 6 – 7 – 8 – 9 – 10
Duration: 104
Free Float: (4, 8) – 16; (5, 7) – 4; Zero for
other activities
12. (a) Normal duration is 32 weeks.
Total cost = Rs 5820
Critical path: 1 – 2 – 5 – 6 – 7 – 8
After crashing the critical activities, we
obtain the optimal duration 29 weeks Critical path: A – E – H – I
Optimal cost = Rs 5805 Time of completion 30 days.
278 Operations Research
Critical path: 1 – 2 – 4 – 7 – 8
Project duration: 31 weeks
Activity Total float Free float Independent
float
(1, 2) 0 0 0
Critical path: 1 – 2 – 3 – 4 – 7 – 8 – 9 – 10 (2, 3) 9 0 0
Time of completion is 104 hours (2, 4) 0 0 0
(3, 5) 9 1 0
Job Total Float
(3, 6) 14 0 0
(3, 5) 12 (4, 5) 8 0 0
(3, 8) 16 (4, 7) 0 0 0
(4, 6) 4 (5, 8) 8 8 0
(5, 8) 12 (6, 8) 14 14 0
(6, 7) 4 (7, 8) 0 0 0
For others 0 18. Critical path: 1 – 2 – 4 – 6 – 7 – 8
Free float is zero for all the activities. Project duration : 21 days
16. 19. Critical path: 1 – 4 – 7
Expected time of completion: 43 days
Required probability: 0.34
20. Expected time of completion: 28 days
Required probability: 0.69
21. Network
1. Explain the method of numbering the events 7. Write the formula to find the latest finishing
of a network. time of an activity.
2. What is a dummy activity? 8. What are the differences between PERT and
3. Define: Total float, free float and indepen- CPM?
dent float. 9. Write the formula for finding the expected
4. Define critical path. duration of an activity.
5. Distinguish between float and slack. 10. If the SDs of six critical activities are 5, 1, 4,
6. If the duration of any activity is changed then 8, 9 and 3, what is s c.p.? (Ans: 14)
the project duration is affected. True or false?
(Ans: False)
21
Simulation
CONCEPT REVIEW
■ ■ ■ ■ ■ ■ ■
first customer a 1 at time t = 0. His departure From this simulation table we get the average
time is t = 4. Next arrival a2 occurs at t = 1.5. waiting time of the customer as
Since the system is busy serving the first customer, 2.5 + 5 + 7.5 + 10 + 12.5 + 11 + 9.5 + 8 + 6.5 + 5
the second customer waits in the queue. At + 3.5 + 2 + 0.5
t = 3 third customer arrives (a3). At t = 4, first
14
customer leaves (d1). This procedure is repeated
83.5
till t = 20 min. The following table gives the results = = 6 min nearly
in detail. 14
Since the service facility is always busy, the
Time Event Customer Waiting time idle time of the server is zero.
(minutes) of the customer
21.3 MONTECARLO
0.0 a1 1 0 (c1)
1.5 a2 2 TECHNIQUE
3.0 a3 3
4.0 d1 1 4 – 1.5 = 2.5 (c2) This technique involves the selection of random
4.5 a4 4 observations in the simulation model. We assume
6 a5 5 a probability distribution giving the probability of
7.5 a6 6 the events and use random numbers for the
8.0 d2 2 8 – 3 = 5 (c3) cumulative density. These random numbers may
9.0 a7 7 be selected from the table of random numbers or
10.5 a8 8 generated using computer.
12.0 d3 3 12 – 4.5 = 7.5 (c4)
12.0 a9 9
21.3.1 Step-by-Step Procedure
13.5 a10 10 1. Decide the variables which influence the
15.0 a11 11 measure of effectiveness.
16.0 d4 4 16 – 6 = 10 (c5) 2. Determine the probability distribution for
16.5 a12 12 each variable.
18.0 a13 13 3. Choose a suitable set of random variables.
19.5 a14 14 4. Consider each random number as a decimal
20.0 d5 5 20 – 7.5 = 12.5 (c6) value of the cumulative probability.
5. Use the simulated values so generated into
Customers getting service after 20 min and their the formula derived from the chosen measure
waiting times during the period under simulation of effectiveness.
are given below. 6. Repeat steps 4 and 5 until the sample is
large enough to arrive at a satisfactory
Customer no. Waiting time (min)
decision.
7 20 – 9 = 11 Example 21.2 The sales (in thousands of rupees)
8 20 – 10.5 = 9.5 in a company follow Poisson distribution with
9 20 – 12 = 8
mean 5. Using the Monte–Carlo technique
10 20 – 13.5 = 6.5
estimate the sales for 10 days.
11 20 – 15 = 5
12 20 – 16.5 = 3.5 Solution The probability for k sales is given by
13 20 – 18 = 2 P(x = k) = e–5 5k / k! e–5 = 0.0067
14 20 – 19.5 = 0.5
The cumulative probabilities for the values of
Total = 46 k are given below:
282 Operations Research
Random no. Sales Random no. Sales Service time Prob. Cumulative Interval
(min) prob.
48 05 64 06
11 02 79 07 0.5 0.12 0.12 00–11
53 05 16 03 1.0 0.21 0.33 12–32
20 03 57 05 1.5 0.36 0.69 33–68
17 03 2.0 0.19 0.88 69–87
81 07 2.5 0.07 0.95 88–94
3.0 0.05 1.00 95–99
Example Number 53 (5300) lies in the interval Estimate the average waiting time and
(4405, 6160). Hence we take 05 corresponding to percentage of idle time of the server, by simulation,
k = 5. for 10 arrivals.
Number 79 (7900) belongs to (7622, 8666).
Hence we take k = 7. Solution 10 random numbers are chosen for
arrival and service each and are linked to
Example 21.3 At a sales depot the arrival of appropriate events. The results are given in the
customers and the service times follow the following table.
following probability distributions.
Arrival Random Int Arr time Arrival time Random Service Service Waiting time
no. no. (min) (min) no. time
Start End Customer Server
1 93 4.0 4.0 78 2.0 4.0 6.0 – 4.0
2 22 2.0 6.0 76 2.0 6.0 8.0 – –
3 53 2.5 8.5 58 1.5 8.5 10.0 – 0.5
4 64 3.0 11.5 54 1.5 11.5 13.0 – 1.5
5 39 2.0 13.5 74 2.0 13.5 15.5 – 0.5
6 07 1.0 14.5 92 2.5 15.5 18.0 1.0 –
7 10 1.5 16.0 38 1.5 18.0 19.5 2.0 –
8 63 3.0 19.0 70 2.0 19.5 21.5 0.5 –
9 76 3.0 22.0 96 3.0 22.0 25.0 – 0.5
10 35 2.0 24.0 92 2.5 25.0 27.5 1.0 –
Total 4.5 7.0
Simulation 283
From the above table we get, We find that the total demand for the 10 weeks
4.5 28
Average waiting time of a customer = is 28. Hence the average demand is = 2.8 cars
10 10
= 0.45 min per week.
7.0 Example 21.5 A company observes from past
Average idle time of the server = = 0.7 min experience that the demand for a special product
10
has the following probability distribution.
Example 21.4 A tourist car company finds that
during the past 200 days the demand for the car Daily demand 5 10 15 20 25 30
has the following frequency distribution.
Probability 0.01 0.20 0.15 0.50 0.12 0.02
Trips per week 0 1 2 3 4 5
Frequency 16 24 30 60 40 30 Simulate the demand for the next 10 days. Also
find the average demand.
Using random numbers simulate the demand Solution The probability distribution of the
for a period of 10 weeks. demand is given below:
Solution The probability distribution of the
demand (trips) is given by the following table: Demand Prob. Cumulative prob. Interval
5 0.01 0.01 00–00
Trips per Frequency Prob. Cumulative Interval 10 0.20 0.21 01–20
week prob. 15 0.15 0.36 21–35
0 16 0.08 0.08 00–07 20 0.50 0.86 36–85
1 24 0.12 0.20 08–19 25 0.12 0.98 86–97
2 30 0.15 0.35 20–34 30 0.02 1.00 98–99
3 60 0.30 0.65 35–64
4 40 0.20 0.85 65–84 The random numbers generated are:
5 30 0.15 1.00 85–99 69, 46, 16, 79, 64, 81, 11, 20, 60, 53.
Using these numbers, we simulate for 10 days.
Random numbers generated are 82, 95, 18, 96, The simulated demand is given by the following
20, 84, 56, 11, 52 and 03. Using these random table:
numbers we simulate for 10 weeks. The simulated
demand is shown in the following table: Day Random no. Demand
1 69 20
Week Random number Demand
2 46 20
1 82 4 3 16 10
2 95 5 4 79 20
3 18 1 5 64 20
4 96 5 6 81 20
5 20 2 7 11 10
6 84 4 8 20 10
7 56 3 9 60 20
8 11 1 10 53 20
9 52 3 Total 170
10 03 0
170
Total 28 Average demand = = 17 units
10
284 Operations Research
EXERCISES
■ ■ ■ ■ ■ ■ ■
1. A bakery keeps stock plum cakes. Past 60 min. Estimate the average waiting time
experience shows that the daily demand of of the customer and the percentage of idle
the cake has the probability distribution given time for the server.
below: 3. In a shop the sales of a particular soap has
probability distribution P (x = r) = e–l lr/r!
Daily 0 10 20 30 40 50 (Poisson distribution) with l = 5. Given e–5
demand = 0.0067 and the random numbers 49, 58,
89, 15, 12, 94, 85, 34, 07 and 53 simulate
Prob. 0.01 0.20 0.15 0.50 0.12 0.02
the sales for 10 days.
4. In a machine shop the time of breakdown
Using the random numbers 25, 39, 65, 76, of machines and their repair times in
12, 05, 73, 89, 19, 49 simulate the demand hours have the following frequency
for the next 10 days. distributions.
2. The following probabilities are given for the
arrival and service times of the customers in Time between 10 11 12 13 14 15 16 17 18 19
a queuing system. breakdown
ANSWERS
■ ■ ■ ■ ■ ■ ■
1. Day 1 2 3 4 5 6 7 8 9 10
Demand 20 30 30 30 10 10 30 40 10 30
Average demand = 24
Simulation 285
2. Arrival Random Inter arrival Arrival Random Service Service Waiting time
no. no. time in mts time no. time in mts Start End Customer Server
1 93 10 10 71 7 10 17 – 10
2 14 2 12 63 5 17 22 5 –
3 72 6 18 14 3 22 25 4 –
4 10 2 20 53 5 25 30 5 –
5 21 4 24 64 5 30 35 6 –
6 81 8 32 42 5 35 40 3 –
7 87 8 40 07 1 40 41 – –
8 90 10 50 54 5 50 55 – 9
9 38 6 56 66 5 56 61 – 1
23 20
3. Day 1 2 3 4 5 6 7 8 9 10
Random no. 49 58 89 15 12 94 85 34 7 53
Sales 5 5 8 3 2 9 7 4 2 5
Stock out cost 225 Two person zero sum game 159
Strategy 149
Storage cost 224 Unbalanced AP 141
Surplus variable 25 Unbalanced TP 125