|
Algorithm 1 A heuristic for min-max TDHTSP |
| 1: |
; |
| 2: |
Determine a heterogeneous spanning forest using the proposed primal-dual heuristic. |
| 3: |
for
do
|
| 4: |
Let the connected targets reachable from the depot be a partition and label it as . |
| 5: |
end for
|
| 6: |
For , derive and for within (using an existing routing algorithm). |
| 7: |
|
| 8: |
if
then
|
| 9: |
while
do
|
| 10: |
|
| 11: |
Redetermine a target assignment using the proposed primal-dual heuristic and obtain the partitions . |
| 12: |
for
do
|
| 13: |
Derive and within . |
| 14: |
end for
|
| 15: |
if
is infeasible then
|
| 16: |
break, {comment:
for some } |
| 17: |
else
|
| 18: |
|
| 19: |
if
then
|
| 20: |
|
| 21: |
for
do
|
| 22: |
|
| 23: |
end for
|
| 24: |
end if
|
| 25: |
end if
|
| 26: |
end while
|
| 27: |
else
|
| 28: |
while
do
|
| 29: |
|
| 30: |
Redetermine a target assignment using the proposed primal-dual heuristic and obtain the partitions . |
| 31: |
for
do
|
| 32: |
Derive and within . |
| 33: |
end for
|
| 34: |
|
| 35: |
if
then
|
| 36: |
|
| 37: |
for
do
|
| 38: |
|
| 39: |
end for
|
| 40: |
end if
|
| 41: |
end while
|
| 42: |
end if
|
| 43: |
return
|