本算法改自论文J. Yi, J. Bai, H. He, W. Zhou and L. Yao, “A multifactorial evolutionary algorithm for multitasking under interval uncertainties,” IEEE Trans. Evol. Comput., vol. 24, no. 5, pp. 908-922, Oct. 2020.
可以同时运行优化两个区间优化问题,需要启动并行计算,时间略长。
区间的相关知识,可参考区间多目标优化算法IP-MOEA_浅忆孤寂的博客-CSDN博客
IMFEA
main
%% DTLZ1-DTLZ2 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
clear;clc;
name1 = 'DTLZ1';
name2 = 'DTLZ2';
num_of_runs=1; %设置总的运行次数
pop1 = 105;
pop2 = 105;
gen= 600;
nVar1= 7;
nVar2 = 12;
for runs = 1:num_of_runs %独立运行num_of_runs次
fprintf('总循环次数:%d\n',runs)
[metric_staticIP,archive_staticIP]=IMFEA(name1,name2,nVar1,nVar2,pop1,pop2,gen,runs);
staticIP_metric(runs,1).in=metric_staticIP;
staticIP_archive(runs,1).staticIP=archive_staticIP;
end
str = strcat(name1,'_',name2,'_metric_staticIP','.mat');
save(str,'staticIP_metric');
str=strcat(name1,'_',name2,'_archive_staticIP','.mat');
save(str,'staticIP_archive');
运行结果
指标值
运行时间
总循环次数:1
DTLZ1DTLZ2_循环次数:1
Starting parallel pool (parpool) using the 'local' profile ...
Connected to the parallel pool (number of workers: 6).
MFEA-II Generation = 100 rmp = 0
MFEA-II Generation = 200 rmp = 0.0055336
MFEA-II Generation = 300 rmp = 0.0093282
MFEA-II Generation = 400 rmp = 0
MFEA-II Generation = 500 rmp = 0.0067123
MFEA-II Generation = 600 rmp = 0.44633
历时 477.903895 秒。