Advertisement
hugol

Untitled

Mar 31st, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.21 KB | None | 0 0
  1.     for i=1:nosobnikow
  2.         if (rand() < pMut)
  3.             x = floor(rand()*nmiast+1);
  4.             y = floor(rand()*nmiast+1);
  5.             tmp = newpop(i , x );
  6.             newpop(i , x) = newpop(i, y);
  7.             newpop(i , y) = tmp;
  8.         end  
  9.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement