fitv=ranking(objv,[2,1],subpop);%分配适度值
selch=selet(selfun,chorn,fitv,ggap,subpop);%选择
recch=recombin(xovfun,selch,xovr,subpop);%重组
mutch=mutate(mutfun,recch,fieldDD,mutr,subpop);%变异
objvoff=objfun(mutch);%计算目标函数值
[chorm,objv]=reins(chorm,mutch,subpop,[1indr],objv,objvoff);%替代