-
Notifications
You must be signed in to change notification settings - Fork 76
End node same as starting node #2
Comments
Hello,
I'm glad you're thinking of using my code.
I'll try to give a bit of help, but I can't promise much. Since I completed
the project I've started work in a graduate program. I have end of term
projects to complete and other projects to start after that. I may not be
able to help going forward. In addition, I haven't worked with the code in
quite a few years, so I may not remember exactly how it works to give
advice.
Given that, I think the best way to do what you're asking, might be to hard
code a move by each ant back to the starting node. For instance, I think
the tour stops if the ant has no more nodes to go to, so if you can detect
that state and have it complete a transition back to the start node I think
that might do it. A simpler way might be to update the pheromones during
the pheromone update step such that there are extra pheromones between the
end node and the beginning node, which would symbolize the ant making a
move between the two. If you were looking for the ant to retrace its steps
through the map to each node it visited during the tour. That could be done
by adding extra pheromones to that trail as well, symbolizing the ant going
back the way it came.
I hope that helps. Best of luck.
…--P
On Sat, Mar 24, 2018 at 6:47 AM, isha1990 ***@***.***> wrote:
Hi,
Can you please assist as to how can I modify the code to complete the tour
by making the ant come back to the starting node in the end.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AF_2Zybx7Xo5AR5-d62yEQRYK7PQEHDYks5thkB7gaJpZM4S5uNH>
.
|
Hi,
Thanks for your valuable suggestion. Wish you the very best for your future
endeavours.
Regards,
Isha
…On Sat 24 Mar, 2018, 3:16 PM pjmattingly, ***@***.***> wrote:
Hello,
I'm glad you're thinking of using my code.
I'll try to give a bit of help, but I can't promise much. Since I completed
the project I've started work in a graduate program. I have end of term
projects to complete and other projects to start after that. I may not be
able to help going forward. In addition, I haven't worked with the code in
quite a few years, so I may not remember exactly how it works to give
advice.
Given that, I think the best way to do what you're asking, might be to hard
code a move by each ant back to the starting node. For instance, I think
the tour stops if the ant has no more nodes to go to, so if you can detect
that state and have it complete a transition back to the start node I think
that might do it. A simpler way might be to update the pheromones during
the pheromone update step such that there are extra pheromones between the
end node and the beginning node, which would symbolize the ant making a
move between the two. If you were looking for the ant to retrace its steps
through the map to each node it visited during the tour. That could be done
by adding extra pheromones to that trail as well, symbolizing the ant going
back the way it came.
I hope that helps. Best of luck.
--P
On Sat, Mar 24, 2018 at 6:47 AM, isha1990 ***@***.***>
wrote:
> Hi,
>
> Can you please assist as to how can I modify the code to complete the
tour
> by making the ant come back to the starting node in the end.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2>, or
mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/AF_2Zybx7Xo5AR5-d62yEQRYK7PQEHDYks5thkB7gaJpZM4S5uNH
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af40oMOpmaGLjmIyd-niVxGWceYLrbebks5thmMvgaJpZM4S5uNH>
.
|
Have you solve this problem? |
I have downloaded your ACO, but how to run your codes for the given test_codes as given in README, give me step by step procedure |
GoviPandu: Here's to code here, just copy-paste it :) from threading import Thread class ant_colony:
|
hi,i have downloaded the code, but i cannot see the results. would you please help me with how to run the code? i will appreciate that |
Hi,
Can you please assist as to how can I modify the code to complete the tour by making the ant come back to the starting node in the end.
The text was updated successfully, but these errors were encountered: