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.m

    r43 r46  
    88% autocorrelation(best_20);
    99
    10 function [fitness,value] = mcs(length, iterations)
     10function [iteration_history,fitness_history] = mcs(length, iterations)
     11  iteration_history = [];
     12  fitness_history = [];
     13
    1114  best_fitness = 0;
    12   for i = 1:iterations
     15  for iteration = 1:iterations
    1316    % Generate a random column s={-1,1}^n
    1417    n = length;
     
    2326      best_fitness = fitness;
    2427    end
     28    iteration_history = [ iteration_history, iteration ];
     29    fitness_history = [ fitness_history, best_fitness ];
    2530  end
    26   fitness = best_fitness;
    27   value = best_value;
    2831end
Note: See TracChangeset for help on using the changeset viewer.