% Simulated Annealing low-autocorrelation program
% BSDLicence
% Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
% $Id: sa-call.m 43 2009-12-17 22:18:48Z rick $

%% Basic variables
iterations = 100000;
length = 20;


% Always use the same innitial values
s = initseq(length);

% Plot the stuff
[iteration_history, fitness_history] = sa(s,iterations);

plot(iteration_history,fitness_history);
title(sprintf('Simulated Annealing on Low-Corretation set'));
ylabel('fitness');
xlabel('iterations');
grid on;
legend(sprintf('Length %i',length));
print('sa-fitness.eps','-depsc2');
