0001
0002
0003 global HPInitConf;
0004 HPInitConf = [zeros(1,12),1,0,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,zeros(1,12)];
0005
0006
0007 PopSize = 1000; NumbVar = size(HPInitConf,2); cache = [1,1,1,1,1]; Card = 3*ones(1,NumbVar); maxgen = 300;
0008
0009
0010
0011 Cliques = CreateMarkovModel(NumbVar,2);
0012
0013 F = 'EvaluateEnergy';
0014 edaparams{1} = {'learning_method','LearnFDA',{Cliques}};
0015 edaparams{2} = {'sampling_method','SampleFDA',{PopSize}};
0016 edaparams{3} = {'repairing_method','HP_repairing',{}};
0017
0018 edaparams{4} = {'stop_cond_method','max_gen',{maxgen}};
0019 [AllStat,Cache]=RunEDA(PopSize,NumbVar,F,Card,cache,edaparams)
0020
0021
0022
0023 vector = AllStat{maxgen,2}
0024 PrintProtein(vector)