Presentation is loading. Please wait.

Presentation is loading. Please wait.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.1 Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section.

Similar presentations


Presentation on theme: "McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.1 Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section."— Presentation transcript:

1 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.1 Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section 6.1)6.2–6.12 A Case Study: The BMZ Maximum Flow Problem (Section 6.2)6.13–6.16 Maximum Flow Problems (Section 6.3)6.17–6.21 Shortest Path Problems: Littletown Fire Department (Section 6.4)6.22–6.25 Shortest Path Problems: General Characteristics (Section 6.4)6.26–6.27 Shortest Path Problems: Minimizing Sarah’s Total Cost (Section 6.4)6.28–6.31 Shortest Path Problems: Minimizing Quick’s Total Time (Section 6.4)6.32–6.36 Network Optimization (UW Lecture)6.37–6.51 These slides are based upon a lecture to second-year MBA students at the University of Washington that discusses network optimization (as taught by one of the authors).

2 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.2 Distribution Unlimited Co. Problem The Distribution Unlimited Co. has two factories producing a product that needs to be shipped to two warehouses –Factory 1 produces 80 units. –Factory 2 produces 70 units. –Warehouse 1 needs 60 units. –Warehouse 2 needs 90 units. There are rail links directly from Factory 1 to Warehouse 1 and Factory 2 to Warehouse 2. Independent truckers are available to ship up to 50 units from each factory to the distribution center, and then 50 units from the distribution center to each warehouse. Question: How many units (truckloads) should be shipped along each shipping lane?

3 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.3 The Distribution Network

4 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.4 Data for Distribution Network

5 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.5 A Network Model

6 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.6 The Optimal Solution

7 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.7 Terminology for Minimum-Cost Flow Problems 1.The model for any minimum-cost flow problem is represented by a network with flow passing through it. 2.The circles in the network are called nodes. 3.Each node where the net amount of flow generated (outflow minus inflow) is a fixed positive number is a supply node. 4.Each node where the net amount of flow generated is a fixed negative number is a demand node. 5.Any node where the net amount of flow generated is fixed at zero is a transshipment node. Having the amount of flow out of the node equal the amount of flow into the node is referred to as conservation of flow. 6.The arrows in the network are called arcs. 7.The maximum amount of flow allowed through an arc is referred to as the capacity of that arc.

8 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.8 Assumptions of a Minimum-Cost Flow Problem 1.At least one of the nodes is a supply node. 2.At least one of the other nodes is a demand node. 3.All the remaining nodes are transshipment nodes. 4.Flow through an arc is only allowed in the direction indicated by the arrowhead, where the maximum amount of flow is given by the capacity of that arc. (If flow can occur in both directions, this would be represented by a pair of arcs pointing in opposite directions.) 5.The network has enough arcs with sufficient capacity to enable all the flow generated at the supply nodes to reach all the demand nodes. 6.The cost of the flow through each arc is proportional to the amount of that flow, where the cost per unit flow is known. 7.The objective is to minimize the total cost of sending the available supply through the network to satisfy the given demand. (An alternative objective is to maximize the total profit from doing this.)

9 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.9 Properties of Minimum-Cost Flow Problems The Feasible Solutions Property: Under the previous assumptions, a minimum-cost flow problem will have feasible solutions if and only if the sum of the supplies from its supply nodes equals the sum of the demands at its demand nodes. The Integer Solutions Property: As long as all the supplies, demands, and arc capacities have integer values, any minimum-cost flow problem with feasible solutions is guaranteed to have an optimal solution with integer values for all its flow quantities.

10 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.10 Spreadsheet Model

11 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.11 The SUMIF Function The SUMIF formula can be used to simplify the node flow constraints. =SUMIF(Range A, x, Range B) For each quantity in (Range A) that equals x, SUMIF sums the corresponding entries in (Range B). The net outflow (flow out – flow in) from node x is then =SUMIF(“From labels”, x, “Flow”) – SUMIF(“To labels”, x, “Flow”)

12 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.12 Typical Applications of Minimum-Cost Flow Problems Kind of Application Supply Nodes Transshipment Nodes Demand Nodes Operation of a distribution network Sources of goods Intermediate storage facilities Customers Solid waste management Sources of solid waste Processing facilitiesLandfill locations Operation of a supply network Vendors Intermediate warehouses Processing facilities Coordinating product mixes at plants Plants Production of a specific product Market for a specific product Cash flow management Sources of cash at a specific time Short-term investment options Needs for cash at a specific time

13 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.13 The BMZ Maximum Flow Problem The BMZ Company is a European manufacturer of luxury automobiles. Its exports to the United States are particularly important. BMZ cars are becoming especially popular in California, so it is particularly important to keep the Los Angeles center well supplied with replacement parts for repairing these cars. BMZ needs to execute a plan quickly for shipping as much as possible from the main factory in Stuttgart, Germany to the distribution center in Los Angeles over the next month. The limiting factor on how much can be shipped is the limited capacity of the company’s distribution network. Question: How many units should be sent through each shipping lane to maximize the total units flowing from Stuttgart to Los Angeles?

14 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.14 The BMZ Distribution Network

15 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.15 A Network Model for BMZ

16 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.16 Spreadsheet Model for BMZ

17 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.17 Assumptions of Maximum Flow Problems 1.All flow through the network originates at one node, called the source, and terminates at one other node, called the sink. (The source and sink in the BMZ problem are the factory and the distribution center, respectively.) 2.All the remaining nodes are transshipment nodes. 3.Flow through an arc is only allowed in the direction indicated by the arrowhead, where the maximum amount of flow is given by the capacity of that arc. At the source, all arcs point away from the node. At the sink, all arcs point into the node. 4.The objective is to maximize the total amount of flow from the source to the sink. This amount is measured in either of two equivalent ways, namely, either the amount leaving the source or the amount entering the sink.

18 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.18 BMZ with Multiple Supply and Demand Points BMZ has a second, smaller factory in Berlin. The distribution center in Seattle has the capability of supplying parts to the customers of the distribution center in Los Angeles when shortages occur at the latter center. Question: How many units should be sent through each shipping lane to maximize the total units flowing from Stuttgart and Berlin to Los Angeles and Seattle?

19 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.19 Network Model for The Expanded BMZ Problem

20 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.20 Spreadsheet Model

21 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.21 Some Applications of Maximum Flow Problems 1.Maximize the flow through a distribution network, as for BMZ. 2.Maximize the flow through a company’s supply network from its vendors to its processing facilities. 3.Maximize the flow of oil through a system of pipelines. 4.Maximize the flow of water through a system of aqueducts. 5.Maximize the flow of vehicles through a transportation network.

22 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.22 Littletown Fire Department Littletown is a small town in a rural area. Its fire department serves a relatively large geographical area that includes many farming communities. Since there are numerous roads throughout the area, many possible routes may be available for traveling to any given farming community. Question: Which route from the fire station to a certain farming community minimizes the total number of miles?

23 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.23 The Littletown Road System

24 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.24 The Network Representation

25 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.25 Spreadsheet Model

26 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.26 Assumptions of a Shortest Path Problem 1.You need to choose a path through the network that starts at a certain node, called the origin, and ends at another certain node, called the destination. 2.The lines connecting certain pairs of nodes commonly are links (which allow travel in either direction), although arcs (which only permit travel in one direction) also are allowed. 3.Associated with each link (or arc) is a nonnegative number called its length. (Be aware that the drawing of each link in the network typically makes no effort to show its true length other than giving the correct number next to the link.) 4.The objective is to find the shortest path (the path with the minimum total length) from the origin to the destination.

27 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.27 Applications of Shortest Path Problems 1.Minimize the total distance traveled. 2.Minimize the total cost of a sequence of activities. 3.Minimize the total time of a sequence of activities.

28 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.28 Minimizing Total Cost: Sarah’s Car Fund Sarah has just graduated from high school. As a graduation present, her parents have given her a car fund of $21,000 to help purchase and maintain a three-year-old used car for college. Since operating and maintenance costs go up rapidly as the car ages, Sarah may trade in her car on another three-year-old car one or more times during the next three summers if it will minimize her total net cost. (At the end of the four years of college, her parents will trade in the current used car on a new car for Sarah.) Question: When should Sarah trade in her car (if at all) during the next three summers?

29 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.29 Sarah’s Cost Data Operating and Maintenance Costs for Ownership Year Trade-in Value at End of Ownership Year Purchase Price12341234 $12,000$2,000$3,000$4,500$6,500$8,500$6,500$4,500$3,000

30 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.30 Shortest Path Formulation

31 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.31 Spreadsheet Model

32 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.32 Minimizing Total Time: Quick Company The Quick Company has learned that a competitor is planning to come out with a new kind of product with great sales potential. Quick has been working on a similar product that had been scheduled to come to market in 20 months. Quick’s management wishes to rush the product out to meet the competition. Each of four remaining phases can be conducted at a normal pace, at a priority pace, or at crash level to expedite completion. However, the normal pace has been ruled out as too slow for the last three phases. $30 million is available for all four phases. Question: At what pace should each of the four phases be conducted?

33 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.33 Time and Cost of the Four Phases Level Remaining ResearchDevelopment Design of Mfg. System Initiate Production and Distribution Normal5 months——— Priority4 months3 months5 months2 months Crash2 months 3 months1 month Level Remaining ResearchDevelopment Design of Mfg. System Initiate Production and Distribution Normal$3 million——— Priority6 million$6 million$9 million$3 million Crash9 million 12 million6 million

34 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.34 Shortest Path Formulation

35 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.35 Spreadsheet Model

36 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.36 The Optimal Solution PhaseLevelTimeCost Remaining researchCrash2 months$9 million DevelopmentPriority3 months6 million Design of manufacturing systemCrash3 months12 million Initiate production and distributionPriority2 months3 million Total10 months$30 million

37 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.37 Network Optimization Problems Many optimization problems can be represented by a graphical network representation. Examples: –Distribution problems –Routing problems –Maximum flow problems –Designing computer / phone / road networks –Equipment replacement

38 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.38 Components of a Minimum-Cost-Flow Model Nodes –can represent a location, point in time, or state –supply node (flow is generated) –demand node (flow is consumed) –transshipment node (flow in = flow out) Arcs –can represent potential flow (e.g., a shipping lane) or a transition from state to state. –directional (one-way) if both ways, use two arcs –cost (assumed proportional to flow) –may have capacity

39 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.39 Minimum-Cost-Flow Model Objective: Minimize the total cost of all flow, while sending supply through the network to satisfy demand. Integer Solutions Property: If supplies, demands, and arc capacities are integer, then the optimal flow will also be integer. Network Simplex Method: A streamlined version of the simplex method. –extremely efficient –computer software may have graphical interface (with nodes and arcs) Excel uses the standard simplex method. However, the minimum-cost-flow model is a useful tool for modeling a problem: –visual –intuitive –easy to set up –transforms easily to a spreadsheet model

40 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.40 Multi-Echelon Distribution Consider a multi-echelon distribution problem. Product must be distributed from a pair of factories to three warehouses. Product is then shipped to five distribution centers. A private trucking fleet is used for all shipping. Some shipping lanes are currently capacitated due to a limited number of trucks. Question: How many units should be shipped along each shipping lane?

41 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.41 Spreadsheet Model

42 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.42 The SUMIF Function The SUMIF formula can be used to simplify the node flow constraints. =SUMIF(Range A, x, Range B) For each quantity in (Range A) that equals x, SUMIF sums the corresponding entries in (Range B). The net outflow (flow out – flow in) from node x is then =SUMIF(“From labels”, x, “Flow”) – SUMIF(“To labels”, x, “Flow”)

43 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.43 Spreadsheet Model using SUMIF

44 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.44 The Minimum-Cost-Flow Model is an LP Any minimum cost flow model consists of a set of nodes: –Supply node(s), with supply s i –Demand node(s), with demand d i –Transshipment nodes A set of arcs from node i to node j –with cost c ij –some with limited capacity k ij LP Formulation: Let x ij = flow from i to j Minimize Cost = ∑ ij c ij x ij subject to Flow: ∑ all j flowing out of i x ij – ∑ all j flowing into i x ji = (s i, d i, or 0) Capacity: x ij ≤ k ij and x ij ≥ 0.

45 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.45 Maximum Flow Problem An oil company has the following pipeline network, where each pipeline is labeled with its maximum flow rate (in thousands of gallons per hour). Question: What is the maximum possible flow rate from A to G?

46 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.46 Spreadsheet Model

47 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.47 Shortest Path Problem The travel times along various routes in the Pacific Northwest is shown below. Question: What is the quickest route from Seattle to Denver?

48 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.48 Spreadsheet Model

49 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.49 Equipment Replacement A production department needs to purchase a new machine. As the machine ages, it requires additional maintenance and also has a higher defect rate. The production department plans to replace the machine every few years. The purchase price of a new machine is $10,000. The maintenance cost and cost of defective product is given below. A used machine has no resale value. Age of machineMaintenance CostCost of Defects First Year$3,000$2,000 Second Year$4,000 Third Year$6,000$7,000 Fourth Year$10,000$11,000 Fifth Year$20,000$24,000 Question: What is the best replacement policy over the next five years?

50 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.50 Spreadsheet Solution

51 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.51 Planning Vehicle Replacement at Phillips Petroleum Phillips Petroleum had a fleet of 1,500 cars and 3,800 trucks. Modeled replacement strategy as shortest path model (20-year time horizon)— solved model once for each class of vehicle. Could keep, purchase (replace), or lease, at 3-month intervals. Costs considered included: –Maintenance and operating costs (fuel, oil, repair), –Leasing cost for leased vehicles, –Purchasing cost for purchased vehicles, –State license fees and road taxes, –Tax effects (investment tax credits, depreciation) First used to make lease-or-buy decision, then vehicle-replacement strategy, and more recently for other equipment (non-vehicle). For more details, see Waddell (1983) Jul-Aug Interfaces article, “A Model for Equipment Replacement Decisions and Policies”.


Download ppt "McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 6.1 Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section."

Similar presentations


Ads by Google