?? mutationreverse.m
字號:
function path=MutationReverse(path,Pm)
[row,col]=size(path);
childpath=path;
for i=1:row
point=randperm(col)-1;
point1=min(point(1),point(2));
point2=max(point(1),point(2));
tempP=rand(1);
if(tempP<Pm)
for j=point1+1:point2
childpath(i,j)=path(i,(point2+point1+1-j));
end
end
end
path=childpath;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -