使用粒子群优化算法解决旅行商问题 [英] Solving Travelling Salesman problem by using particle swarm opimization

查看:284
本文介绍了使用粒子群优化算法解决旅行商问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有人可以使用粒子群优化算法(PSO)来帮助我解决TSP吗?

谢谢

Hi all,

Can anyone help me solve the TSP by using the particle swarm optimization algorithm (PSO)?

Thanks

推荐答案

您必须考虑没有人愿意帮助您欺骗最后一年的项目的可能性.正如我之前所说,网络上有源代码, http://www.adaptivebox. net/CILib/code/tspcodes_link.html [ ^ ]是一个示例.您不应该使用此功能,因为完成最后一年的任务是您应该编写自己的代码.但是,如果您不能做到这一点,那么您至少应该学到足够的知识来阅读一些基本的C语言,以便查看此代码并了解其工作原理.如果您甚至不能做到这一点,那么您就不值得通过.自从您已经问过4-5次以来,您肯定已经花了整整一天左右​​的时间,尝试使用您可以在google上找到的资源,或者与您的老师交谈,或者思考基本问题并规划您的方式'' d编写代码来处理它.一遍又一遍地发布相同的问题,希望有人能像您一样传递给您源代码,这并不是达到应有的程度的方法.
You have to consider the possibility that no-one wants to help you cheat with your final year project. As I''ve said before, there''s source code on the web, http://www.adaptivebox.net/CILib/code/tspcodes_link.html[^] is one example. You should not be using this, because the point of your doing a final year assignment is that you should write your own code. However, if you can''t do that, you should at least learn enough to read some basic C in order to look at this code and understand how it works. If you can''t even do that, then you don''t really deserve to pass. You could certainly have spent the day or so since you asked this 4-5 times already, trying to use the resources that you can find with google, or talking to your teachers, or thinking about the basic problem and mapping out how you''d write code to handle it. Posting the same question over and over, hoping someone will give you source code to pass in as your own, is not a way to get to a point where you deserve to pass your course.


这篇关于使用粒子群优化算法解决旅行商问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆