GA代码.docVIP

  • 8
  • 0
  • 约11.8万字
  • 约 19页
  • 2016-11-06 发布于河南
  • 举报
GA代码

GA代码 /***************************************************************/ /* This is a simple genetic algorithm implementation where the */ /* evaluation function takes positive values only and the */ /* fitness of an individual is the same as the value of the */ /* objective function */ /***************************************************************/ #include stdio.h #include stdlib.h #include math.h /* Change any of these parameters to match your needs */ #define POPSIZE 50 /* population size */ #define MAXGENS 1000

文档评论(0)

1亿VIP精品文档

相关文档