EXAMPLE 4: Aff_EDA with proportional selection and elitism 1
0001 % EXAMPLE 4: Aff_EDA with proportional selection and elitism 1 0002 PopSize = 500; n = 30; cache = [0,0,0,0,0]; Card = 2*ones(1,n); 0003 F = 'evalfuncdec3'; 0004 edaparams{1} = {'replacement_method','elitism',{1,'fitness_ordering'}}; 0005 edaparams{2} = {'selection_method','prop_selection',{2}}; 0006 Aff_params(1) = {8}; 0007 edaparams{3} = {'learning_method','LearnMargProdModel',Aff_params}; 0008 edaparams{4} = {'sampling_method','SampleFDA',{PopSize}}; 0009 [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams) 0010