Last change
on this file since 105 was 46, checked in by Rick van der Zwet, 15 years ago |
Report finished = sleep
|
-
Property svn:keywords
set to
Id
|
File size:
692 bytes
|
Rev | Line | |
---|
[28] | 1 | % Monte-Carlo Search Algoritm on low-autocorrelation program
|
---|
| 2 | % BSDLicence
|
---|
| 3 | % Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
|
---|
[42] | 4 | % $Id: mcs-call.m 46 2009-12-18 01:43:33Z rick $
|
---|
[28] | 5 |
|
---|
[30] | 6 | % Brute-force result of length 20
|
---|
| 7 | % best_20 = [-1,1,1,-1,-1,-1,1,1,-1,1,-1,-1,-1,1,-1,1,1,1,1,1];
|
---|
| 8 |
|
---|
[46] | 9 | %% Basic variables
|
---|
| 10 | iterations = 1000;
|
---|
| 11 | length = 222;
|
---|
| 12 | repetitions = 1;
|
---|
[28] | 13 |
|
---|
[31] | 14 | % Plot the stuff
|
---|
[46] | 15 | [iteration_history, fitness_history] = mcs(length,iterations);
|
---|
[31] | 16 |
|
---|
[46] | 17 | plot(iteration_history,fitness_history);
|
---|
[31] | 18 | title(sprintf('Monte-Carlo Search on Low-Corretation set - repetitions %i',repetitions));
|
---|
| 19 | ylabel('fitness');
|
---|
| 20 | xlabel('iterations');
|
---|
| 21 | grid on;
|
---|
| 22 | legend(sprintf('Length %i',length));
|
---|
[46] | 23 | print(sprintf('mcs-fitness-%f.eps',max(fitness_history)),'-depsc2');
|
---|
| 24 | max(fitness_history)
|
---|
[31] | 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.