Sunteți pe pagina 1din 9

Evolutionary Strategy to Design Optimized Architecture

Carlos Ignacio de la Barrera Poblete1.


1
IDOM-ACXT, Universidad Politécnica de Catalunya, IE School of Architecture,Chile.
1
http://www.designemergente.org,
1
cidelab@gmail.com

Abstract. The purpose of the present experiment consists in optimizing a building modifying
its apertures (windows) and its geometry to reduce heating and air conditioning consumption.
The optimization is performed using a Micro-Genetic Algorithm (Micro-GAs) programmed
in C# embedded like a series of functions into GenerativeComponents (GC). EnergyPlus
(E+) software is used to evaluate the HVAC consumption levels of the building. The aim of
the optimization is to keep the temperature at 20ºC on the hottest and coldest day using the
least possible energy (Jules). In conclusion, this article proposes a new technique based
on parametric modelling, evaluation and evolutionary optimization to generate efficient
buildings with HVAC consumptions.
Keywords. Optimization; Parametric design; Genetic Algorithms; Energy Consumption;
Architecture.

INTRODUCTION
Genetic Algorithms (GAs) were proposed and devel- geometry and the windows’ positions and sizes. This
oped by John Holland in 1960s (Mitchell, 1996). A problem is considered a multi-objective problem
GAs is a programming technique which imitates the because both parameters are related and we cannot
biological evolution as a strategy to resolve prob- minimize one of it without increasing the other.
lems and/or search design that fits certain condi- For example, if we have a big window, in summer
tions. This paper explain in deep how can GAs can be the sun will heat all the pieces of furniture hence it will
applied to design optimized architecture. There are increase the temperature in the room and therefore,
many books and literature about Genetic Algorithms we will have to turn on the air conditioning to keep
and Evolutionary Computation. For further informa- the room at 20ºC. The good news is that we can take
tion please visit: [1 – 5]. advantage of the natural light for more time, and we
can also refresh the house at night releasing the heat
Definition of the problem trapped on the walls by radiation during the day. In
Nowadays, one of the main problems in architec- winter, the same window will capture the heat, but
ture is the HVAC consumption in the buildings. The unfortunately all the heat will be lost very quickly be-
problem to face up in this work consists in reduc- cause it will escape through the same window where
ing the heating and air conditioning modifying the it enters. Therefore, we will have to turn on the heating

Design Tool Development - eCAADe 29 293


quickly and the worst is that all the heating produced Contributors and previous work
will continue escaping trough the window increasing Many Scientists, engineers and architects have been
the heating consumptions. working and experimenting with evolutionary tech-
If we reduce the window to the minimum possi- niques in the form finding of architecture. For further
ble size, what will happen during the summer is that information please visit: [5 – 8]. Nevertheless This
we will not be able to release the heat trapped on work is based on the paper “Architectural Constraints
the walls, so we will have to keep the air conditioning in a Generative Design System: Interpreting Energy
switched on for more time to cool the room and logi- Consumption Levels” by Luisa Caldas and Leslie Nor-
cally we will not be able to take advantage of natural ford at the Seventh International IBSA conference in
light as much as when we have the big window. Be- Rio de Janeiro, Brazil in 2001[9].
sides, as we have a small window he will have to turn In that paper, the researchers encoded one
on the light earlier and since the artificial light heats, of the buildings of the School of Architecture in
we will have to release this heating of the room too. Oporto-designed by Alvaro Siza- to apply a Genetic
In winter, the same small window will not heat the Algorithm to optimize daylight and energy con-
interior of the room and we will have to turn on the sumed to heat and to cool the building. They used
heating almost all the day and probably the night. In this building as test bed and its windows’ geometry
addition, we will have to turn on the light because as a framework to modify and explore different con-
the sunlight within the building will not be enough figurations during the iterations of the algorithm.
because winter is darker than summer. To evaluate the HVAC consumptions they use DOE-
To sum up, a large window performs well in 2.1E which is a building simulation program and a
summer and presents a very bad behaviour in win- Micro-Genetic Algorithm (Micro-GA), which is not
ter. On the contrary, a small window will be a com- described in depth.
plete nuisance in summer, but it will have a better This work is based on a parametric model to
performance in winter. Therefore, the problem is not constrain some relations of the building, to avoid
to enlarge or reduce the window to achieve a single failures in reports during the process of evaluation
parameter, but to find the optimum that balances and to encode in a simple way the parameters of the
both behaviours. building. A Micro-GA is used to search and optimize
There is an extra help for this problem such as the geometry, although it presents some variations
the possibility of modifying the geometry of the in comparison to the traditional way to build this al-
building which will allow us to search and explore gorithm. Other aspects to comment on are that the
creative solutions and to obtain better performances population is very small -5 individuals per generation-
that will be out of reach if we only change the win- and not more than 15 generations are used to obtain
dows’ position and size. the results. This work is programmed basically in C# in
This research pretends to be a seed in the contri- two different levels. The top level corresponds to GC-
bution to the pursuit of sustainable development pro- Script, which is applied to control the geometry and
posing an architectural design’s system to reduce the manage the different classes to compose the GA and
air conditioning and heating consumption by search- transactions files between GC <-> E+. And the bottom
ing the best possible shape applying a Genetic Algo- level, which is pure C# directly written in visual Studio
rithm. The solution of the problem consists in answer- 2008 and embedded into GC through a series of func-
ing the following question: Which is the best build- tions. The programming language C# is used to per-
ing’s geometry and windows’ configuration to keep form the hard tasks such as gaining speed during the
the temperature at 20º during the hottest and coldest process, developing the whole GA and carrying out
day of the year in order to consume less energy?. all the transaction files between the programs. Finally,

294 eCAADe 29 - Design Tool Development


the evaluation of the building is performed by Energy Parametrizing a model needs a double effort,
Plus, which is the evolution of the software used by on one side you have to know exactly what you
Caldas and Norford. need to avoid extra steps in the generation and lose
speed. On the other side, you must know which of
METHOD these parameters constraints are and which of them
This section consists of the explanation of how are flexible. Once the model was parametrized it is
the whole process works, which is divided into the tested under much iteration to observe the behav-
description of the parametric model into GC, the iour and detect possible bugs.
Figure 1
explanation of the thermal model into E+ and the
(The model with the geo- description of the classes and how they are related
metric elements to build the to create the GA.
shape.)

Parametric Model
The model is a perpendicular box to the north, com-
posed by 6 flat surfaces and two windows. One of
the windows faces east and the other west. The mea-
sures of the box are 12 meters in the X direction (east
- west), 10 meters in the Y direction (north - south)
and 4 meters high.
The first step of the construction consists
in 4 parameters called coordXSrfWest, coordYS-
rfWest, coordXSrfEast and coordYSrfEast. These
parameters are used to control the geometry of
the box. The second step is to define 3 points. The
Figure 2
(Testing model after 200
first point lives in the center of the box (point01)
iterations in which is pos- and the others two are defined by the previous pa-
sible to observe the different rameters and are named ptWest and ptEast. The Z
geometries that are able to
coordinate of the three points is a fixed value that
support.)
keeps the surfaces flat, otherwise E+ will not per-
form a correct analysis.
Two vectors (ByOriginDirectionPoint()), are de-
fined from point01 to the points ptEast and ptWest.
These vectors are used to host also two planes (By-
DirectionAndDistanceFromOrigin()), one for the east
side and the other for the west side. These planes
host two coordinate systems (OnPlane()) at their Thermal Model
bases and two polygons are created through a GC- The thermal model corresponds to the other informa-
Script code . The windows are also generated by tion that we need to describe the building. This data
GCScript and their size depends on the flat surface is necessary because it sets the physical characteris-
dimensions (It cannot be bigger than the flat surface tics such as where the building is located, the type
that contains it) and coordinate systems as origin. of weather, which material the walls have, if the win-
The rest four polygons are defined by the vertices of dows are double or simple and etc. This information
the original polygons. and much more are defined in the E+ file.

Design Tool Development - eCAADe 29 295


The important part in this model is that the Technical Classes
geometry (behavior) is defined and manipulated The main technical classes into the GA are GCScript-
into GC and the physical characteristics (proper- FuncVerticesToIdf.cs, GCScriptFuncSleep.cs and
ties) are defined into E+. The correspondence be- GCScriptFuncReadSolution.cs. The class GCScript-
tween the two files must always be the same. For FuncVerticesToIdf.cs transforms the polygons’ verti-
example, if in the IDF (EnergyPlus file) appears 6 ces in a list of strings, then extracts the information
flat surfaces the model must return always 6 flat of the IDF file and replaces the old vertices for the
surfaces. new ones saving the file with the new data loaded.
After this and through the class System.Diagnostic.
The principal characteristics of the model into E+ Process, E+ is called to perform the thermal analysis
•• Building location: Country terrain, Chicago IL. with the new loaded geometry. This class is embed-
•• Windows: Double Panel window with an inte- ded into GC as a function called runSimulation().
rior camera of 3 mm. The class GCScriptFuncSleep.cs sleeps the ap-
•• Walls: Wood siding outside, fiberglass quilt in plication for a couple of seconds meanwhile the
the middle, and plasterboard in the interior. analysis is performed and the new files are created.
•• Roof: Roof deck outside, fiberglass quilt, in the The class GCScriptFuncReadSolution.cs extracts the
middle and plasterboard in the interior. report analysis of the E+ and calculates the average
•• The floor is defined by: Thickness(m): 0.10, of the consumptions, which is divided in three dif-
Conductivity(W/m-K): 1.7296, Density(kg/m3): ferent values: the average heating consumption,
2243.0, Thermal Absorptance: 0.9, Solar Absorp- the average cooling consumption and the average
tance: 0.65, Visible Absorptance: 0.65 of the temperature in the building. Those values are
•• The HVAC system used is a standard configu- returned into an array. This class is embedded into
ration: Heating Supply Air Temperature(C): 50, GC as a function called readDataSolution(). Its re-
Cooling Supply Air Temperature(C): 13, Heat- sults are very important because these values are
ing Supply Air Humidity Ratio(kg-H2O/kg-air): used as the fitness functions into the GA. The aim
0.015, Cooling Supply Air Humidity Ratio(kg- is to reduce these values as much as possible. Once
H2O/kg-air): 0.01 the data is returned to GC another average is calcu-
lated to obtain a single value instead of the three
The output variables are defined into E+. In this original ones.
case, the report corresponds to the consumption of
heating and cooling during the hottest and coldest Genetic operator’s classes
day of a year. Once the first series of classes is performed in or-
der to create the first population, it is time to jump
Classes over the genetic operators. The first operator called
Two types of classes are written in C# in this research, in the code is CSChromosome.cs. This class takes
one kind of classes is used for technical tasks, such the ptEast, ptWest, the two windows and its HVAC
as reading and writing files, calculating the distance consumption (fitness) and decomposes the data in
between points and lines, exporting to excel, saving an array of 31 elements. At the end of the class the
files, executing a program, sleeping the program chromosome presents this structure as it is shown in
and etc. The other type of classes performs the GA, Figure 4. The chromosome is saved in the population
in those we found the traditional genetic operators array and the fitness is printed in the console script.
such as mutation, crossover, fitness function, selec- This class is embedded into GC as a function called
tion and replace. genrChromosome().

296 eCAADe 29 - Design Tool Development


After the population is created, the next opera- very useful in other types of problems. Therefore, it
tor that is applied is the CsnaturalSelection.cs. This is only necessary to create a new possible solution
operator is in charge of sorting the different chromo- with the position of ptEast and ptWest points and
somes in the population from the best to the worst. the windows’ polygons which are related to the ge-
Since we are working with very small population: ometry that is generated randomly in order to avoid
Only 5 candidates per generation, the Roulette- local minimum. Since we are working with only 5
wheel or other types of natural selection are not generations it is necessary to explore all the possible
performed. What this class returns is the same popu- solutions during this small period of time in which
lation sorted from the “best” (the lowest HVAC con- the GA runs.
sumption) to the “worst” solutions (the highest HVAC At the end, the offspring is the coordinates of
consumption). This class is embedded into GC as a ptEast and ptWest points. This class is embedded
function called pfrmElitism(). into GC function under the name pfrmCrossOver().
The next step produced into the GA is the The offspring and the best solution in the previous
crossover in which the best two solutions exchange population are conserved for the next generation;
part of their chromosome to constitute a new pos- nevertheless the offspring incorporates a very small
sible solution which inherits the properties of their mutation in its X and Y coordinates.
parents. Since we are working with a small popula- The class in charge of performing this mutation
tion this operator presents some differences in com- is CSMutation.cs. The mutation depends on a factor
parison with other traditional crossover systems. called MutationPercent and the best results in con-
Several tests were made creating the crossover. For sumption set this value around 0.5. What it is done to
example, if we split the chromosome in two stripes perform the mutation is to calculate a random value
and recombine them to produce two offsprings, this between 0 and 1 (double r = Random.NextDouble()).
type operators will produce a rapidly convergence Then, the MutationPercent is added and subtracted
to a local minimum and stop the optimization at the from the coordinate of a point to find a maximum
second iteration. However, this kind of operator is and a minimum value:

Figure 3
(The chromosome is con-
stituted by a list of doubles.
From 0 to 14, the data on the
list belongs to the east side
and from the 15 to 29 to the
west side. The last value (30)
is the fitness which represents
the HVAC consumption.)

Figure 4
(Parent1 and Parent2 in-
volved in the class crossover
are split to create a new off-
spring. Random choices are
made to define which types
of offspring are returned.
Windows data and HVAC
consumption are discarded in
this operator.)

Design Tool Development - eCAADe 29 297


double high = offspring [i] + percent, double low = values between around 5 and -1, but only two times
offspring [i] – percent the values rose to 6 and 7.
(1)
Discussion
After that, a simple equation is performed in or- The results show that the system performed in most
der to save in the chromosome the new coordinates’ cases very good results decreasing the consumptions
values: of HVAC levels around 17%. Before the GA performed,
the coordXSrfEast parameters were higher than ten
offspringMutate[i] = low + r * (low – high) in all the cases and the coordXSrfWest parameters
(2) were low. This means that a big space will logically
need more consumption to keep the temperature
After the mutation is performed, the mutated at 20ºC than a small one. For the coordYSrfEast and
offspring and the best solution are stored into the coordYSrfWest parameters, the values are in general
new population and 3 more possible candidates are high, which means in geometry that the two surfaces
generated randomly in order to complete the size of facing east and south receive the sun directly in the
the population. The process is repeated N times or morning and in the afternoon. This type of geometry
a stop condition can be defined by a consumption will increase the cooling consumption in the hottest
threshold. day, and if the windows are big the consumption will
be a complete disaster for the coldest day too.
RESULTS The best solutions in general have low values
For this research, the GA system was tested 14 times in the coordYSrfEast and coordYSrfWest coordinates
with the same data environment and the same num- which means that the shape is folded to reduce the
ber of generations -5 in total-. Our results were that area exposed to the east and west. The Y values con-
in 6 tries the GA optimized in all 5 generations, in trol the orientation of the building determining how
other 6 the system was unable to optimize in one much of the area is exposed to the sun. These small
and finally in the other two, the algorithms were un- values indicate that the east and the west surfaces
able to optimize. are facing south direction.
The average consumption at the beginning For the coordXSrfEast, the values are around 10
of the generations in the12 successful tries was: and for the coordXSrfWest are around -6 and only in
1139.0286 w/h. The average consumption after the one of test -12. The X values basically determine the
optimization was: 970.7155 w/h. The reduction rep- size of the building such as the length of the build-
resents the 17.21% less of consumption during the ing that pulls in both surfaces’ directions to face east
hottest and coldest day of a year. The best individual and west. A big value to the east and small value to
in all tests was: 840.4193. the west mean a large building. These parameters af-
fect directly the total volume of the building and as
Geometry a consequence it influences the performance of the
In relation to the geometry, the best results have HVAC consumption.
some similarities. For example, the parameter co- Since this experiment was focused on the ma-
ordXSrfEast was always around 10 in the best solu- nipulation of the geometry, the windows were al-
tions, and the coordYSrfEast was always low, less ways left at random sizes and positions. However, it
than five. Something similar happened with the is possible to observe some similarities among the
west side, coordXSrfWest was always within -5 and windows in the different tests. For example, in all
-12 and the coordYSrfWest was represented with low the cases the GA preferred small windows located

298 eCAADe 29 - Design Tool Development


Figure 5
(The figure shows the 12
successful tests where the
optimization was performed.
It shows the initial and final
consumptions.)

near the edges of the surfaces instead of a center disposed 10 times the west window near the roof
big window as the architects prefer. Another spe- and proposed high and horizontal windows, but
cial feature was the disposition of the windows. the east windows were left more freely generating
The east windows were always disposed on the windows near the floor and in only 4 cases near the
right side of the surface and in the west it occurred roof. When this type of windows’ configuration oc-
exactly the same. Nevertheless, if we look at the curs the GA reduces the consumption by decreas-
building from the east to the west directions, the ing the total volume of the building.
building has the east windows on the right side The GA in all the cases tried to reduce the total vol-
and the west windows on the left side in the best ume of the building and fold their geometry facing the
test. The GA in almost all the cases proposed for the east and west surfaces to the south (10 times) or to the
east side bigger windows than for the west side. Be- north (twice). It never faced the east or west surfaces
sides, the east windows in almost all the cases are directly. The GA tried to capture more energy from the
vertical meanwhile the west are horizontal. The GA east than from the west proposing bigger windows for

Design Tool Development - eCAADe 29 299


Figure 6
(Perspectives of the 12 tests
where the optimization was
successfully performed.)

the east side 9 times. In general, the system left the east The minimum size of the windows was not con-
side with big windows at medium height and the west strained. In some cases, the GA proposed the geom-
side with small horizontal windows near the roof. etry of the windows with minimum sizes, which can
represent an uncomfortable spatial relationship be-
CONCLUSION tween the interior and the exterior of the building.
The GA was able to generate out of 14 tests 12 pos- Therefore, this issue should be revised in the next
sible solutions with low energy consumption levels. works. This simple thermal analysis takes a typical lap-
This makes the building more sustainable which is top about 3.7 seconds to perform. This analysis gen-
an issue that concerns the architectural discipline. erates all the documentation necessary to read the
Small consumptions are reflected in the budget of solutions and gives the geometry the situation of the
the building monthly, which is related to the cost HVAC consumption. This time consumption is ideal
that is, another issue that concerns the architectural and a normal GA with a population of 30 individuals
discipline. and 300 iterations will be the best idea too in contrast

300 eCAADe 29 - Design Tool Development


to the system proposed in this paper. Nevertheless,
the focus of this research points to big scaled projects,
where the analysis may take more than1 hour. For ex-
ample, 5 individuals per 5 generations are at least 25
hours of computing costs. This is the main reason to
propose this GA. The system in this stage is still under
development, and some features must be checked.
For example, when a new population is replaced,
goods reports recommend the use of individuals
with good fitness that were saved in previous genera-
tions instead of generating new ones completely ran-
domly (Zitzler, Kalyanmoy, Thiele and Coello, 2001).
In previous stages of development, different genetic
operators were tested (mutation, crossover and natu-
ral selection) without good results. One of the main
problems with small populations is to fall in minimum
locals. In other words, the high power of inheritance
in a complete crossover (windows and parameters)
stops the optimization in the second or third genera-
tion falling directly in minimum locals.

REFERENCES
Mitchell, M., 1996, An Introduction to Genetic Algo-
rithms, Cambridge, Massachusetts,
Zitzler, E., Kalyanmoy, D., Thiele, L. and Coello Coello,
C.A. 2001, Evolutionary Multi-Criterion Optimiza-
tion, Springer-Verlag, Zurich,.
[1]http://www.obitko.com/tutorials/genetic-algo-
rithms/index.php
[2]http://lancet.mit.edu/~mbwall/presentations/In-
troToGAs/
[3]http://www.talkorigins.org/faqs/genalg/genalg.
html
[4]http://www.genetic-programming.org/
[5]http://www.aaschool.ac.uk/publications/ea/intro.
html
[6]ftp://ftp.forum8.co.jp/forum8lib/pdf/VRsympo-
sium/harvard-2-2.pdf
[7]http://projects.csail.mit.edu/emergentDesign/
genr8/
[8]http://www.armyofclerks.net/
[9]http://www.inive.org/members_area/medias/
pdf/Inive%5CIBPSA%5CUFSC558.pdf

Design Tool Development - eCAADe 29 301

S-ar putea să vă placă și