智能优化算法
subtask
hello
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
遗传算法(GA)解决旅行商(TSP)问题
以下是GA(遗传算法)解决TSP(旅行商问题)源码:#include <iostream> #include <vector> #include <ctime> #include <algorithm> #include <cmath> using namespace std; #define INF 1000 typedef struct individual{ vector<int> c原创 2016-03-29 13:07:07 · 4293 阅读 · 0 评论 -
粒子群(PSO)解决TSP问题
粒子群算法也称粒子群优化算法,简称PSO(Partical Swarm Optimization)。 以下是求解TSP问题的源码:#include <vector> #include <time.h> #include <stdlib.h> #include <iostream> #include <math.h> #include <fstream> using namespace std; #原创 2016-03-28 22:21:35 · 14091 阅读 · 1 评论
分享