Baixe Global Optimization Algorithms e outras Notas de estudo em PDF para Engenharia Naval, somente na Docsity!
Global Optimization Algorithms
– Theory and Application –
2nd Ed
Evolutionary Algorithms............................... 75 Genetic Algorithms................................... 123 Genetic Programming................................ 139 Learning Classifier Systems........................... 217 Hill Climbing......................................... 237 Simulated Annealing.................................. Example Applications................................ 299 Sigoa – Implementation in Java....................... 439 Background (Mathematics, Computer Science,... )... 455
Thomas Weise Version: 2008-11-
Newest Version: http://www.it-weise.de/
VI
available, links are provided in the reference text. By clicking on such a link, the Adobe Reader©R^2 will open another window and load the regarding document (or a browser window of a site that links to the document). After reading it, the student may use the “backwards” button in the navigation utility to go back to the text initially read in the e-book.
The contents of this book are divided into four parts. In the first part, different optimization technologies will be introduced and their features are described. Often, small examples will be given in order to ease understanding. In the second part starting at page 299 , we elab- orate on different application examples in detail. With the Sigoa framework, one possible implementation of optimization algorithms in Java, is discussed and we show how some of solutions of the previous problem instances can be realized in Part III on page 439. Finally, in the last part following at page 455 , the background knowledge is provided for the rest of the book. Optimization is closely related to stochastic, and hence, an introduction into this subject can be found here. Other important background information concerns theoretical computer science and clustering algorithms.
However, this book is currently worked on. It is still in a very preliminary phase where major parts are still missing or under construction. Other sections or texts are incomplete (tagged with TODO). There may as well be errors in the contents or issues may be stated ambigu- ously (I do not have proof-readers). Additionally, the sequence of the content is not very good. Because of frequent updates, small sections may grow and become chapters, be moved to another place, merged with other sections, and so on. Thus, this book will change often. I choose to update, correct, and improve this book continuously instead of providing a new version each half year or so because I think this way it has a higher utility because it provides more information earlier. By doing so, I also risk confusing you with strange grammar and structure, so if you find something fishy, please let me know so I can correct and improve it right away.
The updates and improvements will result in new versions of the book, which will regularly appear on the website http://www.it-weise.de/. The direct download link to the newest version of this book is http://www.it-weise.de/projects/book.pdf. The LATEX source code of this book including all graphics and the bibliography is available at http://www. it-weise.de/projects/bookSource.zip. The source may not always be the one of the most current version of the book. Compiling it requires multiple runs of BibTEX because of the nifty way the references are incorporated.
I would be very happy if you provide feedback, report errors or missing things that you have found, criticize something, or have any additional ideas or suggestions. Do not hesitate to contact me via my email address [email protected]. Matter of fact, a large number of people helped me to improve this book over time. I have enumerated the most important contributors in Chapter C – Thank you guys, I really appreciate your help!
Copyright ©c 2006-2008 Thomas Weise.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License (FDL). You can find a copy of the GNU Free Documentation Li- cense in appendix Chapter A on page 575.
(^2) The Adobe Reader ©R (^) is available for download at http://www.adobe.com/products/reader/ [accessed 2007-08-13].
VII
At many places in this book we refer to Wikipedia [2] which is a great source of knowledge. Wikipedia [2] contains articles and definitions for many of the aspects discussed in this book. Like this book, it is updated and improved frequently. Therefore, including the links adds greatly to the book’s utility, in my opinion.
Important Notice Be aware that this version of this book marks a point of transition from the first edition to the second one. Major fractions of the text of the first edition have not yet been revised and are, thus, not included in this document. However, I believe that this version corrects many shortcomings as well as inconsistencies from the first edition plus is better structured.
Contents
Preface.................................................................... V
Contents................................................................... IX
- 1 Introduction Part I Global Optimization
- 1.1 A Classification of Optimization Algorithms
- 1.1.1 Classification According to Method of Operation
- 1.1.2 Classification According to Properties
- 1.2 What is an optimum?
- 1.2.1 Single Objective Functions
- 1.2.2 Multiple Objective Functions
- 1.2.3 Weighted Sum
- 1.2.4 Pareto Optimization
- 1.2.5 The Method of Inequalities
- 1.2.6 External Decision Maker
- 1.2.7 Prevalence Optimization
- 1.3 The Structure of Optimization
- 1.3.1 Spaces, Sets, and Elements
- 1.3.2 Fitness Landscapes and Global Optimization
- 1.3.3 Gradient Descend
- 1.3.4 Other General Features
- 1.4 Problems in Optimization
- 1.4.1 Introduction
- 1.4.2 Premature Convergence
- 1.4.3 Ruggedness and Weak Causality
- 1.4.4 Deceptiveness
- 1.4.5 Neutrality and Redundancy
- 1.4.6 Epistasis
- 1.4.7 Noise and Robustness
- 1.4.8 Overfitting and Oversimplification
- 1.4.9 Dynamically Changing Fitness Landscape
- 1.4.10 The No Free Lunch Theorem
- 1.4.11 Conclusions
- 1.5 Formae and Search Space/Operator Design
- 1.5.1 Forma Analysis
- 1.5.2 Genome Design
- 1.6 General Information X CONTENTS
- 1.6.1 Areas Of Application
- 1.6.2 Conferences, Workshops, etc.
- 1.6.3 Journals
- 1.6.4 Online Resources
- 1.6.5 Books
- 2 Evolutionary Algorithms
- 2.1 Introduction
- 2.1.1 The Basic Principles from Nature
- 2.1.2 The Basic Cycle of Evolutionary Algorithms
- 2.1.3 The Basic Evolutionary Algorithm Scheme
- 2.1.4 From the Viewpoint of Formae
- 2.1.5 Does the natural Paragon Fit?
- 2.1.6 Classification of Evolutionary Algorithms
- 2.1.7 Configuration Parameters of evolutionary algorithms
- 2.2 General Information
- 2.2.1 Areas Of Application
- 2.2.2 Conferences, Workshops, etc.
- 2.2.3 Journals
- 2.2.4 Online Resources
- 2.2.5 Books
- 2.3 Fitness Assignment
- 2.3.1 Introduction
- 2.3.2 Weighted Sum Fitness Assignment
- 2.3.3 Pareto Ranking
- 2.3.4 Sharing Functions
- 2.3.5 Variety Preserving Ranking
- 2.3.6 Tournament Fitness Assignment
- 2.4 Selection
- 2.4.1 Introduction
- 2.4.2 Truncation Selection
- 2.4.3 Fitness Proportionate Selection
- 2.4.4 Tournament Selection
- 2.4.5 Ordered Selection
- 2.4.6 Ranking Selection
- 2.4.7 VEGA Selection
- 2.4.8 Simple Convergence Prevention
- 2.5 Reproduction
- 2.6 Algorithms
- 3 Genetic Algorithms
- 3.1 Introduction
- 3.2 General Information
- 3.2.1 Areas Of Application
- 3.2.2 Conferences, Workshops, etc.
- 3.2.3 Online Resources
- 3.2.4 Books
- 3.3 Genomes in Genetic Algorithms
- 3.4 Fixed-Length String Chromosomes
- 3.4.1 Creation
- 3.4.2 Mutation
- 3.4.3 Permutation CONTENTS XI
- 3.4.4 Crossover
- 3.5 Variable-Length String Chromosomes
- 3.5.1 Creation
- 3.5.2 Mutation
- 3.5.3 Crossover
- 3.6 Schema Theorem
- 3.6.1 Schemata and Masks
- 3.6.2 Wildcards
- 3.6.3 Holland’s Schema Theorem
- 3.6.4 Criticism of the Schema Theorem
- 3.6.5 The Building Block Hypothesis
- 3.7 The Messy Genetic Algorithm
- 3.7.1 Representation
- 3.7.2 Reproduction Operations
- 3.7.3 The Splice Operator
- 3.7.4 Overspecification and Underspecification
- 3.7.5 The Process
- 3.8 Genotype-Phenotype Mappings and Artificial Embryogeny
- 4 Genetic Programming
- 4.1 Introduction
- 4.2 General Information
- 4.2.1 Areas Of Application
- 4.2.2 Conferences, Workshops, etc.
- 4.2.3 Journals
- 4.2.4 Online Resources
- 4.2.5 Books
- 4.3 (Standard) Tree Genomes
- 4.3.1 Creation
- 4.3.2 Mutation
- 4.3.3 Recombination
- 4.3.4 Permutation
- 4.3.5 Editing
- 4.3.6 Encapsulation
- 4.3.7 Wrapping
- 4.3.8 Lifting
- 4.3.9 Automatically Defined Functions
- 4.3.10 Automatically Defined Macros
- 4.3.11 Node Selection
- 4.4 Genotype-Phenotype Mappings
- 4.4.1 Cramer’s Genetic Programming
- 4.4.2 Binary Genetic Programming
- 4.4.3 Gene Expression Programming
- 4.4.4 Edge Encoding
- 4.5 Grammars in Genetic Programming
- 4.5.1 Introduction
- 4.5.2 Trivial Approach
- 4.5.3 Strongly Typed Genetic Programming
- 4.5.4 Early Research in GGGP
- 4.5.5 Gads
- 4.5.6 Grammatical Evolution
- 4.5.7 Gads
- 4.5.8 Christiansen Grammar Evolution XII CONTENTS
- 4.5.9 Tree-Adjoining Grammar-guided Genetic Programming
- 4.6 Linear Genetic Programming
- 4.6.1 Introduction
- 4.6.2 Advantages and Disadvantages
- 4.6.3 The Compiling Genetic Programming System
- 4.6.4 Automatic Induction of Machine Code by Genetic Programming
- 4.6.5 Java Bytecode Evolution
- 4.6.6 Brameier and Banzhaf: LGP with Implicit Intron removal
- 4.6.7 Homologous Crossover
- 4.6.8 Page-based LGP
- 4.7 Graph-based Approaches
- 4.7.1 Parallel Algorithm Discovery and Orchestration
- 4.7.2 Parallel Distributed Genetic Programming
- 4.7.3 Genetic Network Programming
- 4.7.4 Cartesian Genetic Programming
- 4.8 Epistasis in Genetic Programming
- 4.8.1 Forms of Epistasis in Genetic Programming
- 4.8.2 Algorithmic Chemistry
- 4.8.3 Soft Assignment
- 4.8.4 Rule-based Genetic Programming
- 4.9 Artificial Life and Artificial Chemistry
- 4.9.1 Push, PushGP, and Pushpop
- 4.9.2 Fraglets
- 4.10 Problems Inherent in the Evolution of Algorithms
- 4.10.1 Correctness of the Evolved Algorithms
- 4.10.2 All-Or-Nothing?
- 4.10.3 Non-Functional Features of Algorithms
- 5 Evolution Strategy
- 5.1 Introduction
- 5.2 General Information
- 5.2.1 Areas Of Application
- 5.2.2 Conferences, Workshops, etc.
- 5.2.3 Books
- 5.3 Populations in Evolution Strategy
- 5.3.1 (1 + 1)-ES
- 5.3.2 (μ + 1)-ES
- 5.3.3 (μ + λ)-ES
- 5.3.4 (μ, λ)-ES
- 5.3.5 (μ/ρ, λ)-ES
- 5.3.6 (μ/ρ + λ)-ES
- 5.3.7 (μ′, λ′(μ, λ)γ )-ES
- 5.4 One-Fifth Rule
- 5.5 Differential Evolution
- 5.5.1 Introduction
- 5.5.2 General Information
- 6 Evolutionary Programming
- 6.1 Introduction
- 6.2 General Information
- 6.2.1 Areas Of Application
- 6.2.2 Conferences, Workshops, etc.
- 6.2.3 Books
- 7 Learning Classifier Systems CONTENTS XIII
- 7.1 Introduction
- 7.2 General Information
- 7.2.1 Areas Of Application
- 7.2.2 Conferences, Workshops, etc.
- 7.2.3 Books
- 7.3 The Basic Idea of Learning Classifier Systems
- 7.3.1 Messages
- 7.3.2 Conditions
- 7.3.3 Actions
- 7.3.4 Classifiers
- 7.3.5 Non-Learning Classifier Systems
- 7.3.6 Learning Classifier Systems
- 7.3.7 The Bucket Brigade Algorithm
- 7.3.8 Applying the Genetic Algorithm
- 7.4 Families of Learning Classifier Systems
- 8 Ant Colony Optimization
- 8.1 Introduction
- 8.2 General Information
- 8.2.1 Areas Of Application
- 8.2.2 Conferences, Workshops, etc.
- 8.2.3 Journals
- 8.2.4 Online Resources
- 8.2.5 Books
- 8.3 River Formation Dynamics
- 9 Particle Swarm Optimization
- 9.1 Introduction
- 9.2 General Information
- 9.2.1 Areas Of Application
- 9.2.2 Online Resources
- 9.2.3 Conferences, Workshops, etc.
- 9.2.4 Books
- 10 Hill Climbing
- 10.1 Introduction
- 10.2 General Information
- 10.2.1 Areas Of Application
- 10.3 Multi-Objective Hill Climbing
- 10.4 Problems in Hill Climbing
- 10.5 Hill Climbing with Random Restarts
- 10.6 GRASP
- 10.6.1 General Information
- 10.7 Raindrop Method
- 11 Random Optimization
- 11.1 Introduction
- 11.2 General Information
- 11.2.1 Areas Of Application
- 12 Simulated Annealing XIV CONTENTS
- 12.1 Introduction
- 12.2 General Information
- 12.2.1 Areas Of Application
- 12.2.2 Books
- 12.3 Temperature Scheduling
- 12.4 Multi-Objective Simulated Annealing
- 13 Extremal Optimization
- 13.1 Introduction
- 13.1.1 Self-Organized Criticality
- 13.1.2 The Bak-Sneppens model of Evolution
- 13.2 Extremal Optimization and Generalized Extremal Optimization
- 13.3 General Information
- 13.3.1 Areas Of Application
- 14 Tabu Search
- 14.1 Introduction
- 14.2 General Information
- 14.2.1 Areas Of Application
- 14.2.2 Books
- 14.3 Multi-Objective Tabu Search
- 15 Memetic and Hybrid Algorithms
- 15.1 Memetic Algorithms
- 15.2 Lamarckian Evolution
- 15.3 Baldwin Effect
- 15.4 Summary on Lamarckian and Baldwinian Evolution
- 15.5 General Information
- 15.5.1 Areas Of Application
- 15.5.2 Online Resources
- 15.5.3 Books
- 16 Downhill Simplex (Nelder and Mead)
- 16.1 Introduction
- 16.2 General Information
- 16.2.1 Areas Of Application
- 16.2.2 Online Resources
- 16.2.3 Books
- 16.3 The Downhill Simplex Algorithm
- 16.4 Hybridizing with the Downhill Simplex
- 17 State Space Search
- 17.1 Introduction
- 17.2 General Information
- 17.2.1 Areas Of Application
- 17.2.2 Books
- 17.3 Uninformed Search
- 17.3.1 Breadth-First Search
- 17.3.2 Depth-First Search
- 17.3.3 Depth-limited Search
- 17.3.4 Iterative Deepening Depth-First Search
- 17.3.5 Random Walks
- 17.4 Informed Search
- 17.4.1 Greedy Search CONTENTS XV
- 17.4.2 A⋆ search
- 17.4.3 Adaptive Walks
- 18 Parallelization and Distribution
- 18.1 Analysis
- 18.2 Distribution
- 18.2.1 Client-Server
- 18.2.2 Island Model
- 18.2.3 Mixed Distribution
- 18.3 Cellular Genetic Algorithms
- 19 Maintaining the Optimal Set
- 19.1 Updating the Optimal Set
- 19.2 Obtaining Optimal Elements
- 19.3 Pruning the Optimal Set
- 19.3.1 Pruning via Clustering
- 19.3.2 Adaptive Grid Archiving
- 20 Experimental Settings, Measures, and Evaluations Part II Applications
- 20.1 Settings
- 20.1.1 The Optimization Problem
- 20.1.2 The Optimization Algorithm Applied
- 20.1.3 Other Run Parameters
- 20.2 Measures
- 20.3 Evaluation
- 20.3.1 Simple Evaluation Measures
- 20.3.2 Sophisticated Estimates
- 20.4 Verification
- 20.4.1 Confidence Intervals or Statistical Tests
- 20.4.2 Factorial Experiments
- 21 Benchmarks and Toy Problems
- 21.1 Real Problem Spaces
- 21.1.1 Single-Objective Optimization
- 21.1.2 Multi-Objective Optimization
- 21.1.3 Dynamic Fitness Landscapes
- 21.2 Binary Problem Spaces
- 21.2.1 Kauffman’s NK Fitness Landscapes
- 21.2.2 The p-Spin Model
- 21.2.3 The ND Family of Fitness Landscapes
- 21.2.4 The Royal Road
- 21.2.5 OneMax and BinInt
- 21.2.6 Long Path Problems
- 21.2.7 Tunable Model for Problematic Phenomena
- 21.3 Genetic Programming Problems
- 21.3.1 Artificial Ant
- 21.3.2 The Greatest Common Divisor
- 22 Contests XVI CONTENTS
- 22.1 DATA-MINING-CUP
- 22.1.1 Introduction
- 22.1.2 The 2007 Contest – Using Classifier Systems
- 22.2 The Web Service Challenge
- 22.2.1 Introduction
- 22.2.2 The 2006/2007 Semantic Challenge
- 23 Real-World Applications
- 23.1 Symbolic Regression
- 23.1.1 Genetic Programming: Genome for Symbolic Regression
- 23.1.2 Sample Data, Quality, and Estimation Theory
- 23.1.3 An Example and the Phenomenon of Overfitting
- 23.1.4 Limits of Symbolic Regression
- 23.2 Global Optimization of Distributed Systems
- 23.2.1 Introduction
- 23.2.2 Optimizing Network Topology
- 23.2.3 Optimizing Routing
- 23.2.4 Synthesizing Protocols
- 23.2.5 Optimizing Network Security
- 23.2.6 Optimizing Parameters and Configurations
- 23.2.7 Paper List
- 23.2.8 Conclusions
- 24 Research Applications
- 24.1 Genetic Programming of Distributed Algorithms
- 24.1.1 Introduction
- 24.1.2 Evolving Proactive Aggregation Protocols
- 25 Introduction Part III Sigoa – Implementation in Java
- 25.1 Requirements Analysis
- 25.1.1 Multi-Objectivity
- 25.1.2 Separation of Specification and Implementation
- 25.1.3 Separation of Concerns
- 25.1.4 Support for Pluggable Simulations and Introspection
- 25.1.5 Distribution utilities
- 25.2 Architecture
- 25.3 Subsystems
- 26 Examples
- 26.1 The 2007 DATA-MINING-CUP
- 26.1.1 The Phenotype
- 26.1.2 The Genotype and the Embryogeny
- 26.1.3 The Simulation
- 26.1.4 The Objective Functions
- 26.1.5 The Evolution Process
- 27 Set Theory CONTENTS XVII
- 27.1 Set Membership
- 27.2 Relations between Sets
- 27.3 Special Sets
- 27.4 Operations on Sets
- 27.5 Tuples
- 27.6 Lists
- 27.7 Binary Relations
- 27.7.1 Functions
- 27.7.2 Order Relations
- 27.7.3 Equivalence Relations
- 28 Stochastic Theory and Statistics
- 28.1 General Information
- 28.2 Probability
- 28.2.1 Probabily as defined by Bernoulli (1713)
- 28.2.2 The Limiting Frequency Theory of von Mises
- 28.2.3 The Axioms of Kolmogorov
- 28.2.4 Conditional Probability
- 28.2.5 Random Variable
- 28.2.6 Cumulative Distribution Function
- 28.2.7 Probability Mass Function
- 28.2.8 Probability Density Function
- 28.3 Stochastic Properties
- 28.3.1 Count, Min, Max and Range
- 28.3.2 Expected Value and Arithmetic Mean
- 28.3.3 Variance and Standard Deviation
- 28.3.4 Moments
- 28.3.5 Skewness and Kurtosis
- 28.3.6 Median, Quantiles, and Mode
- 28.3.7 Entropy
- 28.3.8 The Law of Large Numbers
- 28.4 Some Discrete Distributions
- 28.4.1 Discrete Uniform Distribution
- 28.4.2 Poisson Distribution πλ
- 28.4.3 Binomial Distribution B(n, p)
- 28.5 Some Continuous Distributions
- 28.5.1 Continuous Uniform Distribution
- 28.5.3 Exponential Distribution exp(λ)
- 28.5.4 Chi-square Distribution
- 28.5.5 Student’s t-Distribution
- 28.6 Example – Throwing a Dice
- 28.7 Estimation Theory
- 28.7.1 Introduction
- 28.7.2 Likelihood and Maximum Likelihood Estimators
- 28.7.3 Confidence Intervals
- 28.7.4 Density Estimation
- 28.8 Statistical Tests
- 28.8.1 Non-Parametric Tests
- 28.9 Generating Random Numbers
- 28.9.1 Generating Pseudorandom Numbers
- 28.9.2 Random Functions
- 28.9.3 Converting Random Numbers to other Distributions XVIII CONTENTS
- 28.10List of Functions
- 28.10.1Gamma Function
- 28.10.2Riemann Zeta Function
- 29 Clustering
- 29.1 Distance Measures
- 29.1.1 Distance Measures for Strings of Equal Length
- 29.1.2 Distance Measures for Real-Valued Vectors
- 29.1.3 Elements Representing a Cluster
- 29.1.4 Distance Measures Between Clusters
- 29.2 Clustering Algorithms
- 29.2.1 Cluster Error
- 29.2.2 k-means Clustering
- 29.2.3 nth Nearest Neighbor Clustering
- 29.2.4 Linkage Clustering
- 29.2.5 Leader Clustering
- 30 Theoretical Computer Science
- 30.1 Introduction
- 30.1.1 Algorithms and Programs
- 30.1.2 Properties of Algorithms
- 30.1.3 Complexity of Algorithms
- 30.1.4 Randomized Algorithms
- 30.2 Distributed Systems and Distributed Algorithms
- 30.2.1 Network Topologies
- 30.2.2 Some Architectures of Distributes Systems
- 30.3 Grammars and Languages
- 30.3.1 Syntax and Formal Languages
- 30.3.2 Generative Grammars
- 30.3.3 Derivation Trees
- 30.3.4 Backus-Naur Form
- 30.3.5 Extended Backus-Naur Form
- 30.3.6 Attribute Grammars
- 30.3.7 Extended Attribute Grammars
- 30.3.8 Adaptive Grammars
- 30.3.9 Christiansen Grammars
- 30.3.10Tree-Adjoining Grammars
- 30.3.11S-expressions
- A GNU Free Documentation License (FDL) Part V Appendices
- A.1 Preamble
- A.2 Applicability and Definitions
- A.3 Verbatim Copying
- A.4 Copying in Quantity
- A.5 Modifications
- A.6 Combining Documents
- A.7 Collections of Documents
- A.8 Aggregation with Independent Works
- A.9 Translation
- A.10 Termination
- A.11 Future Revisions of this License CONTENTS XIX
- B GNU Lesser General Public License (LPGL)
- B.1 Preamble
- B.2 Terms and Conditions for Copying, Distribution and Modification
- B.3 No Warranty
- B.4 How to Apply These Terms to Your New Libraries
- C Credits and Contributors
- D Citation Suggestion
- References
- Index
- List of Figures
- List of Tables
- List of Algorithms
- List of Listings
Part I
Global Optimization