Last change
on this file since 395 was 43, checked in by Rick van der Zwet, 15 years ago |
I mean keywords ;-)
|
-
Property svn:keywords
set to
Id
|
File size:
228 bytes
|
Line | |
---|
1 | % Simulated Annealing low-autocorrelation program
|
---|
2 | % BSDLicence
|
---|
3 | % Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
|
---|
4 | % $Id: mutation.m 43 2009-12-17 22:18:48Z rick $
|
---|
5 |
|
---|
6 | function new = mutation(old)
|
---|
7 | loc = randint(1,length(old));
|
---|
8 | old(loc) = old(loc) * -1;
|
---|
9 | new = old;
|
---|
10 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.