Chapter 5 - Technical Tools
Chapter 5 - Technical Tools
Chapter 5 - Technical Tools
TECHNICAL TOOLS IN
Ye a r 2 0 2 4
Email: [email protected]
CHAPTER OBJECTIVES
½ (n-1)!
2. find out the shortest edge connecting the current city and
an unvisited city.
An optimal TSP tour through
3. set the new city as current city.
Germany’s 15 largest cities. It
4. mark the previous current city as visited.
is the shortest among
5. if all the cities are visited, then terminate.
43,589,145,600 possible tours
6. go to step 2.
visiting each city exactly once.
This map shows how to take an epic
road trip across Europe
45 European cities
14 days of driving
Consider a milk van delivering milk to 4 distribution centers (DC) everyday morning as shown below
DC a
2
3 DC b
DEPOT 1 7 miles
10 miles DC c
4
5
DC d
VEHICLE ROUTING AND SCHEDULING
• Nodes: 1 2 3 4 5
DC a • Arcs:
2 • Tour:
DC b 1→2→3→4→5→1
3
1→5→4→3→2→1
DEPOT
1 7 miles • Feasibility: Minimum-cost solution or any other
criterion like time or distance traveled is subject to
DC a
To node (distances in miles)
2 From
node
3 DC b
1 2 3 4 5
DEPOT
1 7 miles 1 - 12 3 12 10
2 12 - 8 10 4
10 miles 4 DC c
3 3 8 - 7 6
5
DC d
4 12 10 7 - 16
5 10 4 6 16 -
Nearest-Neighbor Algorithm (NNA)
Practice 1:
1 - 12 3 12 10
2 12 - 8 10 4
3 3 8 - 7 6
4 12 10 7 - 16
5 10 4 6 16 -
1→3→5→2→4→1
➔ The length of the tour is 35 miles
Cheapest-Link Algorithm (CLA)
Practice 2:
Practice 3:
Practice 4:
Practice 5:
Practice 6:
• Using NNA, CLA to find out the shortest route which goes through 5 cities, then see which result is
optimal.
• Assuming they take a tour bus and the group can only perform each site once.
• You are the manager of this boy group, given on hand a chart which indicates miles between places. You plan to
use the NNA method to find the shortest concert tour for the group. And then calculate the gas cost they have to
spend on this concert tour.
TRAVELLING SALESMAN PROBLEM (TSP)
Practice 8: Plan the US concert tour for Taylor Swift
Kansas Tinley
Bethlehem Camden Detroit Lincoln Milwaukee Pittsburgh Rochester St. Paul
city Park
Kansas city 1109 1129 764 - 195 567 841 1051 441 489
Lincoln 1241 1268 786 195 - 562 969 1110 434 513
Milwaukee 827 854 382 567 562 - 552 693 329 119
Pittsburgh 289 309 289 841 969 552 - 284 861 457
Rochester 287 345 325 1051 1110 693 284 - 1001 597
St. Paul 1136 1163 690 441 434 329 861 1001 - 423
Tinley Park 732 759 277 489 513 119 457 597 423 -
TRAVELLING SALESMAN PROBLEM (TSP)
• Assuming they take a tour bus and can only perform each site once.
• They outsource you to do this task, given on hand a chart which includes all the stops they have made
with their tour bus. The mileage between each city is listed in the chart. You want to use the CLA method
to find the optimal tour route. And then calculate the gas cost they have to spend on this tour.
TRAVELLING SALESMAN PROBLEM (TSP)
Practice 9: Plan the US tour for a manufacturing company
Des Moines 850 - 194 1793 1078 1788 1713 248 1770 1235
Kansas City 980 194 - 1801 1125 1795 1720 441 1850 1319
Philadelphia 375 1078 1125 2872 - 2863 2788 1159 2835 223
Portland 2637 1788 1795 629 2863 - 581 1737 143 3022
St. Paul 932 248 441 1969 1159 1737 1888 - 1681 1312
Tacoma 2608 1770 1850 772 2835 143 722 1681 - 2991
Uncasville 438 1235 1319 3028 223 3022 2948 1312 2991 -
THANK YOU