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

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

Make it run properly (iterations vs fitness)

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