% Simulated Annealing low-autocorrelation program % BSDLicence % Rick van der Zwet - 0433373 - %% 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');