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

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

Temp sync

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