1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri.

Slides:



Advertisements
Similar presentations
Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and edited by Longin Jan Latecki.
Advertisements

BA 452 Lesson B.4 Binary Fixed Costs 11ReadingsReadings Chapter 7 Integer Linear Programming.
Transportation Problem and Related Topics. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics There are 3 plants, 3 warehouses.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
Transportation Problem (TP) and Assignment Problem (AP)
1 1 BA 452 Lesson B.2 Transshipment and Shortest Route ReadingsReadings Chapter 6 Distribution and Network Models.
Chapter 10, Part A Distribution and Network Models
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Transportation, Assignment, and Transshipment Problems
Transportation, Transshipment, and Assignment Problems
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
1 Network Models Chapter Introduction A network problem is one that can be represented by... Nodes Arcs Function on Arcs.
1 Lecture 3 MGMT 650 Sensitivity Analysis in LP Chapter 3.
Solusi Model Transportasi dengan Program Komputer Pertemuan 13 : Mata kuliah : K0164/ Pemrograman Matematika Tahun: 2008.
Linear Programming Network Flow Problems Transportation Assignment Transshipment Production and Inventory.
Linear Programming Example 5 Transportation Problem.
BA 452 Lesson B.1 Transportation 1 1Review We will spend up to 30 minutes reviewing Exam 1 Know how your answers were graded.Know how your answers were.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
Strategic Allocation of Resources
MT 2351 Chapter 5 Transportation, Assignment, and Transshipment.
1 Lecture 2 MGMT 650 Linear Programming Applications Chapter 4.
Transportation, Assignment, Network Models
John Loucks Modifications by A. Asef-Vaziri Slides by St. Edward’s
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Kerimcan OzcanMNGT 379 Operations Research1 Transportation, Assignment, and Transshipment Problems Chapter 7.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: Applications Chapter 4.
Network Optimization Models
Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
1 1 Slide Transportation, Assignment, and Transshipment Professor Ahmadi.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Slide 1 of 27 Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and edited by Longin Jan Latecki.
Chapter 7 Transportation, Assignment & Transshipment Problems
 Consists of nodes representing a set of origins and a set of destinations.  An arc is used to represent the route from each origins to each destinations.
Chapter 7 Transportation, Assignment, and Transshipment Problems
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
DISTRIBUTION AND NETWORK MODELS (1/2)
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
IE 311 Operations Research– I
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Transportation, Assignment, and Transshipment Problems Pertemuan 7 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
1 1 Slide Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs.Pramela Devi, Mrs.Sindhuja.K Mrs.Annapoorani Department:CSE 3/1/2016.
1 1 Slide Dr. Mohamed Abdel Salam Operations Research (OR) Chapter 8 Transportation, Assignment, and Transshipment Problems.
1 1 Slide Operations Research (OR) Transportation, Assignment, and Transshipment Problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and extended by Longin Jan Latecki.
St. Edward’s University
St. Edward’s University
Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and extended by Longin Jan Latecki.
Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and extended by Longin Jan Latecki.
Transportation, Assignment and Network Models
Introduction Basic formulations Applications
Transportation, Transshipment, and Assignment Problems
Network Models Robert Zimmer Room 6, 25 St James.
Operations Research (OR)
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 6 Network Flow Models.
Slides by John Loucks St. Edward’s University.
Assignment Problem: Hungarian Algorithm and Linear Programming collected from the Internet and extended by Longin Jan Latecki.
Presentation transcript:

1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri

2 2 Chapter 6, Part A Distribution and Network Models n Transportation Problem Network Representation Network Representation General LP Formulation General LP Formulation n Assignment Problem Network Representation Network Representation General LP Formulation General LP Formulation n Transshipment Problem Network Representation Network Representation General LP Formulation General LP Formulation

3 3 Transportation, Assignment, and Transshipment Problems n A network model is one which can be represented by a set of nodes, a set of arcs, and functions (e.g. costs, supplies, demands, etc.) associated with the arcs and/or nodes. n Transportation, assignment, transshipment, shortest-route, and maximal flow problems of this chapter as well as the minimal spanning tree and PERT/CPM problems (in others chapter) are all examples of network problems.

4 4 Transportation, Assignment, and Transshipment Problems n Each of the five problems of this chapter can be formulated as linear programs and solved by general purpose linear programming codes. n For each of the five problems, if the right-hand side of the linear programming formulations are all integers, the optimal solution will be in terms of integer values for the decision variables. n However, there are many computer packages that contain separate computer codes for these problems which take advantage of their network structure.

5 5 Transportation Problem n The transportation problem seeks to minimize the total shipping costs of transporting goods from m origins (each with a supply s i ) to n destinations (each with a demand d j ), when the unit shipping cost from an origin, i, to a destination, j, is c ij. n The network representation for a transportation problem with two sources and three destinations is given on the next slide.

6 6 Transportation Problem n Network Representation 2 2 c 11 c 12 c 13 c 21 c 22 c 23 d1d1d1d1 d2d2d2d2 d3d3d3d3 s1s1s1s1 s2s2 SourcesDestinations

7 7 Transportation Problem: Example #1 Acme Block Company has orders for 80 tons of concrete blocks at three suburban locations as follows: Northwood tons, Westwood tons, and Eastwood tons. Acme has two plants, each of which can produce 50 tons per week. Delivery cost per ton from each plant to each suburban location is shown on the next slide. How should end of week shipments be made to fill the above orders?

8 8 n Delivery Cost Per Ton Northwood Westwood Eastwood Northwood Westwood Eastwood Plant Plant Plant Plant Transportation Problem: Example #1 Decision Variables. the tons of concrete blocks, x ij, to be shipped from source i to destination j. Northwood Westwood Eastwood Northwood Westwood Eastwood Plant 1 x 11 x 12 x 13 Plant 1 x 11 x 12 x 13 Plant 1 x 21 x 22 x 23 Plant 1 x 21 x 22 x 23

9 9 n Define the Objective Function Minimize the total shipping cost. Minimize the total shipping cost. Min: (shipping cost per ton for each origin to destination) × (number of pounds shipped from each origin to each destination). Min: (shipping cost per ton for each origin to destination) × (number of pounds shipped from each origin to each destination). Min: 24 x x x x x x 23 Min: 24 x x x x x x 23 Transportation Problem: Example #2

10 n Define the Constraints Supply constraints: Supply constraints: (1) x 11 + x 12 + x 13 = 50 (1) x 11 + x 12 + x 13 = 50 (2) x 21 + x 22 + x 23 = 50 (2) x 21 + x 22 + x 23 = 50 Demand constraints: Demand constraints: (4) x 11 + x 21 = 25 (4) x 11 + x 21 = 25 (5) x 12 + x 22 = 45 (5) x 12 + x 22 = 45 (6) x 13 + x 23 = 10 (6) x 13 + x 23 = 10 Non-negativity of variables: Non-negativity of variables: x ij > 0, i = 1, 2 and j = 1, 2, 3 x ij > 0, i = 1, 2 and j = 1, 2, 3 Transportation Problem: Example #2 = Constraints

11 n Define the Constraints Supply constraints: Supply constraints: (1) x 11 + x 12 + x 13 ≤ 50 (1) x 11 + x 12 + x 13 ≤ 50 (2) x 21 + x 22 + x 23 ≤ 50 (2) x 21 + x 22 + x 23 ≤ 50 Demand constraints: Demand constraints: (4) x 11 + x 21 ≥ 25 (4) x 11 + x 21 ≥ 25 (5) x 12 + x 22 ≥ 45 (5) x 12 + x 22 ≥ 45 (6) x 13 + x 23 ≥ 10 (6) x 13 + x 23 ≥ 10 Non-negativity of variables: Non-negativity of variables: x ij > 0, i = 1, 2 and j = 1, 2, 3 x ij > 0, i = 1, 2 and j = 1, 2, 3 Transportation Problem: Example #2 ≤ and ≥ Constraints

12 n Partial Spreadsheet Showing Problem Data Transportation Problem: Example #1

13 Transportation Problem: Example #1

14 Transportation Problem: Example #1 Sensitivity Report

15 Transportation Problem: Example #2 The Navy has 9,000 pounds of material in Albany, Georgia that it wishes to ship to three installations: San Diego, Norfolk, and Pensacola. They require 4,000, 2,500, and 2,500 pounds, respectively. Government regulations require equal distribution of shipping among the three carriers. The shipping costs per pound for truck, railroad, and airplane transit are shown on the next slide. Formulate and solve a linear program to determine the shipping arrangements (mode, destination, and quantity) that will minimize the total shipping cost.

16 Destination Destination Mode San Diego Norfolk Pensacola Truck $12 $ 6 $ 5 Railroad Airplane Transportation Problem: Example #2

17 n Define the Decision Variables We want to determine the pounds of material, x ij, to be shipped by mode i to destination j. The following table summarizes the decision variables: San Diego Norfolk Pensacola San Diego Norfolk Pensacola Truck x 11 x 12 x 13 Truck x 11 x 12 x 13 Railroad x 21 x 22 x 23 Railroad x 21 x 22 x 23 Airplane x 31 x 32 x 33 Airplane x 31 x 32 x 33 Transportation Problem: Example #2

18 n Define the Objective Function Minimize the total shipping cost. Minimize the total shipping cost. Min: (shipping cost per pound for each mode per destination pairing) x (number of pounds shipped by mode per destination pairing). Min: (shipping cost per pound for each mode per destination pairing) x (number of pounds shipped by mode per destination pairing). Min: 12 x x x x x x 23 Min: 12 x x x x x x x x x x x x 33 Transportation Problem: Example #2

19 n Define the Constraints Equal use of transportation modes: Equal use of transportation modes: (1) x 11 + x 12 + x 13 = 3000 (1) x 11 + x 12 + x 13 = 3000 (2) x 21 + x 22 + x 23 = 3000 (2) x 21 + x 22 + x 23 = 3000 (3) x 31 + x 32 + x 33 = 3000 (3) x 31 + x 32 + x 33 = 3000 Destination material requirements: Destination material requirements: (4) x 11 + x 21 + x 31 = 4000 (4) x 11 + x 21 + x 31 = 4000 (5) x 12 + x 22 + x 32 = 2500 (5) x 12 + x 22 + x 32 = 2500 (6) x 13 + x 23 + x 33 = 2500 (6) x 13 + x 23 + x 33 = 2500 Non-negativity of variables: Non-negativity of variables: x ij > 0, i = 1, 2, 3 and j = 1, 2, 3 x ij > 0, i = 1, 2, 3 and j = 1, 2, 3 Transportation Problem: Example #2

20 Transportation Problem: Example #2

21 Transportation Problem n Linear Programming Formulation Using the notation: Using the notation: x ij = number of units shipped from x ij = number of units shipped from origin i to destination j origin i to destination j c ij = cost per unit of shipping from c ij = cost per unit of shipping from origin i to destination j origin i to destination j s i = supply or capacity in units at origin i s i = supply or capacity in units at origin i d j = demand in units at destination j d j = demand in units at destination j continued

22 Transportation Problem n Linear Programming Formulation (continued) x ij > 0 for all i and j >

23 n LP Formulation Special Cases Total supply exceeds total demand: Total supply exceeds total demand: Total demand exceeds total supply: Total demand exceeds total supply: Add a dummy origin with supply equal to the shortage amount. Assign a zero shipping cost per unit. The amount “shipped” from the dummy origin (in the solution) will not actually be shipped. Transportation Problem No modification of LP formulation is necessary.

24 n LP Formulation Special Cases (continued) The objective is maximizing profit or revenue: The objective is maximizing profit or revenue: Minimum shipping guarantee from i to j : Minimum shipping guarantee from i to j : x ij > L ij x ij > L ij Maximum route capacity from i to j : Maximum route capacity from i to j : x ij < L ij x ij < L ij Unacceptable route: Unacceptable route: Remove the corresponding decision variable. Remove the corresponding decision variable. Transportation Problem Solve as a maximization problem.

25 Assignment Problem n An assignment problem seeks to minimize the total cost assignment of m workers to m jobs, given that the cost of worker i performing job j is c ij. n It assumes all workers are assigned and each job is performed. n An assignment problem is a special case of a transportation problem in which all supplies and all demands are equal to 1; hence assignment problems may be solved as linear programs. n The network representation of an assignment problem with three workers and three jobs is shown on the next slide.

26 Assignment Problem n Network Representation c 11 c 12 c 13 c 21 c 22 c 23 c 31 c 32 c 33 AgentsTasks

27 An electrical contractor pays his subcontractors a fixed fee plus mileage for work performed. On a given day the contractor is faced with three electrical jobs associated with various projects. Given below are the distances between the subcontractors and the projects. Projects Projects Subcontractor A B C Westside Federated Federated Goliath Universal Universal How should the contractors be assigned so that total mileage is minimized? Assignment Problem: Example

28 n Network Representation West. CC BB AA Univ.Univ. Gol.Gol. Fed. Fed. Projects Subcontractors Assignment Problem: Example

29 n Linear Programming Formulation Min 50 x x x x x x 23 Min 50 x x x x x x x x x x x x x x x x x x 43 s.t. x 11 + x 12 + x 13 < 1 s.t. x 11 + x 12 + x 13 < 1 x 21 + x 22 + x 23 < 1 x 21 + x 22 + x 23 < 1 x 31 + x 32 + x 33 < 1 x 31 + x 32 + x 33 < 1 x 41 + x 42 + x 43 < 1 x 41 + x 42 + x 43 < 1 x 11 + x 21 + x 31 + x 41 = 1 x 11 + x 21 + x 31 + x 41 = 1 x 12 + x 22 + x 32 + x 42 = 1 x 12 + x 22 + x 32 + x 42 = 1 x 13 + x 23 + x 33 + x 43 = 1 x 13 + x 23 + x 33 + x 43 = 1 x ij = 0 or 1 for all i and j x ij = 0 or 1 for all i and j Agents Tasks Assignment Problem: Example

30 n Linear Programming Formulation Min 50 x x x x x x 23 Min 50 x x x x x x x x x x x x x x x x x x 43 s.t. x 11 + x 12 + x 13 < 1 s.t. x 11 + x 12 + x 13 < 1 x 21 + x 22 + x 23 < 1 x 21 + x 22 + x 23 < 1 x 31 + x 32 + x 33 < 1 x 31 + x 32 + x 33 < 1 x 41 + x 42 + x 43 < 1 x 41 + x 42 + x 43 < 1 x 11 + x 21 + x 31 + x 41 ≥ 1 x 11 + x 21 + x 31 + x 41 ≥ 1 x 12 + x 22 + x 32 + x 42 ≥ 1 x 12 + x 22 + x 32 + x 42 ≥ 1 x 13 + x 23 + x 33 + x 43 ≥ 1 x 13 + x 23 + x 33 + x 43 ≥ 1 x ij = 0 or 1 for all i and j x ij = 0 or 1 for all i and j Agents Tasks Assignment Problem: Example

31 Transportation Problem: Example #2

32 n The optimal assignment is: Subcontractor Project Distance Subcontractor Project Distance Westside C 16 Westside C 16 Federated A 28 Federated A 28 Goliath (unassigned) Universal B 25 Total Distance = 69 miles Total Distance = 69 miles Assignment Problem: Example

33 n Linear Programming Formulation Using the notation: Using the notation: x ij = 1 if agent i is assigned to task j x ij = 1 if agent i is assigned to task j 0 otherwise 0 otherwise c ij = cost of assigning agent i to task j c ij = cost of assigning agent i to task j Assignment Problem continued

34 n Linear Programming Formulation (continued) Assignment Problem x ij > 0 for all i and j

35 n LP Formulation Special Cases Number of agents exceeds the number of tasks: Number of agents exceeds the number of tasks: Number of tasks exceeds the number of agents: Number of tasks exceeds the number of agents: Add enough dummy agents to equalize the Add enough dummy agents to equalize the number of agents and the number of tasks. number of agents and the number of tasks. The objective function coefficients for these The objective function coefficients for these new variable would be zero. new variable would be zero. Assignment Problem Extra agents simply remain unassigned.

36 Assignment Problem n LP Formulation Special Cases (continued) The assignment alternatives are evaluated in terms of revenue or profit: The assignment alternatives are evaluated in terms of revenue or profit: Solve as a maximization problem. Solve as a maximization problem. An assignment is unacceptable: An assignment is unacceptable: Remove the corresponding decision variable. Remove the corresponding decision variable. An agent is permitted to work t tasks: An agent is permitted to work t tasks:

37 Transshipment Problem n Transshipment problems are transportation problems in which a shipment may move through intermediate nodes (transshipment nodes)before reaching a particular destination node. n Transshipment problems can be converted to larger transportation problems and solved by a special transportation program. n Transshipment problems can also be solved by general purpose linear programming codes. n The network representation for a transshipment problem with two sources, three intermediate nodes, and two destinations is shown on the next slide.

38 Transshipment Problem n Network Representation c 13 c 14 c 23 c 24 c 25 c 15 s1s1s1s1 c 36 c 37 c 46 c 47 c 56 c 57 d1d1d1d1 d2d2d2d2 Intermediate Nodes Sources Destinations s2s2s2s2 Demand Supply

39 Transshipment Problem n Linear Programming Formulation Using the notation: Using the notation: x ij = number of units shipped from node i to node j x ij = number of units shipped from node i to node j c ij = cost per unit of shipping from node i to node j c ij = cost per unit of shipping from node i to node j s i = supply at origin node i s i = supply at origin node i d j = demand at destination node j d j = demand at destination node j continued

40 Transshipment Problem x ij > 0 for all i and j n Linear Programming Formulation (continued) continued

41 Transshipment Problem n LP Formulation Special Cases Total supply not equal to total demand Total supply not equal to total demand Maximization objective function Maximization objective function Route capacities or route minimums Route capacities or route minimums Unacceptable routes Unacceptable routes The LP model modifications required here are identical to those required for the special cases in the transportation problem.

42 The Northside and Southside facilities of Zeron Industries supply three firms (Zrox, Hewes, Rockrite) with customized shelving for its offices. They both order shelving from the same two manufacturers, Arnold Manufacturers and Supershelf, Inc. Currently weekly demands by the users are 50 for Zrox, 60 for Hewes, and 40 for Rockrite. Both Arnold and Supershelf can supply at most 75 units to its customers. Additional data is shown on the next slide. Transshipment Problem: Example

43 Because of long standing contracts based on past orders, unit costs from the manufacturers to the suppliers are: Zeron N Zeron S Zeron N Zeron S Arnold 5 8 Arnold 5 8 Supershelf 7 4 Supershelf 7 4 The costs to install the shelving at the various locations are: Zrox Hewes Rockrite Zrox Hewes Rockrite Zeron N Zeron N Zeron S Zeron S Transshipment Problem: Example

44 n Network Representation ARNOLD WASH BURN ZROX HEWES Arnold SuperShelf Hewes Zrox ZeronN ZeronS Rock-Rite Transshipment Problem: Example

45 n Linear Programming Formulation Decision Variables Defined Decision Variables Defined x ij = amount shipped from manufacturer i to supplier j x jk = amount shipped from supplier j to customer k x jk = amount shipped from supplier j to customer k where i = 1 (Arnold), 2 (Supershelf) where i = 1 (Arnold), 2 (Supershelf) j = 3 (Zeron N), 4 (Zeron S) j = 3 (Zeron N), 4 (Zeron S) k = 5 (Zrox), 6 (Hewes), 7 (Rockrite) k = 5 (Zrox), 6 (Hewes), 7 (Rockrite) Objective Function Defined Objective Function Defined Minimize Overall Shipping Costs: Min 5 x x x x x x x 37 Min 5 x x x x x x x x x x x x x 47 Transshipment Problem: Example

46 n Constraints Defined Amount Out of Arnold: x 13 + x 14 < 75 Amount Out of Supershelf: x 23 + x 24 < 75 Amount Through Zeron N: x 13 + x 23 - x 35 - x 36 - x 37 = 0 Amount Through Zeron S: x 14 + x 24 - x 45 - x 46 - x 47 = 0 Amount Into Zrox: x 35 + x 45 = 50 Amount Into Hewes: x 36 + x 46 = 60 Amount Into Rockrite: x 37 + x 47 = 40 Non-negativity of Variables: x ij > 0, for all i and j. Transshipment Problem: Example

47 Transshipment Problem: Example

48 n Solution ARNOLD WASH BURN ZROX HEWES Arnold SuperShelf Hewes Zrox ZeronN ZeronS Rock-Rite Transshipment Problem: Example

49 Transshipment Problem: Example

50 n Computer Output (continued) Constraint Slack/Surplus Dual Values Constraint Slack/Surplus Dual Values Transshipment Problem: Example

51 n Computer Output (continued) OBJECTIVE COEFFICIENT RANGES OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value Upper Limit Variable Lower Limit Current Value Upper Limit X X X No Limit X No Limit X No Limit X No Limit X24 No Limit X24 No Limit X35 No Limit X35 No Limit X X X No Limit X No Limit X No Limit X No Limit X X X47 No Limit X47 No Limit Transshipment Problem: Example

52 n Computer Output (continued) RIGHT HAND SIDE RANGES Constraint Lower Limit Current Value Upper Limit Constraint Lower Limit Current Value Upper Limit No Limit No Limit Transshipment Problem: Example

53 Transshipment Transformed into Transportation Problem

54 End of Chapter 6, Part A