区间多因子多目标算法IMFEA

本算法改自论文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 秒。 

程序:IMFEA

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

浅忆孤寂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值