Presentation is loading. Please wait.

Presentation is loading. Please wait.

7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.

Similar presentations


Presentation on theme: "7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7."— Presentation transcript:

1 7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7

2 7-2 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter Topics ■Network Components ■The Shortest Route Problem ■The Minimal Spanning Tree Problem ■The Maximal Flow Problem

3 7-3 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Components (1 of 3) ■A network is an arrangement of paths (branches) connected at various points (nodes) through which one or more items move from one point to another. ■The network is drawn as a diagram providing a picture of the system, thus enabling visual representation and enhanced understanding. ■A large number of real-life systems can be modeled as networks which are relatively easy to conceive and construct.

4 7-4 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall ■Network diagrams consist of nodes and branches. ■Nodes (circles), represent junction points, or locations. ■Branches (lines), connect nodes and represent flow. Network Components (2 of 3)

5 7-5 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.1 Network of railroad routes ■Four nodes, four branches in figure. ■“Atlanta”, node 1, termed the origin; any of others, destination. ■Branches identified by beginning and ending node numbers. ■Value assigned to each branch (distance, time, cost, etc.). Network Components (3 of 3)

6 7-6 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Problem: Determine the shortest routes from the origin to all destinations. Figure 7.2 Shipping routes from Los Angeles The Shortest Route Problem Definition and Example Problem Data (1 of 2)

7 7-7 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.3 Network representation of shortest route problem The Shortest Route Problem Definition and Example Problem Data (2 of 2)

8 7-8 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.4 Network with node 1 in the permanent set The Shortest Route Problem Solution Approach (1 of 8) Determine the initial shortest route from the origin (node 1) to the closest node (3). The permanent set indicates the nodes for which the shortest route to has been found.

9 7-9 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.5 Network with nodes 1 and 3 in the permanent set The Shortest Route Problem Solution Approach (2 of 8) Determine all nodes directly connected to the permanent set.

10 7-10 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.6 Network with nodes 1, 2, and 3 in the permanent set Redefine the permanent set. The Shortest Route Problem Solution Approach (3 of 8)

11 7-11 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.7 Network with nodes 1, 2, 3, and 4 in the permanent set The Shortest Route Problem Solution Approach (4 of 8)

12 7-12 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Solution Approach (5 of 8) Figure 7.8 Network with Nodes 1, 2, 3, 4, & 6 in the permanent set

13 7-13 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Solution Approach (6 of 8) Figure 7.9 Network with nodes 1, 2, 3, 4, 5 & 6 in the permanent set

14 7-14 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Solution Approach (7 of 8) Figure 7.10 Network with optimal routes from LA to all destinations

15 7-15 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Solution Approach (8 of 8) Table 7.1 Shortest travel time from origin to each destination

16 7-16 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Solution Method Summary 1.Select the node with the shortest direct route from the origin. 2.Establish a permanent set with the origin node and the node that was selected in step 1. 3.Determine all nodes directly connected to the permanent set nodes. 4.Select the node with the shortest route from the group of nodes directly connected to the permanent set nodes. 5.Repeat steps 3 & 4 until all nodes have joined the permanent set.

17 7-17 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Computer Solution with QM for Windows (1 of 2) Exhibit 7.1

18 7-18 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Shortest Route Problem Computer Solution with QM for Windows (2 of 2) Exhibit 7.2 Destination node Distance to node 5, Des Moines

19 7-19 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Formulation as a 0 - 1 integer linear programming problem. x ij = 0 if branch i-j is not selected as part of the shortest route and 1 if it is selected. Minimize Z = 16x 12 + 9x 13 + 35x 14 + 12x 24 + 25x 25 + 15x 34 + 22x 36 + 14x 45 + 17x 46 + 19x 47 + 8x 57 + 14x 67 subject to: x 12 + x 13 + x 14 = 1 x 12 - x 24 - x 25 = 0 x 13 - x 34 - x 36 = 0 x 14 + x 24 + x 34 - x 45 - x 46 - x 47 = 0 x 25 + x 45 - x 57 = 0 x 36 + x 46 - x 67 = 0 x 47 + x 57 + x 67 = 1 x ij = 0 or 1 The Shortest Route Problem Computer Solution with Excel (1 of 4)

20 7-20 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Exhibit 7.3 The Shortest Route Problem Computer Solution with Excel (2 of 4) Total hours First constraint; =A6+A7+A8 Constraint for node 2; =A6-A9-A10 Decision variables

21 7-21 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Exhibit 7.4 The Shortest Route Problem Computer Solution with Excel (3 of 4) One truck leaves node 1, and one truck ends at node 7 Flow constraints

22 7-22 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Exhibit 7.5 The Shortest Route Problem Computer Solution with Excel (4 of 4) One truck flows out of node 1; one truck flows into node 7

23 7-23 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.11 Network of possible cable TV paths The Minimal Spanning Tree Problem Definition and Example Problem Data Problem: Connect all nodes in a network so that the total of the branch lengths are minimized.

24 7-24 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (1 of 6) Figure 7.12 Spanning tree with nodes 1 and 3 Start with any node in the network and select the closest node to join the spanning tree.

25 7-25 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (2 of 6) Figure 7.13 Spanning tree with nodes 1, 3, and 4 Select the closest node not presently in the spanning area.

26 7-26 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (3 of 6) Figure 7.14 Spanning tree with nodes 1, 2, 3, and 4 Continue to select the closest node not presently in the spanning area.

27 7-27 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (4 of 6) Figure 7.15 Spanning tree with nodes 1, 2, 3, 4, and 5 Continue to select the closest node not presently in the spanning area.

28 7-28 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (5 of 6) Figure 7.16 Spanning tree with nodes 1, 2, 3, 4, 5, and 7 Continue to select the closest node not presently in the spanning area.

29 7-29 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Approach (6 of 6) Figure 7.17 Minimal spanning tree for cable TV network Optimal Solution

30 7-30 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Solution Method Summary 1.Select any starting node (conventionally, node 1). 2.Select the node closest to the starting node to join the spanning tree. 3.Select the closest node not currently in the spanning tree. 4.Repeat step 3 until all nodes have joined the spanning tree.

31 7-31 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Minimal Spanning Tree Problem Computer Solution with QM for Windows Exhibit 7.6

32 7-32 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.18 Network of railway system The Maximal Flow Problem Definition and Example Problem Data Problem: Maximize the amount of flow of items from an origin to a destination.

33 7-33 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.19 Maximal flow for path 1-2-5-6 The Maximal Flow Problem Solution Approach (1 of 5) Step 1: Arbitrarily choose any path through the network from origin to destination and ship as much as possible.

34 7-34 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.20 Maximal flow for path 1-4-6 The Maximal Flow Problem Solution Approach (2 of 5) Step 2: Re-compute branch flow in both directions Step 3: Select other feasible paths arbitrarily and determine maximum flow along the paths until flow is no longer possible.

35 7-35 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.21 Maximal flow for path 1-3-6 The Maximal Flow Problem Solution Approach (3 of 5) Continue 0

36 7-36 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.22 Maximal flow for path 1-3-4-6 The Maximal Flow Problem Solution Approach (4 of 5) Continue

37 7-37 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Figure 7.23 Maximal flow for railway network The Maximal Flow Problem Solution Approach (5 of 5) Optimal Solution

38 7-38 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Solution Method Summary 1.Arbitrarily select any path in the network from the origin to the destination. 2.Adjust the capacities at each node by subtracting the maximal flow for the path selected in step 1. 3.Add the maximal flow along the path to the flow in the opposite direction at each node. 4.Repeat steps 1, 2, and 3 until there are no more paths with available flow capacity.

39 7-39 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Computer Solution with QM for Windows Exhibit 7.7

40 7-40 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall x ij = flow along branch i-j and integer Maximize Z = x 61 subject to: x 61 - x 12 - x 13 - x 14 = 0 x 12 - x 24 - x 25 = 0 x 13 - x 34 - x 36 = 0 x 14 + x 24 + x 34 - x 46 = 0 x 25 - x 56 = 0 x 36 + x 46 + x 56 - x 61 = 0 x 12  6 x 24  3 x 34  2 x 13  7 x 25  8 x 36  6 x 14  4 x 46  5x 56  4 x 61  17 x ij  0and integer The Maximal Flow Problem Computer Solution with Excel (1 of 4)

41 7-41 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Computer Solution with Excel (2 of 4) Exhibit 7.8 Objective-maximize flow from node 6 Constraint at node 1; =C15-C6-C7-C8 Constraint at node 6; =C12+C13+C14-C15 Decision variables

42 7-42 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Computer Solution with Excel (3 of 4) Exhibit 7.9

43 7-43 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Computer Solution with Excel (4 of 4) Exhibit 7.10

44 7-44 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Example Problem Statement and Data 1.Determine the shortest route from Atlanta (node 1) to each of the other five nodes (branches show travel time between nodes). 2.Assuming the branches show distance (instead of travel time) between the nodes, develop a minimal spanning tree.

45 7-45 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Step 1 (part A): Determine the Shortest Route Solution 1. Permanent Set Branch Time {1} 1-2[5] 1-35 1-4 7 2. {1,2} 1-3[5] 1-47 2-511 3. {1,2,3} 1-4[7] 2-511 3-47 4. {1,2,3,4} 4-510 4-6[9] 5. {1,2,3,4,6} 4-5[10] 6-513 6. {1,2,3,4,5,6} The Maximal Flow Problem Example Problem, Shortest Route Solution (1 of 2)

46 7-46 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Example Problem, Shortest Route Solution (2 of 2)

47 7-47 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall The Maximal Flow Problem Example Problem, Minimal Spanning Tree 1.The closest unconnected node to node 1 is node 2. 2.The closest to 1 and 2 is node 3. 3.The closest to 1, 2, and 3 is node 4. 4.The closest to 1, 2, 3, and 4 is node 6. 5.The closest to 1, 2, 3, 4 and 6 is 5. 6.The shortest total distance is 17 miles.

48 7-48 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America.


Download ppt "7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7."

Similar presentations


Ads by Google