128
CZECH TECHNICAL UNIVERSITY IN PRAGUE Faculty of Electrical Engineering Department of Cybernetics P. Poˇ ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 1 / 35 Parallel Evolutionary Algorithms. Coevolution. Petr Poˇ ık

Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

CZECH TECHNICAL UNIVERSITY IN PRAGUE

Faculty of Electrical Engineering

Department of Cybernetics

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 1 / 35

Parallel Evolutionary Algorithms.

Coevolution.

Petr Posık

Page 2: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Parallel Evolutionary Algorithms

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 2 / 35

Page 3: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Motivation

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 35

EAs applied on complex tasks need long run times to solve the problem:

n What is usually the most time-consuming task when solving real-world problems?

Page 4: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Motivation

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 35

EAs applied on complex tasks need long run times to solve the problem:

n What is usually the most time-consuming task when solving real-world problems?

n Fitness evaluation!!!

n In complex tasks solved by GAs, chromosome is long, oftengenotype-phenotype mapping must be applied, ...

n In GP, when evolving classifiers, functions, or programs, the fitness must beassessed by measuring the success when applying the classifier, function, orprogram on a set of training task instances

Page 5: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Motivation

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 35

EAs applied on complex tasks need long run times to solve the problem:

n What is usually the most time-consuming task when solving real-world problems?

n Fitness evaluation!!!

n In complex tasks solved by GAs, chromosome is long, oftengenotype-phenotype mapping must be applied, ...

n In GP, when evolving classifiers, functions, or programs, the fitness must beassessed by measuring the success when applying the classifier, function, orprogram on a set of training task instances

n In EDAs, model building is very time consuming!

Page 6: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Motivation

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 35

EAs applied on complex tasks need long run times to solve the problem:

n What is usually the most time-consuming task when solving real-world problems?

n Fitness evaluation!!!

n In complex tasks solved by GAs, chromosome is long, oftengenotype-phenotype mapping must be applied, ...

n In GP, when evolving classifiers, functions, or programs, the fitness must beassessed by measuring the success when applying the classifier, function, orprogram on a set of training task instances

n In EDAs, model building is very time consuming!

⇒ PARALLELIZE!!!

Page 7: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Motivation

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3 / 35

EAs applied on complex tasks need long run times to solve the problem:

n What is usually the most time-consuming task when solving real-world problems?

n Fitness evaluation!!!

n In complex tasks solved by GAs, chromosome is long, oftengenotype-phenotype mapping must be applied, ...

n In GP, when evolving classifiers, functions, or programs, the fitness must beassessed by measuring the success when applying the classifier, function, orprogram on a set of training task instances

n In EDAs, model building is very time consuming!

⇒ PARALLELIZE!!!

n Which of the above can be parallelized easilly???

Page 8: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

Page 9: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

Page 10: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

Page 11: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

3. Run several almost independent GAs in parallel; exchange a few individualsoccasionally. (Island model.)

Page 12: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

3. Run several almost independent GAs in parallel; exchange a few individualsoccasionally. (Island model.)

4. Run a single GA with selection that takes only a few individuals into account.(Spatially embedded model.)

Page 13: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

3. Run several almost independent GAs in parallel; exchange a few individualsoccasionally. (Island model.)

4. Run a single GA with selection that takes only a few individuals into account.(Spatially embedded model.)

5. Run a hybrid parallel GA. (Hierarchical model.)

Page 14: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

3. Run several almost independent GAs in parallel; exchange a few individualsoccasionally. (Island model.)

4. Run a single GA with selection that takes only a few individuals into account.(Spatially embedded model.)

5. Run a hybrid parallel GA. (Hierarchical model.)

6. Other, less standard possibilities. (Injection model, heterogenous PGA.)

Page 15: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Agenda

PGA

• Motivation

• Agenda

• Impl. vs model

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 4 / 35

How can we parallelize?

1. Run several independent GAs in parallel.

2. Run a single GA, but distribute the time consuming things to parallel machines.(Master-slave model.)

3. Run several almost independent GAs in parallel; exchange a few individualsoccasionally. (Island model.)

4. Run a single GA with selection that takes only a few individuals into account.(Spatially embedded model.)

5. Run a hybrid parallel GA. (Hierarchical model.)

6. Other, less standard possibilities. (Injection model, heterogenous PGA.)

But first:

n The difference between parallel model and parallel implementation.

Page 16: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Parallel Implementation vs. Parallel Model

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 5 / 35

Sequential implementation:

n The algorithm is able to run on a singlemachine in a single process, often in a singlethread only.

Parallel implementation:

n The algorithm is able to take advantage ofmultiple CPU cores or multiple machines.

The effect of parallelization:

n Reduction in the solution time by increasingcomputational power.

n The speed-up should be proportional to thenumber of parallel machines.

Global model:

n The population is not divided in any way,the selection operator can consider allindividuals.

Parallel model:

n The population is somehow divided intosubpopulations, which limits mainly theselection operator.

The effect of parallelization:

n Changes the algorithm behaviorsubstantially.

Page 17: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Parallel Implementation vs. Parallel Model

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 5 / 35

Sequential implementation:

n The algorithm is able to run on a singlemachine in a single process, often in a singlethread only.

Parallel implementation:

n The algorithm is able to take advantage ofmultiple CPU cores or multiple machines.

The effect of parallelization:

n Reduction in the solution time by increasingcomputational power.

n The speed-up should be proportional to thenumber of parallel machines.

Global model:

n The population is not divided in any way,the selection operator can consider allindividuals.

Parallel model:

n The population is somehow divided intosubpopulations, which limits mainly theselection operator.

The effect of parallelization:

n Changes the algorithm behaviorsubstantially.

Possible combinations:

n Sequential implementation of the global model (usual case, simple GA)

n Parallel implementation of the global model (master-slave, brute-force speed-up)

n Sequential implementation of a parallel model (modified behavior)

n Parallel implementation of a parallel model (modified behavior, brute-force speed-up)

Page 18: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Parallelization of the Global Model

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 6 / 35

Page 19: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Master-slave model

PGA

Global model

• Master-slave model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 7 / 35

Master

n runs the evolutionary algorithm, and

n controls the slaves, distributes the work.

Slaves

n take batches of individuals from the master,

n evaluate them, and

n send their fitness back to the master.

Other possibilities:

n Sometimes we can parallelize also initialization, mutation, and (with a bit of care)crossover.

n The hardest parts to parallelize are selection and replacement.

n When does the parallelization actually pay off???

Page 20: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Master-slave model

PGA

Global model

• Master-slave model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 7 / 35

Master

n runs the evolutionary algorithm, and

n controls the slaves, distributes the work.

Slaves

n take batches of individuals from the master,

n evaluate them, and

n send their fitness back to the master.

Other possibilities:

n Sometimes we can parallelize also initialization, mutation, and (with a bit of care)crossover.

n The hardest parts to parallelize are selection and replacement.

n When does the parallelization actually pay off???

Master-slave implementation does not change the behavior of the global model.

n Hints on implementation (locking, synchronizing) can be found in [Luk09, chap. 5].

[Luk09] Sean Luke. Essentials of Metaheuristics. 2009. available at http://cs.gmu.edu/∼sean/book/metaheuristics/.

Page 21: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 8 / 35

Page 22: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

Page 23: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

Page 24: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently.

Page 25: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently. Almost.

Page 26: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently. Almost.

Migration:

n Occassionally, the demes exchange some individuals.

Page 27: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently. Almost.

Migration:

n Occassionally, the demes exchange some individuals.

The profit from island model:

n Demes are smaller:

n converge faster,

n can converge to different local optima, but

n can converge prematurelly.

Page 28: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently. Almost.

Migration:

n Occassionally, the demes exchange some individuals.

The profit from island model:

n Demes are smaller:

n converge faster,

n can converge to different local optima, but

n can converge prematurelly.

n Thanks to migration, new, potentially good (not random), genetic material can beobtained from other demes.

Page 29: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Island Model

PGA

Global model

Island Model

• Island Model

• Migration

• Migration (cont.)

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 9 / 35

Also called coarse-grained PGA or multi-deme GA:

n By far the most often used model of PGA.

n Population divided into several subpopulations (demes).

n Demes evolve independently. Almost.

Migration:

n Occassionally, the demes exchange some individuals.

The profit from island model:

n Demes are smaller:

n converge faster,

n can converge to different local optima, but

n can converge prematurelly.

n Thanks to migration, new, potentially good (not random), genetic material can beobtained from other demes.

DEMO: Island model of PGA applied on TSP

http://labe.felk.cvut.cz/~posik/pga

Page 30: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 10 / 35

Migration topology: Where should we take the migrants from and where should we put them?

n static: given in advance, does not change during evolution

n dynamic: the sources and targets are chosen right before particular migration event

n can take the similarity of demes into account when choosing sources and targets

Page 31: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 10 / 35

Migration topology: Where should we take the migrants from and where should we put them?

n static: given in advance, does not change during evolution

n dynamic: the sources and targets are chosen right before particular migration event

n can take the similarity of demes into account when choosing sources and targets

n degree of connectivity (DOC), δ:

n the number of demes used as sources of migrants for another deme in one particular migrationevent

n topologies with the same DOC exhibit similar behavior

n in a comparison of fully-conected topology, 4D hypercube, 4 × 4 toroidal net, and one-way andtwo-way rings, densely connected topologies were able to find the global optimum with lowernumber of evaluation

Page 32: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 10 / 35

Migration topology: Where should we take the migrants from and where should we put them?

n static: given in advance, does not change during evolution

n dynamic: the sources and targets are chosen right before particular migration event

n can take the similarity of demes into account when choosing sources and targets

n degree of connectivity (DOC), δ:

n the number of demes used as sources of migrants for another deme in one particular migrationevent

n topologies with the same DOC exhibit similar behavior

n in a comparison of fully-conected topology, 4D hypercube, 4 × 4 toroidal net, and one-way andtwo-way rings, densely connected topologies were able to find the global optimum with lowernumber of evaluation

Migration trigger: When should we run the migration?

n static schedule: migrate every nth generation, at predefined time instants

n feedback trigger: migrate when it is needed, when the deme diversity drops below certain level

Page 33: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 10 / 35

Migration topology: Where should we take the migrants from and where should we put them?

n static: given in advance, does not change during evolution

n dynamic: the sources and targets are chosen right before particular migration event

n can take the similarity of demes into account when choosing sources and targets

n degree of connectivity (DOC), δ:

n the number of demes used as sources of migrants for another deme in one particular migrationevent

n topologies with the same DOC exhibit similar behavior

n in a comparison of fully-conected topology, 4D hypercube, 4 × 4 toroidal net, and one-way andtwo-way rings, densely connected topologies were able to find the global optimum with lowernumber of evaluation

Migration trigger: When should we run the migration?

n static schedule: migrate every nth generation, at predefined time instants

n feedback trigger: migrate when it is needed, when the deme diversity drops below certain level

n initiated by a source deme or by a target deme

Page 34: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 10 / 35

Migration topology: Where should we take the migrants from and where should we put them?

n static: given in advance, does not change during evolution

n dynamic: the sources and targets are chosen right before particular migration event

n can take the similarity of demes into account when choosing sources and targets

n degree of connectivity (DOC), δ:

n the number of demes used as sources of migrants for another deme in one particular migrationevent

n topologies with the same DOC exhibit similar behavior

n in a comparison of fully-conected topology, 4D hypercube, 4 × 4 toroidal net, and one-way andtwo-way rings, densely connected topologies were able to find the global optimum with lowernumber of evaluation

Migration trigger: When should we run the migration?

n static schedule: migrate every nth generation, at predefined time instants

n feedback trigger: migrate when it is needed, when the deme diversity drops below certain level

n initiated by a source deme or by a target deme

n diversity → convergence; population convergence vs. convergence in time

Page 35: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Page 36: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Page 37: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Migration count: How many individuals should we migrate?

n often chosen from the interval

nmig ∈ 〈1,deme size

δ + 1〉

Page 38: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Migration count: How many individuals should we migrate?

n often chosen from the interval

nmig ∈ 〈1,deme size

δ + 1〉

Other possibilities, issues:

n sometimes, migration is described as synchronous or asynchronous, not used here; the meaning is notclear: synchronous with time vs. synchronous with other mig. event

Page 39: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Migration count: How many individuals should we migrate?

n often chosen from the interval

nmig ∈ 〈1,deme size

δ + 1〉

Other possibilities, issues:

n sometimes, migration is described as synchronous or asynchronous, not used here; the meaning is notclear: synchronous with time vs. synchronous with other mig. event

n increase the fitness of migrants

Page 40: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Migration count: How many individuals should we migrate?

n often chosen from the interval

nmig ∈ 〈1,deme size

δ + 1〉

Other possibilities, issues:

n sometimes, migration is described as synchronous or asynchronous, not used here; the meaning is notclear: synchronous with time vs. synchronous with other mig. event

n increase the fitness of migrants so that they can influence the target deme at least for 1 generation

Page 41: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Migration (cont.)

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 11 / 35

Migration type: Can the migration events occur individually or in batches?

n batch: all migration events occur in the same time, all demes send emigrants to their targets and takethe immigrants from their sources

n individual: a migration event (migrants move from one deme to another) can occur any time,independently of other events

Migration selection and replacement strategy:Which individuals should be selected as emigrants? Which individuals should be replaced by imigrants?

n Best, worst

n Best, random

n Random, worst

Migration count: How many individuals should we migrate?

n often chosen from the interval

nmig ∈ 〈1,deme size

δ + 1〉

Other possibilities, issues:

n sometimes, migration is described as synchronous or asynchronous, not used here; the meaning is notclear: synchronous with time vs. synchronous with other mig. event

n increase the fitness of migrants so that they can influence the target deme at least for 1 generation

n term epoch in the context of PGAs describes the part of evolution betweem 2 migration events

Page 42: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Other Parallel Models

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 12 / 35

Page 43: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Spatially Embedded Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 13 / 35

Also called fine-grained PGA:

n Population has a structure (1D grid, 2D toroidal grid, 3D cube, etc.)

n Each individual has a position in this structure.

Page 44: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Spatially Embedded Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 13 / 35

Also called fine-grained PGA:

n Population has a structure (1D grid, 2D toroidal grid, 3D cube, etc.)

n Each individual has a position in this structure.

n Individuals are allowed to breed only with the neighbors nearby.

Page 45: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Spatially Embedded Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 13 / 35

Also called fine-grained PGA:

n Population has a structure (1D grid, 2D toroidal grid, 3D cube, etc.)

n Each individual has a position in this structure.

n Individuals are allowed to breed only with the neighbors nearby. Replace individualin certain slot with children bred from neighbors of this slot.

Page 46: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Spatially Embedded Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 13 / 35

Also called fine-grained PGA:

n Population has a structure (1D grid, 2D toroidal grid, 3D cube, etc.)

n Each individual has a position in this structure.

n Individuals are allowed to breed only with the neighbors nearby. Replace individualin certain slot with children bred from neighbors of this slot.

n The best individuals do not spread in the population so fast. Diversity promotion.

Page 47: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Spatially Embedded Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 13 / 35

Also called fine-grained PGA:

n Population has a structure (1D grid, 2D toroidal grid, 3D cube, etc.)

n Each individual has a position in this structure.

n Individuals are allowed to breed only with the neighbors nearby. Replace individualin certain slot with children bred from neighbors of this slot.

n The best individuals do not spread in the population so fast. Diversity promotion.

n Easy parallelization via multithreading.

n Very efficient model for vector processors, often found on GPUs:

n many identical operations can be performed in parallel in the same time

Page 48: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Model Combinations

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 14 / 35

Hierarchical model:

n various combinations of the above mentioned models, e.g.

n island model where each deme uses master-slave fitness evaluation,

n island model where each deme uses spatilly embedded model, etc.

Page 49: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Model Combinations

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 14 / 35

Hierarchical model:

n various combinations of the above mentioned models, e.g.

n island model where each deme uses master-slave fitness evaluation,

n island model where each deme uses spatilly embedded model, etc.

Heterogenous model:

n Each deme uses a different optimizer

n Different parameter settings

n Different operators of selection, crossover, mutation and/or replacement

n Completely different optimization algorithm (local search, differential evolution,. . . )

Page 50: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Model Combinations

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 14 / 35

Hierarchical model:

n various combinations of the above mentioned models, e.g.

n island model where each deme uses master-slave fitness evaluation,

n island model where each deme uses spatilly embedded model, etc.

Heterogenous model:

n Each deme uses a different optimizer

n Different parameter settings

n Different operators of selection, crossover, mutation and/or replacement

n Completely different optimization algorithm (local search, differential evolution,. . . )

n Can each deme use a different fitness function???

Page 51: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Injection Model

PGA

Global model

Island Model

Other Parallel Models• Spatially EmbeddedModel• ModelCombinations

• Injection Model

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 15 / 35

Heterogenous island model where

n each deme uses a different fitness function!!!

n Usable when many quality criteria must be assessed; each deme

n concentrates on one criterion and

n submits partial solutions to other demes to be reworked using another criterion.

n Each deme preserves solutions of high quality when only its particular criterion isapplied.

Page 52: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary: PGAs

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 16 / 35

Page 53: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

• Summary

• Learning outcomes

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 17 / 35

n Parallelization can increase the speed the EA:

n parallel implementations

n parallel models

Page 54: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

• Summary

• Learning outcomes

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 17 / 35

n Parallelization can increase the speed the EA:

n parallel implementations

n parallel models

n Parallel models change the behavior of the EA:

n they can reduce the danger of premature convergence and speed-up thealgorithm in the same time.

Page 55: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

• Summary

• Learning outcomes

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 17 / 35

n Parallelization can increase the speed the EA:

n parallel implementations

n parallel models

n Parallel models change the behavior of the EA:

n they can reduce the danger of premature convergence and speed-up thealgorithm in the same time.

n There are many possibilities on parallelization:

n the optimal decision depends on the (parallel) computer architecture and on thetask being solved

n all possibilities introduce their own set of tunable parameters :-(

Page 56: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Learning outcomes

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

• Summary

• Learning outcomes

Coevolution

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 18 / 35

After this lecture, a student shall be able to

n explain the main motivation for parallelization;

n explain the difference between parallel implementation and parallel model of EA;

n describe the features of individual combinations of sequential/parallelimplementation and global/parallel model;

n know which parts of individual EAs (fitness evaluation, selection, replacement,mutation, crossover, model building, etc.) can be implemented in parallel easilly, andexplain why;

n explain the principle and features of the master-slave parallelization;

n implement island model and explain its features, describe the characteristics ofmigration operator (type, topology, degree of connectivity, trigger,selection/replacement strategy, count);

n describe spatially embedded model, heterogeneous model, injection model, and theiruse cases.

Page 57: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 19 / 35

Page 58: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

What is “coevolution”?

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 20 / 35

Page 59: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

What is “coevolution”?

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 20 / 35

Coevolution in EAs:

n The fitness of individuals in a population

n is not given by the characteristics of the individual (only), but

n is affected by the presence of other individuals in the population.

n It is closer to the biological evolution than ordinary EAs are.

Page 60: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

What is “coevolution”?

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 20 / 35

Coevolution in EAs:

n The fitness of individuals in a population

n is not given by the characteristics of the individual (only), but

n is affected by the presence of other individuals in the population.

n It is closer to the biological evolution than ordinary EAs are.

Coevolution can help in

n dealing with increasing difficulty of the problem,

n providing diversity in the system,

n producing not just high-quality, but also robust solutions,

n solving complex or high-dimensional problems by breaking them into nearlydecomposable parts.

Page 61: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Types of coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 21 / 35

Page 62: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Types of coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 21 / 35

By relation type:

n cooperative (synergic, compositional)

n competitive (antagonistic, test-based)

Page 63: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Types of coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 21 / 35

By relation type:

n cooperative (synergic, compositional)

n competitive (antagonistic, test-based)

By the entities playing role in the relation:

n 1-population

n intra-population

n individuals from the same population cooperate or compete

n N-population

n inter-population

n individuals from distinct populations cooperate or compete

Page 64: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Page 65: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

Page 66: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n by playing several games against human player? Against conventional program?

Page 67: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n by playing several games against human player? Against conventional program?

n Problem: No learning gradient! Needle in a haystack. All randomly generatedplayers will almost surely loose against any advanced player.

Page 68: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n by playing several games against human player? Against conventional program?

n Problem: No learning gradient! Needle in a haystack. All randomly generatedplayers will almost surely loose against any advanced player.

n by playing several games against internet players?

Page 69: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n by playing several games against human player? Against conventional program?

n Problem: No learning gradient! Needle in a haystack. All randomly generatedplayers will almost surely loose against any advanced player.

n by playing several games against internet players?

n A bit better. . . but beware (Blondie24)

Page 70: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population competitve coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 22 / 35

Example: The goal is to evolve a game playing strategy

n successful against diverse opponents!!!

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n by playing several games against human player? Against conventional program?

n Problem: No learning gradient! Needle in a haystack. All randomly generatedplayers will almost surely loose against any advanced player.

n by playing several games against internet players?

n A bit better. . . but beware (Blondie24)

Solution: Intra-population competitive coevolution

n by playing several games against other strategies in the population.

n All individuals of the same type.

n In the beginning, all are probably quite bad, but some of them are a bit better.

n The fitness (the number of games won) may not rise as expected since youropponents improve with you.

Page 71: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Page 72: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Problem: fitness evaluation

Page 73: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n Test all possible input sequences? Slow, intractable.

n Test only a fixed set of sequences? Which ones?

Page 74: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n Test all possible input sequences? Slow, intractable.

n Test only a fixed set of sequences? Which ones?

Solution: Inter-population competitive coevolution

n 2 populations, 2 species:

n sorting algorithms

n test cases (sequences to sort)

Page 75: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n Test all possible input sequences? Slow, intractable.

n Test only a fixed set of sequences? Which ones?

Solution: Inter-population competitive coevolution

n 2 populations, 2 species:

n sorting algorithms

n test cases (sequences to sort)

n Fitness evaluation:

Page 76: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2-population competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 23 / 35

Example: The goal is to evolve a sorting algorithm

n able to sort any sequence of numbers

n correctly and quickly.

How would you proceed in an ordinary EA?

Problem: fitness evaluation

n Test all possible input sequences? Slow, intractable.

n Test only a fixed set of sequences? Which ones?

Solution: Inter-population competitive coevolution

n 2 populations, 2 species:

n sorting algorithms

n test cases (sequences to sort)

n Fitness evaluation:

n Algorithm: by its ability to sort. How many sequences is it able to sort correctly?How quickly?

n Test case: by its difficulty for the current sorting algorithms. How manyalgorithms did not sort it?

n Predator-prey relationship

Page 77: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Page 78: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Fitness evaluation:

n by simulating a number of games between teams

Page 79: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Fitness evaluation:

n by simulating a number of games between teams

Problem: Evolution

Page 80: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Fitness evaluation:

n by simulating a number of games between teams

Problem: Evolution

n Represent all 4 strategies in 1 genome, evolve them all in 1 population.

n Theoretically possible, but the space is too large.

n May result in a team of players which wouldn’t perform well if substituted to anotherteam.

Page 81: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Fitness evaluation:

n by simulating a number of games between teams

Problem: Evolution

n Represent all 4 strategies in 1 genome, evolve them all in 1 population.

n Theoretically possible, but the space is too large.

n May result in a team of players which wouldn’t perform well if substituted to anotherteam.

Solution: N-population cooperative coevolution

n 4 separate populations

n Evolve players which would play well with any other team members

Page 82: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

N-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 24 / 35

Example: The goal is to evolve a team consisting of

n a goalie, back, midfielder, and forward

n so that they form a good team together.

How would you proceed in an ordinary EA?

Fitness evaluation:

n by simulating a number of games between teams

Problem: Evolution

n Represent all 4 strategies in 1 genome, evolve them all in 1 population.

n Theoretically possible, but the space is too large.

n May result in a team of players which wouldn’t perform well if substituted to anotherteam.

Solution: N-population cooperative coevolution

n 4 separate populations

n Evolve players which would play well with any other team members

Cooperation:

n symbiotic relationship

n good performance of the team ⇒ high contribution to fitness of all members

Page 83: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 25 / 35

Page 84: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 25 / 35

Example: Niching methods for

n diversity preservation

n maintaining several stable subpopulations in diverse parts of the search space

Page 85: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 25 / 35

Example: Niching methods for

n diversity preservation

n maintaining several stable subpopulations in diverse parts of the search space

Examples of niching methods:

n fitness sharing

n crowding

Page 86: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

1-population cooperative coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

• What?

• Types

• 1-pop comp.

• 2-pop comp.

• N-pop coop.

• 1-pop coop.

Problems incoevolution

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 25 / 35

Example: Niching methods for

n diversity preservation

n maintaining several stable subpopulations in diverse parts of the search space

Examples of niching methods:

n fitness sharing

n crowding

Principle:

n better individuals similar to others already in population are thrown away in favourof worse, but diverse individuals

n the selection process is affected by the presence of other individual in theneighborhood

Page 87: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 26 / 35

Page 88: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Page 89: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

Page 90: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

n by the stochastic element:

n deterministic: generates the sameordering of a set of individuals

n stochastic: can generate differentorderings of the same set of individuals

Page 91: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

n by the stochastic element:

n deterministic: generates the sameordering of a set of individuals

n stochastic: can generate differentorderings of the same set of individuals

n by the role of other individuals in evaluation:

n absolute: measured independently ofother individuals

n relative: measured with respect toindividuals in the current population

Page 92: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

n by the stochastic element:

n deterministic: generates the sameordering of a set of individuals

n stochastic: can generate differentorderings of the same set of individuals

n by the role of other individuals in evaluation:

n absolute: measured independently ofother individuals

n relative: measured with respect toindividuals in the current population

n by its role in the EA:

n internal: optimization criterion used byselection

n external: used to measure the progressof the algorithm

Page 93: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

n by the stochastic element:

n deterministic: generates the sameordering of a set of individuals

n stochastic: can generate differentorderings of the same set of individuals

n by the role of other individuals in evaluation:

n absolute: measured independently ofother individuals

n relative: measured with respect toindividuals in the current population

n by its role in the EA:

n internal: optimization criterion used byselection

n external: used to measure the progressof the algorithm

Ideally, external fitness

n should be static, deterministic and absolute

n can easilly be used as internal fitness

External fitness in coevolution:

n impossible (hard) to define

n often, it is relative, but measured with acarefully chosen, large enough set of otherindividuals (static) sufficiently many times(almost deterministic)

Page 94: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Fitness in coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 27 / 35

Some important classifications of fitness

n by its time-dependence:

n static: does not change with time

n dynamic: changes with time

n by the stochastic element:

n deterministic: generates the sameordering of a set of individuals

n stochastic: can generate differentorderings of the same set of individuals

n by the role of other individuals in evaluation:

n absolute: measured independently ofother individuals

n relative: measured with respect toindividuals in the current population

n by its role in the EA:

n internal: optimization criterion used byselection

n external: used to measure the progressof the algorithm

Ideally, external fitness

n should be static, deterministic and absolute

n can easilly be used as internal fitness

External fitness in coevolution:

n impossible (hard) to define

n often, it is relative, but measured with acarefully chosen, large enough set of otherindividuals (static) sufficiently many times(almost deterministic)

Internal fitness in coevolution:

n relative: affected by other individuals

n dynamic: affected by evolving individuals(needs re-evaluation)

n stochastic: usually evaluated against asmaller number of individuals

Page 95: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Page 96: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

Page 97: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Page 98: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

Page 99: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Page 100: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

Page 101: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

n tournaments have different prize money todistribute to tournament winners

n highly paid tournaments attract moreplayers and are harder to win

n players sorted by the won prize money

Page 102: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

n tournaments have different prize money todistribute to tournament winners

n highly paid tournaments attract moreplayers and are harder to win

n players sorted by the won prize money

Chess Elo ratings:

Page 103: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

n tournaments have different prize money todistribute to tournament winners

n highly paid tournaments attract moreplayers and are harder to win

n players sorted by the won prize money

Chess Elo ratings:

n each player is assigned a level, based onhistoric results

n matches between players of different levels

n the player’s level increases (decreases) if sherecently won more (less) matches thanexpected

Page 104: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

n tournaments have different prize money todistribute to tournament winners

n highly paid tournaments attract moreplayers and are harder to win

n players sorted by the won prize money

Chess Elo ratings:

n each player is assigned a level, based onhistoric results

n matches between players of different levels

n the player’s level increases (decreases) if sherecently won more (less) matches thanexpected

None of these systems is static:

n Is Pete Sampras better than Roger Federer?

n Is Arnold Palmer better than Tiger Woods?

n . . .

Page 105: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

“Fitness” in sport

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 28 / 35

Football league:

n all teams play against all others

n points awarded for win, draw, and loss

n teams sorted by the earned points

Tennis players:

n tournaments divided to various levels, withdifferent point amounts

n points awarded to players by their finalstandings in tournament

Golf players:

n tournaments have different prize money todistribute to tournament winners

n highly paid tournaments attract moreplayers and are harder to win

n players sorted by the won prize money

Chess Elo ratings:

n each player is assigned a level, based onhistoric results

n matches between players of different levels

n the player’s level increases (decreases) if sherecently won more (less) matches thanexpected

None of these systems is static:

n Is Pete Sampras better than Roger Federer?

n Is Arnold Palmer better than Tiger Woods?

n . . .

The same holds for fitness assessment incoevolution!

Page 106: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

Page 107: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

Page 108: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

n The quality assessment depends on what we really want:

Page 109: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

n The quality assessment depends on what we really want:

n A player that beats the most other players?

Page 110: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

n The quality assessment depends on what we really want:

n A player that beats the most other players?

n A player that beats the most other “good” players?

Page 111: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

n The quality assessment depends on what we really want:

n A player that beats the most other players?

n A player that beats the most other “good” players?

n A player that wins by the most total points on average?

Page 112: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 1-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 29 / 35

Cycles, etc.

n What if A beats B, B beats C, but C beats A?

n What if A beats B, but B beats far more individuals than A?

n The quality assessment depends on what we really want:

n A player that beats the most other players?

n A player that beats the most other “good” players?

n A player that wins by the most total points on average?

n Often, additional matches are executed.

n But, do you want to spend your fitness budget

n on evaluating current individuals more precisely, or

n on searching further?

Page 113: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2 competitive populations (illustration)

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 30 / 35

Lotka-Volterra model (Predator-preypopulation dynamics):

dx

dt= αx − βxy

dy

dt= −γy + δxy

where x is the number of prey (rabbits)and y is the number of predators (wolves).

Assumptions:

1. The prey population has always foodenough.

2. The predators eat only the prey.

3. The rate of change of population isproportional to its size.

4. The environment is static.

Page 114: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2 competitive populations (illustration)

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 30 / 35

Lotka-Volterra model (Predator-preypopulation dynamics):

dx

dt= αx − βxy

dy

dt= −γy + δxy

where x is the number of prey (rabbits)and y is the number of predators (wolves).

Assumptions:

1. The prey population has always foodenough.

2. The predators eat only the prey.

3. The rate of change of population isproportional to its size.

4. The environment is static.

Meaning:

n The change of the prey population (dx/dt) is composed of

n increase due to the newly born individuals (proportional to the population size,αx) and

n decrese caused by the predation (which is proportional to the rate ofpredator-prey meetings, βxy).

n The change of the predator population (dy/dt) is composed of

n decrease due to natural death (proportional to the population size, γy) and

n increase alowed by the food suply (proportional to the rate of predator-preymeetings, δxy).

Page 115: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

2 competitive populations (illustration)

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 30 / 35

Lotka-Volterra model (Predator-preypopulation dynamics):

dx

dt= αx − βxy

dy

dt= −γy + δxy

where x is the number of prey (rabbits)and y is the number of predators (wolves).

Assumptions:

1. The prey population has always foodenough.

2. The predators eat only the prey.

3. The rate of change of population isproportional to its size.

4. The environment is static.

0 10 20 30 40 50 600

20

40

60

80

100

120

140Time history

RabbitsWolves

Page 116: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

Page 117: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

n all individuals from that population beat all the individuals from the other

Page 118: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

n all individuals from that population beat all the individuals from the other

n no selection gradient in either population ⇒ uniform random selection

Page 119: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

n all individuals from that population beat all the individuals from the other

n no selection gradient in either population ⇒ uniform random selection

n external fitness in both populations drops until the gradient re-emerges

Page 120: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

n all individuals from that population beat all the individuals from the other

n no selection gradient in either population ⇒ uniform random selection

n external fitness in both populations drops until the gradient re-emerges

n not exactly what was shown by Lotka-Volterra, but similar

Page 121: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: 2-pop. competitive coevolution

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

• Fitness features

• “Fitness” in sport

• 1-pop. comp.

• Predator-prey

• 2-pop. comp.

• N-pop. coop.

Summary:Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 31 / 35

Arms races

n one population learns a trick and forces the second population to learn a new trick tobeat the first one. . .

n one population may evolve faster than the other:

n all individuals from that population beat all the individuals from the other

n no selection gradient in either population ⇒ uniform random selection

n external fitness in both populations drops until the gradient re-emerges

n not exactly what was shown by Lotka-Volterra, but similar

n Solution:

n detect such situation (but how?)

n delay the evolution of the better population until the worse one catches up

Page 122: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: N-pop. cooperative coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 32 / 35

Hijacking (in team of goalie, back, midfield, and forward):

n a really good forward takes over one population, any team will play well thanks to him

n members of all other populations have almost the same fitness ⇒ uniform random selection

n Solution: apply some form of credit assignment

Page 123: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: N-pop. cooperative coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 32 / 35

Hijacking (in team of goalie, back, midfield, and forward):

n a really good forward takes over one population, any team will play well thanks to him

n members of all other populations have almost the same fitness ⇒ uniform random selection

n Solution: apply some form of credit assignment

Relative overgeneralization

n when evaluated by average score, worse (but more robust)individual B1 will have higher score than better (butvolatile) B2

n use maximum score (more tests needed)

n but again, the choice depends on what we want — a playerable to get the highest score, or a player that would form agood team with the most other team members?

Population A

Po

pu

lati

on

B

B1

B2

Page 124: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Problems with fitness assessment: N-pop. cooperative coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 32 / 35

Hijacking (in team of goalie, back, midfield, and forward):

n a really good forward takes over one population, any team will play well thanks to him

n members of all other populations have almost the same fitness ⇒ uniform random selection

n Solution: apply some form of credit assignment

Relative overgeneralization

n when evaluated by average score, worse (but more robust)individual B1 will have higher score than better (butvolatile) B2

n use maximum score (more tests needed)

n but again, the choice depends on what we want — a playerable to get the highest score, or a player that would form agood team with the most other team members?

Population A

Po

pu

lati

on

B

B1

B2

Miscoordination

n when the team components are not independent

n Pop. A evolved A2 (but not A1), pop. B evolved B1 (butnot B2)

n Neither A2 nor B1 survives

Population A

Po

pu

lati

on

B

B1

B2

A1 A2

Subopt.Opt. 1

Opt. 2

Page 125: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary: Coevolution

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 33 / 35

Page 126: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

• Summary

• Learning outcomes

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 34 / 35

Coevolution

n can be cooperative or competitive (or both)

n can take place in 1 population or in more populations

n fitness is not fixed during evolution

n introduces new unexpected dynamics to the system (new issues to be solved)

Page 127: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Summary

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

• Summary

• Learning outcomes

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 34 / 35

Coevolution

n can be cooperative or competitive (or both)

n can take place in 1 population or in more populations

n fitness is not fixed during evolution

n introduces new unexpected dynamics to the system (new issues to be solved)

Appropriate when

n no explicit fitness function can be formed

n there are too many fitness cases

n the problem is modularizable (divide and conquer)

Page 128: Parallel Evolutionary Algorithms. Coevolution....Coevolution Problems in coevolution Summary: Coevolution P. Posˇ´ık c 2016 A0M33EOA: Evolutionary Optimization Algorithms – 3

Learning outcomes

PGA

Global model

Island Model

Other Parallel Models

Summary: PGAs

Coevolution

Problems incoevolution

Summary:Coevolution

• Summary

• Learning outcomes

P. Posık c© 2016 A0M33EOA: Evolutionary Optimization Algorithms – 35 / 35

After this lecture, a student shall be able to

n define “coevolution”, explain what makes it different from ordinary evolution in thecontext of optimization algorithms;

n explain differences between cooperative and competitive coevolution;

n explain differences between intra- and inter-population coevolution;

n define features of fitness measure (static/dynamic, deterministic/stochastic,absolute/relative, internal/external);

n describe the features of an ideal external (and internal) fitness, and describe thefeatures of internal fitness in coevolution;

n exemplify individual types of cooperative/competitive intra-/inter-populationcoevolution; and

n exemplify various types of issues that can be observed in them (how to orderindividuals based on inconsistent matches, loss of diversity when one populationevolves faster than the other, hijacking, relative overgeneralization, miscoordination).