Professional Documents
Culture Documents
Conceptual Evolutionary Design by A Genetic Algorithm: Peter J. Bentley & Jonathan P. Wakefield
Conceptual Evolutionary Design by A Genetic Algorithm: Peter J. Bentley & Jonathan P. Wakefield
1
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
generate designs, but also the creation of algorithms) is growing in popularity amongst
artistic images. some artists. For example, Todd and Latham
have successfully evolved many three
2.1 Creative Design by Computers dimensional 'artistic' images and animations
Early work concentrated on the cognitive area [20]. Their two-part system, consisting of
of creative design automation [8,9], i.e. 'Form Grow' and 'Mutator' uses an
attempting to make a computer 'think' in the evolutionary strategy which creates and
same way as a human, when designing. Such modifies shapes composed of 'artistic'
systems attempted to create descriptions of primitive shapes (e.g. spiral, sphere, torus).
designs at an abstract level, typically using an John Mount shows his 'Interactive Genetic
expert system to 'design'. For example, Dyer's Art' on the internet (at
'EDISON' [9] represented simple mechanical http://robocop.modmath.cs.cmu.edu. 8001).
devices such as doors and can-openers This work uses a GA to modify fractal
symbolically in terms of five components: equations that define two dimensional images.
parts, spatial relationships, connectivity, Additionally, the biologist Richard Dawkins
functionality and processes. Another approach has demonstrated the ability of computers to
consisted of invention based on 'visualising evolve shapes resembling those found in
potential interactions' [22]. This generated nature [7]. Using a simple evolutionary
descriptions of designs in terms of high-level strategy that modifies shapes arranged in tree-
components and the interactions between structures, he has produced images resembling
them, using qualitative reasoning and the shapes of life-forms, e.g. 'spiders', 'beetles',
quantitative algebra. Unfortunately, such and 'flowers'.
methods can typically only deal with highly
simplified designs [18]. However, all of these art creation systems
require the images being evolved to be
More recent work in this area has used evaluated by a human (i.e. artificial selection).
adaptive search techniques such as the genetic Moreover, despite the fact that some of these
algorithm (GA), to evolve new designs. For systems can produce some complex three
example, Michielssen [16] describes an dimensional shapes [20], none of them have
approach for designing optimal multilayer been used to produce anything more than
optical filters using a GA. However, closer 'pretty pictures'.
inspection reveals that the system optimizes
existing preliminary designs rather than The system described in this paper combines
genuinely creating new designs. Pham [18] the creative evolutionary techniques pioneered
reduces the complexity of automated creative by artists (and biologists) with the more
design by presenting the computer with a rigorous methods of automatic creative design.
number of high-level design building blocks This has resulted in a generic design system
for transmission systems, such as rack and which has the 'creative properties' of the art
pinion, worm gear, and belt drive. A GA is systems and is capable of the generation of a
then used to order these elements and thus wide range of useful designs. Furthermore, it
create a new design. is the 'innovative flair' [10] of the genetic
algorithm that gives the system such
Perhaps the work that can most accurately be capabilities.
described as creative design is the recent work
of Rosenman [19], who attempts to evolve new
floorplans for houses. Two dimensional plans 3. THE GENETIC ALGORITHM
are 'grown' using a simplified GA to modify
'cells' organised hierarchically using grammar In addition to its use in creative design and art
rules. However, the system requires much systems, the adaptive search algorithm known
problem-specific knowledge and the elaborate as the genetic algorithm (GA) has become
representation used may actually prevent widely used for the more traditional problem
complex shapes from being formed. of design optimization [1,14,21]. In this and
many other domains, the GA has been shown
2.2 Artistic Image Creation by repeatedly to be a highly flexible stochastic
Computers algorithm, capable of finding good solutions to
The use of computers to create art (usually a wide variety of problems [10,13].
with GAs and similar adaptive search
2
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
3
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
partitioning' [2]. However, since most distinction and actually evaluate genotypes
partitioning methods require large numbers of directly, by having a mapping stage, a simple
definition parameters and are only capable of coded design can be mapped to a complex
crude approximations of some surfaces, a new actual design. The system uses this, when
variation was created for this work. This required, to generate symmetrical designs by
combines ideas from the commonly used reflecting designs in one or more planes
constructive solid geometry (CSG) and during the mapping process. In this way, a
standard spatial partitioning methods, by complex symmetrical design need only have
allowing every partition, or primitive, to vary the non-reflected portion manipulated by the
in size and position, and to be intersected by a GA, thus reducing the difficulty of the design
plane of variable orientation, see Fig. 1. These task for the GA. Additionally, this mapping
highly flexible primitives, when used in stage is used by the system to enforce the rules
combination, are capable of closely of the solid object representation, by mapping
approximating any 3D (and 2D) solid object illegal designs to legal designs (i.e. a design
whilst requiring very few definition with overlapping primitives is corrected by
parameters. As with standard spatial 'squashing' such primitives until they touch
partitioning representations, a design is instead of overlap).
represented by a number of these non-
overlapping primitives. More specifically, a A second point of note concerning the GA is
design is considered illegal if it has primitives the use of multiobjective optimization
which overlap to any extent. Software to techniques, to allow multicriteria design
enforce these rules is contained within the specifications to be handled effectively.
design system [3]. Various alternative multiobjective ranking
methods were explored and compared in
detail, with a new method created for this
4.2 Evolution of Designs work producing the most consistently good
To allow the manipulation of designs results [5]. The resulting multiobjective
represented in this way, a genetic algorithm genetic algorithm can deal with any number of
forms the core of the prototype evolutionary separate objectives, automatically scaling
design system. This GA is initialised with a separate fitness values during evolution in
population of random designs (i.e. starting order to allow all objectives to be treated
from scratch). The algorithm then begins an equally, or according to user-specified relative
iterative process of evaluation and importance values.
reproduction to generate new populations of
increasingly better designs. Alternatively, the The third notable aspect of the GA is the way
system can generate new designs using given that new populations of solutions are
components, by seeding the initial population generated. A standard GA replaces the whole
with randomly positioned design components, population of solutions with an entirely new
and then continuing as before. By fixing all population, every generation. This can mean
parameters specifying depth, two-dimensional that a single, very good solution is lost before
designs can be created in addition to three it can contribute sufficient offspring to future
dimensional designs. (This ability to evolve in generations. Perhaps more distressing
two dimensions is highly beneficial for a however, is the fact that during the final stages
subset of suitable two-dimensional design of evolution, solutions can actually get worse,
problems, however most design applications instead of better. An alternative algorithm
typically require evolution in three known as the 'steady-state' GA [10] does exist
dimensions.) to tackle these problems. This algorithm only
replaces solutions in a population with better
Although initial experiments were performed solutions (i.e. 'killing' the least fit). However,
with a version of Goldberg's 'simple GA' [10], it does not pick the fittest members of a
this was soon found to be inadequate [4,5]. population for reproduction, so the selection
The genetic algorithm currently used is a pressure is considerably reduced, resulting in
hybrid of a number of different types of GA. slower evolution. The hybrid GA used within
Perhaps the three most notable aspects of the the design system uses a similar replacement
GA are as follows: firstly, an explicit mapping method to the steady-state GA, in that less fit
stage between genotypes (coded designs) and solutions are usually replaced by more fit
phenotypes (designs) is maintained within the solutions, but additionally, the fittest are
algorithm. Although some researchers blur the picked for reproduction (i.e. a steady-state GA
4
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
with preferential selection). This means that new evaluation software (or interfacing to
designs evolved by this GA can only improve, existing software). Importantly, all such
and that the speed of the evolution process is software must only specify the function of the
not reduced. desired design. Should any part of the software
specify the shape directly, the system is again
The GA modifies the genotypes of designs by constrained against original design.
using standard, single-point uniform crossover
(i.e. crossover at a single, random point) to Previous work has involved the creation of
generate two offspring from each pair of various modules of evaluation software, to
parent solutions. Mutation occurs with a allow the evaluation of designs for features
probability of 0.05, simply 'flipping' a random such as size, mass, flatness, and stability under
bit in the genotype. Every primitive shape gravity. These have been used in combination
requires nine definition parameters to specify to demonstrate the generic capabilities of the
its 3D position, width, height, depth, and system to evolve solutions to various example
orientation of its clipping plane. Hence, the design tasks [3,4,5]. In this paper, the system
genotype consists of a pre-defined number of is required to design various types of optical
multiples of nine parameter values, coded as prism. To specify the function of most types of
16-bit binary numbers. For example, a two- prism, three main modules of evaluation
primitive design requires eighteen parameters software are required. One module specifies
and a genotype of 288 bits. Alternatively, a the upper and lower boundaries of the size of
two-primitive symmetrical design (i.e. a designs, another defines the input to and
design that has been reflected in a plane to required output light characteristics from the
make it symmetrical) requires only a partial designs, and a third specifies the fact that
design of one primitive (nine parameters) designs should be unfragmented.
coded in the genotype as 144 bits. Because no
hard constraints are used (i.e. every possible MODULE 1: LIMITS UPON SIZE
genotype is mapped to a phenotype of some Perhaps the most basic requirement for any
description), the search-space is continuous. design is that of appropriate size: a penta
Inevitably, however, the more primitives the prism for a camera must not be larger than the
user decides to allow in designs, the larger and camera itself. The size of the design is
more difficult to search this search-space will specified by minimum and maximum extents
be. for the left, right, back, front, top and bottom
of the design, see fig. 2. The fitness of a
4.3 Evaluation of Designs candidate design decreases the further its
To allow the GA to pick 'fit' solutions from the extents fall outside the specified limits.
current population for reproduction every
generation, the decoded solutions (the
phenotypes) must be evaluated. To achieve
this, evaluation software is used. By using
software to evaluate designs, a human
designer is saved the task of laboriously
judging thousands of evolving candidate
designs. Moreover, the potential for originality
by the system is increased by removing the
possible limitation of the 'conventional Figure 2 Desired minimum and maximum
wisdom' of human designers. extents (shown by dotted lines)
of evolved design.
Most design problems can be broken down
into a number of separate criteria (e.g. the Although this module defines a constraint
most basic of these being correct size and rather than an objective, it is implemented as a
mass). By creating 'modular' evaluation soft constraint, i.e. designs of unsatisfactory
software, with each module capable of size are penalised with poor fitness values,
evaluating any suitably represented design for rather than being prevented from existing. The
a particular criterion, complete design definition of acceptable limits of size allows
problems can be specified by a combination of other related criteria, such as the size of the
such modules. In this way, new design reflected image and the distance the light
applications can be specified using mostly should travel from source to destination, to be
existing modules and require a minimum of specified.
5
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
6
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
Figure 5 Correct rhomboid prism (a), failed rhomboid prism attempts (b,c,d).
7
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
8
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
each being shown. Unless otherwise stated, all of refraction, which would 'blur' the colours of
designs were evaluated using five 'light rays' the output image. By specifying that a
as shown in fig. 8. Input rays are shown by symmetrical design was required, the system
arrows, output rays are displayed terminating evolved perfect roof prisms every time, fig. 9
with circles to show the positions of the light (right).
destination points. Light paths as calculated by
the ray-tracing module of evaluation software DEROTATING PRISMS
are shown within the designs. For clarity, not
all rays will be shown for every result.
RIGHT-ANGLE PRISM
9
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
RHOMBOID PRISM
10
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
11
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
requirements such as symmetry, no refraction alternative way, to create new designs from
and that designs should be two-dimensional, previously created components.
the range of acceptable designs becomes more
tightly constrained, thus reducing deceptive Using the system in these ways, good solutions
attractors and increasing the probability of were evolved to all seven of the prism design
evolving good designs. problems tackled, despite the deceptive nature
of these problems for evolutionary search. The
However, for more complex types of prism system was made to evolve this range of
(i.e., prisms with four total internal designs, all with very different geometries,
reflections) providing more information was and all conceptually different, purely by
insufficient. The system was simply unable to changing the design specification in the
avoid the many 'cheating' deceptive attractors evaluation software and initialising the system
to the problem, producing unusual, but appropriately. Inevitably, however, results are
unacceptable designs. By using the system in improved and design criteria simpler to
an alternative way, to evolve designs from specify when the system is applied to other
previously created components, the problem is non-deceptive applications [3,4].
simplified. Although for such complex
designs, the system must manipulate 36 Future work will concentrate on improving the
parameters (compared to 18 for the simpler capabilities of the system further, by allowing
designs), by initialising some of the the number of primitives that represent a
parameters with data describing right-angle design to be optimized by the GA in addition
prisms, the initial population begins at much to the geometries of the primitives. In this
'closer' points to a good solution. This means way, the GA can adjust the size of the effective
that, although all parameters are still search space itself by adding or removing
adjustable by the system, with less far to travel primitives (and hence the corresponding
in the search space, the system has a much definition parameters). This can be achieved
greater chance of finding an acceptable by using a mutation operator to allow groups
solution. Indeed, using this method, of nine coded parameter values to be added or
conceptually correct and nearly optimal removed from genotypes (thus adding or
designs of greater complexity were removing primitive shapes from phenotypes).
consistently produced. A crossover operator capable of meaningfully
generating offspring from chromosomes of
different lengths would then be required.
6. CONCLUSIONS Finally, a simple modification to the system
would also allow it to automatically check for
This paper has demonstrated that evolutionary features such as symmetry and two-
search is capable not only of optimising dimensionality, using them if the fitness
designs, but also creating new conceptual values of such designs are improved by them.
designs. A prototype generic computer design
system based on a genetic algorithm was
described, capable of evolving solutions to a
wide range of solid object design problems.
T system performs the whole design
process, both generating the design concept,
and also optimizing the designs.
12
Engineering Design and Automation 2:3 1996 John Wiley & Sons, Inc.
13