% Simulated Annealing low-autocorrelation program % BSDLicence % Rick van der Zwet - 0433373 - % $Id: sa-call.m 45 2009-12-18 00:12:15Z rick $ %% Basic variables iterations = 10000; 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');