1 / 30

Network Models (2)

Network Models (2). Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology. Ballston Electric Assembly line - Inspection. Products transported from Assembly line to Inspection are for Quality Control.

stacie
Download Presentation

Network Models (2)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Network Models (2) Tran Van HoaiFaculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai

  2. Ballston ElectricAssembly line - Inspection Products transported from Assembly line to Inspection are for Quality Control Which assembly line should be assigned to which inspection area (to minimize a given objective)? Tran Van Hoai

  3. Time to transport a unit of product from assembly line to inspection Time difference mainly comes from the distance difference among pair <assembly line-inspection area> Tran Van Hoai

  4. Formulation Define a set of decision variables Xij, which mean 1 if Line i is assigned to Inspection j Xij = 0 otherwise Tran Van Hoai

  5. Assignment networksDefinition • Can be solved by • Enumeration • LP • Transportation model • Dynamic programming • Branch-and-bound • Hungarian algorithm • m workers are to be assigned to m jobs • Unit cost Cij for worker i performing job j • Goal: to minimize total cost of assignment Tran Van Hoai

  6. Advanced issues (1) • Number of workers ≥ number of jobs • Worker constraint changed from “=” to “≤” • A worker can perform ≥ 1 jobs • Minimization changed to maximization • Additional constraints • Line 1 cannot be assigned to Inspection B • X12=0 • If Line 1 is assigned to Inspection B, then Line 2 must be assigned to Inspection D Tran Van Hoai

  7. Advanced issues (2) • Additional constraints • If Line 1 is assigned to Inspection B, then Line 2 must be assigned to Inspection D • X12 ≤ X24 • At least one in Lines {1,3,4} is assigned to Inspection E • X15+X35+X45=1 Tran Van Hoai

  8. Generalized assignment model Tran Van Hoai

  9. Marriage service ASSIGNMENT Each man only assigned to one woman Pair assignment requires a operational cost GOAL: to find a match having minimum total cost Tran Van Hoai

  10. Shortest path problem • n nodes, a starting node (source), an ending node (destination) • Arcs connecting adjacent nodes with non-negative distances dij • GOAL: to find a shortest path from source to destination 100 1 2 150 151 75 6 42 3 5 71 25 67 11 22 4 7 89 8 52 Tran Van Hoai

  11. Solution methods • Dijkstra • Only works for non-negative arc weight • Bellman-Ford • To find shortest path from a source to all other nodes • Works with non-negative arc weight (provided that there is no negative weighted cycle) • Floyd–Warshall • To find shortest path between all node pairs Not easy to include additional constraints (for non-IT users) Tran Van Hoai

  12. LP-based approach Define a set of decision variables Xij, which mean 1 if arc ij is utilized Xij = 0 otherwise Tran Van Hoai

  13. Tran Van Hoai

  14. Shortest path 100 1 2 150 151 75 6 42 3 5 71 9 25 67 22 4 7 89 8 52 Tran Van Hoai

  15. Additional constraints • Not go through node 5 X25 = X35 = X45 = X57 = 0 Don’t have to remove node 5 • Node 4 must be on the path X45+X47= 1 100 100 1 1 2 2 150 150 151 151 75 75 6 6 42 42 3 3 5 5 71 71 9 9 25 25 67 67 22 22 4 4 7 7 89 89 8 8 52 52 Tran Van Hoai

  16. Additional constraints • If node 7 on path, then node 3 must on path X35 + X34 – X78 ≥ 0 • … 100 1 2 150 151 75 6 42 3 5 71 9 25 67 22 4 7 89 8 52 Tran Van Hoai

  17. Maximal flow model • one source node, generating flows • one terminal node, depositing flows • flow in = flow out on intermediate nodes • capacity Cij on arc from i to j • GOAL: to find maximum flow out of source to terminal, without exceeding arc capacities Tran Van Hoai

  18. Maximal flow problem 10 1 2 12 15 7 6 5 3 5 7 4 6 3 2 4 7 8 8 5 Tran Van Hoai

  19. LP-based approach • Xij: flow from node i to node j (if arc ij exists) Tran Van Hoai

  20. Tran Van Hoai

  21. Maximal flow problem 10 1 2 7 12 15 5 7 7 6 5 3 5 7 5 6 7 4 3 2 5 4 5 7 8 8 5 Tran Van Hoai

  22. Cuts in maximal flow problem CUT (all flow from 1 → 8 must cross CUT) 10 1 2 7 12 15 5 7 7 6 5 3 Maximal flow (12) ≤ C25 + C26 + C35 + C45 + C47 (34) 5 7 5 6 7 4 3 2 5 4 5 7 Sum of arc capacities on the cut provides upper bound for maximal flow 8 8 5 Tran Van Hoai

  23. Max flow/Min cut theorem • The value of max flow = the sum of capacities of min cut • The flow of all arcs on min cut will be at their upper bound Tran Van Hoai

  24. Traveling salesman network • NP-Hard (cannot be solved in polynomial time) • Connectivity network model • m nodes • unit cost Cij utilizing arc from i to jGOAL: to find a minimum cost tour (cycle) visiting all nodes (not twice) Tran Van Hoai

  25. Solution methods Define a set of decision variables Xij, which mean 1 if arc ij is utilized Xij = 0 otherwise • Enumerating all possible tour (cycle) (m-1)! tours for m nodes in symmetric TSP • LP-based approach Tran Van Hoai

  26. Federal Emergency Managament Agency 25 2 1 40 40 45 50 30 3 H 65 50 35 80 4 Tran Van Hoai

  27. Assignment constraints • Sum of arcs used out of each node is 1 X11 + X12 + X13 + X14 + X15 = 1 • Sum of arcs used into each node is 1 X11 + X21 + X31 + X41 + X51 = 1 25 2 1 40 40 45 50 30 3 INVALID SOLUTION H 65 50 35 80 4 Need constraints to remove subtours Tran Van Hoai

  28. Subtour constraints • One-node subtour constraints X11, X22, X33, X44, X55 ≤ 0 • Two-node subtour constraints X12 + X21 ≤ 1, … • Three-node subtour constraints X12 + X23 + X31 ≤ 2, … • Four-node subtour constraints X12 + X23 + X34 + X41 ≤ 3, … Tran Van Hoai

  29. Vehicle routing problem • Generalized TSP Tran Van Hoai

  30. Minimum spanning tree network • Read textbook Tran Van Hoai

More Related