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

# DefaultEDA_OneMax

## PURPOSE

EXAMPLE 1: One Max Funtion. Default parameters

## SYNOPSIS

This is a script file.

## DESCRIPTION

     EXAMPLE 1: One Max Funtion. Default parameters

## 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 1: One Max Funtion. Default parameters
    0002
    0003   PopSize = 300; n = 45; cache  = [0,0,0,0,0]; Card = 2*ones(1,n); edaparams = {};
    0004   F = 'sum'; % Onemax function;
    0005   [AllStat,Cache]=RunEDA(PopSize,n,F,Card,cache,edaparams)