Home > Mateda2.0 > ScriptsMateda > OptimizationScripts > MOA_Deceptive3.m

# MOA_Deceptive3

## PURPOSE

EXAMPLE 3: MOA algorithm with exponential selection for Goldberg's deceptive function

## SYNOPSIS

This is a script file.

## DESCRIPTION

     EXAMPLE 3: MOA algorithm with exponential selection for Goldberg's deceptive function

## CROSS-REFERENCE INFORMATION

This function calls:

- RunEDA [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams)

This function is called by:

## SOURCE CODE

    0001  % EXAMPLE 3: MOA algorithm with exponential selection for Goldberg's deceptive function
    0002  PopSize = 500; n = 30; cache  = [0,0,0,0,0]; Card = 2*ones(1,n); Temp = 1.0;
    0003  F = 'evalfuncdec3';
    0004  edaparams{1} = {'replacement_method','elitism',{10,'fitness_ordering'}};
    0005  edaparams{2} = {'selection_method','exp_selection',{2}};
    0006  MK_params(1:5) = {{},8,1.5,'Boltzman_linear',1.0};
    0007  edaparams{3} = {'learning_method','LearnMOAModel',MK_params};
    0008  edaparams{4} = {'sampling_method','MOAGeneratePopulation',{PopSize,10}};
    0009  [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams)