source: liacs/nc/low-correlation/sa-call.m@ 39

Last change on this file since 39 was 39, checked in by Rick van der Zwet, 15 years ago

Make it run properly (iterations vs fitness)

File size: 530 bytes
Line 
1% Simulated Annealing low-autocorrelation program
2% BSDLicence
3% Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
4
5%% Basic variables
6iterations = 100000;
7length = 20;
8
9
10% Always use the same innitial values
11s = initseq(length);
12
13% Plot the stuff
14[iteration_history, fitness_history] = sa(s,iterations);
15
16plot(iteration_history,fitness_history);
17title(sprintf('Simulated Annealing on Low-Corretation set'));
18ylabel('fitness');
19xlabel('iterations');
20grid on;
21legend(sprintf('Length %i',length));
22print('sa-fitness.eps','-depsc2');
Note: See TracBrowser for help on using the repository browser.