Last change
on this file since 42 was 42, checked in by Rick van der Zwet, 15 years ago |
Make files look pretty and neat on display
|
-
Property svn:keywords
set to
autocorrelation.m
|
File size:
537 bytes
|
Line | |
---|
1 | % Simulated Annealing low-autocorrelation program
|
---|
2 | % BSDLicence
|
---|
3 | % Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
|
---|
4 | % $Id$
|
---|
5 |
|
---|
6 | %% Basic variables
|
---|
7 | iterations = 100000;
|
---|
8 | length = 20;
|
---|
9 |
|
---|
10 |
|
---|
11 | % Always use the same innitial values
|
---|
12 | s = initseq(length);
|
---|
13 |
|
---|
14 | % Plot the stuff
|
---|
15 | [iteration_history, fitness_history] = sa(s,iterations);
|
---|
16 |
|
---|
17 | plot(iteration_history,fitness_history);
|
---|
18 | title(sprintf('Simulated Annealing on Low-Corretation set'));
|
---|
19 | ylabel('fitness');
|
---|
20 | xlabel('iterations');
|
---|
21 | grid on;
|
---|
22 | legend(sprintf('Length %i',length));
|
---|
23 | print('sa-fitness.eps','-depsc2');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.