Genetic algorithms and the hyperdimensional design space
Full text
29 ARQUITECTONICS DOSSIER Chapter I .2: Genetic Algorithms and the Hyperdimensional Design Space Diego nAvArro Genetic algorithms (GAs) represent an opportunity for the architect, a mechanism for introducing complexity and generation at different levels of architectural design. They enhance –but do not replacethe reasonings and intuitions of the designer. Like the mechanism of evolution, GAs recombines a series of designs in successive generations, while applying a selection criterion. The result is a constantly adapting range of variations found in? the so-called “design space”. Computation and biology Chronologically speaking, genetic algorithms (GA) are relatively old. Although their origins can be traced back to the 1950s (Barricelli, 1957), it was not until a decade later that different branches appeared to address the problem with a certain level of maturity: Evolutionary Strategies, Evolutionary Programming and Genetic Algorithms (Holland, 1992; Back, Hammel and Schwefel, 1997a; Fogel, 1999). Later, in the 1990s, these branches were consolidated in the field of evolutionary computation (De Jong, 2006). However, the democratization of parametric design through tools such as Grasshopper or Dynamo during
30 ARQUITECTONICS ARQUITECTONICS the past decade have led to a resurgence of these biomimetic approaches. The possibility of undertaking evolutionary processes in parallel with CAD programs, which are the tools most used by architects, offers new workflows. And reciprocally, it would not be wrong to think that optimization in general has been a driving force in the adoption of parametric modelling. In its integration, the digital model establishes the parameters to be recombined (genes), and most likely the formalization of the geometry and analysis of the objectives. The GA, for its part, manages this combination through selection and reproduction processes. Figure 1 shows a proposal based on this integration, including the biological vocabulary of Evo-Devo science to describe those elements external to the algorithm (Navarro-Mateu, Makki and Cocho-Bermejo, 2018). Based on the biological analogy, GAs is grounded in a series of concepts such as the size of the population, the genes (properties) that define the individuals, the number of generations, the way in which these genes recombine, the “distance” of the relationship between individuals, the elite to be preserved, the mutation probability, the strength with which this mutation is expressed, etc. Figure 1. Workflow diagram explaining the combination between parametric modeling and evolutionary algorithm (EA).
31 ARQUITECTONICS DOSSIER In accordance with these concepts, the parameters of the algorithm are adjusted so that its behavior is the most appropriate for the task at hand (exploration or optimization). It is therefore crucial to understand its implications from a quasi-biological point of view. For example, with respect to the individual-population dichotomy, Mayr defends the value of variations and their distribution in the population, denying the existence of the individual representing a collective (or the project that exemplifies a typology). “An individual that will show in all of its characters the precise mean value for the population as a whole does not exist” (Mayr, 1997) p.29. It is a question of understanding the intrinsic value of the robustness of the population. Even though we may sometimes be interested in a single specimen, its potential will always be influenced by the rest of the population over successive generations. The greater the variety and opposite extremes, the more likely that new combinations will appear. This would include the recommendation to leave room for the appearance of designs that would be considered absurd or useless, since their value would lie in their potential to recombine with other individuals (the so-called helpful monsters). Conversely, a highly homogeneous population optimized for a single task will have trouble adapting to a changing environment (Lacy, 1997). In computational terms, GAs is considered meta-heu- ristic processes (from the Greek εὑρίσκειν: to find, to invent), known for their usefulness in solving generic problems where they provide a good enough solution to an optimization problem, especially with imperfect or incomplete information. In other words, capable of approximating problems that are not fully understood.
32 ARQUITECTONICS ARQUITECTONICS This last characteristic is especially relevant for architecture, whose field cannot be reduced to a universal mathematical formula; architectural design is not a deterministic exercise. While GAs are known for their tendency to be slow (even inconclusive), the robustness and plasticity to address complex has encouraged their use over the years in multiple fields (Branke et al., 2008; Rothlauf, 2011). “The most significant advantage of using evolutionary search lies in the gain of flexibility and adaptability to the task at hand,” (Back, Hammel and Schwefel, 1997b). However, there are two aspects that make them particularly valuable from the perspective of design and architecture: — Compatibility with conflicting (multi-objective) adaptations. — Generation and navigation of a hyper-dimensional design space. Multi-objective algorithms and the Pareto front MOGAs (multi-objective genetic algorithms) are based on the premise that the evolution of the design can serve more than one objective at the same time, and that these objectives may conflict with each other. If we take the Grasshopper ecosystem as a reference, we find several examples of these add-ons: Galapagos (included by default), Octopus, Wallacei, Optimus, Biomorpher, Opossum and Design Space Exploration. Each of them has strengths that make them unique, but most of them have the quality of being multi-objective. Of course, within the MOGAs, numerous algorithms
33 ARQUITECTONICS DOSSIER have their own name and characteristics, NSGA-2 or SPEA-2 being some of the most widely used (Zitzler, Laumanns and Thiele, 2001; Luke, 2013). In contrast to other disciplines that tend to seek unique and optimal results (finding the perfect solution to a problem), architects are inclined to maneuver in a relentless search for balance where all the design inputs are perfectly weighted, being aware of the existence of more alternatives that could be equally suitable as an answer to the premise. This conflict is often explained by the impossibility of choosing the perfect car: horsepower, price, speed, comfort, or flexibility are aspects that can never coexist as maximums. The urban equivalent would include values such as density, health, sunlight, accessibility, public space, etc. The number of aspects that define architecture and the enormous complexity of their relationships turn MOGAs into the perfect tool for architecture development (Cichocka, Browne and Rodriguez, 2017). That said, how are the best individuals selected in the face of such a wide range of contradictory options? The Pareto front (Zitzler, Laumanns and Thiele, 2001; Legriel et al., 2010) enables calculating the superiority of individuals over others, describing a geometry that selects those that stand out in a certain aspect. It should be taken into account that an individual who excels at one aspect may be bad at another, while there are individuals who perform relatively well in all aspects (Deb et al., 2002). Again, extremes are useful to feed back into future combinations. This is where the hyperdimensional problems arise. If a Pareto front resulting from two objectives is represented
34 ARQUITECTONICS ARQUITECTONICS as a curve, when it results from three objectives, it becomes a surface. If there are more targets, and in architecture there always are, other graphic elements such as color or scale are being introduced. It soon becomes clear that one cannot rely on the graphical representation of these fronts, and that it is necessary to rely on the various numerical analyses offered by the programmes. In other words, we enter a process of “evaluating the evaluation,” either by means of a simple calculation, such as fitness average or relative difference, or by using artificial intelligence, such as k-means clustering. On the other hand, the architect will also have to deal with hyper-dimensions in the generative process, thus connecting this narrative with the design space. Considerations regarding the multi-dimensional design space The design space -which is not exclusive to this algorithm- should be understood as the accumulation of possible options. Or, following the biological analogy, as all those species that existed, and will exist. Accordingly, impossible, or non-existent combinations, considered as negative space, are excluded. The design space contains an extra dimension for each changing quality of the design, which are usually much larger than the number of objectives. For example, in the figure below (Fig.2), the slenderness of a prism, defined by the size of its square base (X2) and height Y, is evaluated. In the first row, randomly distributed, the so-called “fitness landscape” is shown. It measures how slender each of the elements is and is applied by means of
35 ARQUITECTONICS DOSSIER colour in the last column. In the second row, we observe the same fitness landscape, adding a gradual distribution of the X and Y. The third row includes a third value (a roof) in the image on the left, adding a new dimension and creating a three-dimensional design space. The image on the right adds a support in the form of a column, pushing the design space into the fourth dimension, which is already difficult to represent. It is still interesting to try and understand this hazy, multi-dimensional space where all the possible combinations Figure 2. Graphical representation of the design space and its adaptationbased on the slenderness of a geometric object the complexity of which increases
36 ARQUITECTONICS ARQUITECTONICS and variations of the project coexist. This is the unnavigable space that only the GA can try to solve, guided by the gravity of the “fitness landscape” It is not devoid of its own difficulties. Architects are no strangers to this kind of investigation, constantly testing the possible variables of the original idea, rejecting, and improving. However, constrained by time, what certainty is there in the selection of the final version? Imagining this fascinating design space is possibly a task doomed to failure. Limited in its visualization, we will be at the mercy of the multi-dimensional and its exponential growth. As with any algorithm that makes use of the benefits of parametric, the size of this design space will depend primarily on two aspects: 1. The flexibility of the design (how different its formalizations can be). 2. The detail of its formalization (how dense the range of precision between each possibility is). This means that ultimately the creation of these spaces and the definition of the objectives are highly affected by the decisions made by the architect who, when posing the problem - thus inserting his/her preconceived premises - can drastically modify the development of the algorithm. Therefore, despite the apparent automation of the process, the correct execution of these algorithms requires a thorough analysis to understand what is happening. If the development of the process cannot be evaluated, the validity of the result cannot be certified. Thus, the architect plays with two aspects: the configuration of the algorithm and the parametric design itself.
37 ARQUITECTONICS DOSSIER Based on the foregoing, it would be normal to seek a balance for the algorithm strategy to be both explorative and optimizing at the same time. However, it may occur that the user’s objective is extremely explorative, uncertain of the generative possibilities; or optimizing, proposing a very limited design space, and only interested in finding the best combination. In any event, these processes can be introduced from the volumetric inception up to the exploded view of a façade. Simple, universal definitions tend to produce varied and unexpected results, while those that describe things in a specific and detailed manner will be oriented towards optimization, -and will hardly be able to go beyond what is established. Likewise, narrowing the limits or increasing the gradients will have an exponential impact on the design space and on the performance of the algorithm. Wicked problems The use of any algorithm implies the necessary condition of “digitizing” architecture. In the case of GAs, everyone is evaluated and is assigned one or more values according to its adaptability to the objectives set. Adaptability is reduced to a list of numbers ordered from highest to lowest. Reducing architectural quality to a single value is certainly a provocative idea. However, the detractor will discover that in attempting to describe and deconstruct architecture in parametric geometry and numerical analysis, one also learns about the projective exercise. Interpreting the successive errors of the GA in an attempt to develop what a priori seemed logical can shed as much or more light than the optimization process