Genetic Algorithms and Genetic Programming Modern Concepts and Practical Applications 1st Edition Michael Affenzeller pdf download
Genetic Algorithms and Genetic Programming Modern Concepts and Practical Applications 1st Edition Michael Affenzeller pdf download
https://ebookgate.com/product/genetic-algorithms-and-genetic-
programming-modern-concepts-and-practical-applications-1st-
edition-michael-affenzeller/
https://ebookgate.com/product/genetic-algorithms-in-
electromagnetics-1st-edition-randy-l-haupt/
ebookgate.com
https://ebookgate.com/product/genetic-counseling-practice-advanced-
concepts-and-skills-second-edition-bonnie-s-leroy/
ebookgate.com
https://ebookgate.com/product/genetic-counseling-practice-advanced-
concepts-and-skills-second-edition-patricia-mccarthy-veach-editor/
ebookgate.com
https://ebookgate.com/product/mobile-genetic-elements-protocols-and-
genomic-applications-1st-edition-wolfgang-j-miller/
ebookgate.com
Restoring Wildlife Ecological Concepts and Practical
Applications 1st Edition Michael L. Morrison
https://ebookgate.com/product/restoring-wildlife-ecological-concepts-
and-practical-applications-1st-edition-michael-l-morrison/
ebookgate.com
https://ebookgate.com/product/crop-physiology-applications-for-
genetic-improvement-and-agronomy-1st-edition-victor-o-sadras/
ebookgate.com
https://ebookgate.com/product/basics-of-programming-and-algorithms-
principles-and-applications-2024th-edition-roberto-mantaci/
ebookgate.com
https://ebookgate.com/product/genetic-ancestry-1st-edition-jada-benn-
torres/
ebookgate.com
Editorial Board
P. Borne, École de Lille, France; G. Carmichael, University of Iowa, USA;
L. Dekker, Delft University of Technology, The Netherlands; A. Iserles, University of
Cambridge, UK; A. Jakeman, Australian National University, Australia;
G. Korn, Industrial Consultants (Tucson), USA; G.P. Rao, Indian Institute of Technology,
India; J.R. Rice, Purdue University, USA; A.A. Samarskii, Russian Academy of Science,
Russia; Y. Takahara, Tokyo Institute of Technology, Japan
The Numerical Insights series aims to show how numerical simulations provide valuable insights
into the mechanisms and processes involved in a wide range of disciplines. Such simulations
provide a way of assessing theories by comparing simulations with observations. These models are
also powerful tools which serve to indicate where both theory and experiment can be improved.
In most cases the books will be accompanied by software on disk demonstrating working
examples of the simulations described in the text.
The editors will welcome proposals using modelling, simulation and systems analysis
techniques in the following disciplines: physical sciences; engineering; environment; ecology;
biosciences; economics.
Volume 1
Numerical Insights into Dynamic Systems: Interactive Dynamic System Simulation with
Microsoft® Windows™ and NT™
Granino A. Korn
Volume 2
Modelling, Simulation and Control of Non-Linear Dynamical Systems: An Intelligent Approach
using Soft Computing and Fractal Theory
Patricia Melin and Oscar Castillo
Volume 3
Principles of Mathematical Modeling: Ideas, Methods, Examples
A.A. Samarskii and A. P. Mikhailov
Volume 4
Practical Fourier Analysis for Multigrid Methods
Roman Wienands and Wolfgang Joppich
Volume 5
Effective Computational Methods for Wave Propagation
Nikolaos A. Kampanis, Vassilios A. Dougalis, and John A. Ekaterinaris
Volume 6
Genetic Algorithms and Genetic Programming: Modern Concepts and Practical Applications
Michael Affenzeller, Stephan Winkler, Stefan Wagner, and Andreas Beham
© 2009 by Taylor & Francis Group, LLC
Genetic
Algorithms and
Genetic
Programming
Modern Concepts and
Practical Applications
This book contains information obtained from authentic and highly regarded sources. Reasonable
efforts have been made to publish reliable data and information, but the author and publisher can‑
not assume responsibility for the validity of all materials or the consequences of their use. The
authors and publishers have attempted to trace the copyright holders of all material reproduced
in this publication and apologize to copyright holders if permission to publish in this form has not
been obtained. If any copyright material has not been acknowledged please write and let us know so
we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced,
transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or
hereafter invented, including photocopying, microfilming, and recording, or in any information
storage or retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copy‑
right.com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222
Rosewood Drive, Danvers, MA 01923, 978‑750‑8400. CCC is a not‑for‑profit organization that pro‑
vides licenses and registration for a variety of users. For organizations that have been granted a
photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and
are used only for identification and explanation without intent to infringe.
QA9.58.G46 2009
006.3’1‑‑dc22 2009003656
List of Tables xi
List of Figures xv
Introduction xxv
v
© 2009 by Taylor & Francis Group, LLC
vi Genetic Algorithms and Genetic Programming
References 327
8.1 Exemplary edge map of the parent tours for an ERX operator. 138
xi
© 2009 by Taylor & Francis Group, LLC
xii Genetic Algorithms and Genetic Programming
10.13 Parameter values used in the CVRP test runs applying a stan-
dard GA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
10.14 Results of a GA using roulette-wheel selection, 3-tournament
selection and various mutation operators. . . . . . . . . . . 226
10.15 Parameter values used in CVRP test runs applying a GA with
OS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
10.16 Results of a GA with offspring selection and population sizes
of 200 and 400 and various mutation operators. The configu-
ration is listed in Table 10.15. . . . . . . . . . . . . . . . . . 232
10.17 Showing results of a GA with offspring and a population size
of 500 and various mutation operators. The configuration is
listed in Table 10.15. . . . . . . . . . . . . . . . . . . . . . . 234
xv
© 2009 by Taylor & Francis Group, LLC
xvi Genetic Algorithms and Genetic Programming
2.18 The rooted tree GP schema ∗(=, = (x, =)) and three exem-
plary programs of the schema’s semantics. . . . . . . . . . . 53
2.19 The GP schema H = +(*(=,x),=) and exemplary u and l
schemata. Cross bars indicate crossover points; shaded re-
gions show the parts of H that are replaced by “don’t care”
symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
2.20 The GP hyperschema ∗(#, = (x, =)) and three exemplary
programs that are a part of the schema’s semantics. . . . . 56
2.21 The GP schema H = +(∗(=, x), =) and exemplary U and L
hyperschema building blocks. Cross bars indicate crossover
points; shaded regions show the parts of H that are modified. 57
2.22 Relation between approximate and exact schema theorems for
different representations and different forms of crossover (in
the absence of mutation). . . . . . . . . . . . . . . . . . . . 58
2.23 Examples for bloat. . . . . . . . . . . . . . . . . . . . . . . . 60
11.1 Dynamic diesel engine test bench at the Institute for Design
and Control of Mechatronical Systems, JKU Linz. . . . . . . 238
11.2 Evaluation of the best model produced by GP for test strategy
(1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
11.3 Evaluation of the best model produced by GP for test strategy
(2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
11.4 Evaluation of models for particulate matter emissions of a
diesel engine (snapshot showing the evaluation of the model
on validation / test samples). . . . . . . . . . . . . . . . . . 244
11.5 Errors distribution of models for particulate matter emissions. 244
11.6 Cumulative errors of models for particulate matter emissions. 245
11.7 Target N Ox values of N Ox data set II, recorded over ap-
proximately 30 minutes at 20Hz recording frequency yielding
∼36,000 samples. . . . . . . . . . . . . . . . . . . . . . . . . 247
11.8 Target HoribaN Ox values of N Ox data set III. . . . . . . . 248
11.9 Target HoribaN Ox values of N Ox data set III, samples 6000
– 7000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
11.10 Two exemplary ROC curves and their area under the ROC
curve (AUC). . . . . . . . . . . . . . . . . . . . . . . . . . . 255
11.11 An exemplary graphical display of a multi-class ROC (MROC)
matrix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
11.12 Classification example: Several samples with original class
values C1 , C2 , and C3 are shown; the class ranges result from
the estimated values for each class and are indicated as cr1 ,
cr2 , and cr3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
11.13 An exemplary hybrid structure tree of a combined formula
including arithmetic as well as logical functions. . . . . . . . 265
11.14 Graphical representation of the best result we obtained for
the Thyroid data set, CV-partition 9: Comparison of original
and estimated class values. . . . . . . . . . . . . . . . . . . . 272
11.15 ROC curves and their area under the curve (AUC) values for
classification models generated for Thyroid data, CV-set 9. 273
11.16 MROC charts and their maximum and average area under
the curve (AUC) values for classification models generated
for Thyroid data, CV-set 9. . . . . . . . . . . . . . . . . . . 274
11.17 Graphical representation of a classification model (formula),
produced for 10-fold cross validation partition 3 of the Thy-
roid data set. . . . . . . . . . . . . . . . . . . . . . . . . . . 275
11.18 pctotal values for an exemplary run of series I. . . . . . . . . 287
11.19 pctotal values for an exemplary run of series II. . . . . . . . 287
11.20 pctotal values for an exemplary run of series III. . . . . . . . 288
11.21 Selection pressure progress in two exemplary runs of test se-
ries III and V (extended GP with gender specific parent se-
lection and strict offspring selection). . . . . . . . . . . . . . 291
11.22 Distribution of similarity values in an exemplary run of NOx
test series A, generation 200. . . . . . . . . . . . . . . . . . 297
11.23 Distribution of similarity values in an exemplary run of NOx
test series A, generation 4000. . . . . . . . . . . . . . . . . . 298
11.24 Distribution of similarity values in an exemplary run of NOx
test series (D), generation 20. . . . . . . . . . . . . . . . . . 298
11.25 Distribution of similarity values in an exemplary run of NOx
test series (D), generation 95. . . . . . . . . . . . . . . . . . 299
11.26 Population diversity progress in exemplary Thyroid test runs
of series (A) and (D) (shown in the upper and lower graph,
respectively). . . . . . . . . . . . . . . . . . . . . . . . . . . 299
11.27 Exemplary multi-population diversity of a test run of Thyroid
series F at iteration 50, grayscale representation. . . . . . . 305
11.28 Code growth in GP without applying size limits or complexity
punishment strategies (left: standard GP, right: extended
GP). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
11.29 Progress of formula complexity in one of the test runs of series
(1g), shown for the first ∼400 iterations. . . . . . . . . . . . 315
11.30 Progress of formula complexity in one of the test runs of series
(1h) (shown left) and one of series (2h) (shown right). . . . 316
11.31 Model with best fit on training data: Model structure and
full evaluation. . . . . . . . . . . . . . . . . . . . . . . . . . 318
11.32 Model with best fit on validation data: Model structure and
full evaluation. . . . . . . . . . . . . . . . . . . . . . . . . . 318
11.33 Errors distributions of best models: Charts I, II, and III show
the errors distributions of the model with best fit on training
data evaluated on training, validation, and test data, respec-
tively; charts IV, V, and VI show the errors distributions of
the model with best fit on validation data evaluated on train-
ing, validation, and test data, respectively. . . . . . . . . . . 319
11.34 A simple workbench in HeuristicLab 2.0. . . . . . . . . . . . 323
xxiii
© 2009 by Taylor & Francis Group, LLC
Introduction
The book is structured into a theoretical and an empirical part. The aim of
the theoretical part is to describe the important and characteristic properties
of the basic genetic algorithm as well as the main characteristics of the algo-
rithmic extensions introduced here. The empirical part of the book elaborates
two case studies: On the one hand, the traveling salesman problem (TSP) and
the capacitated vehicle routing problem (CVRP) are used as representatives
for GAs applied to combinatorial optimization problems. On the other hand,
GP-based nonlinear structure identification applied to time series and clas-
sification problems is analyzed to highlight the properties of the algorithmic
measures in the field of genetic programming. The borderlines between theory
and practice become indistinct in some parts as it is also necessary to describe
theoretical properties on the basis of practical examples in the first part of the
book. For this purpose we go back to some small-dimensioned TSP instances
that are perfectly suited for theoretical GA considerations.
xxv
© 2009 by Taylor & Francis Group, LLC
xxvi Genetic Algorithms and Genetic Programming
evant alleles rather than the survival of above average chromosomes. This
is achieved by defining the survival probability of a new child chromosome
depending on the child’s fitness in comparison to the fitness values of its own
parents. With these measures it becomes possible to channel the relevant
alleles, which are initially scattered in the entire population, to single chro-
mosomes at the end of the genetic search process.
Time series and classification analysis are used as application areas of data-
based structure identification with genetic programming working with for-
mula trees representing mathematical models. As a matter of principle, we
use standard problem representations and the appropriate problem-specific
genetic operators known from GA and GP theory for the experiments shown
in these chapters. The focus is set on the comparison of results achievable with
standard GA and GP implementations to the results achieved using the ex-
tended algorithmic concepts described in this book. These enhanced concepts
do not depend on a concrete problem representation and its operators; their
influences on population dynamics in GA and GP populations are analyzed,
too.
1
© 2009 by Taylor & Francis Group, LLC
2 Genetic Algorithms and Genetic Programming
A special and quite restricted GA variant, that has represented the basis for
theoretical considerations for a long period of time, is given in Figure 1.1. This
chart sketches a GA with binary representation operating with generational
replacement, a population of constant size, and the following genetic opera-
tors: roulette wheel selection, single point crossover, and bit flip mutation.
This special type of genetic algorithms, which is the basis for theoretical GA
research such as the well known schema theorem and accordingly the building
block hypothesis, is also called the canonical genetic algorithm (CGA).
FIGURE 1.1: The canonical genetic algorithm with binary solution encoding.
Although some of Darwin’s proposals were not new, his ideas (particularly
those on common descent and natural selection) provided the first solid foun-
dation upon which evolutionary biology has been built.
At this point it may be useful to formally introduce some essential parts of
the biological terminology which are used in the context of genetic algorithms:
• All living organisms consist of cells containing the same set of one or
more chromosomes, i.e., strings of DNA. A gene can be understood
as an “encoder” of a characteristic, such as eye color. The different
possibilities for a characteristic (e.g., brown, green, blue, gray) are called
alleles. Each gene is located at a particular position (locus) on the
chromosome.
• Most organisms have multiple chromosomes in each cell. The sum of all
chromosomes, i.e., the complete collection of genetic material, is called
the genome of the organism and the term genotype refers to the partic-
ular set of genes contained in a genome. Therefore, if two individuals
have identical genomes, they are said to have the same genotype.
• For producing a new child, the genes of the parents are combined to
eventually form a new diploid set of chromosomes. Offspring are sub-
ject to mutation where elementary parts of the DNA (nucleotides) are
changed. The fitness of an organism (individual) is typically defined as
its probability to reproduce, or as a function of the number of offspring
the organism has produced.
inspired the GA-community at most. This is most probably due to the easier
and more effective representation and implementation of single-chromosome
individuals.
• Linear-rank selection:
In the context of linear-rank selection the individuals of the population
are ordered according to their fitness and copies are assigned in such a
way that the best individual receives a pre-determined multiple of the
number of copies the worst one receives [GB89]. On the one hand rank
selection implicitly reduces the dominating effects of “super individuals”
in populations (i.e., individuals that are assigned a significantly better
fitness value than all other individuals), but on the other hand it warps
the difference between close fitness values, thus increasing the selection
pressure in stagnant populations. Even if linear-rank selection has been
used with some success, it ignores the information about fitness differ-
ences of different individuals and violates the schema theorem.
• Tournament selection:
There are a number of variants on this theme. The most common one
is k-tournament selection where k individuals are selected from a pop-
ulation and the fittest individual of the k selected ones is considered
for reproduction. In this variant selection pressure can be scaled quite
easily by choosing an appropriate number for k.
Parents
Crossover
Children
points, i.e., the evolvement of longer building blocks becomes more and
more difficult. Decreasing the number of crossover points during the
run of the GA may be a good compromise.
• Uniform crossover:
Given two parents, each gene in the offspring is created by copying
the corresponding gene from one of the parents. The selection of the
corresponding parent is undertaken via a randomly generated crossover
mask: At each index, the offspring gene is taken from the first parent
if there is a 1 in the mask at this index, and otherwise (if there is a 0
in the mask at this index) the gene is taken from the second parent.
Due to this construction principle uniform crossover does not support
the evolvement of higher order building blocks.
1.4.3 Mutation
Mutations allow undirected jumps to slightly different areas of the search
space. The basic mutation operator for binary coded problems is bitwise
mutation. Mutation occurs randomly and very rarely with a probability pm ;
typically, this mutation rate is less than ten percent. In some cases mutation
is interpreted as generating a new bit and in others it is interpreted as flipping
the bit.
In higher order alphabets, such as integer numbering formulations, muta-
tion takes the form of replacing an allele with a randomly chosen value in the
appropriate range with probability pm . However, for combinatorial optimiza-
tion problems, such mutation schemes can cause difficulties with chromosome
legality; for example, multiple copies of a given value can occur which might
be illegal for some problems (including routing). Alternatives suggested in
literature include pairwise swap and shift operations as for instance described
in [Car94].
In addition, adaptive mutation schemes similar to mutation in the context
of evolution strategies are worth mentioning. Adaptive mutation schemes
vary either the rate, or the form of mutation, or both during a GA run. For
instance, mutation is sometimes defined in such a way that the search space
is explored uniformly at first and more locally towards the end, in order to do
a kind of local improvement of candidate solutions [Mic92].
• Generational Replacement:
The entire population is replaced by its descendants. Similar to the
(µ, λ) evolution strategy it might therefore happen that the fitness of
the best individual decreases at some stage of evolution. Additionally,
this strategy puts into perspective the dominance of a few individuals
which might help to avoid premature convergence [SHF94].
• Elitism:
The best individual (or the n best individuals, respectively) of the pre-
vious generation are retained for the next generation which theoretically
allows immortality similar to the (µ + λ) evolution strategy and might
• Delete-n-last:
The n weakest individuals are replaced by n descendants. If n ≪ |P OP |
we speak of a steady-state replacement scheme; for n = 1 the changes
between the old and the new generation are certainly very small and n =
|P OP | gives the already introduced generational replacement strategy.
• Delete-n:
In contrast to the delete-n-last replacement strategy, here not the n
weakest but rather n arbitrarily chosen individuals of the old generation
are replaced, which on the one hand reduces the convergence speed of
the algorithm but on the other hand also helps to avoid premature
convergence (compare elitism versus weak elitism).
• Tournament Replacement:
Competitions are run between sets of individuals from the last and the
actual generation, with the winners becoming part of the new popula-
tion.
ways how to use binary representation for the TSP, the most straightforward
one being to encode each city as a string of log2 n bits and a solution candidate
as a string of n(log2 n) bits. Crossover is then simply performed by applying
single-point crossover as proposed by Holland [Hol75]. Further attempts us-
ing binary encoding have been proposed using binary matrix representation
([FM91], [HGL93]). In [HGL93], Homaifar and Guan for example defined a
matrix element in the i-th row and the j-th column to be 1 if and only if in the
tour city j is visited after city i; they also applied one- or two- point crossover
on the parent matrices, which for one-point crossover means that the child
tour is created by just taking the column vectors left of the crossover point
from one parent, and the column vectors right of the crossover point from the
other parent.
Obviously, these strategies lead to highly illegal tours which are then re-
paired by additional repair strategies [HGL93], which is exactly the point
where a GA can no longer act as it is supposed to. As the repair strate-
gies have to introduce a high amount of genetic information which is neither
from the one nor from the other parent, child solutions emerge whose genetic
make-up has only little in common with its own parents; this counteracts the
general functioning of GAs as given in a more general interpretation of the
schema theorem and the according building block hypothesis.
Using the adjacency representation for the TSP (as described in [LKM+ 99],
e.g.), a city j is listed in position i if and only if the tour leads from city i to
city j. Based on the adjacency representation, the so-called alternating edges
crossover has been proposed for example which basically works as follows:
First it chooses an edge from one parent and continues with the position of
this edge in the other parent representing the next edge, etc. The partial
tour is built up by choosing edges from the two parents alternatingly. In case
this strategy would produce a cycle, the edge is not added, but instead the
operator randomly selects an edge from the edges which do not produce a
cycle and continues in the way described above.
fH (t)
m(H, t + 1) = m(H, t) (1.1)
f (t)
where fH (t) is the average fitness value of the string representing schema H,
while f (t) is the average fitness value over all strings within the population.
Assuming that a particular schema remains above the average by a fixed
amount cf (t) for a number t of generations, the solution of the equation given
above can be formulated as the following exponential growth equation:
δ(H)
pc (1.3)
l−1
The defining length δ of a schema is the distance between the first and
the last fixed string position. For example, for the schema [###0#0101]
δ = 9 − 4 = 5. Obviously, short defining length schemata are less likely to
be disrupted by a single point crossover operator. The main result is that
above average schemata with short defining lengths will still be sampled at an
exponential increasing rate. These schemata with above average fitness and
short defining length are the so-called building blocks and play an important
role in the theory of genetic algorithms.
The effects of mutation are described in a rather straightforward way: If
the bit mutation probability is pm , then the probability of survival of a single
bit is 1 − pm ; since single bit mutations are independent, the total survival
probability is therefore (1 − pm )l with l denoting the string length. But in the
context of schemata only the fixed, i.e., non-wildcard, positions matter. This
number is called the order o(H) of schema H and equals to l minus the number
of “don’t care” symbols. Then the probability of surviving a mutation for a
fH (t) δ(H)
m(H, t + 1) ≥ m(H, t) [1 − pc − o(H)pm ] (1.4)
f (t) l−1
The result essentially says that the number of short schemata with low order
and above average quality grows exponentially in subsequent generations of a
genetic algorithm.
Still, even if the schema theorem is a very important result in GA theory, it
is obtained under idealized conditions that do not hold for most practical GA
applications. Both the individual representation and the genetic operators are
often different from those used by Holland. The building block hypothesis has
been found reliable in many cases but it also depends on the representation and
on the genetic operators. Therefore, it is easy to find or to construct problems
for which it is not verified. These so-called deceptive problems are studied in
order to find out the inherent limitations of GAs, and which representations
and operators can make them more tractable. A more detailed description of
the underlying theory can for instance be found in [Raw91] or [Whi93].
The major drawback of the building block theory is given by the fact
that the underlying GA (binary encoding, proportional selection, single-point
crossover, strong mutation) is applicable only to very few problems as it re-
quires more sophisticated problem representations and corresponding oper-
ators to tackle challenging real-world problems. Therefore, a more general
theory is an intense topic in GA research since its beginning. Some theo-
retically interesting approaches like the forma theory of Radcliffe and Surry
[RS94], who consider a so-called forma as a more general schema for arbitrary
representations, state requirements to the operators, which cannot be fulfilled
for practical problems with their respective constraints.
By the end of the last millennium, Stephens and Waelbroeck ([SW97],
[SW99]) developed an exact GA schema theory. The main idea is to de-
scribe the total transmission probability α of a schema H so that α(H, t) is
the probability that at generation t the individuals of the GA’s population
will match H (for a GA working on fixed-length bit strings). Assuming a
crossover probability pxo , α(H, t) is calculated as1 :
N −1
pxo X
α(H, t) = (1 − pxo )p(H, t) + p(L(H, i), t)p(R(H, i), t) (1.5)
N − 1 i=1
with L(H, i) and R(H, i) being the left and right parts of schema H, respec-
tively, and p(H, t) the probability of selecting an individual matching H to
1 We here give the slightly modified version as stated in [LP02]; it is equivalent to the results
in [SW97] and [SW99] assuming pm = 0.
Keeping in mind that the ultimate goal of any heuristic optimization tech-
nique is to approximately and efficiently solve highly complex real-world prob-
lems rather than stating a mathematically provable theory that holds only
under very restricted conditions, our intention for an extended building block
theory is a not so strict formulation that in return can be interpreted for ar-
bitrary GA applications. At the same time, the enhanced variants of genetic
algorithms and genetic programming proposed in this book aim to support the
algorithms in their intention to operate in the sense of an extended building
block interpretation discussed in the following chapters.
The basic idea behind many parallel and distributed programs is to divide
a task into partitions and solve them simultaneously using multiple proces-
sors. This divide-and-conquer approach can be used in different ways, and
leads to different methods to parallelize GAs where some of them change the
behavior of the GA whereas others do not. Some methods (as for instance
fine-grained parallel GAs) can exploit massively parallel computer architec-
tures, while others (coarse-grained parallel GAs, e.g.) are better qualified for
multi-computers with fewer and more powerful processing elements. Detailed
descriptions and classifications of distributed GAs are given in [CP01], [CP97]
or [AT99] and [Alb05]; the scalability of parallel GAs is discussed in [CPG99].
A further and newer variant of parallel GAs which is based on offspring selec-
tion (see Chapter 4) is the so-called SASEGASA algorithm which is discussed
in Chapter 5.
Master
Slaven
Slave1
…
Slave2 Slave4
Slave3
2 In general, a population is called panmictic when all individuals are possible mating part-
ners.
Migration
direction
Island Model
Fine-grained models consider a large number of very small demes; Figure 1.5
sketches a fine-grained parallel GA. This class of parallel GAs has one spatially
distributed population; it is suited for massively parallel computers, but it
can also be implemented on other supercomputing architectures. A typical
example is the diffusion model [Müh89] which represents an intrinsic parallel
GA-model.
The basic idea behind this model is that the individuals are spread through-
out the global population like molecules in a diffusion process. Diffusion
models are also called cellular models. In the diffusion model a processor
is assigned to each individual and recombination is restricted to the local
neighborhood of each individual.
1.7.4 Migration
Especially for coarse-grained parallel GAs the concept of migration is con-
sidered to be the main success criterion in terms of achievable solution quality.
The most important parameters for migration are:
The most essential question concerning migration is when and to which ex-
tent migration should take place. Much theoretical work considering this has
already been done; for a survey of these efforts see [CP97] or [Alb05]. It is
very usual for parallel GAs that migration occurs synchronously meaning that
it occurs at predetermined constant intervals. However, synchronous migra-
tion is known to be slow and inefficient in some cases [AT99]. Asynchronous
migration schemes perform communication between demes only after specific
events. The migration rate which determines how many individuals undergo
migration at every exchange can be expressed as a percentage of the popula-
tion size or as an absolute value. The majority of articles in this field suggest
migration rates between 5% and 20% of the population size. However, the
choice of this parameter is considered to be very problem dependent [AT99].
A recent overview of various migration techniques is given in [CP01].
Recent theory of self-adaptive selection pressure steering (see Chapters 4
and 5) plays a major role in defying the conventions of recent parallel GA-
theory. Within these models it becomes possible to detect local premature
convergence, i.e., premature convergence in a certain deme. Thus, local pre-
mature convergence can be detected independently in all demes, which should
give a high potential in terms of efficiency especially for parallel implementa-
tions. Furthermore, the fact that selection pressure is adjusted self-adaptively
with respect to the potential of genetic information stored in the certain demes
makes the concept of a parallel GA much more independent in terms of mi-
gration parameters (see [Aff05] and Chapter 5).
These things are often helps to humility, and defend us from vain
glory.
For then we better run to God our inward witness, when outwardly
we are despised by men, and little credit is given to us.
Then also he well perceives that perfect security and full peace
cannot be found in this world.
Chap. XIII.
Of resisting temptation.
1. As long as we live in this world, we cannot be without tribulation
and temptation.
There is not any order so holy, nor place so retired, where there
are not temptations and adversities.
Many seek to fly temptations, and fall more grievously into them.
In temptation, often take counsel, and deal not roughly with one
that is tempted: but comfort him, as thou wouldst wish to be done
to thyself.
We often know not what we can do: but temptation discovers what
we are.
And thus, by little and little, the wicked enemy gets full entrance,
when he is not resisted in the beginning.
And how much the longer a man is negligent in resisting: so much
the weaker does he daily become in himself, and the enemy
becomes stronger against him.
And some there are who are much troubled in a manner all their
life time.
Some are but lightly tempted, according to the Wisdom and equity
of the ordinance of God, who weighs the state and merits of men,
and pre-ordains all for the salvation of his elect.
Let us therefore humble our souls, under the hand of God in all
temptations and tribulations: for the humble in spirit he will save
and exalt.
1. Turn thy eyes back upon thyself, and see thou judge not the
doings of others.
In judging others a man labours in vain, often errs, and easily sins;
but in judging and looking into himself, he always labours with
fruit.
If God were always the only object of our desire, we should not so
easily be disturbed at the resistance of our opinions.
Many secretly seek themselves in what they do, and are not
sensible of it.
They seem also to continue in good peace, when things are done
according to their will and judgment: but if it fall out contrary to
their desires, they are soon moved and become sad.
If thou reliest more upon thine own reason or industry than upon
the virtue that subjects to Jesus Christ, thou wilt seldom and hardly
be an enlightened man: for God will have us perfectly subject to
himself, and to transcend all reason by inflamed love.
Chap. XV.
Of works done out of charity.
1. Evil ought not to be done, either for any thing in the world, or
for the love of any man: but for the profit of one that stands in
need, a good work is sometimes freely to be omitted, or rather to
be changed for a better.
For, by doing thus, a good work is not lost, but is changed into a
better.
For God regards more with how much affection and love a person
performs a work, than how much he does.
He does well who regards rather the common good than his own
will.
Chap. XVI.
Of bearing the defects of others.
Think, that it perhaps is better so for thy trial and patience: without
which, our merits are little worth.
If thou canst not make thyself such a one as thou wouldst: how
canst thou expect to have another according to thy liking?
We would willingly have others perfect: and yet we mend not, our
own defects.
3. We would have others strictly corrected: but are not willing to be
corrected ourselves.
The large liberty of others displeases us: and yet we would not be
denied any thing we ask for.
If all were perfect: what then should we have to suffer from others
for God's sake?
4. But now God has so disposed things, that we may learn to bear
one another's burdens: for there is no man without defect; no man
without his burden: no man sufficient for himself; no man wise
enough for himself: but we must support one another, comfort one
another, assist, instruct, and admonish one another.
But how great each one's virtue is, best appears by occasion of
adversity: for occasions do not make a man frail, but shew what he
is.
Chap. XVII.
Of a monastic life.
1. Thou must learn to renounce thy own will in many things, if thou
wilt keep peace and concord with others.
Blessed is he who has there lived well, and made a happy end.
If thou wilt stand as thou oughtest, and make a due progress, look
upon thyself as a banished man, and a stranger upon earth.
Thou must be content to be made a fool for Christ, if thou wilt lead
a religious life.
He that seeks here any other thing than purely God and the
salvation of his soul, will find nothing but trouble and sorrow.
Neither can he long remain in peace, who does not strive to be the
least, and subject to all.
3. Thou camest hither to serve, not to govern: know that thou art
called to suffer and to labour, not to be idle and talkative.
Here no man can stand, unless he be willing with all his heart to
humble himself for the love of God.
Chap. XVIII.
Of the example of the holy fathers.
1. Look upon the lively examples of the holy fathers, in whom true
perfection and religion was most shining, and thou wilt see how
little, and almost nothing, that is which we do.
The saints and friends of Christ served the Lord in hunger and
thirst; in cold and nakedness; in labour and weariness; in watchings
and fastings; in prayers and holy meditations; in persecutions and
many reproaches.
2. Ah! how many and how grievous tribulations have the apostles,
martyrs, confessors, virgins, and all the rest, gone through, who
have been willing to follow Christ's footsteps: for they hated their
lives in this world, that they might possess them for eternity.
O! how strict and mortified a life did the holy fathers lead in the
desert! How long and grievous temptations did they endure! how
often were they molested by the enemy! What frequent and fervent
prayers did they offer to God! What rigorous abstinence did they go
through! What great zeal and fervour had they for their spiritual
progress! How strong a war did they wage for overcoming vice!
How pure and upright was their intention to God!
They laboured all the day, and in the nights, they gave themselves
to long prayers: though even whilst they were at work, they ceased
not from mental prayer.
3. They spent all their time profitably: every hour seemed short
which they spent with God: and through the great sweetness of
divine contemplation, they forgot even the necessity of their bodily
refreshment.
They were given as an example for all religious: and ought more to
excite us to make good progress, than the number of the lukewarm
to grow slack.
O! how great was their devotion in prayer! how great their zeal for
virtue!
The footsteps remaining still bear witness that they were truly
perfect and holy men: who waging war so stoutly, trod the world
under their feet.
The falling off from our resolution happens divers ways: and a
small omission in our exercises seldom passeth without some loss.
The resolutions of the just depend on the grace of God, rather than
on their own wisdom: and in whom they always put their trust,
whatever they take in hand.
For man proposes, but God disposes: nor is the way of man in his
own hands.
3. If for piety's sake, or with a design to the profit of our brother,
we sometimes omit our accustomed exercises, it may afterwards be
easily recovered.
We must examine and order well both our exterior and interior!
because both conduce to our advancement.
Prepare thyself like a man to resist the wicked attacks of the devil;
bridle gluttony, and thou shalt the easier restrain all carnal
inclinations.
All cannot have the self same exercise: but this is more proper for
one, and that for another.
Chap. XX.
Of the love of solitude and silence.
1. Seek a proper time to retire into thyself, and often think of the
benefits of God.
If thou wilt withdraw thyself from superfluous talk and idle visits, as
also from giving ear to news and reports, thou wilt find time
sufficient and proper to employ thyself in good meditations.
Yet the security of the saints was always full of the fear of God.
But the security of the wicked arises from pride and presumption;
and will end in deceiving themselves.
Thou shalt find in thy cell what thou shalt often lose abroad.
Thy cell, if thou continue in it, grows sweet: but if thou keep not to
it, it becomes tedious and distasteful.
6. In silence and quiet the devout soul goes forward, and learns
the secrets of the scriptures.
There she finds floods of tears, with which she may wash and
cleanse herself every night: that she may become so much the
more familiar with her Maker, by how much the farther she lives
from all worldly tumult.
For God with his holy angels will draw nigh to him, who withdraws
himself from his acquaintance and friends.
It is better to lie hid, and take care of one's self, than neglecting
one's self to work even miracles.
7. Why wilt thou see what thou must not have? The world
passeth and its concupiscences. 1 John ii.
The desires of sensuality draw thee abroad: but when the hour is
past, what dost thou bring home, but a weight upon thy
conscience, and a dissipation of heart.
So all carnal joy enters pleasantly; but in the end brings remorse
and death.
What canst thou see elsewhere which thou seest not here? Behold
the heaven and the earth, and all the elements; for of these are all
things made.
8. What canst thou see any where which can continue long under
the sun?
If thou couldst see any thing at once before thee, what would it be
but a vain sight?
Lift up thine eyes to God on high, and pray for thy sins and
negligences.
Leave vain things to vain people: but mind thou the things which
God has commanded thee.
Shut thy doors upon thee, and call to thee Jesus thy beloved.
Stay with him in thy cell, for thou shalt not find so great peace any
where else.
Chap. XXI.
Of compunction of heart.
1. If thou wilt make any progress keep thyself in the fear of God,
and be not too free, but restrain all thy senses under discipline, and
give not thyself up to foolish mirth.
It is wonderful that any man can heartily rejoice in this life, who
weighs and considers his banishment, and the many dangers of his
soul.
There is no true liberty, nor good joy, but in the fear of God with a
good conscience.
If thou canst let men alone, they will let thee do what thou hast to
do.
3. Busy not thyself with other men's affairs, nor entangle thyself
with the causes of great ones.
Have always an eye upon thyself in the first place: and take special
care to admonish thyself preferably to all thy dearest friends.
If thou hast not the favour of men, be not grieved thereat: but let
thy concern be, that thou dost not carry thyself so well and so
circumspectly as it becomes a servant of God, and a devout
religious man to demean himself.
The subjects for just grief and interior compunction are our vices
and sins, in which we lie entangled in such manner, as seldom to
be able to contemplate heavenly things.
But because these things reach not the heart, and we still love the
things which flatter us, therefore we remain cold and very sluggish.
Pray therefore humbly to our Lord, that he may give thee the spirit
of compunction: and say with the prophet: Feed me, Lord, with
the food of tears, and give me drink of tears in measure.
Chap. XXII.
Of the consideration of the misery of man.
1. Thou art miserable wherever thou art, and which way soever
thou turnest thyself, unless thou turn thyself to God.
Why art thou troubled because things do not succeed with thee
according to thy will and desire?
2. Many unstable and weak men are apt to say: behold how well
such a one lives, how rich, how great, how mighty and powerful!
But attend to heavenly goods, and thou wilt see that all these
temporal things are nothing, but very uncertain, and rather
burdensome: because they are never possessed without care and
fear.
The more a man desireth to be spiritual, the more this present life
becomes distasteful to him: because he the better understands,
and more clearly sees the defects of human corruption.
3. For the inward man is very much burdened with the necessities
of the body in this world.
But wo to them that know not their own misery, and more wo to
them that love this miserable and corruptible life.
For some there are who love it to that degree, although they can
scarce get necessaries by labouring or begging, that if they could
live always here, they would not care at all for the kingdom of God.
Miserable wretches! they will in the end find to their cost, how vile
a nothing that was which they so much loved.
But the saints of God, and all the devout friends of Christ, made no
account of what pleased the flesh, or flourished in this life; but
their whole hope and intentions aspired to eternal goods.
5. Why wilt thou put off thy resolution from day to day? Arise, and
begin this very moment, and say: Now is the time for doing, and
now is the time to fight; now is the proper time to amend my life.
When thou art troubled and afflicted, then is the time to merit.
Thou must pass through fire and water, before thou comest to
refreshment.
We would fain be at rest from all misery: but because we have lost
innocence by sin, we have also lost true happiness.
We must therefore have patience, and wait for the mercy of God,
till iniquity pass away, and this mortality be swallowed up by
immortal life.
That may also quickly be lost through negligence, which with much
labour and time was hardly gotten by grace.
Chap. XXIII.
Of the thoughts of death.
1. Very quickly must thou be gone from hence: see then how
matters stand with thee: a man is here to-day, and to-morrow he is
vanished.
And when he is taken away from the sight, he is quickly also out of
mind.
To-morrow is an uncertain day; and how dost thou know that thou
shalt be alive to-morrow?
Ah! long life does not always make us better, but often adds to our
guilt!
Many count the years of their conversion; but oftentimes the fruit
of amendment is but small.
Blessed is he that has always the hour of his death before his eyes,
and every day disposes himself to die.
If thou hast at any time seen a man die, think that thou must also
pass the same way.
3. In the morning, imagine thou shalt not live till night: and when
evening comes, presume not to promise thyself the next morning.
Many die suddenly, and when they little think of it: For the Son of
Man will come at the hour when he is not looked for.
Matthew xxiv. When that last hour shall come, thou wilt begin to
have quite other thoughts of thy whole past life: and thou wilt be
exceedingly grieved that thou hast been so negligent and remiss.
Thou mayest do many good things whilst thou art well: but when
thou art sick, I know not what thou wilt be able to do.
Few are improved by sickness; they also that travel much abroad
seldom become holy.
5. Trust not in thy friends and kinsfolks, nor put off the welfare of
thy soul to hereafter: for men will sooner forget thee than thou
imaginest.
If thou art not now careful for thyself, who will be careful for thee
hereafter?
But it is greatly to be lamented, that thou dost not spend this time
more profitably: wherein thou mayest acquire a stock on which
thou mayest live for ever! The time will come, when thou wilt wish
for one day or hour to amend: and I know not whether thou wilt
obtain it.
6. O my dearly beloved, from how great a danger mayest thou
deliver thyself: from how great a fear mayest thou be freed, if thou
wilt but now be always fearful, and looking for death! Strive now so
to live, that in the hour of thy death thou mayest rather rejoice
than fear.
Learn now to die to the world, that then thou mayest begin to live
with Christ.
Learn now to despise all things, that then thou mayest freely go to
Christ.
Chastise thy body now by penance, that thou mayest then have an
assured confidence.
7. Ah! fool! why dost thou think to live long, when thou art not
sure of one day?
How often hast thou heard related, that such a one was slain by
the sword; another drowned; another falling from on high, broke
his neck: this man died at the table; that other came to his end
when he was at play.
Thus death is the end of all, and man's life passeth suddenly like a
shadow.
8. Who will remember thee when thou art dead; and who will pray
for thee?
Do now, beloved, do now all thou canst, because thou knowest not
when thou shalt die: nor dust thou know what shall befal thee after
death.
Whilst thou hast time, heap up to thyself riches that will never die;
think of nothing but thy salvation; care for nothing but the things
of God.
Keep thy heart free, and raised upwards to God; because thou hast
not here a lasting city.
Send thither thy daily prayer, with sighs and tears; that after death
thy spirit may be worthy to pass happily to our Lord. Amen.
Chap. XXIV.
Of judgment and the punishment of sins.
1. In all things look to thy end, and how thou shalt be able to
stand before a severe Judge, to whom nothing is hidden: who
takes no bribes, nor receives excuses, but will judge that which is
just.
O most wretched and foolish sinner, what answer wilt thou make to
God, who knows all thy evils? thou who sometimes art afraid of the
looks of an angry man.
Why dost thou not provide for thy self against the day of judgment,
when no man can be excused or defended by another; but every
one shall have enough to do to answer for himself?
At present thy labour is profitable; thy tears are acceptable; thy
sighs will be heard, and thy sorrow is satisfactory, and may purge
away thy sins.
It is better now to purge away our sins, and cut up our vices, than
to reserve them to be purged hereafter.
3. What other things shall that fire feed on but thy sins?
The more thou sparest thyself now, and followest the flesh, the
more grievously shalt thou suffer hereafter, and the more fuel dost
thou lay up for that fire.
There the slothful shall be pricked forward with burning goads, and
the glutton will be tormented with extreme hunger and thirst.
There the luxurious and the lovers of pleasure will be covered all
over with burning pitch and stinking brimstone, and the envious,
like mad dogs, will howl for grief.
Be careful at present, and sorrowful for thy sins: that in the day of
judgment thou mayest be secure with the blessed.
For then the just shall stand with great constancy against
those that afflicted and oppressed them. Wisdom v.
Then the poor and humble will have great confidence: and the
proud will fear on every side.
5. Then it will appear that he was wise in this world, who learned
for Christ's sake to be a fool, and despised.
Then all tribulation suffered with patience will be pleasing, and all
iniquity shall stop her mouth. Psalms cvi.
Then every devout person will rejoice, and the irreligious will be
sad.
Then the flesh that has been mortified shall triumph more than if it
had always been pampered in delights.
Then shall the mean habit shine, and fine clothing appear
contemptible.
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about books and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookgate.com