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

📄 color_kit.h

📁 C语言开发的微粒群优化算法源程序
💻 H
字号:
/*
NOTE: NOT all these programs are simultaneously useful.
Some of them have more or less the same function.
They are here for test purpose
*/


struct particle 	admissible_color(struct particle part,struct matrix M,int option,int cmax);
int					check_color(struct color color,struct matrix, struct dplus dplus);
struct velocity 	coeff_times_vel_color(float coeff,struct velocity vel,struct matrix M);
struct position		color_0(struct matrix M,struct dplus dplus,struct position color,struct param param);
struct position		color_3(struct matrix M,struct dplus dplus,struct position color,struct param param);
struct position		color_6(struct matrix M,struct dplus dplus,struct position color0,int trace);
struct position		color_8(struct position color,struct matrix M,struct dplus dplus,int trace);
struct position		color_8_1(struct position color,struct matrix M, struct dplus dplus,int trace,struct param param,struct model model);
struct position 	color_local_search(struct position pos,struct param param,struct model model);
struct position		color_shift (struct position pos);
struct position		convert_color_to_position(struct color color);
struct position		convert_position(struct position pos); // Just for display
struct color		convert_position_to_color(struct position pos);
int					diff_color(struct position color);
struct vector		diff_color_list(struct position color);
void 				display_matrix(struct matrix M);
float				energy_color (struct position color,struct matrix M,struct dplus dplus,float f0,float f1);
struct particle		gener_particle_color(struct swarm sw,int part_rank,struct param param,struct model model);
struct position 	init_color_1(struct matrix M, struct dplus dplus,int cmin,int cmax);
struct particle		init_particle_color(struct param param, struct model model, struct matrix M, struct dplus dplus,int type);
int					max_color_rank(struct position pos);
struct particle		minimize_color(struct particle part, int cmax);
struct particle 	minimize_constraint(struct particle part);
struct matrix 		read_matrix_color(FILE *f_data, float used_constr);
float				tot_color(struct position pos,struct matrix M,int cmax,int save);
float 				tot_color_proj(struct position pos,struct matrix M,int cmax,struct position pos0);
struct velocity 	update_vel_color(struct position pos,struct velocity v0,struct velocity v2,float alpha,float b);
struct velocity 	update_vel_color2(struct position pos,struct velocity v0,struct velocity v2,float alpha,float b,int cmax);

⌨️ 快捷键说明

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