effect of spatial locality on an evolutionary algorithm for multimodal optimization

26
1 Effect of Spatial Locality on An Evolutionary Algorithm for Multimodal Optimization EvoNum 2010 Ka-Chun Wong, Kwong-Sak Leung, and Man-Hon Wong Department of Computer Science & Engineering The Chinese University of Hong Kong, HKSAR, China {kcwong, ksleung, mhwong}@cse.cuhk.edu.hk

Upload: addison-oneil

Post on 02-Jan-2016

24 views

Category:

Documents


0 download

DESCRIPTION

Effect of Spatial Locality on An Evolutionary Algorithm for Multimodal Optimization. EvoNum 2010 Ka-Chun Wong , Kwong-Sak Leung, and Man-Hon Wong Department of Computer Science & Engineering The Chinese University of Hong Kong, HKSAR, China {kcwong, ksleung, mhwong}@cse.cuhk.edu.hk. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

1

Effect of Spatial Locality on An Evolutionary Algorithm

for Multimodal OptimizationEvoNum 2010

Ka-Chun Wong, Kwong-Sak Leung, and Man-Hon WongDepartment of Computer Science & Engineering

The Chinese University of Hong Kong, HKSAR, China

{kcwong, ksleung, mhwong}@cse.cuhk.edu.hk

Page 2: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

2

Background

Differential Evolution (DE)• Proposed by Price and Storn in 1995• Considered as one of the most powerful

evolutionary algorithms for real number function optimization nowadays

• "Differential Evolution -- a simple and efficient adaptive scheme for

global optimization over continuous spaces, 1995”

Page 3: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

3

Background

DE’s Main Idea: (DE/rand/1)• Generate trial vectors (v) using the following formula:

• It elegantly replaces the two operations: Crossover Mutation

1. Less parameters to be tuned2. Self-organizing ability

Page 4: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

4

Background

http://ocw.mit.edu/NR/rdonlyres/Sloan-School-of-Management/15-099Fall2003/A40397B9-E8FB-4B45-A41B-D1F69218901F/0/ses2_storn_price.pdf

Page 5: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

5

Motivation

Given an optimization problem, traditional optimization algorithms can be applied to obtain a optimum.

However, in the real world, we are often interested in not only a single optimum, but also other possible global and local optima.

Page 6: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

6

Problem Definition

Given a function, an algorithm should work out all optimal points in a single run.

Six-hump Camel Back Function (http://www.it.lut.fi)

Page 7: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

7

Previous works

AEGA (Leung et al. 2003) SCGA (Li et al. 2002) Crowding (Kenneth De Jong 1975) Fitness Sharing (Goldberg et al. 1989) CrowdingDE (R. Thomsen 2004) SDE (Xiaodong Li 2005) Repeated iterations (Beasley et al. 1993) ……

Page 8: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

8

CrowdingDE

Proposed by R. Thomsen in CEC2004

Main Idea:• Incorporate Crowding technique into Differential

Evolution (DE) for multimodal optimization An individual can only replace the most similar

individual

Page 9: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

9

CrowdingDE

Crowding(Crowding Factor = whole population)

Page 10: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

10

Proposed Method

CrowdingDE-L (CrowdingDE using Spatial Locality)

• Improve the accuracy• A case study for incorporating “The Principle of

Locality” into CrowdingDE

^ Peter J. Denning The locality principle, 2005. The story of the computing fundamental principle of locality of reference.

Page 11: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

11

Proposed Method

Observation:• During a run, individuals around different optima

tend to exhibit different convergence rates.• Close individuals (within the same niche) tend

to have similar: Step-size for improvement

• Crossover between them

is goodIndividualOptimum

Page 12: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

12

Proposed Method

Apply spatial locality :• Given an parent individual, favor the close

individuals to be selected for trial vector (offspring) generation1. Transform the distances between the parent and

the candidate individuals to the proportion to be selected.

2. Use the proportion to form a roulette-wheel to select candidate individuals for trial vector generation

Page 13: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

13

Proposed Method

Previous Idea:• Randomly selects candidate individuals for trial

vector generation

Proposed Idea:• Apply spatial locality to select candidate

individuals for trial vector generation

Page 14: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

14

Proposed Method

Apply spatial locality :• Given an parent individual, favor the close

individuals to be selected for trial vector (offspring) generation

Individual

Optimum

Page 15: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

15

Proposed Method

New

OldNew

Page 16: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

16

Proposed Method

Transformation functions• Transform distance to proportion for selection

Page 17: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

17

Experiments

All algorithms were run up to maximum 40000 fitness function evaluations. The performance measurements are obtained by taking the average and standard deviation of 50 runs.

Page 18: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

18

Experiments

Performance measurements

Page 19: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

19

Experiments

Page 20: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

20

Experiments

Page 21: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

21

Further Experiments

We conducted further experiments on the number of successful trial vector generation• A successful trial vector generation is defined:

The generation of a trial vector, which can replace an individual in the parent population.

Page 22: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

22

Further Experiments

The proposed method (red colour) does improve the selection of candidate individuals for trial vector generation, comparing to the original method (green colour)

Page 23: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

23

Critical Thinking

Pros:• Simple and easy to implement• Less parameters to be tuned

Only one DE parameter needs to be set

Cons:• Computationally expensive

Crowding Factor is set to the population size• O(N^2)

Page 24: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

24

Conclusion

The experimental results should not be taken to mean that the proposed method (CrowdingDE-L) is “better” than other evolutionary algorithms tested for multimodal optimization. Such a conclusion is oversimplified.

However, it shows that the proposed method does improve CrowdingDE for generating trial vectors. • A case study for integrating locality principle into evolutionary

algorithm• The numerical results can also be viewed as a valuable resource

for comparing the state-of-the-art algorithms for multimodal optimization.

Page 25: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

25

Future Works

Temporal Locality• With the success of spatial locality in this paper, other local

techniques involving the principle of locality could be further explored and verified. For instances, besides space, temporal locality can be integrated into evolutionary algorithms. Say, individuals with the same age could be given higher priority for crossovers. Mutation step size could also be linked to the previous step sizes.

Different distance metrics & transformation functions• Different distance metrics could be adopted in calculating the

locality. For instances, although Euclidean distance is adopted in this paper, it can be further generalized to p-norm distance (or Minkowski distance).

Page 26: Effect of  Spatial Locality  on  An Evolutionary Algorithm for Multimodal Optimization

26

Q & A