other population-based...

46
Metaheuristics - Lecture 8 1 Other population-based metaheuristics IS - Immune Systems DE Differential Evolution PMB - Probabilistic Model Building Algorithms MA Memetic Algorithms

Upload: others

Post on 18-Sep-2019

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 1

Other population-based

metaheuristics

▪ IS - Immune Systems

▪ DE – Differential Evolution

▪ PMB - Probabilistic Model Building Algorithms

▪ MA – Memetic Algorithms

Page 2: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 2

Immune Systems

Short history:

• mid 1980 - first models

• 1990 – Ishida proposes a first application of immune models in problem solving

• mid 1990:

– Forrest et al: applications in computer security

– Hunt et al: applications in data analysis

• Current tendency: back to the biological model

Page 3: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 3

Applications

▪ Anomaly detection and information systems security

▪ Data analysis (classification, pattern recognition, clustering

etc)

▪ Optimization;

▪ Self-organization and autonomous control;

Page 4: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 4

Natural Immune SystemsThe natural immune system contains two main components:

- innate (inherited from the parents) – based on granulocytes (neutrophils, eosinophils si basophils) and macrophages

- Adaptive – based on lymphocytes (B cells and T cells)

Page 5: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 5

Natural immune systemParticularity: active at different levels

Phagocyte

Adaptive immune

response

Lymphocytes

Innate immune

response

Biochemical barriers

Skin

Pathogens

First level

Second level

Third level

Page 6: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 6

Natural immune systems

The adaptive component of the immune system is able to:

- Memorize (ability to recall previous contacts with pathogens and to react quickly)

- Learn (ability to identify/recognize unknown pathogens)

a) Active elements: lymphocytes

- They contain specific receptors able to recognize the antigens (the organisms usually contain a library of millions of receptors)

- There are two types of lymphocytes:

- B cells

- Synthesized in the bone marrow

- Contain receptors called antibodies – the recognition process is based on the complementarity between the binding region of the B cell and the epitope of the antigen

- T cells: Synthesized by thymus

Page 7: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 7

Natural immune system

Main mechanisms

Negative selection: censoring the T cells which recognize the self

components (they define the normal behaviour)

Clonal selection: proliferation and differentiation of cells which

recognized an antigen (learning and generalization)

Affinity maturation: the affinity of B cells which recognized an antigen is

reinforced by

• Mutation on the receptors (the mutation probability inversely correlated

with the affinity)

• The storage of cells with high affinity in a memory (cells pool)

• Removal of the cells with incorrect behavior

Page 8: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 8

Natural immune system

Main mechanisms:

Foreign antigens

Proliferation

(Cloning)

Differentiation

Plasma cells

Memory cellsSelection

M

M

Antibody

Self-antigen

Self-antigen

Clonal deletion(negative selection)

Clonal deletion(negative selection)

Page 9: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 9

Natural immune systemMain steps:

Page 10: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 10

Natural immune systemPrimary and secondary reaction

Antigen Ag1 Antigens Ag1, Ag2

Primary Response Secondary Response

Lag

Response to Ag1

Antibody C

oncentr

ation

Time

Lag

Response to Ag2

Response to Ag1

...

...

Cross-Reactive Response

...

...

Antigen Ag1 + Ag3

Response to Ag1 + Ag3

Lag

Primary reaction: first answer at

the contact with an antigenSecondary reaction: rapid

answer

Page 11: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 11

AIS = Artificial Immune System

Idea of AIS based problem solving:

Problem to be solved = environment

Solution (unknown) = antigen

Approximation of the solution (population element) = antibody

Measure of the quality of an element = affinity

Page 12: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 12

AIS = Artificial Immune System

Main idea of AIS [DeCastro, Timmis, 2002]

Algorithms

Affinity

Representation

Problem

Solution

Binary values

Discrete values

Real values

Symbolic values

Page 13: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 13

AIS = Artificial Immune System

Main idea of AIS[DeCastro, Timmis, 2002]

Algorithms

Affinity

Representation

Problem

Solution

Correlated to a distance

(dissimilarity)

•Euclidean

•Manhattan

•Hamming

Page 14: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 14

AIS = Artificial Immune System

Main idea of AIS [DeCastro, Timmis, 2002]

Algorithms

Affinity

Representation

Application

Solution

Clonal Selection

Negative Selection

Immune Network Models

Positive Selection

Bone Marrow Algorithms

Page 15: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 15

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

CLONALG (Clonal Selection)

Page 16: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 16

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

• Creates a population of

antibodies

• CLONALG (Clonal Selection)

Page 17: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 17

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

For each data (antigen) the steps 1-d are

executed

CLONALG (Clonal Selection)

Page 18: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 18

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”Compute the affinity

a) Data mining pb: affinity is higher if the

similarity is higher

b) Optimization pb: affinity is higher if the fitness

is higher (the fitness is correlated with the

objective function value)

CLONALG (Clonal Selection)

Page 19: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 19

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

• Select n elements from P in decreasing

order of affinity

• Generate for each selected element a

number (proportional to the affinity) of

clones

CLONALG (Clonal Selection)

Page 20: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 20

AIS = Artificial Immune System

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

• Apply mutation to each clone

• The mutation rate is inverse proportional to the affinity

• Add the new element to the population

• Evaluate the affinity for new elements and store the best

element

CLONALG (Clonal Selection)

Page 21: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 21

AIS = Artificial Immune System• CLONALG (Clonal Selection)

Initialization

REPEAT

Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

UNTIL “stopping condition”

• Some of the elements of the population having small

affinity are replaced with random elements

Page 22: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 22

AIS = Artificial Immune SystemApplications of CLONALG

- Pattern recognition = generate “detectors” for the recognition of

characters specified by bitmaps

Rmk: affinity is measured using the Hamming distance

100111101111

101101100101

010010010011

011000010010

101101101101

5

4

3

2

1

p

p

p

p

p

P

Page 23: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 23

AIS = Artificial Immune SystemApplications of CLONALG

- Multi-modal optimization = identify all optima (local and global) of a

function

Page 24: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 24

AIS = Artificial Immune SystemProperties of CLONALG

- The general structure is similar to the structure of an evolutionary

algorithm (instead of fitness is used the affinity)

- The specific elements refer to :

- The cloning process is controlled by the value of the affinity

- The mutation probability is inverse proportional to the affinity

- The low affinity elements are replaced with random elements

Page 25: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 25

AIS = Artificial Immune SystemNegative selection algorithm

- It is based on the pronciple of the discrimination between self and non-self

- The self elements are considered to be representations of the normal

behavior of a system

- The aim of the algorithm is to generate a set of detectors which are

different from the set S of self elements (they would be detectors of non-

self elements – would correspond to anomalous behavior)

- The algorithm will monitor the system functioning and will detect elements

similar to non-self.

Page 26: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 26

AIS = Artificial Immune SystemNegative selection algorithm

Generating the set of detectors

System monitoring

Applications: computer security

(intruders detection) – limited

applicability

Selfstrings (S)

Generaterandom strings

(R0)

Match DetectorSet (R)

Reject

No

Yes

No

Yes

Detector Set(R)

Protected

Strings (S)Match

Non-selfDetected

Page 27: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 27

AIS = Artificial Immune SystemNegative selection algorithm

J.Timmis, P. Andrews, N. Owens, E. Clark – An Interdisciplinary Perspective of

Artificial Immune Systems, Evolutionary Intelligence, Volume 1, Number 1, 5-26,

2008

Page 28: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 28

AIS = Artificial Immune SystemaiNET Algorithm

Initialization

REPEAT

• Antigenic presentation

a. Affinity evaluation

b. Clonal selection and expansion

c. Affinity maturation

d. Metadynamics

e. Clonal suppression

• Network interactions (analysis of interactions between network

antibodies = computation of affinity between pairs of antibodies)

• Network suppression (eliminate the antibodies which are similar to

other antibodies)

• Diversity (insertion of random antibodies)

UNTIL “stopping condition”

Page 29: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 29

AIS = Artificial Immune SystemProperties of aiNET:

• aiNET is similar to CLONALG but it uses a suppression

mechanism based on the affinity between the population elements

• aiNET was initially used for data clustering (but it has difficulty in

the case of arbitrary distributed data)

• aiNET was successfully applied in solving multimodal optimization

problems

Page 30: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 30

AIS = Artificial Immune SystemaiNET - clustering

0 0.2 0.4 0.6 0.8 1

0

0.2

0.4

0.6

0.8

11 1

1

1

1

1

1

111 1

1

1

1

1

1

1

1

1

1

1 1

1

1

1

1

1

1

1

11

1

1

1

1

1

111

1

1

1

1

1

1

11

1

1

1

11 1

11

1

11

1

11

1

111 1

1

1

1

1

1

1

1

1

1

1

1

1

1

11

1

1

1

11

1

1

1

1

1

1

1

1

1

11

1

1

1

1

1

1

11

1

1

1

1

1

1

11

111

1

1

1

11

1

1

1

11

11

111

1 111

1

1

1

1

11

1

1

1

11

1

1

1

1

11

1

11

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

11

1

1

1

11

1

1

11

1

1

1

11

1

1

1

1

1 1

1

11

1

1

1

1

1

1

1

1

1

1

1

1

11

1

11

111

1

1

1

1

1

1

1 11 1

1

1

11

1

1

1

1

1

1

1

1

1

11

1

11

11

11

1

1

1

111

1

11

1

1

1

1

11

1

1

1

1

1

1

1

11

1

1

11

1

1

11

1

1

1

1 1

11

11

1

11

1

1

1

1

1

1

1

1

11

1

11

1

11

1

1

1

1

22

22

2 2222222

22

2222

22

2222222

22

222

2

22

22

2222 2

22

2 222

2 22 2222222

22

22

22

222

2

222

2222 22222222

2

22

22

2222

22

2

222

2

2

33 3

3

33

3

3333

3

3

33

333 33

3

3 33 3333

3

3333

333

3

333 33

3 33333

3

33

3

33

33

33

3

3

33

3

333

3

333

3 33

333333

3

3

3

3 333

33

33

33 3

3

33

333

3

4

4

444 44

444 4

444

44

44

4444

4

44444

444

44 4

4

44444

44

444

4

44

44

4

444

4

44

44 44

4

44

44 4 4

4

44

444

4 44

44

44

4

44444

444

4

4

4

4

4

4

4

4

4

4

555

5 5

5

5

5

555

55

5

55

555

555

55 5555

55

55

5

5

55

5555 555555 5555

55555

5

55

555

5555

5 5

5

55555555

55

555

5 55

5

5

555 5

5555

555

5

5566 66 66 6666

77

77777777

77777

7777777777

777777777

7777777777

77777777

7

888888

888888

8888888

8888888

888888888

8888888

88888

8888888

888

Training Patt erns

Training Pattern Result immune network

Page 31: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 31

AIS = Artificial Immune SystemaiNET - multimodal optimization

Initial population

Final population

Page 32: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 32

Differential Evolution (DE)Creators: Rainer Storn & Kenneth Price (1995)

Aim: continuous optimization

Idea: for each element of the current population:

• Randomly select 3 elements

• The mutation is based on the computation of the difference between two of the three selected elements; the difference(multiplied by a scale factor) is added to the third element. The obtained element is called mutant

• The mutant element is recombined with the current element leading to the so-called trial element

• If the trial element is better than the current element then it replaces it

Page 33: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 33

Differential Evolution (DE)

Problem: maximization of f:DRn→R

r2

r3

r1

-F x+

i

candidate (Y)

Selection of the best

element

Random elements

]10( ]20(

m}{1,..., from indices random

1y probabilitwith ,

y probabilitwith ),(

population new–

vectors)(trial

candidates of population–

populationcurrent –

321

1

1

1

321

,p,,F

,r,rr

px

pxxFxy

},z,{zZ

},y,{yY

},x,{xX

j

i

j

r

j

r

j

rj

i

m

m

m

)()(,

)()(,

iii

iiii

yfxfy

yfxfxz

Page 34: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 34

Differential Evolution (DE)

Variants

population theofelement best

1y probabilitwith ,

y probabilitwith ),()1(

*

* 321

x

px

pxxFxxy

j

i

j

r

j

r

j

r

j

j

i

px

pNxxFxy

j

i

j

r

j

r

j

rj

i1y probabilitwith ,

y probabilitwith ),1,0()(321

px

pxxFxxFxy

j

i

j

r

j

r

j

r

j

r

j

rj

i1y probabilitwith ,

y probabilitwith ),()(54321 21

Taxonomy: DE/base element/number of differences/crossover type

(e.g. DE/rand/1/bin, DE/rand/2/bin, DE/best/1/bin etc.)

Page 35: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 35

Differential Evolution (DE)

Control parameters:

Scale factor (F):

- range: (0,2)

- small values: exploitation of the search space (local search)

can lead to premature convergence

- large values: exploration of the search space

Typical value: F=0.5

Crossover probability:

- small values (<0.5): appropriate for separable problems

- large values (>0.5): appropriate for nonseparable problems

Typical value: p=0.9 (rmk: the crossover probability is frequently

denoted by CR)

Page 36: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 36

Differential Evolution (DE)

Adaptive DE = the parameters F and p are modified during the

generations based on:

▪ Historical records of successful trial elements - in this case each

element in the population has its own values for F and p

▪ Random perturbation

▪ Selection out of a pool of possible values

Examples:

▪ jDE (J. Brest, 2006)

▪ JADE (Zhang & Sanderson, 2009)

▪ SHADE (Tanabe & Fukunaga, 2013)

Page 37: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 37

Differential Evolution (DE)

jDE overview:

▪ each element (xi) in the population has its own values for F and p

(Fi and pi )

▪ If a trial element is successful (better than the parent) its

parameters are preserved, otherwise they are randomly changed:

otherwise

)1,0( if)1,0(

otherwise

)1,0( if)1,1.0(

old

i

pnew

i

old

i

Fnew

i

p

randrandp

F

randrandF

Initial values: F=0.5, p=0.9

New parameters: τF and τp

Page 38: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 38

Differential Evolution (DE)JADE overview:

▪ Mutation variant: DE/p-best = the base vector is randomly selected out

of the best p% elements of the population

▪ The elements from a population which are replaced by better children

are stored in an archive and the element which is subtracted (xr3) is

selected from this archive

▪ At each generation the parameters corresponding to each element are

resampled using some probability distributions:

▪ Fi is generated using Cauchy(mFi,0.1)

▪ pi is generated using Normal(mpi,0.1)

▪ mF and mp are initialized with 0.5 (for all elements) and are

computed based on averages of parameters corresponding to

successful trial elements

Page 39: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 39

Differential Evolution (DE)SHADE overview:

▪ Similar with JADE

▪ Main difference: the adaptation rule of parameters mF and mp: instead of

using the average of values in the archive with successful parameters a

random value is selected from an archive which contain the averages of

the distributions used to generate successful parameters

Page 40: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 40

Probabilistic Model Building

AlgorithmsParticularity: class of algorithms which search the solution space by estimating

and simulating some probability distributions

Variants:

- Estimation of Distribution Algorithms (EDA) [Mühlenbein & Paass, 1996]

- Iterated Density Estimation Algorithms (IDEA) [Bosman & Thierens, 2000]

- Bayesian Optimization Algorithms (BOA) [Pelikan, Goldberg, & Cantu-Paz, 1998]

Idea: the mutation and crossover operators are replaced with

▪ a process for the estimation of the probability distribution of selected elements

▪ and a process of sampling new elements using this distribution

Remark: the sampled values should be promising elements

Page 41: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 41

Probabilistic Model Building

AlgorithmsIllustration [M.Pelikan – Probabilistic Model Building GA Tutorial]

Page 42: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 42

Probabilistic Model Building

AlgorithmsGeneral structure.

Step 1: Population initialization (m elements)

Step 2: REPEAT

– select m’<m elements from the current population (based on their

fitness)

– estimate a probability distribution using the selected elements

– sample m elements from the estimated probability distribution

UNTIL <stopping condition>

Page 43: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 43

Probabilistic Model Building

AlgorithmsRemarks

• The main difficulty is to estimate the probability distribution

(especially when the components of individuals are correlated)

• A simplified variant is based on the assumption that the

components are independent; therefore the corresponding

probabilities can be estimated separately.

Variants based on the independence assumption:

- UMDA (Univariate Marginal Distribution Algorithm)

- PBIL (Probabilistic Based Incremental Learning)

Page 44: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 44

Probabilistic Model Building

AlgorithmsUMDA (Mühlenbein, Paass, 1996)

iposition on lue va

thecontainselement selectedjth theif 1))1(|(

1iteration at selected population theis 1

icomponent ofy probabilit '

))1(|(

)(

'

1

i

iij

m

j

iij

i

t

x

tSxX

)(t-)S(t-

m

tSxX

xP

PBIL (Baluja, 1995)

]1,0(

'

))1(|(

)()1()(

'

1)1(

m

tSxX

xPxP

m

j

iij

i

t

i

t

Page 45: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 45

Memetic AlgorithmsCreator: Pablo Moscato (1989)

Particularity: hybridization of EAs with local search techniques

Name: “memetic” comes “meme”, a term coined by Richard Dawkins

to specify the transfer unit of different entities (biological, cultural

etc) between generations

Variants: Hybrid Evolutionary Algorithms, Baldwinian Evolutionary

Algorithms, Lamarckian Evolutionary Algorithms, Cultural

Algorithms or Genetic Local Search

Page 46: Other population-based metaheuristicsstaff.fmi.uvt.ro/~daniela.zaharie/ma2018/lectures/metaheuristics2018...Metaheuristics - Lecture 8 7 Natural immune system Main mechanisms Negative

Metaheuristics - Lecture 8 46

Memetic AlgorithmsGeneral structure:

Step 1: Population Initialization

Step 2: WHILE <stopping condition>

– Evaluate the elements of the population

– Generate new elements using the variation operators (mutation

and crossover)

– Select a subpopulation on which are applied some local search

operators (e.g. SA, TS etc)

Remarks:

1. The local search can be based on a set of operators – the

operators to be applied are probabilistically selected

2. The elements which define the local search operators can be

evolved.