遗传算法求解f(x)=xcosx+2最大值.docVIP

  • 10
  • 0
  • 约1.38万字
  • 约 16页
  • 2016-01-10 发布于安徽
  • 举报
--(完美WORD文档DOC格式,可在线免费浏览全文和下载)值得下载!

遗传算法求解f(x)=xcosx+2的最大值 其中在尺度变换部分应用到了类似模拟退火算法部分,所有变量均使用汉语拼音很好懂 //中国电子科技集团公司 //第一研究室 //呼文韬 //hu_hu605@163.com //随机初始种群 //编码方式为格雷码 //选择方法为随机遍历 //采用了精英保存策略 //采用了自适应的交叉率和变异率 //采用了与模拟退火算法相结合的尺度变换 //采用了均匀交叉法 #include stdlib.h #include stdio.h #include math.h #include iostream.h #include iomanip.h #include time.h #include windows.h #define IM1 2147483563 #define IM2 2147483399 #define AM (1.0/IM1) #define IMM1 (IM1-1) #define IA1 40014 #define IA2 40692 #define IQ1 53668 #define IQ2 52774 #define IR1 12211 #define IR2 3791 #define NTAB 32 #define NDIV (1+IMM1/NTAB) #defin

文档评论(0)

1亿VIP精品文档

相关文档