找回密码
 注册
关于网站域名变更的通知
查看: 522|回复: 1
打印 上一主题 下一主题

冠状病毒群体免疫优化算法(CHIO)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2021-3-1 09:55 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
本帖最后由 uperrua 于 2021-3-1 09:56 编辑 $ u( l& r7 y3 }3 b1 L4 _7 u) a

. s* i8 O. o; W7 Y! d( c一、简介
  E# N/ g8 v1 X0 ^) Q* H% _" |5 A) J0 K本文提出了一种新的基于自然启发的人本优化算法:冠状病毒群免疫优化算法(CHIO)。
  ^% Y& y" Z# e/ ~% ?; p7 i# G% \0 C3 I& e: [
In this paper, a new nature-inspired human-based optimization algorithm is proposed which is called coronavirus herd immunity optimizer (CHIO).
  C" Y4 ]) x$ |3 ~! M% b+ e$ ]5 O7 V, E5 W$ _
CHIO的灵感来源于群体免疫概念,作为应对冠状病毒大流行(COVID-19)的一种方法。
, h) J6 M; _$ ^' s0 r+ E
" Q' r1 }* ?$ h, F: @- yThe inspiration of CHIO is originated from the herd immunity concept as a way to tackle coronavirus pandemic (COVID-19).
: ?/ o9 @/ L& o7 R" p1 b
/ k, }# {2 M4 x# ~' E$ s冠状病毒感染的传播速度取决于感染者如何与其他社会成员直接接触。
% G3 S- a# Z8 D3 X! {6 c3 J% b5 F+ t* H
The speed of spreading coronavirus infection depends on how the infected individuals directly contact with other society members.( b  O5 `4 `' `6 B% e) Y: v0 ?

6 g% z% F- C5 ^+ O为了保护其他社会成员免受疾病的侵害,健康专家建议保持社会距离。
2 a  i2 G3 G( ^) |7 T5 U5 p) x+ u4 W2 `- V
In order to protect other members of society from the disease, social distancing is suggested by health experts., e) m9 |- P" x
  ^% [! y8 i* p0 p# S
群体免疫是一种状态,当大多数人免疫时,人群达到这种状态,从而防止疾病传播。
8 N4 U" P- x1 P+ g
: }, B: a, G! L2 W6 {Herd immunity is a state the population reaches when most of the population is immune which results in the prevention of disease transmission./ h( W' u1 }6 B) T) E! _/ m2 x

5 }# v) [7 x% b8 l8 V& a这些概念是根据优化理论建模的。
9 ~; Y0 S' v4 a/ C  s3 T# [8 I
9 Z* f: Y6 S- j2 R, b2 \These concepts are modeled in terms of optimization concepts.0 Y  y) V) I; |* \7 U5 [
1 S8 |7 W% M, P
CHIO模仿了群体免疫策略和社会距离概念。
. [  N$ h0 [- P' R7 h( A2 G7 k
; x* y4 c0 U. E2 ^8 _- `CHIO mimics the herd immunity strategy as well as the social distancing concepts.
; s! q/ S$ w3 S) j8 \
6 x$ l0 o" H- @" H( D! _群体免疫利用了三种类型的个体病例:易感、感染和免疫。
9 r, a% H7 A- p, k/ ~
5 g! P1 h- g. p  PThree types of individual cases are utilized for herd immunity: susceptible, infected, and immuned.6 q: g9 t: e* ?* M' p

$ Q$ k2 _% x7 z! j" Z这是为了确定如何用社会距离策略更新其基因产生的解决方案。
* ~1 Y  N( n7 I0 E0 V; m6 S+ T! o1 a7 c) ?5 x* R
This is to determine how the newly generated solution updates its genes with social distancing strategies.
" t/ Q0 H2 H0 r7 A5 }: ~
6 j5 g1 Y: ^0 N. c" t0 t+ Y$ LCHIO使用23个著名的基准函数进行评估。" X5 P0 I- [; n1 y' Q! `9 n
9 z2 k0 l/ j/ U" Q7 \& R: i3 c
CHIO is evaluated using 23 well-known benchmark functions.
7 B+ W3 M. ?% K( Y0 U
5 R# M3 b( ^/ ]! B1 y4 e, h! C' I首先,研究了CHIO对其参数的敏感性。  t( q6 X' T$ j3 }$ |2 G
7 }* d' t# z( D$ g
Initially, the sensitivity of CHIO to its parameters is studied.& O! l% {" @' k! K  R) S7 c# x
& C; ~6 Q3 K! |" w4 x; T# t. i# s) ]
在此基础上,对现有的七种方法进行了比较评价。
. a/ J5 l1 M2 r) Z9 @) |; i: g1 U* p* K5 n, c6 E8 x# S
Thereafter, the comparative evaluation against seven state-of-the-art methods is conducted.
" X8 M6 v$ X0 _1 r8 i6 \) Q0 j8 b, o' S5 `# j* U, A
通过对比分析,证实了CHIO与其他成熟方法相比,能够产生非常有竞争力的结果。! ]* j& g2 l8 U4 n# }7 K% I

+ w$ h; ]# D9 l# C4 jThe comparative analysis verifies that CHIO is able to yield very competitive results compared to those obtained by other well-established methods.
1 I  Y3 t2 w& V! ]$ J8 A" m9 B* {/ n; t9 Q, }, v6 c: S
为了进一步验证,使用了从IEEE-CEC 2011中提取的三个实际工程优化问题。$ M' d8 w$ k9 S

! @2 z  v' F$ y" |6 a' f) FFor more validations, three real-world engineering optimization problems extracted from IEEE-CEC 2011 are used.
- h* L+ S; g0 p' s
: U4 s/ N3 d' x0 j4 K8 I同样,CHIO被证明是有效的。$ ~' d& M; c+ p, g, E, W
$ _. @9 ?! Q" Y% a$ W: \
Again, CHIO is proved to be efficient.! J/ ?2 _" ~9 i3 ?5 m' h

! U! E& i* A3 Q$ j总之,CHIO是一个非常强大的优化算法,可以用来解决跨各种优化领域的许多优化问题。" Z% W/ K0 s9 r8 O7 w6 {

4 g/ P; d! d: p0 k8 m: g$ kIn conclusion, CHIO is a very poweRFul optimization algorithm that can be used to tackle many optimization problems across a wide variety of optimization domains.
3 E9 h! ~8 w( ~* e  ?, y9 C
7 p+ g% c5 N) A# y* I" ^6 u6 y7 w( Y# M; f二、源代码+ O3 s0 a! m3 F4 R- z/ U
%=======================================================================  T5 ]- A  ^9 r, l
%            Coronavirus herd immunity optimizer (CHIO)
6 K/ m$ G9 y4 S6 }/ |
( f6 _- x7 w, _. i9 t: [% All rights reserved.      
7 z! @- A. ^7 N( h5 G$ U! m8 u%=======================================================================8 x6 d% Y3 ^9 B% r: f1 ~6 F" Q9 z
8 v2 l. ^) I) I9 O- G: X9 T. ^/ I

; R5 s: X0 y! D. A8 Zclear all# C' G( [% P2 F' N. j: W
close all
/ D% x0 g8 h) D. K: Vclc
# }) c' n) O; s# } % W# `2 w$ M9 Y: b% |: ~! `; q& D! f
PopSize=30; %/* The number of Solutions*/
, B- g" K+ l) H. L! v
: c  W, ]$ W+ R6 tMaxAge = 100;
* x  L( y# y8 B  W* J
5 e# T( E% [3 |. ^! T& ?C0 = 1; % number of solutions have corona virus2 U$ b8 N. \, c! O

0 x, ]) i& s% B- B5 LMax_iter=100000; %/*The number of cycles for foraging {a stopping criteria}*/% |/ t$ M5 X6 C, C

8 F6 [$ q& o; {, i0 oSpreadingRate = 0.05;   % Spreading rate parameter
6 E6 {- Z8 L8 V1 v* ~
1 _2 s% w( b+ h" V: j. cruns = 1;%/*Algorithm can be run many times in order to see its robustness*/
; o7 q/ j' u5 Y  T- _; O, H / {5 C# d' p1 k. k9 l7 y+ Q
ObjVal = zeros(1,PopSize);5 x% w8 a+ C! z; [* H9 O9 k

8 b; S) w! s" z( d% i1 VAge = zeros(1,PopSize);, I& Y; n( z/ G; Y, V

# A+ F* n- f2 V5 J1 aBestResults = zeros(runs,1); % saving the best solution at each run# h4 M& |6 ~! H/ E8 c2 X1 K( l

0 N7 b) d4 q/ Yfor funNum=7:7  % fun#1 to fun#23/ t9 V) m1 Q& y' M
    if(funNum==1)+ ^6 M- W, M8 g4 H# Z5 k, U
        Function_name='F1';
" E" s8 @- u0 R' V* x    elseif(funNum==2)
5 l1 D7 B( [" g* O4 k- S        Function_name='F2';
$ T/ J) a/ q5 ~- k0 `6 R) [8 q    elseif(funNum==3)& O5 ~& z6 C! \8 C( e" X
        Function_name='F3';
  b1 j" l7 y" v" ~    elseif(funNum==4)
2 @9 u) H6 ]( j$ `" t( T: S# O0 V0 D        Function_name='F4';
6 y: m- L# Y8 @# {& P5 r    elseif(funNum==5)$ a7 t# i8 ~7 D9 N) [* F
        Function_name='F5';
$ ^. V) C& E" u2 j" ~) l$ m    elseif(funNum==6)
+ r. z; Y7 A: A  d; L        Function_name='F6';
0 i0 l5 L8 Q) C% J0 n    elseif(funNum==7)* D# C6 _# F% W
        Function_name='F7';
. V, R( o7 @/ n3 A" T2 P/ s    elseif(funNum==8)+ o/ d! m5 a' E: l
        Function_name='F8';2 e- v" ]6 t' C6 Q- ~. D! s6 G
    elseif(funNum==9)1 o6 N7 v7 A( W* G6 T
        Function_name='F9';' d0 `- E& a- a7 c8 R! v4 V
    elseif(funNum==10)! _- R: [6 F. B$ x7 t
        Function_name='F10';
9 [3 d3 p) W4 }/ O    elseif(funNum==11)
6 z2 ^! ^: g$ l6 r( J        Function_name='F11';
+ j- w6 `4 l1 e2 Z+ z" M    elseif(funNum==12): N( [0 T) f. X
        Function_name='F12';* E2 h/ U. P$ n# n* }
    elseif(funNum==13)6 V0 W, R4 [0 A& i3 B8 W
        Function_name='F13';9 A1 o& {. S$ X0 [* Z& y
    elseif(funNum==14)* @: ?7 a" E3 r
        Function_name='F14';
& l5 B& D$ o0 f4 m    elseif(funNum==15)
' t0 f* _* z* ~- Z3 i3 ?        Function_name='F15';
# S0 C! m0 N+ \$ l2 J    elseif(funNum==16)
1 Y. v+ \# T0 a+ d        Function_name='F16';
6 F% J9 }) G9 }3 P: ?    elseif(funNum==17)
; c& n( f8 M; P8 F3 L        Function_name='F17';: A6 i7 L: R* ~4 i8 t, D8 H
    elseif(funNum==18)
' |4 {" ?% t# g- P        Function_name='F18';/ X' z+ z0 P$ D* H
    elseif(funNum==19)
- h* H0 p1 @! _' W        Function_name='F19';! p* @+ b- T0 \0 F% i5 ]
    elseif(funNum==20)
+ h( Q8 F: W( ?4 \3 A/ `, |& w        Function_name='F20';' n# L+ S' @$ L, t
    elseif(funNum==21)' N) O& A/ E3 s! S7 r3 c0 M
        Function_name='F21';' }+ d$ H4 o( \# i
    elseif(funNum==22)6 E' v- l1 ]4 l( v6 c
        Function_name='F22';) s/ e; l* c5 u: g: X5 R
    elseif(funNum==23)
( y7 p7 m- g+ z$ b* j& C        Function_name='F23';
8 K3 V9 D' _9 a+ G, D  a! \% l    end! e/ }  k) Z3 f7 @

; W. n' u) R9 Q0 n0 P    % Load details of the selected benchmark function
2 J# _6 f5 Y8 B9 ]  h0 G    [lb,ub,dim,fobj]=Get_Functions_details(Function_name);
* N1 F$ Q% J3 Y
% C- Y3 m* [9 _/ z' j+ D    for run = 1: runs
2 [; ], E  S! Y3 V$ Z9 }        % Initializing arrays" |- U( d! h8 G+ W
        swARM=zeros(PopSize,dim);
% H) [: R9 _  Q( P+ D! @* ]4 o, H* ]1 ]        
+ ]1 c* L6 }1 H, ?0 B        % Initialize the population/solutions5 ]0 S2 z- ^, U2 r5 H# a" c
        swarm=initialization(PopSize,dim,ub,lb);' L8 \- H- ^5 k9 l2 m5 N
, y8 ^/ U2 `- g% w3 A0 j0 F, `. y
        for i=1: PopSize,
7 r# H! i4 @1 Y, y7 ~, g) p. N7 y          ObjVal(i)=fobj(swarm(i,: ));- @) }  N' G% A# `6 a. Y2 h
        end9 Q1 u4 u2 S4 i2 `0 {3 f" p: b$ ~
        $ k3 ^7 P) ~* k) \
        Fitness=calculateFitness(ObjVal);" d% h4 [7 C* N( i% I
        
' `  w* [' g* ^) S( I* v        & T: Z5 B  b; _2 Z! U9 k: t# k' ]
        %% update the status of the swarms (normal, confirmed) 1 t) K  j  A8 d5 R* y
        %%the minmum C0 Immune rate will take 1 status which means ( B4 a* u: `. e/ {8 o
        %%infected by corona 8 x4 I, x+ U  G# W; `" N
0 P; Y! A* U( z3 ~  \! a0 f
        Status=zeros(1,PopSize);' B+ Z' Q5 d) |6 s+ K" ^' x3 T
        
& u3 W/ b" ]- [$ K: X5 d        for i=1: C0,& }* Y: L/ h4 {/ U. C
            Status(fix(rand*(PopSize))+1)=1;  
: z, ?: N8 G4 _4 y4 t& o        end# Z3 F* e" z+ F4 u/ S1 C% h- J
        
) ?6 b9 @/ P& b      %===================== loop ===================================
0 q% l  s6 r2 s8 R: F: z3 P) L      tic
: R: U' I& ?+ t+ A      
# x3 \- p, M2 s7 Y6 I% J5 V      itr=0;   % Loop counter$ w& e9 v+ C" p6 x! u$ j( F
& q/ B( c: P/ b9 V7 ^
      while itr<Max_iter
6 }. H* X" N/ r         
1 T; h" X; Q8 |  F          for i=1: PopSize,
9 E. o- z1 U2 k% X3 m2 L4 a           
4 n6 b3 O" t5 F2 a1 D1 S: p* e# K              %evaluate new solution( v" A- J" c( Q$ ~& Y$ Y
              ObjValSol=fobj(NewSol);0 ?& P5 t; k" f* J7 L% m* F7 d+ x
              FitnessSol=calculateFitness(ObjValSol);
+ s1 Z$ @8 Q% e9 T              
* j8 I# Z$ G  L: O6 c7 c              % Update the curent solution  & Age of the current solution! S9 b1 s4 D' I
              if (ObjVal(i)>ObjValSol) / J2 e* p! @! I: U
                swarm(i,: )=NewSol;
# t6 j+ z: O' k  T: C* A  C                Fitness(i)=FitnessSol;
$ Q: a7 U4 X! `                ObjVal(i)=ObjValSol;& k' ?, C, x! F- W$ v- N
              else) }* l1 C; @! j
                  if(Status(i)==1)
- N- |1 E4 _' y& N& \0 P9 b                      Age(i) = Age(i) + 1;
5 L' m3 f- m; y/ c: \                  end
! i6 C+ x: T) @. F3 ?: F              end            9 _/ |! x7 a* e
                           5 _2 t% j& Y7 z6 h# e
              % change the solution from normal to confirmed! L( P; z; j+ B* k) q$ l
              if ((Fitness(i) < mean(Fitness))&& Status(i)==0 && CountCornoa>0)% l0 V+ Z; k# m- v4 o0 A; }+ `: }
                  Status(i) = 1;
# f5 o% z' G' W                  Age(i)=1;: L8 B$ G/ O; c' a! E, w
              end, M  K: a0 P9 O" @& ]+ c
              ' v+ A: o0 r' j. f' e% o. s
              % change the solution from confirmed to recovered
) _9 S* j  [* j+ L# u6 e- O4 R              if ((Fitness(i) >= mean(Fitness))&& Status(i)==1)
, [5 Z2 q' x8 W0 U  Z                  Status(i) = 2;
2 `, e7 H+ T! H( |1 X                  Age(i)=0;* B0 U: G2 G. J8 G, b: m/ S% G5 r
              end! Z* a; |0 f# c; K1 S$ A$ I
              
1 q8 h1 u4 a% Y# p              % killed the current soluion and regenerated from scratch5 n* F9 `+ b2 j" [! g$ f9 g
              if(Age(i)>=MaxAge)
+ C& d) |! l3 T$ [& A                  NewSolConst = initialization(1,dim,ub,lb);
3 X6 d9 B1 ^3 N: y7 O" f                  swarm(i,: ) = NewSolConst(: );  K8 z- `2 S9 P/ L$ w6 N
                  Status(i) = 0;) x* o3 |2 A! y
              end! `6 k$ F+ c5 X& p
          end
/ I( T3 i) Q$ u" M! ]               
- |3 {& U' p$ G# }$ ], Z! q7 w          if(mod(itr,100)==0)
2 N. @+ E; f$ ^6 B2 g/ `7 D             display(['Fun#',num2str(funNum),' Run#', num2str(run), ', Itr ', num2str(itr), ' Results ', num2str(min(ObjVal))]);
8 O* N8 i/ B. ?& q          end
* \- f0 G: ]4 y 5 Y5 M0 Q! D4 A( ~4 a
          itr=itr+1;    # s; o& s( X: G( r) p
      end' w% M3 V% t1 x$ n
      
( \4 _$ E& o8 S+ S' L0 W      toc;
, `3 ]: N% c  x* U    # o# W8 u3 B1 }" ~8 l
      % Save the best results at each iteration
" \  c1 u+ y8 @4 }6 H+ k' b. }* G      BestResults(run)=min(ObjVal);
  U) S8 N9 s4 Y! G* g7 X$ |* C
- @# }6 i+ f' e; A: B    end % run( c: W# F& W, ?5 V8 G5 d
  5 R3 f4 d; w2 ]' X3 Q6 B
    fprintf(1, '\n\n Done \n\n');
5 b- g8 n8 I' `  8 z9 m, o$ v4 a0 w# ^% S
end
0 Y5 V# Z/ }4 N4 U* C7 u三、运行结果
- B0 _, s) u9 D" X# M" c

该用户从未签到

2#
发表于 2021-3-1 10:54 | 只看该作者
冠状病毒群体免疫优化算法(CHIO)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-23 23:30 , Processed in 0.171875 second(s), 26 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表