第15章メタヒューリスティクス
放送授業の遺伝的アルゴリズムの数値例をRのGAパッケージでやってみる
参考
http://rstudio-pubs-static.s3.amazonaws.com/13578_fb1794c413a249d5bb891932c8cf34e9.html
  | 
  | 
Genetic Algorithm
GA settings:
Type                  =  permutation
Population size       =  400
Number of generations =  200
Elitism               =  20
Crossover probability =  0.95
Mutation probability  =  0.02   
GA results:
Iterations             = 200
Fitness function value = 0.1649443
Solutions              =
   x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18
[1,] 15 14 13 12 11 10  9  8  7   6   5   4   3   2   1  30  29  28
[2,] 18 17 16 15 14 13 12 11 10   9   8   7   6   5   4   3   2   1
   x19 x20 … x30
[1,]  27  26      16
[2,]  30  29      19
  | 
  | 
[1] 6.271708
[1] 6.283185

ちなみに
nc <- 57
r<-1000  
でやってみたら、
[1] 12.34934
[1] 6.283185
でした。
