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

# TreeFDA_Deceptive3

## PURPOSE

EXAMPLE 17: Goldberg's deceptive function; Tree EDA algorithm

## SYNOPSIS

This is a script file.

## DESCRIPTION

     EXAMPLE 17: Goldberg's deceptive function; Tree EDA algorithm
                Proportional selection

## 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 17: Goldberg's deceptive function; Tree EDA algorithm
    0002 %            Proportional selection
    0003
    0004  PopSize = 500; n = 60; cache  = [0,0,0,0,0]; Card = 2*ones(1,n);
    0005  F = 'evalfuncdec3';
    0006  edaparams{1} = {'replacement_method','elitism',{10,'fitness_ordering'}};
    0007  edaparams{2} = {'selection_method','prop_selection',[]};
    0008  edaparams{3} = {'learning_method','LearnTreeModel',{}};
    0009  edaparams{4} = {'sampling_method','SampleFDA',{PopSize}};
    0010
    0011  [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams)