• Non ci sono risultati.

Genetic Algorithm Algorithm : : introduction

N/A
N/A
Protected

Academic year: 2021

Condividi "Genetic Algorithm Algorithm : : introduction"

Copied!
22
0
0

Testo completo

(1)

Genetic

Genetic Algorithm Algorithm : : introduction

introduction

(2)

The Metaphor The Metaphor

EVOLUTION EVOLUTION

Individual Individual

Fitness Fitness

Environment Environment

PROBLEM SOLVING PROBLEM SOLVING

Candidate Solution Candidate Solution

Quality Quality Problem Problem

(3)

The Ingredients The Ingredients

t t + 1

mutation

recombination reproduction

selection

(4)

The Evolution Mechanism The Evolution Mechanism

„„ Increasing diversity Increasing diversity by genetic operators by genetic operators

„„ mutationmutation

„„ recombinationrecombination

„„ Decreasing diversity Decreasing diversity by selection

by selection

„„ of parentsof parents

„„ of survivorsof survivors

(5)

The The Evolutionary Cycle Evolutionary Cycle

Recombination Mutation Population

Offspring Parents Selection

Replacement

(6)

Domains of Application Domains of Application

„„ Numerical, Combinatorial Numerical, Combinatorial OptimisationOptimisation

„„ System Modeling and IdentificationSystem Modeling and Identification

„„ Planning and ControlPlanning and Control

„„ Engineering DesignEngineering Design

„„ Data MiningData Mining

„„ Machine LearningMachine Learning

„„ Artificial LifeArtificial Life

(7)

Performance Performance

„„ Acceptable performance at acceptable costs Acceptable performance at acceptable costs on a wide range of problems

on a wide range of problems

„„ Intrinsic parallelism (robustness, fault Intrinsic parallelism (robustness, fault tolerance)

tolerance)

„„ Superior to other techniques on complex Superior to other techniques on complex problems with

problems with

„„ lots of data, many free parameterslots of data, many free parameters

„„ complex relationships between complex relationships between parameters

parameters

many (local) optima many (local) optima

(8)

Advantages Advantages

„„

No assumptions on problem space No assumptions on problem space

„„

Widely applicable Widely applicable

„„

Low development & application costs Low development & application costs

„„

Easy to incorporate other methods Easy to incorporate other methods

„„

Solutions are interpretable (unlike NN) Solutions are interpretable (unlike NN)

„„

Can be run interactively, accommodate Can be run interactively, accommodate user proposed solutions

user proposed solutions

„„

Provide many alternative solutions Provide many alternative solutions

(9)

Disadvantages Disadvantages

„„ No guarantee for optimal solution within finite No guarantee for optimal solution within finite timetime

„„ Weak theoretical basisWeak theoretical basis

„„ May need parameter tuningMay need parameter tuning

„„ Often computationally expensive, i.e. slowOften computationally expensive, i.e. slow

(10)

Summary Summary

„„ is based on biological metaphorsis based on biological metaphors

„„ has great practical potentialshas great practical potentials

„„ is getting popular in many fieldsis getting popular in many fields

„„ yields powerful, diverse applicationsyields powerful, diverse applications

„„ gives high performance against low costsgives high performance against low costs

EVOLUTIONARY COMPUTATION:

(11)

Prototyping Prototyping

„„ CompletenessCompleteness in order to absorb the in order to absorb the

differences among specimen that belong to the differences among specimen that belong to the

same class same class

„„ ConsistencyConsistency so as to distinguish among similar so as to distinguish among similar samples belonging to different classes

samples belonging to different classes

Completeness vs. Consistency

(12)

Prototyping Prototyping

„„ By hand:By hand: feasible when the samples to classify feasible when the samples to classify can be thought as noisy instances of a well can be thought as noisy instances of a well--

defined, even if very large, set of models.

defined, even if very large, set of models.

„„ Automatically:Automatically: useful when it is impossible to useful when it is impossible to model an unpredictable amount of variability model an unpredictable amount of variability characterizing the specimen for the considered characterizing the specimen for the considered

application.

application.

By hand vs. Automatically

(13)

Evolutionary

Evolutionary Learning Systems Learning Systems

„„ learnlearn--byby--example processexample process

„„ an efficient mechanism to explore complex an efficient mechanism to explore complex high dimensional feature space

high dimensional feature space

„„ an explicit mechanism to verify the an explicit mechanism to verify the effectiveness of the prototypes

effectiveness of the prototypes

(14)

Genetic

Genetic Learning Learning

Genetic Algorithm

•Genetic operators

•Selection mechanism

Population

•Prototypes set

Environment

•Positive samples

•Negative samples

DISCOVERY

EVALUATION

matching

reward/penalty

(15)

but but

„„ SimpleSimple GAs do notGAs do not allowallow the the evolutionevolution of a set of a set of of prototypesprototypes becausebecause the fitness of the fitness of eacheach

individual

individual isis evaluatedevaluated independentlyindependently fromfrom the the fitness of the

fitness of the otherother onesones..

„„ The task of a GA The task of a GA isis toto optimizeoptimize the the averageaverage value

value of the fitness in the of the fitness in the populationpopulation..

„„ ConsequentlyConsequently, the , the optimaloptimal solutionsolution providedprovided byby suchsuch a a processprocess consistsconsists entirelyentirely of of geneticgenetic

variations

variations of the best of the best prototypeprototype..

(16)

then then

„„ HowHow wewe can allowcan allow the formationthe formation and the and the maintenance

maintenance of of setssets of of prototypesprototypes eacheach solvingsolving different

different partsparts of the problemof the problem at handat hand ??

NICHING NICHING

„„ A A nicheniche isis a a stablestable subsub--populationpopulation of of competingcompeting prototypes

prototypes sharingsharing the the samesame environmentalenvironmental resources.resources.

(17)

Niching

Niching Methods Methods

Crowding

The new offsprings are compared against

similar individuals in the population and replace the ones with lower fitness

Sharing

The individuals in the population are forced to share the resources(resource sharing) or the fitness (fitness sharing).

(18)

Deterministic Crowding Deterministic Crowding

Do n/2 times

Select two parents p1 and p2;

Cross them, yielding s1 and s2;

Apply genetic operators, yielding c1 and c2; If [d(p1,c1)+ d(p2,c2)] ≤ [d(p1,c2)+ d(p2,c1)]

if φ(c1) > φ(p1) replace p1 with c1 if φ(c2) > φ(p2) replace p2 with c2 Else

if φ(c2) > φ(p1) replace p1 with c2 if φ(c ) > φ(p ) replace p with c

(19)

Resource Sharing Resource Sharing

Induces competition for limited Induces competition for limited

resources (e.g. sample of the resources (e.g. sample of the

training set) training set)

for each sample in the training set:

for each sample in the training set:

assign a reward

assign a reward ρρ to each prototype to each prototype covering it

covering it depending on its fitnessdepending on its fitness and the and the total number

total number of competing prototypesof competing prototypes

for each prototype

for each prototype

(20)

Fitness

Fitness Sharing Sharing

„„ Fitness Fitness sharingsharing deratesderates the fitness of the fitness of similarsimilar individuals

individuals withinwithin the populationthe population..

„

„ SharedSharedFitnessFitness φsh,ti) = f(σi)/mti)

„

„ Niche CountNiche Count

„„ Sharing FunctionSharing Function

„ d(σi,σj) is the distance function and is the distance function and δsh is the niche radiusis the niche radius..

) , ( )

mt( i t i j

Pt j

Sh σ

σ

σ = σ

otherwise ) , ( if

0 ) , - (

) 1 , Sh (

sh j

i sh

j i

j i t

δ δ

α σ σ <

σ σ

σ = σ

d sh d

(21)

Summary Summary

„„

motivated by analogy with competition for motivated by analogy with competition for limited resources among members of

limited resources among members of natural populations

natural populations

„„

allow the formation and maintenance of allow the formation and maintenance of sets of prototypes for each class

sets of prototypes for each class

„„

may need parameter tuning may need parameter tuning

NICHING METHODS:

(22)

To To probe probe further further

„„ IEEE IEEE Trans.Trans. On On EvolutionaryEvolutionary ComputationComputation

„„ EvolutionaryEvolutionary ComputationComputation (MIT Press)(MIT Press)

„„ Soft Computing (Springer)Soft Computing (Springer)

„„ Applied Soft Computing (Applied Soft Computing (SpringerSpringer))

„„ Int.Int. ConfConf. on . on EvolutionaryEvolutionary ComputationComputation (ICEC)(ICEC)

„„ GeneticGenetic and and EvolutionaryEvolutionary ComputationComputation Conference

Conference (GECCO)(GECCO)

„„ ParallelParallel ProblemProblem SolvingSolving byby Nature (PPSN)Nature (PPSN)

„„ www.evonet.orgwww.evonet.org

Riferimenti

Documenti correlati

Repick´ y: Towers and permitted trigonometric thin sets, Real Anal. Zygmund: Trigonometric

Performing the basic set operations (i.e., insertion, deletion, membership test and elements enumeration) in the most effective possible way would benefit all algorithms in which

• The Ng model applies boundary layer assumptions for prediction of the dissipation rate and wave number, which results in different trends for higher values of dimensionless

The forecasted time-dependent flood spreading in the protected area, but also the effect of water level reduction (resulting in a reduction of failure probability) to other

The required volumes of construction allow to estimate in less detail volumes of financial resources which have to be spent from means of the city budget and also the

Though SNPs whose probes had more BLAST hits were more likely to be removed during the SNP data curation steps and to be deemed discordant, many were both included and deemed

2 which gives: (left panel) the raw status of the NEMO telescope, as integrated over the whole simulated event and (right panel) the location of the PMTs which are selected by

Figure 8.3 shows the wire chamber anode current at different X-ray tube high voltage and current values.. The 1” sodium iodide was used as X-ray