EXAMPLE 5: Gaussian UMDA for the continuous sum function in the interval [0,5]
0001 % EXAMPLE 5: Gaussian UMDA for the continuous sum function in the interval [0,5] 0002 PopSize = 500; n = 30; Card(1,:) = zeros(1,n); Card(2,:) = 5*ones(1,n); 0003 F = 'sum'; 0004 edaparams{1} = {'learning_method','LearnGaussianUnivModel',{}}; 0005 edaparams{2} = {'sampling_method','SampleGaussianUnivModel',{PopSize,1}}; 0006 edaparams{3} = {'replacement_method','elitism',{1,'fitness_ordering'}}; 0007 edaparams{4} = {'selection_method','prop_selection',{2}}; 0008 [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams)