小言_互联网的博客

Impact of Problem Decomposition on Cooperative Coevolution

187人阅读  评论(0)

0、论文背景

本文在CCVIL的基础上,讨论了问题的分解效果对于CC框架的影响。由于VIL本身是一项计算成本昂贵的任务,因此应该避免在VIL上花费过多的时间而对CCEA没有显著的好处。我们进行实证研究来解决三个密切相关的问题: 1)更好的问题分解会导致更好的CCEAs性能?2)何时改进问题分解会有利于CCEAs?3)改进问题分解会在多大程度上提高CCEAs的性能

Chen W, Tang K. Impact of problem decomposition on cooperative coevolution[C]//2013 IEEE Congress on Evolutionary Computation. IEEE, 2013: 733-740.

1、问题提出的动机

有关CCVIL,请参见博客:CCVIL

1)检测更多可变的交互是否一定会导致ccea的更好的性能?这是第一个问题。需要找到这个问题的答案,为进一步探索更好的VIL方法奠定基础。

2)什么时候检测更多的可变交互作用可以有利于CCEA?

问题分解导致原始问题的过度简化,从而将CCEA陷入到局部最优;合并两组变量形成一个更大的组,使新的子问题更难解决,CCEA需要更长的时间才能收敛。因此,我们假设检测更多的内在变量交互作用并不总是能提高CCEA的性能,所以提出了第二个问题。

3)检测更多变量交互的好处到底是什么?提出该问题的原因是为检测更多可变的交互作用付出代价真的值得吗?

2、实验的设置

本文将所有变量之间的关系放到数组中,数组的元素只有0或1,0表示变量之间不存在关系,1表示变量之间存在交互作用。该数组大小为,N表示变量个数。

接下来我们需要定义一个变量作为量化人为制造交互变量程度:。它表示在中有多大比例的数组元素是根据CEC2010中分组的具体状况确定的,而其他比例的数组元素全部设置为0。

具体的实验流程如下:

3、实验的结果与分析

首先将设置为0%~100%。实验结果如下:

 得出如下结论:

  • 结合先验分组知识通常可以提高CCEA的性能。然而,提高似乎主要在区间内有用[0%,10%]。
  • 最优问题分解不一定会产生最佳解。因此,第一个问题的答案是:检测更多的可变相互作用可以帮助CCEA找到更好的解决方案,但这并不总是正确的。
  • 关于更差的问题分解的假设有时可以得到质量更好的解,这也被验证。

接着将设置为0%~10%。实验结果如下:

  得出如下结论:

  • 检测更多可变的相互作用几乎总是能增强CCEA。
  • 只使用10%的先验知识,就可以提高适应度的几个数量级。至少在一定程度上,努力学习可变的互动确实是值得的。

 得出如下结论:

给定为9%,相应的分解策略,产生约25个亚种群,已经非常接近最优的,应该有20个亚种群。这就是为什么的进一步提高在提高CCEA的性能方面几乎没有取得什么进展的原因。

从实验数据中可以得出以下结论:

  • 检测更多的可变相互作用通常有利于CCEAs,但也可能恶化CCEAs的性能。
  • 当获得的关于内在变量交互作用的知识不足(少于总交互作用的10%)时,了解更多的内在变量交互作用确实会单调地提高ccea的性能。
  • 通过仅检测10%的关于变量交互作用的知识,由CCEA得到的解的适应度可以提高几个数量级。

4、实验的实现与简单验证


  
  1. function CG=CellG(A,ng)
  2. % 函数输入为A为邻接矩阵,ng为所含最少智能体个数的连通分量,如ng为2则输出含智能体个数大于等于2的连通分量;
  3. G=graph(A);
  4. [bin,binsize] = conncomp(G);
  5. b=find(binsize>=ng);
  6. [~,m]=size(b);
  7. CG=cell(m,1);
  8. if m>0
  9. for i=1:m
  10. [~,com]=find(bin==b(i));
  11. CG(i,1)={com};
  12. end
  13. end
  14. end

  
  1. clc; clearvars; close all;
  2. addpath( 'CEC2010\')
  3. addpath( 'CEC2010\datafiles\');
  4. addpath( 'CEC2010\javarandom\bin\');
  5. addpath( 'CEC2010\javarandom\src\');
  6. truegroup = load( 'f14_opm.mat', 'p');
  7. truegroup = truegroup.p;
  8. global initial_flag
  9. NS = 100; % 种群数
  10. dim = 1000; % 种群维度
  11. upperBound = [100, 5, 32, 100, 5, 32, 100, 100, 100, 5, 32, 100, 100, 100, 5, 32, 100, 100, 100, 100];
  12. lowerBound = [-100, -5, -32, -100, -5, -32, -100, -100, -100, -5, -32, -100, -100, -100, -5, -32, -100, -100, -100, -100];
  13. bestYhistory = []; % 保存每次迭代的最佳值
  14. matrix = zeros(dim, dim); % 真实变量之间的关系矩阵
  15. for i0 = 1 : 20
  16. start = (i0 - 1) * 50 + 1;
  17. Ends = i0 * 50;
  18. for i2 = start : Ends
  19. for i3 = (i2 + 1) : Ends
  20. matrix(truegroup(i2), truegroup(i3)) = 1;
  21. matrix(truegroup(i3), truegroup(i2)) = 1;
  22. end
  23. end
  24. end
  25. matrix1 = zeros(dim, dim); % 辅助查找行号列号矩阵
  26. ss = 1;
  27. for i5 = 1 : dim
  28. for i6 = (i5 + 1) : dim
  29. matrix1(i5, i6) = ss;
  30. ss = ss + 1;
  31. end
  32. end
  33. sumA = dim * (dim - 1) / 2;
  34. Aintr = randperm(sumA);
  35. pr = ceil(0.2 * sumA);
  36. Prior = Aintr(1 : pr);
  37. priormatrix = zeros(dim, dim); % 部分交互变量之间的关系矩阵
  38. for i4 = 1 : pr
  39. A = Prior(i4);
  40. [row, col] = find(matrix1 == A);
  41. priormatrix(row, col) = matrix(row, col);
  42. priormatrix(col, row) = matrix(col, row);
  43. end
  44. groupInfor=CellG(priormatrix,1);
  45. s = size(groupInfor, 1); % 子控件数目
  46. for funcNum = 14
  47. initial_flag = 0; % 换一个函数initial_flag重置为0
  48. sampleX = lhsdesign(NS, dim) .* (upperBound(funcNum) - lowerBound(funcNum)) + lowerBound(funcNum) .* ones(NS, dim); % 生成NS个种群,并获得其评估值
  49. lastSampleX = sampleX;
  50. sampleY = benchmark_func(sampleX, funcNum);
  51. [bestY, bestIndex] = min(sampleY); % 获取全局最小值以及对应的种群
  52. lastBestY = bestY;
  53. bestX = sampleX(bestIndex, :);
  54. bestYhistory = [bestYhistory; bestY];
  55. evalue = 60;
  56. while evalue < 3 * 10 ^ 6
  57. for i1 = 1 : s
  58. group = groupInfor{i1};
  59. dim = size(group,2);
  60. NPi = dim + 10;
  61. Geni = dim + 5;
  62. index = randperm(NS);
  63. subX = sampleX(index(1:NPi), group);
  64. [subX, subY] = JADE(subX, sampleY(index(1:NPi)), bestX, group, Geni, dim, lowerBound(funcNum), upperBound(funcNum), @(x)benchmark_func(x, funcNum));
  65. evalue = evalue + NPi * Geni;
  66. sampleX(index(1:NPi), group) = subX;
  67. sampleY(index(1:NPi)) = benchmark_func(sampleX(index(1:NPi), :), funcNum);
  68. evalue = evalue + NPi;
  69. [bestY, bestIndex] = min(sampleY); % 获取全局最小值以及对应的种群
  70. bestX = sampleX(bestIndex, :);
  71. end
  72. bestYhistory = [bestYhistory; bestY];
  73. fprintf( 'evalue:%d\n', evalue);
  74. end
  75. end
  76. plot(bestYhistory);
  77. save( '20%bestYhistory.mat', 'bestYhistory');

​​​​​​​

 如有错误,还望批评指教!


转载:https://blog.csdn.net/qq_42148307/article/details/128205680
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场