Huyen Chau Nguyen
7587e97d46
use typedefs from typedefs.h
...
return roundtrip result as a return parameter and not as an input parameter
2015-09-01 15:20:34 +02:00
Huyen Chau Nguyen
3061c8b854
solve merge conflicts
2015-09-01 15:20:34 +02:00
Huyen Chau Nguyen
77e9e95067
fix bugs
...
and add todos of code review session with daniel-j-h
2015-09-01 15:20:33 +02:00
Chau Nguyen
6191b6bee2
add parameter to choose algorithm for tsp calculation and remove redundant code
2015-09-01 15:20:33 +02:00
Chau Nguyen
b15f8f68e4
refactor and improve the round trip computation of multiple SCCs
...
Problem:
- old solution was slow
- depending on the result of TarjanSCC, new distance tables and new phantom node vectors were created to run tsp on it
Solution:
- dont create new distance tables and phantom node vectors
- pass an additional vector with the information which locations are in the same component and ignore all others
fix bug for scc split computation
2015-09-01 15:20:33 +02:00
Chau Nguyen
84c12793e8
clean up some code
2015-09-01 15:20:33 +02:00
Chau Nguyen
6eeadddd4d
remove attention on unaccessible locations as we filter them beforehand
2015-09-01 15:20:33 +02:00
Chau Nguyen
a40b3a98dc
split algorithms in different plugins for better evaluation
...
split tsp brute force algorithm for better testing
refactor and clean up
2015-09-01 15:20:33 +02:00
Chau Nguyen
f0d66ff0fb
move implementation of algorithms to own hpp in routing_algorithms folder
...
add changes to improve readability
2015-09-01 15:20:33 +02:00
chaupow
ebbe1692c8
add description of farthest insertion algorithm
...
add farthest insertion algorithm for round trip
farthest insertion: always add the node that add the biggest distance to the total route
farthest insertion: remove total distance computation and compute only diff instead
2015-09-01 15:20:33 +02:00
chaupow
ca7d406787
add timer to check runtime of round trip algorithm
2015-09-01 15:20:33 +02:00
chaupow
a2dc8378f5
rename result_table to dist_table
2015-09-01 15:20:33 +02:00
chaupow
b570e89dbd
capsule tsp round trip computation in a private method
2015-09-01 15:20:32 +02:00
chaupow
108f87678a
fix bugs and add comments
...
rename subroute to via_point
merge is_lonely_island and is_connected to make code easier to understand
2015-09-01 15:20:32 +02:00
chaupow
00146ae87c
add support for locations that are not reachable as well as information about location permutaton
2015-09-01 15:20:32 +02:00
chaupow
e3757fbbfa
add round trip plugin with greedy approximation
2015-09-01 15:20:32 +02:00