|
Algorithm 1
|
Improved-ACO (Global Planning)
|
| Input |
Grid map, start s, goal g, ACO parameters |
| Output |
best_path, best_cost |
| 1 |
Initialize pheromone on all feasible edges. |
| 2 |
Precompute distance field and fused heuristic . |
| 3 |
Set best_cost , no_improve . |
| 4 |
for to do |
| 5 |
|
| 6 |
. |
| 7 |
to do |
| 8 |
. |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
end for |
| 13 |
then |
| 14 |
; rerun this iteration |
| 15 |
if still infeasible then return failure |
| 16 |
end if |
| 17 |
Find best individual
|
| 18 |
best_cost then |
| 19 |
|
| 20 |
else |
| 21 |
no_improve +1 |
| 22 |
end if |
| 23 |
added only on edges of
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
then |
| 28 |
|
| 29 |
|
| 30 |
end if |
| 31 |
end for |
| 32 |
return best_path, best_cost |