OPERATIONS RESEARCH. Transportation and Assignment Problems

Similar documents
4. Linear Programming

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM

COMPARATIVE STUDY OF NEW PROPOSED METHOD FOR SOLVING ASSIGNMENT PROBLEM WITH THE EXISTING METHODS

IJISET - International Journal of Innovative Science, Engineering & Technology, Vol. 1 Issue 3, May

OPERATIONS RESEARCH. Linear Programming Problem

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No.

Transportation problem

CDG2A/CDZ4A/CDC4A/ MBT4A ELEMENTS OF OPERATIONS RESEARCH. Unit : I - V

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University)

CSC 8301 Design and Analysis of Algorithms: Exhaustive Search

success of Business enterprise especially in manufacturing organization. Goods manufactured by firm need to be distributed to dealers, distributers

A Novel Method to Solve Assignment Problem in Fuzzy Environment

II. PROPOSED NEW METHOD FOR SOLVING ASSIGNMENT PROBLEM

Solving ONE S interval linear assignment problem

H. W. Kuhn. Bryn Mawr College

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997

MLR Institute of Technology

AN ALGORITHM FOR SOLVING ASSIGNMENT PROBLEMS WITH COSTS AS GENERALIZED TRAPEZOIDAL INTUITIONISTIC FUZZY NUMBERS. A. Nagoor Gani 1, V.N.

Operations Research. Lecture Notes By Prof A K Saxena Professor and Head Dept of CSIT G G Vishwavidyalaya, Bilaspur-India

MASS Modified Assignment Algorithm in Facilities Layout Planning

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014

LATIN SQUARES AND THEIR APPLICATION TO THE FEASIBLE SET FOR ASSIGNMENT PROBLEMS

The Travelling Salesman Problem. in Fuzzy Membership Functions 1. Abstract

IV. Special Linear Programming Models

Integer Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

قالىا سبحانك ال علم لنا إال ما علمتنا صدق هللا العظيم. Lecture 5 Professor Sayed Fadel Bahgat Operation Research

Ma/CS 6a Class 27: Shortest Paths

The Assignment Problem

Chapter 16. Greedy Algorithms

and 6.855J Lagrangian Relaxation I never missed the opportunity to remove obstacles in the way of unity. Mohandas Gandhi

Solutions for Operations Research Final Exam

A New approach for Solving Transportation Problem

LINEAR PROGRAMMING. Chapter Overview

Chapter 4 Linear Programming

OPERATIONS RESEARCH. Dr. Mohd Vaseem Ismail. Assistant Professor. Faculty of Pharmacy Jamia Hamdard New Delhi

Overview. H. R. Alvarez A., Ph. D.

Math 3012 Combinatorial Optimization Worksheet

Notes for Lecture 24

5 Matchings in Bipartite Graphs and Their Applications

Network Flow Models. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Module 7. Independent sets, coverings. and matchings. Contents

2 Dept. of Computer Applications 3 Associate Professor Dept. of Computer Applications

Lecture 4: Principles of Parallel Algorithm Design (part 4)

Introduction to Approximation Algorithms

Lecture 1. 2 Motivation: Fast. Reliable. Cheap. Choose two.

Chapter 15 Introduction to Linear Programming

TRANSPORTATION AND ASSIGNMENT PROBLEMS

Antti Salonen KPP227 KPP227 1

Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009.

Modified Distribution Method

A NEW HEURISTIC ALGORITHM FOR MULTIPLE TRAVELING SALESMAN PROBLEM

UNIT 2 LINEAR PROGRAMMING PROBLEMS

Cost Minimization Fuzzy Assignment Problem applying Linguistic Variables

FLEXIBLE ASSEMBLY SYSTEMS

Lecture 3. Brute Force

Introduction to Management Science (8th Edition, Bernard W. Taylor III) Chapter 12 Network Flow Models. Chapter 12 - Network Flow Models 1

Figure 2.1: A bipartite graph.

IINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Solving the Linear Transportation Problem by Modified Vogel Method

A Comparative study on Algorithms for Shortest-Route Problem and Some Extensions

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 1: Introduction to Optimization. Instructor: Shaddin Dughmi

1. Lecture notes on bipartite matching

Lecture 7: Bipartite Matching

(Refer Slide Time: 01:00)

Figurative Tours and Braids

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

Operations Research. Unit-I. Course Description:

Linear Programming. Meaning of Linear Programming. Basic Terminology

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

APPM 4120/5120 Exam #2 Practice Solutions Spring 2015

MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM2046 ENGINEERING MATHEMATICS IV TUTORIAL

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs

Graph Theory: Matchings and Factors

CSCE 411 Design and Analysis of Algorithms

A method for solving unbalanced intuitionistic fuzzy transportation problems

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

1. Lecture notes on bipartite matching February 4th,

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD

2.3 Algorithms Using Map-Reduce

Dynamic Capacity Routing in Networks with MTSP

Matching and Covering

Classic Graph Theory Problems

UNIT 4 Branch and Bound

AM 221: Advanced Optimization Spring 2016

Ch.07 Shortest Route, Minimal Spanning Tree, and Maximal Flow Models. Management Science / Prof. Bonghyun Ahn

Design and Analysis of Algorithms

Greedy Algorithms. Algorithms

The Dynamic Hungarian Algorithm for the Assignment Problem with Changing Costs

Using Ones Assignment Method and. Robust s Ranking Technique

We have already seen the transportation problem and the assignment problem. Let us take the transportation problem, first.

Discrete Optimization 2010 Lecture 5 Min-Cost Flows & Total Unimodularity

MA4254: Discrete Optimization. Defeng Sun. Department of Mathematics National University of Singapore Office: S Telephone:

Application of Bounded Variable Simplex Algorithm in Solving Maximal Flow Model

Assignment No 2 (Group B)

Journal of Business & Economics Research November, 2009 Volume 7, Number 11

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Simple graph Complete graph K 7. Non- connected graph

Solving Fuzzy Travelling Salesman Problem Using Octagon Fuzzy Numbers with α-cut and Ranking Technique

Transcription:

OPERATIONS RESEARCH Chapter 2 Transportation and Assignment Problems Prof Bibhas C Giri Professor of Mathematics Jadavpur University West Bengal, India E-mail : bcgirijumath@gmailcom

MODULE-3: Assignment Problem and Its Solution by Hungarian Method, and Travelling Salesman Problem 21 Assignment Problem The assignment problem is a special type of transportation problem where the objective is to minimize the cost of allocating a number of jobs to a number of persons or facilities so that one person or facility is assigned to only one job The assignment model is useful in solving problems such as assignment of machines to jobs, assignment of salesmen to sales territories, travelling salesman problem, etc It may be noted that with n facilities and n jobs, there are n! possible assignments One way of finding an optimal assignment is to consider all the n! possible arrangements, evaluate their total costs, and select the assignment with minimum cost However, due to heavy computational burden, this method is not suitable For solving assignment problem, we will discuss an efficient method which was developed by a Hungarian Mathematician D Konig 211 Mathematical Formulation of Assignment Problem Consider the problem of assignment of a company which has n machines of different capacities for performing n different jobs and one machine can only be assigned to only one job The objective is to minimize the total cost of assignment The cost matrix for this problem is given in Table 21 This cost matrix is same as that of a transportation problem except that the availability at each of the machines is unity and the requirement at each of the destinations is also unity In Table 21, c ij is the cost 2

Machines Jobs Availability J 1 J 2 J n M 1 c 11 c 12 c 1n 1 M 2 c 21 c 22 c 2n 1 M n c n1 c n2 c nn 1 Requirement 1 1 1 Table 21: Cost matrix for assignment problem associated with assigning the ith machine to the jth job To formulate the assignment problem in mathematical programming terms, we define the activity variables x ij = 1, if machine i is assigned to job j 0, otherwise Then the mathematical model for the assignment problem can be stated as Minimize Z = subject to c ij x ij x ij = 1 for all i (availability) j=1 x ij = 1 for all j (requirement) and x ij = 0 or 1 for all i and j Theorem 21 (Reduction Theorem): In an assignment problem, if we add (or subtract) a constant to every element of a row (or column) of the cost matrix (c ij ), then an assignment plan that minimizes the total cost for the new cost matrix also minimizes the total cost for the original cost matrix In other words, if x ij = x ij minimizes Z = n nj=1 c ij x ij with n x ij = 1, n j=1 x ij = 1; x ij = 0 or 1 then x ij also minimizes Z = n nj=1 c ij x ij where c ij = c ij u i v j for all i, j =1,2,,n and u i, v j are real numbers

Proof: We write Z = cij x ij = (c ij u i v j )x ij = c ij x ij = Z u i u i j=1 x ij since v j x ij v j x ij = x ij = 1 This shows that the minimization of the new objective function Z yields the same solution as the minimization of the origin objective function Z, because u i and v j are independent of x ij Corollary 21: If (x ij ), i = 1,2,,n; j = 1,2,,n is an optimal solution of an assignment problem with cost (c ij ) then it is also optimal solution of the problem with cost (c ij ) where c ij = c ij for all i,j = 1,2,,n; j k c ik = c ik α, where α = a constant Proof: The proof is left as an exercise to the reader Theorem 22: If an assignment problem with cost (c ij > 0) is such that minimum n nj=1 c ij x ij = 0 then (x ij ) provides an optimal assignment j=1 Proof: The proof is left as an exercise 22 Hungarian Method for Solving Assignment Problem The Hungarian method is an efficient method for finding the optimal solution of an assignment problem The method works on the principle of reducing the given cost matrix to a matrix of opportunity costs Opportunity costs show the relative penalties associated with assigning a machine to a job Hungarian method reduces the cost matrix to the extent of having at least one zero in each row and column so as to make optimal assignment In the following, an algorithm for finding the optimal solution of an assignment problem is given Step 1 Identify the minimum element in each row and subtract it from each element of that row

Step 2 Identify the minimum element in each column and subtract it from each element of that column Step 3 Draw the least possible number of horizontal and vertical lines to cover all the zeros If the number of lines equals the order of the cost matrix then go to step 5; otherwise, go to step 4 Step 4 Identify the smallest element among the uncovered elements left after drawing the horizontal and vertical lines in step 3 Subtract this element from all the uncovered elements and add the same element to the elements lying at the intersections of the horizontal and vertical lines Then go to step 3 Step 5 For each row or column with a single zero, box that zero as an assigned cell For every zero that becomes assigned, cross out all other zeros in the same column or row If for a row or a column, there are two or more zeros then choose one cell arbitrarily for assignment The process is to be continued until every zero is either assigned with box or crossed out Cells having a box indicate optimal assignment In case a zero cell is chosen arbitrarily then there may be alternate optimal solution Example 21: A Company has four men available for work on four separate jobs Only one man can work on any one job The cost of assigning each man to each job is given in Table 22 Assign men to jobs in such a way that the total cost of assignment is minimum Person Job A 20 25 22 28 B 15 18 23 17 C 19 17 21 24 D 25 23 24 24 Table 22: Table for Example 21 Solution: We will use the Hungarian algorithm to solve this problem Following steps 1 and 2, the cost matrix reduces to the form as shown in Table 23 Now, we draw minimum number of horizontal and vertical lines to cover all the zeros The least number of lines is 3 (see Table 24 ) which less than 4, the order of the matrix

A 0 5 1 7 B 0 3 7 1 C 2 0 3 6 D 2 0 0 0 Table 23: Reduced cost matrix The smallest of the uncovered elements is 1 So, we subtract 1 from all the uncovered elements and add 1 to the elements lying at the intersections of the horizontal and vertical lines Table 25 shows the revised matrix Next, we draw the least number of horizontal and vertical lines covering all the zeros, see Table 26 Since the number of lines = 4 = the order of the matrix, optimality condition is satisfied A B C D 0 5 1 7 0 3 7 1 2 0 3 6 2 0 0 0 A 0 4 0 6 B 0 2 6 0 C 3 0 3 6 D 3 0 0 0 Table 25 Table 24 A B C D 0 4 0 6 0 2 6 0 3 0 3 6 3 0 0 0 A 0 4 0 6 B 0 2 6 0 C 3 0 3 6 D 3 0 0 0 Table 27 Table 26 The optimal assignment is obtained as A I, B IV, C II, D III, see Table 27 The minimum cost of assignment is Rs(20 + 17 + 17 + 24) = Rs78

221 Variation of Assignment Problem Unbalanced Assignment Problem - If the number of facilities is not equal to the number of jobs then the problem is called an unbalanced assignment problem In such a case, fictitious rows and/or columns are added in the cost matrix to make it a square matrix Then, we apply Hungarian method to find the solution of the balanced assignment problem Maximization Problem - When the facilities are to be assigned to a number of jobs so as to maximize the overall performance or profit of the assignment, the Hungarian method can be applied to solve such a maximization problem by converting every element of the matrix to an opportunity loss The conversion is accomplished by subtracting all the elements of the given matrix from the highest element It turns out that minimizing opportunity loss produces the same assignment solution as the original maximization problem Restrictions on Assignments - If a particular resource (say, man or machine) cannot be assigned to perform a particular activity then the cost of performing that particular activity by that particular resource is considered to be very large (taken usually a large positive M or ) so as to prohibit the entry of this pair of resource-activity into the final solution Negative Cost - If the cost matrix of an assignment problem contains some negative costs then we add to each element of the rows or columns a quantity sufficient to make all the cell elements non-negative 222 The Travelling Salesman Problem Suppose that a salesman plans to visit each of n cities once and only once and return back to the city from where he started The distance between each pair of cities is known The objective is to determine the shortest route which the salesman can take Since there are n cities, there are (n 1)! possible ways for his tour Let c ij be the distance between city i to city j and 1, if the salesman goes directly from city i to city j (i j) x ij = 0, otherwise Since each city can be visited only once, we have n 1 x ij = 1, j = 1,2,,n; i j

Again, since the salesman has to leave each city except city n, we have x ij = 1, i = 1,2,,n 1; i j j=1 The objective function is then Minimize Z = n 1 c ij x ij Since c ij = c ji is not required, therefore, c ij = for i = j However, all c ij s must be non-negative, ie, c ij 0 and c ij + c jk c jk for all i,j,k Example 22: A travelling salesman plans to visit five cities I, II, III, IV and V The travel time (in hours) between these cities is shown in Table 28 How should he sched- From To V I 2 5 7 1 II 6 3 8 2 III 8 7 4 7 IV 12 4 6 5 V 1 3 2 8 Table 28 ule his touring plan in order to minimize the total travel time, if he visits each city once a week? Solution: We apply the Hungarian method to solve the given problem treating it as an assignment problem The solution is obtained as given in Table 29 V I 1 3 6 0 II 4 0 6 0 III 4 3 0 3 IV 8 0 1 1 V 0 2 0 7 Table 29

We see that the optimal assignment forms two subloops: I V I and II III IV II This is not the solution of the traveling salesman problem as the sequence of cities visited is not in cyclical order We will now try for the next best solution which satisfies the restriction of the traveling salesman problem The next minimum (non-zero) element in the Table 29 is 1 which occurs in the cells (I, II), (IV, III) and (IV, V) We try make an assignment in any one of these cells Let us make an assignment in the cell (I, II) instead of zero assignment in the cell (I,V) Then no other assignment is possible in the first row and second column Next, we make an assignment in the cell (IV, V) instead of the cell (IV, II) Thus we get a feasible solution as I II III IV V I The assignment is shown in Table 210 V I 1 3 6 0 II 4 0 6 0 III 4 3 0 3 IV 8 0 1 1 V 0 2 0 7 Table 210 The cost corresponding to the feasible solution is 15 If, instead of making assignment in the cell (IV, V), we make an assignment in the cell (IV, III) then we do not get a feasible solution as in that case both II and IV are followed by III