Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i=1:nosobnikow
- if (rand() < pMut)
- x = floor(rand()*nmiast+1);
- y = floor(rand()*nmiast+1);
- tmp = newpop(i , x );
- newpop(i , x) = newpop(i, y);
- newpop(i , y) = tmp;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement