Shortest Path Problems

Slides:



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

Linear Programming Problem
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
Introduction to Algorithms
Dynamic Programming In this handout A shortest path example
1 Introduction to Linear Programming. 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. X1X2X3X4X1X2X3X4.
Deterministic Dynamic Programming.  Dynamic programming is a widely-used mathematical technique for solving problems that can be divided into stages.
Lecture 5 Set Packing Problems Set Partitioning Problems
Vehicle Routing & Scheduling Multiple Routes Construction Heuristics –Sweep –Nearest Neighbor, Nearest Insertion, Savings –Cluster Methods Improvement.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
Chapter 3 The Greedy Method 3.
Linear Programming.
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
Math 308 Discrete Mathematics Discrete Mathematics deals with “Separated” or discrete sets of objects (rather than continuous sets) Processes with a sequence.
Math443/543 Mathematical Modeling and Optimization
The Stagecoach Problem
Chapter 7 Network Flow Models.
Linear Programming OPIM 310-Lecture 2 Instructor: Jose Cruz.
Network Flow Models Chapter 7.
Linear Programming Applications
Vehicle Routing & Scheduling: Part 2 Multiple Routes Construction Heuristics –Sweep –Nearest Neighbor, Nearest Insertion, Savings –Cluster Methods Improvement.
MNG221 - 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.
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.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
15.082J and 6.855J and ESD.78J November 2, 2010 Network Flow Duality and Applications of Network Flows.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each decision is locally optimal. These.
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.
7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Introduction to Operations Research
Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
The Supply Chain Customer Supplier Manufacturer Distributor
Graph Theory Topics to be covered:
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 31 Alternative System Description If all w k are given initially as Then,
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
Highway Risk Mitigation through Systems Engineering.
Network Optimization Problems
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Models in I.E. Lectures Introduction to Optimization Models: Shortest Paths.
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.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
EMIS 8374 Network Flow Models updated 29 January 2008.
Traveling Salesman Problem (TSP)
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
Log Truck Scheduling Problem
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
Welcome Unit 6 Seminar MM305 Wednesday 8:00 PM ET Quantitative Analysis for Management Delfina Isaac.
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
Highway Risk Mitigation through Systems Engineering.
Computationally speaking, we can partition problems into two categories. Easy Problems and Hard Problems We can say that easy problem ( or in some languages.
Network Problems A D O B T E C
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.
Algorithms and Networks
Network Models Please carefully study the following examples:
1.206J/16.77J/ESD.215J Airline Schedule Planning
Transportation, Assignment and Network Models
TransCAD Vehicle Routing 2018/11/29.
Introduction to Maximum Flows
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 6 Network Flow Models.
Algorithms and Networks
Maximum Flow Problems in 2005.
Presentation transcript:

Shortest Path Problems Modeling and Applications

Find a path with the lowest radiation

Find a path with the lowest radiation (A nontrivial example)

Shortest Path Problem A general network structure A given node as the source, and another given node as destination Each arc has a cost Decision: find a path from the source to the destination with the minimum total cost The cost of a path is the sum of costs on all arcs on the path 4 1 5 3 6 7 2 Source Destination (3) (5) (2) (1) (7) (8) costs

Shortest Path Modeling Given a particular application (not obviously like a shortest path problem) We construct a shortest path problem To define a network (nodes, arcs, and arc costs) Solving the shortest path problem gives the optimal solution of the application Assuming we know how to solve a shortest path problem

Power Transmission Problem 3% Percentage loss 2 4 2 % 4% 2 % 1 6 3 % 2 % 3 % 3 5 Transmission efficiency = 1 - percentage lost e.g., from node 1 to 3, efficiency = 1-3%=97% Final transmission efficiency received at the destination = multiplication of efficiency along the path. For example, for path 1246, the final transmission efficiency received at node 6 = (1-4%)*(1-3%)*(1-2%)=96%*97%*98%=91.258%.

Relating Power Transmission to Shortest Path Differences Power Transmission Shortest Path Path Evaluation Multiplication of arc efficiency Summation of arc cost Objective A maximization problem A minimization problem Observations: For some positive numbers a1,…,an and b1,…,bm, inequality a1×…×an ≥ b1×…×bm is equivalent to log(a1×…×an) ≥ log(b1×…×bm), further equivalent to log(a1)+…+log(an) ≥ log(b1)+…+log(bm), and finally equivalent to -log(a1)-…-log(an) ≤ -log(b1)-…-log(bm).

Max. Efficiency Power Transmission Convert the % lost into efficiency first as below. 97% 2 4 98 % 96% 98 % 1 6 97 % 98 % 97 % 3 5

Shortest Path Modeling In the network, define the cost of each arc as -log(efficiency) as below. Now we can find the shortest path under the given costs -log(97%) 2 4 -log(98%) -log(96%) -log(98%) 1 6 -log(97%) -log(98%) -log(97%) 3 5

Solution Analysis Possible path 1: 1246 Possible path 2: 1256 {[-log(96%)]+[-log(97%)]+[-log(98%)]}=0.0397 Efficiency = 91.258% Possible path 2: 1256 {[-log(96%)]+[-log(98%)]+[-log(98%)]}=0.0353 Efficiency = 92.198% Optimal path: 1356 {[-log(97%)]+[-log(97%)]+[-log(98%)]}=0.0352 (Min.) Efficiency = 92.208% (Max.)

Another similar example A farmer wishes to transport a truckload of eggs from one city to another city through a given road network. The truck will incur a certain amount of breakage on each road segment Let wij be the percentage of eggs broken if the truck passes the road segment (i,j). How should the truck be routed to minimize the total breakage? Formulate the problem as a shortest path problem.

On-call Driver Schedule for a Bus Co. Duty Hour 9am-1pm 9am-12pm 12nn-3pm 12nn-5pm 2pm-5pm 1pm-4pm 4pm-5pm Cost (HKD) 300 260 210 450 200 160 Available on-call driver shifts and costs in the above table Requirement: At least one on-call driver is on duty any time from 9am to 5pm. Question: the minimum-cost schedule

Shortest Path Model Time 9 10 11 12 1 2 3 4 5 Model: each node corresponds to a time point, each arc to a possible shift Justification: Each path from 9 to 5 corresponds to a feasible schedule, e.g., path 9145 means a schedule (9am-1pm)+(1pm-4pm)+(4pm-5pm) A feasible schedule with overlapped shifts: (9-12)+(12-3)+(2-5) ??? represented by path 912325

Schedule 1: 9am1pm,1pm4pm,4pm5pm, cost=HKD720 Duty Hour 9am-1pm 9am-12pm 12nn-3pm 12nn-5pm 2pm-5pm 1pm-4pm 4pm-5pm Cost (HKD) 300 260 210 450 200 160 30 300 260 200 160 260 Time 9 10 11 12 1 2 3 4 5 450 210 Schedule 1: 9am1pm,1pm4pm,4pm5pm, cost=HKD720 Schedule 2: 9am1pm,12nn5pm, cost=HKD750 Schedule 3: 9am1pm,1pm4pm, 2pm5pm, cost=HKD760 Which is the shortest path?

Dynamic Shortest Paths Suppose that the time it takes to travel in arc (i, j) depends on when one starts. (e.g., rush hour vs. other hours in road networks.) Let cij(t) be the time it takes to travel in (i, j) starting at time t. What is the minimum time it takes to travel from node 1 to node n starting at 7:00 AM? Start time arc travel time in minutes 7 7:10 7:20 7:30 7:40 7:50 … (1,2) 20 30 (1,3) 10 (2,3) (3,4)

Time expanded network (time-space network) (1,2) 10 20 … (1,3) (2,4) (3,4) 30 7 7:10 7:20 7:30 7:40 7:50 … 1 2 3 4 The shortest path from 1 to 4 depends on when to start. … … Time T 4

Find a path with the lowest radiation Modeling: Partitioning the space as a k*k grid with desired accuracy Between any two points, calculating the total radiation received, assuming direct walking arc costs Finding the shortest path