⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swarm_tools.h

📁 离散粒子群算法(Discrete PSO)C语言源代码。 附带有利用D-PSO解决旅行商问题(TSP)的代码可作为使用时的Demo参考
💻 H
字号:
struct particle 		init_particle(struct graph G);
struct swarm			init_swarm(int size, struct graph G,int trace);
//int						no_hope(struct swarm sw,int swarm_size, int adaptive,float nohope,int hood);
struct swarm 			reduce_swarm(struct swarm sw);
//struct swarm			re_hope(struct swarm sw,int swarm_size,int trace,int auto_move_type,int monotony,int levelling);
void					save_swarm(FILE *file,struct swarm sw);
struct swarm			sw_arcs(struct swarm sw);
double                        tot_vel(struct swarm sw);
//float					threshold(struct particle best,struct val val,struct graph G);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -