IV. Special Linear Programming Models

Similar documents
Transportation Problems

4. Linear Programming

TRANSPORTATION AND ASSIGNMENT PROBLEMS

Solutions for Operations Research Final Exam

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

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

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

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

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

Antti Salonen KPP227 KPP227 1

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

Transportation problem

Linear programming II João Carlos Lourenço

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

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch.

CSE 40/60236 Sam Bailey

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

Chapter 15 Introduction to Linear Programming

Unit.9 Integer Programming

OPERATIONS RESEARCH. Transportation and Assignment Problems

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way.

COLUMN GENERATION IN LINEAR PROGRAMMING

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

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

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

Math Introduction to Operations Research

MLR Institute of Technology

1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes:

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Chapter 10: Network Flow Programming

Tuesday, April 10. The Network Simplex Method for Solving the Minimum Cost Flow Problem

The Simplex Algorithm

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

II. Linear Programming

Network Optimization Problems. Chapter 6: Hillier and Hillier

Chapter 4 Linear Programming

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

NETWORK OPTIMIZATION MODELS

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Lesson 08 Linear Programming

SUGGESTED SOLUTION CA FINAL MAY 2017 EXAM

The Simplex Algorithm

Chapter 4. Linear Programming

LECTURES 3 and 4: Flows and Matchings

A modification of the simplex method reducing roundoff errors

Linear Programming Terminology

Dynamic modelling and network optimization

Application of Bounded Variable Simplex Algorithm in Solving Maximal Flow Model

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

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

Advanced Approximation Method for Finding an Optimal Solution of Unbalanced Fuzzy Transportation Problems

Some Advanced Topics in Linear Programming

APPM 4120/5120 Exam #2 Practice Solutions Spring 2015

Hybrid Two-Stage Algorithm for Solving Transportation Problem

Chapter 7. Linear Programming Models: Graphical and Computer Methods

CMPSCI611: The Simplex Algorithm Lecture 24

Modified Distribution Method

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

Chapter 4: The Mechanics of the Simplex Method

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Module 10. Network Simplex Method:

Generalized Network Flow Programming

Transportation Planning: The maximum flow problem

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

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

CSE 417 Network Flows (pt 4) Min Cost Flows

SUBSTITUTING GOMORY CUTTING PLANE METHOD TOWARDS BALAS ALGORITHM FOR SOLVING BINARY LINEAR PROGRAMMING

CSCI 5654 (Fall 2013): Network Simplex Algorithm for Transshipment Problems.

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

NOTATION AND TERMINOLOGY

Solving ONE S interval linear assignment problem

Linear Programming Problems

Combinatorial Optimization

HARNESSING CERTAINTY TO SPEED TASK-ALLOCATION ALGORITHMS FOR MULTI-ROBOT SYSTEMS

x ji = s i, i N, (1.1)

Discrete Optimization. Lecture Notes 2

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

SUBSTITUTING GOMORY CUTTING PLANE METHOD TOWARDS BALAS ALGORITHM FOR SOLVING BINARY LINEAR PROGRAMMING

16.410/413 Principles of Autonomy and Decision Making

Finite Math Linear Programming 1 May / 7

Lecture 9: Linear Programming

Operations Research. Unit-I. Course Description:

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

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

Integer Programming Theory

Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

Network optimization: An overview

UNIT 2 LINEAR PROGRAMMING PROBLEMS

1 Linear programming relaxation

3 INTEGER LINEAR PROGRAMMING

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

Question 2: How do you solve a linear programming problem with a graph?

Full Length Research Article. Comparison of Transportation Algorithms Using Data from Katsina State Transport Authority, Katsina State, Nigeria

Solving the Linear Transportation Problem by Modified Vogel Method

MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM2046 ENGINEERING MATHEMATICS IV TUTORIAL

/ Approximation Algorithms Lecturer: Michael Dinitz Topic: Linear Programming Date: 2/24/15 Scribe: Runze Tang

Transcription:

IV. Special Linear Programming Models Some types of LP problems have a special structure and occur so frequently that we consider them separately. A. The Transportation Problem - Transportation Model - a special LP model used determine the optimal combination of paths move a prespecified number of units a set of sources a set of destinations. In these problems we generally wish minimize shipping costs or distance shipped. Special Structure of Transportation Problems - generally deal with moving units a limited number of sources across routes a limited number of destinations. - sources have an integer-valued capacity/availability that cannot be exceeded - destinations have an integer-valued capacity/demand that must be met - tal source supply must equal tal destination demand - all constraints are equalities These characteristics combined guarantee that the Transportation Problem is - easy solve quickly - unimodular (which means the optimal values of the decision variables must be integer)

A Simple Transportation Problem Example Suppose we need plan daily shipments of television sets two production facilities three retail outlets. Note that, because they are the same size (and so cost the same amount ship), we will not differentiate between black & white & color sets for this problem. The production facility manufactures ten sets per day, while the production facility manufactures fifteen sets per day. We have retail outlets in,, and. Their daily demands are,, and, respectively. Finally, the per-unit shipment costs for each combination of production facility and retail outlet are provided in the following table: Destinations Sources 9 The appropriate formulation would be minimize C=x 11 + x 1 + x 1 + x 1 + x + 9x subject : x 11 + x 1 + x 1 = (units available ) x 1 + x + x = 1 (units available ) x 11 + x 1 = (units demanded by ) x 1 + x = (units demanded by ) x 1 + x = (units demanded by ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), () j = 1 ( ), (), ()

A network diagram representation of the formulation would be: Supplies Sources 1 9 San Francisco s Destinations A specialized Transportation Tableau representation of the formulation would be: 9 1 One obvious feasible solution is ship units, units, units, and units at a tal cost of $() + $() + $() + $9() = $1..

As with other LP algorithms, we need a feasible solution act as a starting point. Unfortunately, it is very difficult find an initial feasible solution larger problems by inspection. There are simple algorithms we can use find a feasible solution quickly: - Northwest Corner Method Allocate the maximum allowable amount the cell in the upper left-hand corner. This will deplete the supply of the first source (and leave unmet demand at the first destination) and/or satisfy the demand of the first destination (and leave unused supply at the first source). Continue move right and down through the tableau, making the maximum assignment at each juncture. Northwest Corner Method - Example 9 1 The feasible solution identified by the Northwest Corner Method is ship units, units, units, and units at a tal cost of $() + $() + $() + $9() = $1..

Difficulties with the Northwest Corner Method - occasionally we exhaust supply and satisfy demand simultaneously at an intermediate step: 9 1 For this slightly modified version of the original transportation problem, we do exhaust supply and satisfy demand simultaneously at the first step - how do we proceed? In this situation, simply move either the cell directly the right or below, enter a dummy shipment of zero, and proceed. 9 1 This approach will eventually push the problem forward so that we can find a feasible solution.

- Cheapest Cell Starting Method Allocate the maximum allowable amount the cell with the lowest cost. Eliminate the source and/or destination that is exhausted or satisfied by this entry. Allocate the maximum allowable amount the remaining cell with the lowest cost. Eliminate the source(s) and/or destination(s) that is(are) exhausted or satisfied by this entry. Continue this procedure until all sources and destinations are satisfied. Because objective function coefficients are considered explicitly, This method often provides an initial solution that is superior that provided by the Northwest Corner Method. Cheapest Cell Starting Method - Example 9 1 In this case the Cheapest Cell Starting Method yields the same feasible solution as the identified by the Northwest Corner Method.

- Vogel s Approximation Method (VAM) For each unassigned row and column (corresponding unexhausted supply or unmet demand) calculate the difference between the cheapest and second cheapest cells. Identify the row or column with the greatest difference and allocate the maximum allowable amount the cheapest cell in that row/column. Eliminate the source(s) and/or destination(s) that is(are) exhausted or satisfied by this entry. Continue this procedure until all sources and destinations are satisfied. Because it takes marginal differences in objective function coefficients in account explicitly, this method often provides an initial solution that is superior that provided by the Cheapest Cell Starting Method. Vogel s Approximation Method - Example -= 9 1 -= -=1 -= 9-= In this case the we could start with the row or the column - we arbitrarily choose start with the Column and allocate units the cheapest route ( ).

At this point is exhausted and is satisfied and so taken out of consideration: 9 1 We are only left with two cells (both in the same row) - we can make these assignments ( units and units ) without any further analytic assistance. The tal cost of this feasible solution is $() + $() + $() = $1.. Note that: - The number of unassigned cells in any feasible solution is equal number of sources + number of destinations - 1 - Each of these methods is a heuristic and so does not guarantee the optimal allocation - just feasibility. As with other LP algorithms, we need a feasible solution begin with. Unfortunately, it is very difficult find an initial feasible solution larger problems by inspection. Once we have a feasible solution we can use the Simplex Transportation Algorithm find the optimal allocation.

- Simplex Transportation (Modified Distribution or MODI) Algorithm (for a minimization problem) Identify a starting point (feasible solution) Identify the entering cell denote the unit cost for the cell in the i th row (source) and j th column (destination) as c ij calculate row number (r i ) and column numbers (k j ) that satisfy c ij = r i + k j for each basic (nonempty) cell (start by arbitrarily assigning r i = and working forward) calculate the Improvement Difference (c ij -r i -k j ) for each unassigned cell the unassigned cell with the greatest absolute negative Improvement Difference is the entering cell in the next iteration Identify the exiting cell form the unique closed-loop path of horizontal and vertical directions with the entering cell at one corner and basic cells at all other corners assign a positive sign (+) the corner of the closed-loop path the entering cell then alternate assigning negative (-) and positive (+) signs at adjacent corners of the closed-loop path (note that shifting one unit in each cell with a + and one unit out of each cell with a - will preserve feasibility and improve the objective function)

Shift units find a new feasible solution shift the maximum number of units feasible in each cell with a + and out of each cell with a - and recalculate the value of the objective function. Repeat until no negative Improvement Differences (c ij -r i -k j ) exist at any unassigned cells Example - Use the results of the NW Corner Method for the initial solution (with an objective function value of at a tal cost of $() + $() + $() + $9() = $1.). 9 1 r i =r + r = k j =+k 1 k 1 = =+k k = 9=+k k =7 Here we have calculated the row numbers (r i ) and column numbers (k j ) that satisfy c ij = r i + k j for each basic cell (starting by arbitrarily assigning r 1 = ).

Now we calculate the Improvement Difference (c ij -r i -k j ) for each unassigned cell. c 1 -r -k 1 =--=-1 c 1 -r 1 -k =--7=-1 9 1 r i r 1 = r = k j k 1 = k = k =7 We have a tie for the unassigned cell with the greatest absolute negative Improvement Difference (cells 1, and,1) we arbitrarily choose enter cell 1, in the next iteration. Form the unique closed-loop path of horizontal and vertical directions with the entering cell at one corner and basic cells at all other corners. - + + - 9 1 r i k j

shift the maximum number of units feasible in each cell with a + and out of each cell with a - and recalculate the value of the objective function. - + + - 9 1 r i k j We can only shift on our closed-loop path (why?) Here are the final result of our first iteration (with an objective function value of at a tal cost of $() + $() + $() + $9() = $1.): 9 1 r i k j Now we need recalculate the Improvement Differences (c ij -r i -k j ) and check see if any negative values exist at any unassigned cells

Here we have calculated the row numbers (r i ) and column numbers (k j ) that satisfy c ij = r i + k j for each basic cell (starting by arbitrarily assigning r 1 = ). 9 1 r i 9=r + r = k j =+k 1 k 1 = =+k k = =+k k = Now we use these values recalculated the Improvement Differences (c ij -r i -k j ): Here are the recalculated Improvement Differences (c ij -r i -k j ) for the unassigned cells. c 1 -r -k 1 =--=- c 1 -r 1 -k =--=1 9 1 r i r 1 = r = k j k 1 = k = k = the unassigned cell with the greatest absolute negative Improvement Difference (cell,1) is the entering cell in the next iteration

Form the unique closed-loop path of horizontal and vertical directions with the entering cell at one corner and basic cells at all other corners. - + + - 9 1 r i k j shift the maximum number of units feasible in each cell with a + and out of each cell with a - and recalculate the value of the objective function. - + + - 9 1 r i k j Again we can only shift on our closed-loop path.

Here are the final result of our second iteration (with an objective function value of at a tal cost of $() + $() + $() = $1.): 9 1 r i k j Note that two cells exited on this iteration - continue, make either one a basic variable with an assigned value of zero. Here we have calculated the row numbers (r i ) and column numbers (k j ) that satisfy c ij = r i + k j for each basic cell (starting by arbitrarily assigning r 1 = ). 9 1 r i =r + r =1 k j =+k 1 k 1 = =1+k k = =+k k = Now we use these values recalculated the Improvement Differences (c ij -r i -k j ):

Here are the recalculated Improvement Differences (c ij -r i -k j ) for the unassigned cells. c 1 -r 1 -k =--=-1 9 c -r -k =9-1-= 1 r i r 1 = r =1 k j k 1 = k = k = the unassigned cell with the greatest absolute negative Improvement Difference (cell 1,) is the entering cell in the next iteration Form the unique closed-loop path of horizontal and vertical directions with the entering cell at one corner and basic cells at all other corners. - + + - 9 1 r i k j

Now shift the maximum number of units feasible in each cell with a + and out of each cell with a - and recalculate the value of the objective function. - + + - 9 1 r i k j Now we can only shift on our closed-loop path. Here are the final result of our third iteration (with an objective function value of at a tal cost of $() + $() + $() = $1.): 9 1 r i k j Now we need recalculate the Improvement Differences (c ij -r i -k j ) and check see if any negative values exist at any unassigned cells (Note that two cells exited on this iteration - continue, make either one a basic variable with an assigned value of zero).

Here we have calculated the row numbers (r i ) and column numbers (k j ) that satisfy c ij = r i + k j for each basic cell (starting by arbitrarily assigning r 1 = ). 9 1 r i =r + r = k j =+k 1 k 1 =1 =+k k = =+k k = Now we use these values recalculated the Improvement Differences (c ij -r i -k j ): Here are the recalculated Improvement Differences (c ij -r i -k j ) for the unassigned cells. c 11 -r 1 -k 1 =--1=1 9 c -r -k =9--=1 1 r i r 1 = r = k j k 1 =1 k = k = No unassigned cell has a negative Improvement Difference, so we are at optimality (ship units San Francisco, units, and units at a tal cost of $1..

How would this algorithm differ if we were solving a maximization problem? Simple we would look for positive (instead of negative) Improvement Differences (c ij -r i -k j ) in the unassigned cells. - This is great when supply = demand what do we do when there is a discrepancy? Consider a slightly modified version of our example: 9 1 \ Here supply exceeds demand by units we need create a destination that can absorb the five units that are not in demand. We will add a Dummy Destination with a demand of units balance supply and demand:

Now supply = demand, and we can use the techniques we have already developed solve this transportation problem. Dummy 9 1 What is the economic interpretation of the Dummy Destination? Why do its cells have objective function coefficients (c ij s) of zero? How handle supply < demand in the transportation model? Consider a slightly modified version of our example: 9 \1 Here demand exceeds supply by units we need create a source that can absorb the ten unavailable units. We will add a Dummy Source with a supply of units balance supply and demand:

Now supply = demand, and we can again use the techniques we have already developed solve this transportation problem. 9 Dummy What is the economic interpretation of the Dummy Destination? Why do its cells have objective function coefficients (c ij s) of zero? - How do we handle an unallowable route (impossible cell)? Suppose that California will not accept shipments Washingn. How do we modify our problem? M 9 1 Because this is a minimization problem, we assign any unacceptable route (impossible cell) a large positive objective function coefficient (c ij ). What would we do if this were a maximization problem?

One appropriate formulation would be minimize C=Mx 11 + x 1 + x 1 + x 1 + x + 9x subject : x 11 + x 1 + x 1 = (units available ) x 1 + x + x = 1 (units available ) x 11 + x 1 = (units demanded by ) x 1 + x = (units demanded by ) x 1 + x = (units demanded by ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), () j = 1 ( ), (), () Another appropriate formulation would be minimize C=x 11 + x 1 + x 1 + x 1 + x + 9x subject : x 11 + x 1 + x 1 = (units available ) x 1 + x + x = 1 (units available ) x 11 + x 1 = (units demanded by ) x 1 + x = (units demanded by ) x 1 + x = (units demanded by ) x 11 = (no allowable shipments ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), () j = 1 ( ), (), ()

Still another appropriate formulation would be minimize C=x 1 + x 1 + x 1 + x + 9x subject : x 1 + x 1 = (units available ) x 1 + x + x = 1 (units available ) x 1 = (units demanded by ) x 1 + x = (units demanded by ) x 1 + x = (units demanded by ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), () j = 1 ( ), (), () - How do we handle an upper limited (capacitated) cell? Suppose that will accept no more than three units. How do we modify our problem? Upper cell bound of units 9 1 Because this is a minimization problem, we assign any unacceptable route (impossible cell) a large positive objective function coefficient (c ij ). What would we do if this were a maximization problem?

The appropriate formulation would be minimize C=x 11 + x 1 + x 1 + x 1 + x + 9x subject : x 11 + x 1 + x 1 = (units available ) x 1 + x + x = 1 (units available ) x 11 + x 1 = (units demanded by ) x 1 + x = (units demanded by ) x 1 + x = (units demanded by ) x 1 (no more than three units shipped ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), () j = 1 ( ), (), () - For example, place a three unit limit on shipments : Of course, this may cause some simple problems with our heuristics consider the NW Corner method: M -=7 7 8 9 We can use our usual trick get around the lack of a valid move out of the -SF cell, and some common sense after we reach the SW corner and fail exhaust or satisfy. 1

We could alternatively place a three unit limit on shipments in this manner: Of course, this again may cause some simple problems with our heuristics consider the NW Corner method: M 7 9 1 -=7 We can again use our usual trick get around the lack of a valid move out of the -SF cell, and some common sense after we reach the SW corner and fail exhaust or satisfy. - How do we spot Alternate Optimal Solutions? Look for an empty cell with an Improvement Difference of zero (c ij -r i -k j = ) k j c 11 -r 1 -k 1 =--1=1 k 1 =1 k = c -r 1 -k =8--= k = r 1 = r = In this slightly modified version of our example problem, we have no negative improvement ratios but one improvement ratio is zero (indicating its per unit impact on the objective function would be neutral). 8 1 r i

B. The Transshipment Problem - Transshipment Model - a special type of transportation problem for which the network is not bipartite - used determine the optimal combination of routes move a prespecified number of units a set of sources through a set of intermediary sites a set of destinations. In these problems we again generally wish minimize shipping costs or distance shipped. A Simple Transshipment Problem Example Suppose we need plan daily shipments of television sets two production facilities three retail outlets. Note that, because they are the same size (and so cost the same amount ship), we will not differentiate between black & white & color sets for this problem. The production facility manufactures ten sets per day, while the production facility manufactures fifteen sets per day. We have retail outlets in,, and. Their daily demands are,, and, respectively. Shipments do not go directly the two production facilities the three retail outlets, but are sred in warehouses located in Eugene and Olympia. The Eugene warehouse has a capacity of 8 units while the Olympia warehouse has a capacity of units.

Finally, the per-unit shipment costs (for each combination of warehouse and production facility or retail outlet) are provided in the following tables: Warehouses Sources Eugene Olympia 7 Destinations Warehouses Eugene Olympia 9 Since this is a special type of Transportation Problem (which is a special type of LP Problem) this (or any) transshipment problem can be formulated as an LP; minimize C = x 11 + x 1 + x 1 + 7x + x 1 + x + x + x + x + 9x + x + x subject : x 11 + x 1 = (units available ) x 1 + x = 1 (units available ) x 11 + x 1 8 (Eugene inflow) x 1 + x (Olympia inflow) x 1 + x + x + x x 11 + x 1 (Eugene outflow) x + x + x + x x 1 + x (Olympia outflow) x + x = (unit demand at ) x + x = (unit demand at ) x + x = (unit demand at ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), (), (Eugene), (Olympia) j = 1 (Eugene), (Olympia), (), (), ()

Notice that the intermediate locations (warehouses in this model) function as both sources and destinations. This cleaner looking formulation (although mathematically equivalent) formulation is given more frequently: minimize C = x 11 + x 1 + x 1 + 7x + x 1 + x + x + x + x + 9x + x + x subject : x 11 + x 1 = (units available ) x 1 + x = 1 (units available ) x 11 + x 1 8 (Eugene inflow) x 1 + x (Olympia inflow) -x 11 - x 1 + x 1 + x + x + x (Eugene outflow) -x 1 - x + x + x + x + x (Olympia outflow) x + x = (unit demand at ) x + x = (unit demand at ) x + x = (unit demand at ) All x ij (nonnegativity) Where x ij is the number of units shipped source i destination j and i = 1 (), (), (Eugene), (Olympia) j = 1 (Eugene), (Olympia), (), (), ()

A network diagram representation of the formulation would be: Sources Supplies 1 7 Warehouses 8 Eugene Olympia 9 San Francisco s Destinations The specialized Transportation Tableau can be used represent of the formulation: Eugene Olympia San Francisco M M M 7 M M M 1 Eugene M 8 Olympia M 9 8 From this point we can use the methodologies we have already developed for solving transportation problems.

Note that: - We have not allowed for intra-warehouse transfers (these could be viable in some problems) - We have not allowed for direct shipping original sources final destinations (these could be viable in some problems) - The two intermediary sites (warehouses) have excess capacity: Will this be used in this problem? What is the economic interpretation of such units? C. The Assignment Problem 1. Assignment Model - a special type of transportation problem used determine the optimal combination of routes move a prespecified number of units a set of sources (each of which has exactly one unit available) a set of destinations (each of which desires exactly one unit). In these problems we again generally wish minimize costs.

A Simple Assignment Problem Example Suppose we have three Project Direcr (Albert, Bonnie, and Clyde) and three clients/projects (Xanadu, Inc., Yasmine Ltd., and Zephyr Co.). Each Project Direcr can be assigned only one client/project. Given the estimated time (in hours) it would take each Project Direcr complete each project, how would you assign the projects the Project Direcrs in a manner that minimizes the tal time complete the three projects? Client/Project Project Leader Xanadu, Inc. Yasmine LTD. Zephyr Co. Albert Bonnie Clyde 9 1 18 1 9 The appropriate formulation would be minimize C = x 11 + 1x 1 + 9x 1 + 9x 1 + 18x + x + x 1 + 1x + x subject : x 11 + x 1 + x 1 = 1 (assignment Albert) x 1 + x + x = 1 (assignment Bonnie) x 1 + x + x = 1 (assignment Clyde) x 11 + x 1 + x 1 = 1 (assignment of Xanadu) x 1 + x + x = 1 (assignment of Yasmine) x 1 + x + x = 1 (assignment of Zephyr) All x ij (nonnegativity) Where x ij indicates if Project Direcr i is assigned Client/Project j and i = 1 (Albert), (Bonnie), (Clyde) j = 1 (Xanadu, Inc.), (Yasmine Ltd.), (Zephyr Co.)

A network diagram representation of the formulation would be: Supplies 1 Sources 1 1 Albert Bonnie Clyde 9 9 1 18 1 Xanadu Yasmine Zephyr s 1 1 1 Destinations Because the Assignment Problem is a type of Transportation Problem, we could represent this problem with a Transportation Tableau: task PD Albert Bonnie Clyde Xanadu 9 Yasmine 1 Zephyr 9 18 1 1 1 1 1 1 1 At this point we could solve the Assignment Problem just as we would any other Transportation Problem - but there is an easier way:

- The Hungarian Algorithm The TRANSFORMATION PHASE - Find the lowest cost cell in a particular row and subtract that amount every cell in the row. Repeat for each row. These are referred as the Reduced Costs. - Using the Reduced Costs calculated in the previous step, find the smallest value in a particular column and subtract that amount every cell in the column. Repeat for each column. - Find the column or row containing the greatest number of zeros. Draw a line through that row or column. Repeat this process until all zeros are covered. - If the number of lines exactly equals the number of rows (or number of columns) you are at optimality. Move the SEARCH PHASE. - If the number of lines is less than the number of rows (or number of columns) find the minimum value uncovered by any lines and subtract that value all uncovered cells. Return Step # (covering all zeros with the minimum number of horizontal and vertical lines necessary). The SEARCH PHASE - Copy the final transformed matrix on a fresh matrix. - Identify a row or column with exactly one zero - circle that element and draw a line through both the row and column which this element belongs. Repeat until every rows and columns have either been crossed out or has multiple uncovered zero elements.

- Circled elements represent optimal assignments. Judiciously make the other assignments correspond other (uncovered) zeros so that each task and each individual are each assigned in a one--one basis. - Compute the tal cost of the assignment. Consider our previous example: task PD Xanadu Yasmine Zephyr Albert 1 9 Bonnie 9 18 Clyde 1 Find the lowest cost cell in a particular row and subtract that amount every cell in the row. Repeat for each row. These are referred as the Reduced Costs.

These are referred as the Reduced Costs. task PD Xanadu Yasmine Zephyr Row Min Albert -9=1 1-9= 9-9= 9 Bonnie 9-= 18-=1 -= Clyde -= 1-=11 -= Using these Reduced Costs, now find the smallest value in a particular column and subtract that amount every cell in the column. Repeat for each column. Here are the results: task PD Xanadu Yasmine Zephyr Albert 1-1= -= -= Bonnie -1= 1-=7 -= Clyde -1= 11-= -= Column Min 1 Now find the column or row containing the greatest number of zeros (row one or column three in this case) and draw a line through that row or column. Repeat this process until all zeros are covered.

We can choose either row one or column three - we arbitrarily start with row 1. task PD Xanadu Yasmine Zephyr Albert Bonnie 7 Clyde We now observe that a line drawn through column would cover all zero elements. Thus the number of lines () is less than the number of rows or number of columns (), so we find the minimum value uncovered by any lines and subtract that value all uncovered cells. We then return Step #. Again we can choose either row one or column three - we arbitrarily start with row 1. task PD Xanadu Yasmine Zephyr Albert Bonnie 1 Clyde We now observe that a line drawn through column would cover all zero elements. At this point we still must draw a line (through column 1 or row three) cover all zero elements. Thus the number of lines () is equal the number of rows or number of columns (), so we are at optimality - go the Search Phase!.

Identify a row or column with exactly one zero (either row two or column three in this case) task PD Xanadu Yasmine Zephyr Albert Bonnie 1 Clyde Now circle that element and draw a line through both the row and column which this element belongs. Repeat until every rows and columns have either been crossed out or has multiple uncovered zero elements. Now we can make the optimal assignments: task PD Xanadu Yasmine Zephyr Albert Bonnie 1 Clyde Project Client/ Assignment Direcr Project Cost Clyde Xanadu, Inc. Albert Yasmine Ltd. 1 Bonnie Zephyr Co. For a tal cost of $..

- This is great when the number of tasks and individuals are equal what do we do when there is a discrepancy? Create a dummy task or dummy individual (with a cost of zero for each corresponding assignment) just as we did with Transportation and Transshipment problems. - Can we handle a problem in which one of the individuals can handle two (or more) tasks? How about one task that requires two (or more) individuals? Absolutely - just break the individual (or task) in multiples, each of which can accept one assignment (I.e., if Bonnie could do two tasks, create a Bonnie1 and a Bonnie) - How do we handle an unallowable assignment? Just as in Transportation - give the assignment a very undesirable objective function coefficient (M or -M). - How do we handle maximization problems? One of two ways: Multiply all objective function coefficients by -1 and minimize or Before you start, find the largest element in a particular column, then subtract every element in that column this value. Repeat for every column. task PD Xanadu Yasmine Zephyr Albert 1 9 Bonnie 9 18 Clyde 1 Column Max 18 9

Now start the Hungarian algorithm this point - the result will be the assignments that maximize the objective function. task PD Xanadu Yasmine Zephyr Albert -= 18-1= 9-9= Bonnie -9=1 18-18= 9-= Clyde -= 18-1 9-= Column Max 18 9