Ignore:
Timestamp:
Dec 18, 2009, 1:43:33 AM (15 years ago)
Author:
Rick van der Zwet
Message:

Report finished = sleep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • liacs/nc/low-correlation/mcs-call.m

    r43 r46  
    77% best_20 = [-1,1,1,-1,-1,-1,1,1,-1,1,-1,-1,-1,1,-1,1,1,1,1,1];
    88
    9 % Basic variables
    10 iterations = [1:10:200];
    11 repetitions = 20;
    12 length = 20;
     9%% Basic variables
     10iterations = 1000;
     11length = 222;
     12repetitions = 1;
    1313
    1414% Plot the stuff
    15 fitnesses = [];
    16 for iteration = iterations
    17   fitness = [];
    18   for rep = 1:repetitions
    19     fprintf('Iter:%i, Rep:%i\n',iteration,rep);
    20     [new_fitness, value] =  mcs(length,iteration);
    21     fitness = [fitness, new_fitness];
     15[iteration_history, fitness_history] = mcs(length,iterations);
    2216
    23     % Little hack to display output nicely
    24     % disp(rot90(value,-1));
    25   end
    26   fitnesses = [fitnesses,mean(fitness)];
    27 end
    28 
    29 plot(iterations,fitnesses);
     17plot(iteration_history,fitness_history);
    3018title(sprintf('Monte-Carlo Search on Low-Corretation set - repetitions %i',repetitions));
    3119ylabel('fitness');
     
    3321grid on;
    3422legend(sprintf('Length %i',length));
    35 print('mcs-fitness.eps','-depsc2');
     23print(sprintf('mcs-fitness-%f.eps',max(fitness_history)),'-depsc2');
     24max(fitness_history)
    3625
Note: See TracChangeset for help on using the changeset viewer.