1 Network Models Chapter 4 2 For a given network find the path of minimum distance, time, or cost from a starting point, the start node, to a destination,

Slides:



Advertisements
Similar presentations
Outline LP formulation of minimal cost flow problem
Advertisements

BU BU Decision Models Networks 1 Networks Models Summer 2013.
Shortest Paths Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 9.6 Based on slides from Chuck Allison, Michael T.
1Other Network ModelsLesson 6 LECTURE SIX Other Network Models.
1 Network Models Chapter 4 2 For a given network find the path of minimum distance, time, or cost from a starting point, the start node, to a destination,
Transportation Problem (TP) and Assignment Problem (AP)
Chapter 11 To accompany Quantitative Analysis for Management, Eleventh Edition, Global Edition by Render, Stair, and Hanna Power Point slides created by.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
DMOR Networks. Graphs: Koenigsberg bridges Leonard Euler problem (1736)
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
Math443/543 Mathematical Modeling and Optimization
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
© 2008 Prentice-Hall, Inc. Chapter 12 To accompany Quantitative Analysis for Management, Tenth Edition, by Render, Stair, and Hanna Power Point slides.
Network Flow Models Chapter 7.
MNG221 - Management Science
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 12-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 12.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Introduction to Management Science
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
Network Models.
Transportation and Transshipment Models
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Network Optimization Models
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 6 hh Edition Chapter 11 Supplement Roberta.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
MODELING AND ANALYSIS OF MANUFACTURING SYSTEMS Session 12 MACHINE SETUP AND OPERATION SEQUENCING E. Gutierrez-Miravete Spring 2001.
Network Optimization Problems
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Traveling Salesman Problem (TSP)
Shortest Paths Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 8.6 Based on slides from Chuck Allison, Michael T.
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Mjdah Al Shehri Hamdy A. Taha, Operations Research: An introduction, 8 th Edition Chapter 6: Network Models.
::Network Optimization:: Minimum Spanning Trees and Clustering Taufik Djatna, Dr.Eng. 1.
Transportation, Assignment, and Network Models 9 To accompany Quantitative Analysis for Management, Twelfth Edition, by Render, Stair, Hanna and Hale Power.
1 Network Models. Context Mathematical programming –Linear programming – Supp to Chap 14 –Integer programming – Network programming – Suppl to Chap 11.
1 Chapter 13 Mathematical models of networks give us algorithms so computationally efficient that we can employ them to evaluate problems too big to be.
1 1 Slide © 2005 Thomson/South-Western Chapter 9 Network Models n Shortest-Route Problem n Minimal Spanning Tree Problem n Maximal Flow Problem.
Network Models Chapter 12
St. Edward’s University
Chapter 12 Network Models 12-1
1.3 Modeling with exponentially many constr.
Network Models.
Network Models.
Shortest Paths Discrete Mathematics and Its Applications (7th Edition)
Discrete Mathematics and Its Applications (5th Edition)
Shortest Paths Discrete Mathematics and Its Applications (7th Edition)
Introduction Basic formulations Applications
Network Models 7-1.
1.3 Modeling with exponentially many constr.
Discrete Mathematics and Its Applications (5th Edition)
Network Models Chapter 12
Chapter 6 Network Flow Models.
EE5900 Advanced Embedded System For Smart Infrastructure
離散數學 DISCRETE and COMBINATORIAL MATHEMATICS
Shortest Paths Discrete Mathematics and Its Applications (8th Edition)
Chapter 6 Network Models.
Shortest Paths Discrete Mathematics and Its Applications (7th Edition)
Shortest Paths Discrete Mathematics and Its Applications (7th Edition)
REVIEW FOR EXAM 1 Chapters 3, 4, 5 & 6.
Presentation transcript:

1 Network Models Chapter 4

2 For a given network find the path of minimum distance, time, or cost from a starting point, the start node, to a destination, the terminal node. Problem definition –There are n nodes, beginning with start node 1 and ending with terminal node n. –Bi-directional arcs connect connected nodes i and j with nonnegative distances, d ij –Find the path of minimum total distance that connects node 1 to node n. 4.5 The Shortest Path Model

3 Determine the shortest route from Seattle to El Paso over the following network of highways. FAIRWAY VAN LINES

Salt Lake City El Paso Seattle Boise Portland Butte Cheyenne BakersfieldLas Vegas Albuquerque Tucson Phoenix Comment In case some arcs are bi-directional, create two directed arcs in two opposite directions, between the same two nodes.

5 Decision variables Objective = Minimize  d ij X ij FAIRWAY VAN LINES – The Linear Programming Model

6 6 2 Salt Lake City 1 34 Seattle Boise Portland Butte [The number of highways traveled out of Seattle (the start node)] = 1 X 12 + X 13 + X 14 = 1 In a similar manner: [The number of highways traveled into El Paso (terminal node)] = 1 X 9,12 + X 10,12 + X 11,12 = 1 [The number of highways used to travel into a city] = [The number of highways traveled leaving the city]. For example, in Boise (node 4): X 14 + X 34 = X 47. Subject to the following constraints: Non-negativity constraints

7 FAIRWAY VAN LINES – spreadsheet

8 The Dijkstra’s algorithm: –Find the shortest distance from the “START” to each other node, in the order of the closet nodes to the “START”. –Once the shortest route to the m closest node is determined, the (m+1) closest can be easily determined. –This algorithm finds the shortest route from the start to all the nodes in the network. FAIRWAY VAN LINES – The Network Model

9 An illustration of the Dijkstra’s algorithm (See mathematical formulation of the algorithm in Supplement CD 5).

10 SEAT. BUT 599 POR BOI POR. BOI 432 SAC = = BOI BOISE. 345 SLC + = 842 BUTTE SLC 420 CHY = = SLC. SLC SLC. SACRAMENTO. … and so on until the whole network is covered.

11 Dijkstra’s algorithm - continued When all the network is covered, the shortest route from START to every other node can be identified. Trace the path that leads to each node by backtracking from each node toward node START.

The Maximal Flow Problem The model is designed to reduce or eliminate bottlenecks between a certain starting point and some destination of a given network. A flow travels from a single source to a single sink over arcs connecting intermediate nodes. Each arc has a capacity that cannot be exceeded. Capacities need not be the same in each direction on an arc.

13 Problem definition –There is a source node (labeled 1), from which the network flow emanates. –There is a terminal node (labeled n), into which all network flow is eventually deposited. –There are n - 2 intermediate nodes (labeled 2, 3,…,n-1), where the node inflow is equal to the node outflow. –There are capacities C ij for flow on the arc from node i to node j, and capacities C ji for the opposite direction.

14 The objective is to find the maximum total flow out of node 1 that can flow into node n without exceeding the capacities on the arcs. The Maximal Flow Problem Objective

15 United Chemical produces pesticides and lawn care products. Poisonous chemicals needed for the production process are held in a huge drum. A network of pipes and valves regulates the chemical flow from the drum to different production areas. The safety division must plan a procedure to empty the drum as fast as possible into a safety tub in the disposal area, using a network of pipes and valves. UNITED CHEMICAL COMPANY

16 The plan must determine: which valves to open and shut What is the estimated time for total discharge UNITED CHEMICAL COMPANY

17 UNITED CHEMICAL COMPANY- Network Presentation

18 Data Chemical Drum Safe Tub Maximum flow from 2 to 4 is 8 Maximum flow from 6 to 3 is 4

19 Decision variables X ij - the flow from node i to node j on the arc that connects these two nodes Objective function – Maximize the flow out of node 1: Max X 12 + X 13 UNITED CHEMICAL COMPANY – The Linear Programming Model

20 Constraints –The constraint on each intermediate node is: Flow out from the node – flow into the node = 0 Node 2: X23 +X24 + X26 - X12 - X32= 0 Node 3: X32 +X35 + X36 - X13 - X23 - X63 = 0 Node 4: X46 + X47 - X24 - X64 = 0 Node 5: X56 + X57 - X35 - X65 = 0 Node 6: X63 +X64 +X65 + X67 - X26 - X36 - X46 -X56= 0 UNITED CHEMICAL COMPANY – The Linear Programming Model 2

21 Constraints – continued –Flow cannot exceed arc capacities X12  10; X13  10; X23  1; X24  8; X26  6; X32  1; X35  15; X36  4; X46  3; X47  7; X56  2; X57  8; X63  4; X64  3; X65  2; X67  2; –All X ij  0 UNITED CHEMICAL COMPANY – The Linear Programming Model

22 Solution - the network approach –The basic idea is as follows: Find a path with unused capacity on each of its arcs. Augment the flow on these arcs by the minimum remaining capacity of any arc on the path. Repeat this procedure until no path from the source to the sink can be found in which all arcs have residual positive capacity. Computer solution –Designate a source node and a sink node. –Define the capacities along the arcs in the network. (Allow for different forward and backward capacities.) –A WINQSB solution is shown next

23 Chemical Drum Safe Tub =0 8-7=1 10-7=3 8-8=0 12-8=4 10-8=2

24 The WINQSB Maximum Flow Optimal Solution Chemical Drum Safe Tub Maximum Flow= 17

25 UNITED CHEMICAL COMPANY – Spreadsheet

26 Chemical Drum Safe Tub The role of cuts in a network Maximum flow across this cut is = 20

27 Chemical Drum Safe Tub The role of cuts in a network Maximum flow across this cut is =27

28 Chemical Drum Safe Tub The role of cuts in a network Maximum flow across this cut is 8+2+7=17

29 The role of cuts in a Maximum Flow network –The value of the maximum flow = the sum of the capacities of the minimum cut. –All arcs on the minimum cut are saturated by the maximum flow

30 Special cases –More than one sources node and/or more than one sink node. –Add one “supersource” and/or one “supersink”. Supersource capacity = Total flow capacity out of each source. Supersink capacity = Total capacities into each sink. Chemical Drum Safe Tub Super Source Super Sink

The Traveling Salesman Problem Problem definition –There are m nodes. –Unit cost C ij is associated with utilizing arc (i,j) –Find the cycle that minimizes the total cost required to visit all the nodes exactly once.

32 The Traveling Salesman Problem Importance: –Variety of scheduling application can be solved as a traveling salesmen problem. –Examples : Ordering drill position on a drill press. School bus routing. Military bombing sorties. –The problem has theoretical importance because it represents a class of difficult problems known as NP-hard problems.

33 The Traveling Salesman Problem Complexity Both writing the mathematical model and solving it are cumbersome (a problem with 20 cities requires over 500,000 linear constraints.)

34 THE FEDERAL EMERGENCY MANAGEMENT AGENCY A visit must be made to four local offices of FEMA, going out from and returning to the same main office in Northridge, Southern California. Data Travel time between offices (minutes)

35 FEMA traveling salesman Network representation

Home

37 FEMA - Traveling Salesman Solution approaches –Enumeration of all possible cycles. This results in (m-1)! cycles to enumerate. Only small problems can be solved with this approach. –A combination of the Assignment problem and the Branch and Bound technique. Problem with up to m=20 nodes can be efficiently solved with this approach.

38 Possible cycles CycleTotal Cost 1. H-O1-O2-O3-O4-H H-O1-O2-O4-O3-H H-O1-O3-O2-O3-H H-O1-O3-O4-O2-H H-O1-O4-O2-O3-H H-O1-O4-O3-O2-H H-O2-O3-O1-O4-H H-O2-O1-O3-O4-H H-O2-O4-O1-O3-H H-O2-O1-O4-O3-H H-O3-O1-O2-O4-H H-O3-O1-O2-O4-H260 Minimum For this problem we have (5-1)! / 2 = 12 cycles. Symmetrical problems need to enumerate only (m-1)! / 2 cycles. FEMA – full enumeration

Home FEMA – optimal solution

40 Refer to the nodes designated “From” as “Workers” nodes. Refer to nodes designated by “To” as “Jobs” nodes. Assign “Workers” to “Jobs” at minimum cost. FEMA – The Assignment problem approach

41 Data FEMA – The Assignment problem approach

42 FEMA – The assignment solution Home O3 – O4 – O3 Sub-tour O1 – O2 – H – O1 Sub-tour

43 We can prevent the situation of sub-tours by adding certain constraints. This makes the problem extremely large. Another approach, that combines the Assignment model with the Branch and Bound solution methodology can efficiently solve problems up to m = 20 nodes. FEMA – The assignment solution

The Minimal Spanning Tree This problem arises when all the nodes of a given network must be connected to one another, without any loop. The minimal spanning tree approach is appropriate for problems for which redundancy is expensive, or the flow along the arcs is considered instantaneous.

45 THE METROPOLITAN TRANSIT DISTRICT

46 THE METROPOLITAN TRANSIT DISTRICT The City of Vancouver is planning the development of a new light rail transportation system. The system should link 8 residential and commercial centers. The Metropolitan Transit District needs to select the set of lines that will connect all the centers at a minimum total cost.

47 METROPOLITAN TRANSIT – Network presentation The network describes: – feasible lines that have been drafted – minimum possible cost for taxpayers per line.

West Side North Side University Business District East Side Shopping Center South Side City Center

49 SPANNING TREE NETWORK PRESENTATION West Side North Side University Business District East Side Shopping Center South Side City Center

50 Solution - a network approach (See Supplement CD 5) The algorithm that solves this problem is a very trivial greedy procedure. Two versions of the algorithm are described. The algorithm – version 1: –Start by selecting the smallest arc, and adding it to a set of selected arcs (currently contains only the first arc). –At each iteration, add the next smallest arc to the set of selected arcs, unless it forms a cycle. –Finish when all nodes are connected. THE METROPOLITAN TRANSIT DISTRICT

51 The algorithm – version 2: –Start by selecting the smallest arc creating the set of connected arcs. –At each iteration add the smallest unselected arc that has a connection to the connected set, but do not create a cycle. –Finish when all nodes are connected See demonstration of version 2 next THE METROPOLITAN TRANSIT DISTRICT

52 Shopping Center Loop West Side North Side University Business District East Side South Side City Center Total Cost = $236 million OPTIMAL SOLUTION NETWORK REPRESENTATION 5 Loop

53 Shopping Center West Side North Side University Business District East Side South Side City Center Total Cost = $236 million OPTIMAL SOLUTION NETWORK REPRESENTATION Loop 1 62