TianZhendong
6 years ago
committed by
GitHub
1 changed files with 10 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
function [y1,y2] = crossover(acr_position,x1,x2) |
|||
%交叉 |
|||
for i=1:acr_position |
|||
temp = x1(i); |
|||
x1(i)=x2(i); |
|||
x2(i)=temp; |
|||
end |
|||
y1=x1; |
|||
y2=x2; |
|||
end |
Loading…
Reference in new issue