解TSP问题的遗传算法C语言程序
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define maxpop 100
#define maxstring 100
struct pp{unsigned char chrom[maxstring];
float x,fitness;
unsigned int parent1,parent2,xsite;
};
struct pp *oldpop,*newpop,*p1;
unsigned int popsize,lchrom,gem,maxgen,co_min,jrand;
unsigned int nmutation,ncross,jcross,maxpp,minpp,maxxy;
float pcross,pmutation,sumfitness,avg,max,min,seed,maxold,oldrand[maxstring];
unsigned char x[maxstring],y[maxstring];
float *dd,ff,maxdd,refpd,fm[201];
FILE *fp,*fp1;
float objfunc(float);
void statistics();
int select();
int flip(float);
int crossover();
void generation();
void initialize();
void report();
float decode();
void crtinit();
void inversion();
float random1();
void randomize1();
main()
{unsigned int gen,k,j,tt;
char fname[10];
float ttt;
clrscr();
- c语言算法练习题 > 解TSP问题的遗传算法C语言程序
-
解TSP问题的遗传算法C语言程序
下载该文档 文档格式:DOC 更新时间:2005-11-01 下载次数:0 点击次数:2文档基本属性 文档语言: Simplified Chinese 文档格式: doc 文档作者: lanway 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: Lanway 分类: 创建时间: 上次保存者: 修订次数: 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 段落数: 字节数: 备注: 演示格式: 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- DOC格式下载
- 更多文档...
-
上一篇:江苏省南通航运职业技术学院教案教师姓名
下一篇:"算法练习系统"简介
点击查看更多关于c语言算法练习题的相关文档
- 您可能感兴趣的
- pid算法c语言程序 c语言算法编程100例 c语言经典算法100例 c语言常用算法 c语言快速排序算法 c语言经典算法大全 c语言算法大全 c语言算法 c语言常用算法源代码
- 大家在找
-
- · 2011qq聊天记录查看器
- · 三校名师远程教育网
- · 手机杀毒软件下载jar
- · 安徽生物工程
- · 班主任每周工作小结
- · 大学生创业煽动性文章
- · 电焊工技术革新成果
- · 角架cad图
- · 网游之职业人生txt
- · 锐捷认证客户端win7
- · 尤曼斯神经外科学
- · 2012高考分数线
- · 电大学号简码
- · sopc技术基础教程
- · 中国药典2010年版.pdf
- · 平面连杆机构改进
- · ipad应用程式图标下载
- · 东莞ups快递
- · ps可爱字体包下载
- · 中医养生讲座下载
- · 中南大学毕业生就业
- · 英制圆锥滚子轴承
- · 各高校图书馆照片
- · 监理资料归档目录表格
- · qq空间恩典小窝素材
- · win7iisphp
- · 44hhh.bom
- · revolutionary关闭
- · 从零开始学习英语
- · 癌症晚期疼痛怎么办
- 赞助商链接