New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
遗传算法解决TSP问题需要改进 #23
Comments
这是我实验跑出来的结果: |
Now we have a better update using step1: define your problem (data is from your url)
step2: make up UDF and run
step3: plot the result
Looks great! May better set those as default. The old answer: ga_tsp = GA_TSP(func=cal_total_distance, n_dim=num_points, size_pop=300, max_iter=800, prob_mut=0.001)
有所改进,但效果还是比其它算法差。 |
version 0.5.3 has set the above as default GA_TSP |
Thank You! |
感谢你提交的bug,是否允许在未来的正式版本 scikit-opt 1.0 把你列为 contributor 呢? |
使用scikit-opt的遗传算法模型解决TSP问题时,效果好像不理想,比如stplib数据库里面的att48.tsp时,跑出来的结果跟随机的顺序差不多,att48的链接如下:http://elib.zib.de/pub/mp-testdata/tsp/tsplib/tsp/att48.tsp
我的参数设置为:
ga_tsp = GA_TSP(func=cal_total_distance, n_dim=num_points, size_pop=300, max_iter=3000,prob_mut=0.1)
谢谢
The text was updated successfully, but these errors were encountered: