% Simulated Annealing low-autocorrelation program % BSDLicence % Rick van der Zwet - 0433373 - % $Id: sa-call.m 46 2009-12-18 01:43:33Z rick $ %% Basic variables iterations = 10000; length = 222; % 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(sprintf('sa-fitness-%f.eps',max(fitness_history)),'-depsc2'); max(fitness_history)