Genetic Algorithms for Optimization of Building

0 downloads 0 Views 442KB Size Report
... of interest to building- services engineers include capital and operating costs, thermal ... timization of building form; and optimization of the design and operation of HVAC .... Niche-induction techniques are used to spread the population.
L. G. Caldas Department of Civil Engineering and Architecture, Instituto Superior Te´cnico, Technical University of Lisbon, Av. Rovisco Pais, 1049-001 Lisbon, Portugal e-mail: [email protected]

L. K. Norford Massachusetts Institute of Technology, School of Architecture and Planning, Department of Architecture, 77 Massachusetts Ave., #5-418D, Cambridge, MA 02139-4301 e-mail: [email protected]

Genetic Algorithms for Optimization of Building Envelopes and the Design and Control of HVAC Systems Many design problems related to buildings involve minimizing capital and operating costs while providing acceptable service. Genetic algorithms (GAs) are an optimization method that has been applied to these problems. GAs are easily configured, an advantage that often compensates for a sacrifice in performance relative to optimization methods selected specifically for a given problem, and have been shown to give solutions where other methods cannot. This paper reviews the basics of GAs, emphasizing multi-objective optimization problems. It then presents several applications, including determining the size and placement of windows and the composition of building walls, the generation of building form, and the design and operation of HVAC systems. Future work is identified, notably interfaces between a GA and both simulation and CAD programs. 关DOI: 10.1115/1.1591803兴

Introduction The design and operation of buildings involve a number of choices to satisfy many criteria. Criteria of interest to buildingservices engineers include capital and operating costs, thermal comfort, and greenhouse-gas emissions. To satisfy these criteria, how should the form of a building be varied, given that shallow plans promote the use of natural lighting but the increased wall surface area increases heat flows? How large should windows be, on each fac¸ade? Should the building include a small or large amount of thermal mass? What size ventilation ducting should be used? How should the flow of heated or cooled air or water be controlled, as a function of thermal loads and indoor temperatures? Designers can evaluate their choices via simulation of building energy use and HVAC equipment operation and calculation of construction costs. However, the design process is often constrained by time and cost, reducing the number of simulations that are performed. Automated procedures to optimize aspects of building design can reduce the cost and time required to home in on desirable design strategies. Genetic algorithms 共GAs兲 are an optimization method that has been applied to many types of optimization problems associated with buildings. This paper first reviews the basics of GAs, describes the wide range of applications of GAs, and identifies their advantages relative to other optimization methods. It then describes the use of GAs for multi-objective optimization. Next, it focuses on the use of GAs in three areas: optimization of the building envelope to minimize HVAC and lighting energy and construction costs; optimization of building form; and optimization of the design and operation of HVAC systems. Finally, conclusions are drawn.

Genetic Algorithms–How and Why? GA Basics. A genetic algorithm is a technique used to automate the process of searching for an optimal solution. Because it searches from a population of points, the probability of the searchs getting trapped in a local minimum is limited. GAs start Contributed by the Solar Energy Division of THE AMERICAN SOCIETY OF MECHANICAL ENGINEERS for publication in the ASME JOURNAL OF SOLAR ENERGY ENGINEERING. Manuscript received by the ASME Solar Energy Division, January 2003; final revision, March 2003. Associate Editor: A. Reddy.

Journal of Solar Energy Engineering

searching by randomly sampling within an optimization solution space, and then use stochastic operators to direct a process based on objective function values 关1兴. Under GA terminology, a solution to a problem is an individual and a group of individuals is a population. A generation is a new population. In binary GAs, each individual is represented by a binary string called a chromosome, which encodes all the parameters of interest corresponding to that individual. A chromosome is formed of alleles, the binary coding bits. The fitness of any particular individual corresponds to the value of its objective function. Genetic operators control the evolution of successive generations. The three basic genetic operators are reproduction, crossover and mutation. The probability of a given solution’s being chosen for reproduction is proportional to the fitness of that solution. Crossover implies that parts of two randomly chosen chromosomes will be swapped to create a new individual. Mutation involves randomly changing an allele in a solution to look for new points in the solution space. Although there are more elaborate versions of these operators, the basic principles remain similar for most GAs. A genetic algorithm starts by generating a number of possible solutions to a problem, evaluates them and applies the basic genetic operators to that initial population according to the individual fitness of each individual. This process generates a new population with higher average fitness than the previous one, which in turn will be evaluated. The cycle is repeated for the number of generations set by the user, which is dependent on problem complexity. Types of Problems Solved With GAs. GAs have been applied to an extremely wide range of problems in engineering systems since their widespread introduction in 1989 关1兴. Examples 关2,3兴 include: • Equipment design: shaping radar radiation patterns, optimizing airfoil geometries to produce desired pressure distributions, reducing noise emissions from an engine block, vibration control • Manufacturing: shop-floor scheduling • Controls: controller design and tuning, system identification

Copyright © 2003 by ASME

AUGUST 2003, Vol. 125 Õ 343

• Municipal utilities: dispatch of electricity generators, planning electricity transmission systems, scheduling of municipal water-supply pumps • Robotics: design of multi-link mechanisms to follow a prescribed path, object recognition • Signal processing: filter design • Fault detection: detection of incipient sensor faults, design of fault-tolerant systems Why Use a GA?

GAs offer several attractive features:

• An easily understood approach that can be applied to a wide range of problems with little or no modification. Other approaches have required substantial alteration to be successfully used in building applications. For example, dynamic programming was applied to the problem of selecting the number, location, and power of lamps along a hallway to minimize the electrical power needed to produce the required illuminance 关4兴. Because the choice of the location and power of a lamp affected decisions made about previous lamps, the sequential decision-making approach inherent in dynamic programming could not be made. It was necessary to suspend earlier decisions and reconsider them, substantially increasing computation time and data storage. • Publicly available, easily implemented GA codes. Reduced set-up time makes them attractive relative to other optimization methods that may offer better performance but must be identified, obtained and properly configured. • Inherent capability to work with complex simulation programs. Simulation does not need to be simplified to accommodate optimization. • Proven effectiveness in solving complex problems that cannot be readily solved with other optimization methods. The mapping of the objective function for a daylighting-design problem showed the existence of local minima that would potentially trap a gradient-based method 关5兴. Building optimization problems may include a mixture of a large number of integer and continuous variables, non-linear inequality and equality constraints, a discontinuous objective function and variables embedded in constraints but not in the objective function. Such characteristics make gradient-based optimization methods inappropriate and restrict the applicability of direct-search methods 关6兴. The calculation time of mixedinteger programming 共MIP兲, which was used to optimize the operation of a district heating and cooling plant, increases exponentially with the number of integer variables. It was shown to take about two times longer than a GA for a 14-hr optimization window and 12 times longer for a 24-hr period 关7兴, although the time required by MIP was sufficiently fast for a relatively simple plant to make on-line use feasible. • Methods to permit GAs to handle constraints that would make some solutions unattractive or entirely infeasible. • Identification of optimal trade-offs among multiple optimization criteria, a topic to be discussed next.

• Simple aggregation or weighting of individual objectives; • Population-based non-Pareto approaches; • Pareto-based approaches. Simple Aggregation. Individual objective functions can be combined by using weighting factors based on some knowledge of the problem, forming a single figure of merit that reflects the overall performance of the solution according to the different objectives. Then GAs can be applied repetitively, if necessary, changing the values of the weighting factors at each run, to gain some insight into the relative importance of each of the objectives. Population-Based Non-Pareto Approaches. These approaches seek to discover multiple non-dominated solutions, but without explicit use of Pareto fitness. The Vector Evaluated GA 共VEGA兲 关8兴 selects sub-populations of the next generation according to individual objectives. Overall fitness is a linear combination of individual objectives, with weights that depend on population distributions. Fourman 关9兴 selected a new population by comparing pairs of individuals, each according to one of the objectives. Pareto-Based Approaches. Pareto optimality makes use of the concept of dominated and non-dominated solutions. A solution is Pareto optimal if it is not dominated by any other solution. In Fig. 1, the points represent feasible solutions to a multi-objective maximization problem, where values for each of two objective functions are assigned to the x and y axes. A solution dominates another if it is better than the other for at least one objective function and at least as good on all the others 关10兴. Point A 共4,2兲 dominates point C 共3,1兲 because it has both higher x and y values. Points A 共4,2兲 and B 共2,4兲 are not dominated and are therefore both Pareto-optimal solutions. They represent good trade-offs between the two objective functions. Point A performs better than B in terms of the x values but the inverse is true for y values. There are several Pareto approaches to evolving a population that optimizes the trade-offs among objective functions: • Pareto optimality of an individual, with the same ranking assigned to all non-dominated individuals 关1兴 or with a ranking assigned to equal the number of individuals by which it is dominated 关11兴. • Tourament selection 关12兴. The best of a randomly chosen subset of individuals is chosen for the next generation. • Pareto reservation strategy 关13兴. All non-dominated individuals in a population are retained. If necessary to fill out the population of the next generation, remaining individuals are selected via a VEGA.

Multi-Objective Optimization Single-objective optimization may unnecessarily constrain a designer. For example, operating costs for lights and for space conditioning can both be expressed in the same units, but a designer may have reason to favor daylighting from north-facing windows over increased conduction losses and attendant increases in heating and cooling costs. Capital costs for equipment and the building envelope can in principle be included in a life-cycle-cost objective function but may better be considered separately, if capital and operating budgets are separate. Multi-criteria optimization methods move away from a sum 共weighted or unweighted兲 of individual objectives and provide the designer with explicit information about the trade-offs between different criteria. There are several approaches to multiobjective optimization problems using GAs: 344 Õ Vol. 125, AUGUST 2003

Fig. 1 Dominated and non-dominated †Pareto‡ solutions for a maximization problem. C is dominated by A . Both A and B are non-dominated or Pareto solutions.

Transactions of the ASME

Table 1 Construction materials and their properties, for the Pareto experiments #

DOE2 code

Name

Thickness †cm‡

Density †kgÕm3‡

Conductivity †WÕm.k‡

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

AL11 AL21 AL31 IN33 IN35 IN36 IN43 IN45 CB21 CB23 CB26 CB28 CB41 CB43 CB46 CB48

Air layer Air layer Air layer Expanded Polystyrene Expanded Polystyrene Expanded Polystyrene Expanded Polyurethane Expanded Polyurethane Concrete block, medium weight, hollow Concrete block, medium weight, perlite filled Concrete block, medium weight, hollow Concrete block, medium weight, perlite filled Concrete block, light weight, hollow Concrete block, light weight, perlite filled Concrete block, light weight, hollow Concrete block, light weight, perlite filled

1.9 or less 1.9 to 10.2 10.2 or more 2.54 5.08 7.62 2.54 5.08 10.2 10.2 15.2 15.2 10.2 10.2 15.2 15.2

28.83 28.83 28.83 24.03 24.03 1217.41 1249.44 1041.2 1073.24 1041.2 1073.24 881.02 913.05

R⫽0.1586 R⫽0.1568 R⫽0.1621 0.0346 0.0346 0.0346 0.023 0.023 0.5197 0.2617 0.618 0.2018 0.3846 0.22 0.4806 0.1705

• Pareto-optimal selection method 关10兴. All non-dominated individuals in a population are retained and all dominated individuals are discarded. • Non-dominated Sorting Genetic Algorithm 共NSGA兲 关14兴. Niche-induction techniques are used to spread the population of Pareto-optimal solutions over the entire Pareto front. Crowding and fitness sharing have been used to maintain genetic diversity. GAs are well suited for generating a Pareto front because they work with a population of solutions. Simulated annealing, an optimization that offers many of the advantages of GAs but typically works with a single solution and single objective function, has also been used for multi-objective problems, by archiving nondominated solutions 关15兴.

Optimization of the Building Envelope Previous Work. The literature reports that GAs have been used to manipulate building form and wall construction, to present to the user a set of energy-efficient designs for aesthetic evaluation and subsequent refinement 关16兴. Work by the authors of the present paper began with an investigation of energy used in buildings by lighting and space conditioning systems, reported elsewhere 关17–20兴. The GA controlled the DOE-2 building-energy simulation program 关21兴 to manipulate window size and placement as a means of minimizing a single objective function– energy consumption. Optimization of Building Materials. In a second phase of work by the authors, not previously reported and described here in detail, optimal trade-offs between reductions in energy consumption during building operation and initial costs due to construction materials were evaluated 关22兴. Two sets of experiments were performed. The first made use of a five-zone office building with weather data from Phoenix and Chicago, and the second focused on an apartment in Beijing, China.

Fig. 2 Schematic building layout for Pareto experiments

Journal of Solar Energy Engineering

The office building featured independent rooms facing each cardinal direction, one window per room 共in the longest exterior wall兲, and a small core. Figure 2 shows the building layout. All walls were constructed in a similar fashion. The interior finish was gypsum board and the outside layer was a 2.5-cm stucco layer. The search algorithm manipulated materials for three internal layers. Material 1 represented the material used for the layer closest to the external wall surface, material 2 was the middle layer, and material 3 was the layer closest to the inside surface. The GA was allowed to choose from a list of 16 possible materials, shown in Table 1. Materials and their physical properties were selected from the DOE-2 materials library. A constraint prevented materials 1 and 3 from being air layers, due to buildability issues. The glass, fixed for all the experiments, was double-layer clear glazing 共DOE2 code 2003兲, with a shading coefficient of 0.81, a visible transmittance of 0.78, and a U value of 3.16 W/m2 K. Costs for the different materials were obtained by averaging prices provided by several retailers in the U.S. If quantity discounts exist, they could be handled by if-then type of rules, of the kind ‘if material x area is greater than y, then cost of material x equals z, else if . . . ’ In general, costs per unit area of insulation materials were lower than those for concrete block. Expanded polyurethane was more expensive than expanded polystyrene. Air layer costs were set to zero. Window costs were much higher per unit area than any of the other materials. Experiments were done for Phoenix and Chicago climates. Figure 3 shows the progression of the search for the Pareto front for the Phoenix climate, from the initial random population of generation 1 to generation 100, where the Pareto front is clearly visible. Running another 100 generations made small improvements in the front, but also removed some previously found points. Although not shown, most of the front was defined by generation 20, with subsequent generations making small improvement. Numerical information is provided in Table 2. In general, larger window sizes, particularly towards the south and north, led to better performance solutions but at higher capital cost. There was a strong correlation between smaller windows and increased energy consumption. The west fac¸ade seemed to be an exception: even in the best solutions the window sizes were rather small. East windows were somewhat larger. Even though many instances of heavyweight, masonry elements appeared in the first, random solutions, only lightweight, insulation materials were used in the final Pareto solutions. Recall from Table 1 that material numbers 1–3 are air layers, 4 – 8 are insulation materials, and 9–16 are different types of concrete blocks, some filled with perlite. Looking at Table 2, it is possible to see that all material numbers are smaller or equal to eight, meaning that only insulation materials and air layers were applied. The cost per unit area of insulation materials was lower and the GA may AUGUST 2003, Vol. 125 Õ 345

Table 2 Final values given to each variable by the GS in generation 100; Most points are Pareto-optimal # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

South East North West Total Width Height Area Width Height Area Width Height Area Width Height Area Area Mat 1 Mat 2 Mat 3 MWh m m m2 m m m2 m m m2 m m m2 m2 4.7 7.4 6.5 4.7 6.0 6.0 6.5 4.2 4.2 6.5 6.0 6.0 4.2 4.2 4.2 6.0 4.2 4.2 4.2 4.2 4.2 4.2 2.4 2.4 2.4 2.4 0.6 0.6 0.6 0.6

1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 1.8 2.4 1.8 1.8 2.4 1.8 1.8 1.8 1.8

8.5 13.3 11.7 8.5 10.8 10.8 11.7 7.6 7.6 11.7 10.8 10.8 7.6 7.6 7.6 10.8 7.6 7.6 7.6 7.6 7.6 7.6 4.3 4.3 4.3 4.3 1.1 1.1 1.1 1.1

7.4 7.4 7.4 5.6 5.1 6.5 5.6 5.1 4.2 4.7 5.6 5.6 4.7 6.9 6.9 2.0 5.6 5.6 4.2 2.0 3.8 4.2 2.0 5.6 2.0 2.0 5.6 2.0 1.5 1.5

0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 1.2 0.6 0.6 0.6 0.6 0.6 0.6 1.2 0.6 0.6 0.6 1.2 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6

4.4 4.4 4.4 3.4 3.1 3.9 3.4 6.1 2.5 3.8 3.4 3.4 2.8 4.1 8.3 1.2 3.4 3.4 5.0 1.2 2.3 2.5 1.2 3.4 1.2 1.2 3.4 1.2 0.9 0.9

6.0 4.2 6.5 6.0 4.2 2.9 6.5 2.4 2.9 6.0 4.7 0.6 0.6 0.6 0.6 2.4 2.0 1.1 2.4 1.1 0.6 1.1 0.6 0.6 0.6 0.6 1.1 0.6 0.6 1.5

1.2 1.2 1.2 1.2 1.2 1.2 0.6 1.2 1.2 0.6 0.6 1.2 1.2 2.4 2.4 1.2 0.6 0.6 1.2 1.2 2.4 1.2 0.6 1.2 0.6 0.6 1.2 1.2 1.2 1.2

have used the thermal mass from the concrete floors and roofs as heat storage during the day to avoid large peak loads. It was expected that in a hot climate like Phoenix some thermal mass would be applied in the walls. However, the massive floors and ceilings seemed to be able to take that role, allowing the walls to become lightweight, highly insulated elements. Finally, it was possible to see that the lowest energy solutions make use of better insulation materials, like #6 共7.6 cm expanded polystyrene, the thickest allowed兲, and #8 共5 cm expanded polyurethane, also the thickest兲. To reduce construction costs to the detriment of energy

7.2 5.0 7.8 7.2 5.0 3.5 3.9 2.9 3.5 3.6 2.8 0.7 0.7 1.4 1.4 2.9 1.2 0.7 2.9 1.3 1.4 1.3 0.4 0.7 0.4 0.4 1.3 0.7 0.7 1.8

4.2 5.1 4.2 5.1 3.3 4.2 3.8 5.1 5.6 2.0 3.8 4.2 5.1 5.1 4.7 1.5 5.6 3.3 5.6 3.8 1.5 3.8 2.0 1.1 1.1 1.1 1.1 2.0 5.6 4.7

0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 1.2 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 0.6 1.2 1.2 0.6 0.6 0.6 0.6 0.6

2.5 3.1 2.5 3.1 2.0 2.5 2.3 3.1 3.4 2.4 2.3 2.5 3.1 3.1 2.8 0.9 3.4 2.0 3.4 2.3 0.9 2.3 1.2 1.3 1.3 0.7 0.7 1.2 3.4 2.8

22.6 25.9 26.5 22.1 20.9 20.7 21.2 19.6 16.9 20.5 19.3 17.4 14.2 16.2 20.1 15.8 15.5 13.6 18.8 12.4 12.2 13.7 7.1 9.7 7.2 6.5 6.4 4.2 6.1 6.6

8 8 8 8 4 5 4 8 4 4 4 4 6 6 6 4 4 4 4 4 4 4 4 8 6 4 6 8 4 4

6 6 3 4 6 5 5 6 6 5 5 6 6 5 7 5 5 6 5 7 5 3 7 3 5 7 1 3 3 3

6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 6 6 6 4 6 6 6 6 4 4 4 4 6 6 7

21.7 21.8 21.8 21.8 22.0 22.1 22.2 22.2 22.2 22.2 22.3 22.4 22.5 22.5 22.6 23.0 22.6 22.6 22.8 22.8 22.9 23.0 23.7 23.9 24.0 24.3 25.4 25.4 25.6 25.9

Cost $ 7276 7917 7286 6653 6331 6294 6127 6093 6019 5971 5736 5619 5507 5388 5318 5256 4962 4834 4606 4527 4284 4038 3509 3315 3248 2829 2517 2752 2461 2278

consumption, the GA used large air layers and lower quality insulation materials, combining that with a reduction in window sizes. One of the randomly generated solutions in the first generation performed almost as well as the best Pareto solution in terms of energy, but its construction costs were about 33% higher. This demonstrates the usefulness of applying the Pareto-front search. The reduction in annual energy consumption from the first to the hundredth generation was only 6% on average 共from 24.7 MWh to 23 MWh兲, but the reduction in construction costs was about 41% 共from $8434 to $4965兲, suggesting that including materials

Fig. 3 Pareto front for Phoenix climate

346 Õ Vol. 125, AUGUST 2003

Transactions of the ASME

costs in the Pareto-front studies may be an effective measure for achieving similar energy performance at lower first costs. The second set of experiments related to a simple test box, 10⫻7⫻3 m, that was used to represent a hypothetical apartment in Beijing. The shorter sides of the apartment were exposed to the exterior, and faced south and north. The other walls, floor and ceiling were modeled as adiabatic surfaces, assuming the apartment was part of a larger building. This problem introduced as variables the solar absorptivity for exterior walls and different glazing types. The construction materials for south- and north-facing walls were also allowed to be different, because it was hypothesized that south-facing walls would give the same energy performance with less insulation, due to absorbed solar energy. The two objective functions used were annual energy consumption and materials costs, including windows. Materials used for this study were those presented in Table 1. Wall absorptivity was varied between 0.2 and 0.8, in 0.2 steps. The two glazing options were a single layer of clear 3-mm thick glass, with a shading coefficient of 1, visible transmittance of 0.898, and a U-value of 6.31 W/m2k 共DOE-2 code 1000兲, and a double-layer, clear-glass window with glass thicknesses of 3 mm and a 12-mm gap, a shading coefficient of 0.89, visible transmittance of 0.812 and a U-value of 2.79 W/m2K 共DOE-2 code 2001兲. Figure 4 shows the first initial random generation and the final Pareto front for tests with the exterior walls facing south and north. Solutions in the first generation used many types of wall and glazing materials and many values for window dimensions and wall absorptivity. The average annual energy consumption of the random population was 6.5 MWh, and the average cost was about $3500. In contrast, the Pareto solutions for the final generation showed a much greater convergence of variable values. All windows were double-glazed. North-window dimensions were in general very small. South-window dimensions were of average size for the best energy-performance solutions but significantly smaller than the maximum allowed by constraints. Decreasing south-window size was the best strategy to reduce construction costs but had detrimental effects on daylighting and useful solar gains, and led to increased energy consumption. The south-wall absorptivity was always at high values, either 0.6 or 0.8. The north-window absorptivity had more random values, because solar gains were not significant in that direction. The north walls were essentially filled with insulation. Insulation was used in the outer layer of the south walls but inner layers tended to be air spaces in the more cost-saving solutions, with a

subsequent decrease in energy performance. In order to save costs, poor insulation materials were used in the south wall, together with the introduction of air layers, but the north wall remained highly insulated for most cases, only decreasing towards the worst performance solutions. The average energy consumption level of the population decreased by 33% in relation to the initial random population, while the costs were reduced by 68%, a very significant value. Masonry use was completely excluded, because insulation materials were less expensive and the floor slabs provided some amount of thermal mass. Another set of experiments was done with the building rotated by 90 deg, so that it would face east-west instead. Energyconsumption levels were always higher for this orientation than for S兩N, as expected. However, costs remained lower, because the sizes of the relatively expensive windows were very small, even in the best energy-performance cases. Optimization of Building Form. In a third phase of work by the authors, GAs were employed to alter building form to optimize the trade-off of lighting and heating energy 关22兴. The starting point for this study was a two-story structure with four equal-area square zones on each floor. The GA manipulated the size and shape of each zone and could tilt the roofs of each zone. A penalty was applied to the objective function to inhibit the GA from unduly reducing the size of the zones. Figure 5 shows points along the Pareto front with associated building forms and Fig. 6 shows the forms in more detail. The best solution for heating energy is a single, compact, large space facing northeast, with thin, sunspace-like, all-glazed south and west elements surrounding it. This happens both in the first and second floors. The best solution for lighting is formed by small spaces easily penetrated by daylight. The south-facing large glazing areas still exist in this solution, in long and thin rooms facing south. The intermediate solutions show the transformation from one end-point solution to the other. Solutions 4 and 5 are interesting, showing very long and thin south-facing elements and a number of smaller, north-facing spaces.

HVAC Design and Operation Previous Work. A GA was employed to optimize design variables in an HVAC system 关23兴, including the physical dimensions of the system components 共discrete兲, the operating point of

Fig. 4 Pareto front for south 円 north apartment, for the first and hundredth generations

Journal of Solar Energy Engineering

AUGUST 2003, Vol. 125 Õ 347

the system as represented by the controller set points, and such parameters as the maximum mass flow rates 共continuous兲. The design constraints covered the upper limit of the fluid velocities, the control range of the fin-tube coils, the water circuit configuration of the coils, the maximum supply-air-to-room-air temperature difference, and failure of the simulation due to undersizing or oversizing of one or more components. The objective function was the capital cost of the system. The work of 关23兴 was extended to include simultaneous optimization of the HVAC system size, the HVAC-plant-control strategy, and the building-envelope construction 关6兴. The objective function was selected to be energy cost. Variables for system size included supply-fan size and coil width and height, number of rows and water circuits, and water flow rate for both heating and cooling coils. Operation variables included equipment on-off status during unoccupied hours, mass flow rate of supply air, and supply-air temperature. Building construction was characterized by building weight and glazing type and area. All variables were constrained within upper and lower bounds. Additional design constraints placed limits on the predicted percentage of dissatisfied 共PPD兲 occupants, the air face velocity through the coils, and water velocity, and fan speed and volume flow rate, to ensure compliance with manufacturer’s data. A normalized sum of constraint violations was developed as a measure of the infeasibility of solutions, a method more effective in a highly constrained problem than the so-called death penalty that eliminates without further consideration all infeasible solutions. Trade-offs between operating costs and thermal comfort and between operating and capital costs were explored for the same system, with multi-criteria optimization and GAs 关24,25兴. The Multi-Objective GA 关26,27兴 used in the project treated constraints as criteria and penalized the Pareto rank of infeasible solutions. Constraints were normalized and aggregated to form a single constraint criterion. This approach restricted the increase in dimensions of the Pareto front and made it possible to easily remove the constraints from the search when feasible solutions were found. HVAC duct layout was designed with a GA 关28兴. Unlike existing approaches, the GA was able to account for discrete duct sizes, variations over time in operating conditions, and variable electricity pricing. The control parameters for a heating coil were optimized with a GA 关29兴. The system featured a boiler, heating coil, and primary

and secondary pumps. The secondary pump maintained a constant flow through the heating coil. A three-way valve regulated the mix of hot water from the boiler and recirculated water from the heating coil, to vary the temperature of the water through the heating coil as a means of regulating the discharge air temperature. The GA was used to select the proportional and integral gains of the valve controller, in order to minimize an objective function that was a weighted sum of overshoot, settling time and mean squared error associated with a step change in the discharge-air set point. The GA was coupled with HVACSIM⫹ 关30–33兴, which was used to perform a detailed simulation of the system for each controlparameter configuration. The GA identified control parameters that gave a smaller overshoot and settling time than the ZieglerNichols method 关34兴. Implementation of this approach as an online adpative controller was not discussed but would require identification of the parameters in the system model. Other methods have been developed for improved tuning of HVAC control loops, notably an adaptive controller that makes use of observed patterns in controller response to set point changes and disturbances and selects gains on the basis of off-line simulations 关35兴. A GA was used for both parameter identification and control optimization in a simulated heating system and single-zone building 关36兴. The system was modeled as an RC network, using bond graphs to establish the typology, and was simulated with a general-purpose equation solver. First, the model of the system was used to produce a time history of room and storage-system temperatures as a function of heat inputs directly to the room and to the storage system. The thermal resistance and thermal capacitance of the heat storage system were then removed from the model and the GA was used to adjust values for the two parameters to match the room and storage-system temperatures. Parameters that described the thermal properties of the outside wall were not masked from the GA. For schedule optimization, the GA was combined with a hill-climbing procedure to reduce the search space and therefore improve the efficiency of the GA. The schedules of the direct and storage heating systems were optimized to provide at minimal cost an indoor temperature above a specified minimum. Load Control. A GA was used by one of the authors of this paper to schedule reductions in lighting and cooling power during a load-control period 关37兴. Building response to load control over

Fig. 5 Pareto front points for generation of building form. Two views are shown for each solution, from the southwest and northeast.

348 Õ Vol. 125, AUGUST 2003

Transactions of the ASME

a single day was simulated with a two-resistor two-capacitor model of a single room, based on a popular general-purpose engineering mathematics program 关38兴; the publicly available GA was coded in the same simulation environment. The objective function always included energy consumption and optionally included peak power and temperature deviation from set point. Two sets of simulations were done for a single building: a GA

search and an exhaustive search. First, the GA was used to find the optimal solution, for different forms of the objective function. Members of the population were defined by the limit on air conditioning, the hour in which that limit would take place, and a similar limit and hour for lighting. For purposes of the GA, the step size for limits on air conditioning and lighting was defined as 0.1, ranging from 0 共no service兲 to 1.0 共no reduction in service兲.

Fig. 6 Pareto front points. Solution 1 represents the best building shape in terms of heating. Solution 6 is the best building shape in terms of lighting. The other images represent intermediate solutions.

Journal of Solar Energy Engineering

AUGUST 2003, Vol. 125 Õ 349

Table 3 GA and exhaustive searches for optimal control schedule, as a function of population size, number of generations, and weighting function. The weighting function now includes a weight on electricity demand. Exhaustive Exhaustive search minimum search maximum Maximum Cumulative Electricity Electricity objective objective temperature Objective temperature demand consumption Number function function deviation weight deviation weight function weight weight Run Pop Generations simulations 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

3 3 10 10 3 3 10 10 3 3 10 10 3 3 10 10 3 3 10 10 3 3 10 10

2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10 2 10

6 28 16 74 6 27 16 62 6 25 19 63 6 28 16 63 6 26 19 73 6 28 20 69

1 1 1 1 10 10 10 10 1 1 1 1 10 10 10 10 1 1 1 1 10 10 10 10

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

The load-control period was 4 hr, noon– 4 p.m. The GA search was performed for the four possible combinations of population size, 3 and 10, and number of generations, 2 and 10. In each case, the GA was set up to remember all past simulations and not repeat a simulation in its search for the optimum. The GA results were compared with the optimal solution found by an exhaustive search. The exhaustive search was limited to control steps of 0.2. With this step size and a four-hour loadcontrol period, the number of possible load-control actions was 576 共6 load-control steps over 4 hr for air conditioning and for lighting兲. Table 3 compares the results of the GA and exhaustive searches and shows that the GA successfully found near-optimal solutions for each set of objective-function weights. The following observations were made: • The peak air-conditioning load increased when air conditioning was curtailed, due to the pick-up load in the hour following the reduction in cooling. With a demand charge, the increase in load led to an increase in the objective function. • While many combinations of lighting and air-conditioning curtailment produced similarly low values of the objective function 共weighted cost of energy and loss of service兲, others were poor choices with objective functions that were 15% higher than the best choices. High objective function values were associated with reductions in air conditioning that saved little energy and greatly increased the thermal-comfort penalty. • While the GA was able to find relatively small differences in objective function, it did not consistently find the absolute minimum when the search space had a shallow contour. However, the extent of suboptimality was trivially small. • Because the problem had a large number of near-optimal solutions, the GA search could be limited to small populations and a small number of generations. • The same control strategy produced the best performance for all six sets of weights on demand, energy, and thermal performance: turning off the lights completely for one hour, which was not subject to a visual-comfort penalty, and limiting the air conditioning output to 0.6 of maximum value for a single hour. A second strategy produced the worst performance: turning off the air conditioner for an hour and main350 Õ Vol. 125, AUGUST 2003

0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1

84.7 84.6 84.7 84.6 142.2 141.8 142.0 141.8 87.6 85.0 85.0 85.0 145.1 142.1 142.4 142.1 88.6 87.5 87.8 87.5 146.0 144.7 145.0 144.9

84.6

88.5

141.7

156.0

85.0

98.7

142.1

166.2

87.5

102.3

144.6

169.8

taining the lights at rated power throughout the load-control period. This suggested that some amount of off-line testing could establish heuristics to supplement or replace timecritical on-line simulations.

Conclusions GAs have been successfully applied to a number of problems concerning building energy use and HVAC systems. They can readily handle large problems, such as simultaneous optimization of the building envelope and the design and operation of an HVAC system, and duct design to minimize first and operating costs over a range of operating conditions and electricity prices. Because they work with a population of solutions, they naturally provide optimal trade-offs among multiple design criteria. Multiple solutions are of particular value when building form or window size and placement are optimization variables, because typically there are many other design criteria to consider, not included in an optimization. A number of large-scale optimization problems may be appropriate for GAs: siting of buildings to optimize the use of winddriven ventilation and daylight, optimal control of HVAC equipment in an aggregate of buildings to minimize electrical power during peak-demand periods, and more work on the generation of building form. GAs will be more widely used when there are publicly available and easy-to-use interfaces with energy-simulation codes. While GAs can and have been used with such codes, it has been necessary to develop a custom interface, to convert the GA’s specified value for a given variable to an appropriate input value in the simulation code. An interface is also required to obtain output from the simulation package and form the objective function. Last, the use of GAs to generate building form or building facades would benefit from an interface that would allow designers to generate initial solutions in a CAD program and view the GA-modified solutions in the same CAD environment.

Acknowledgments L.G. Caldas acknowledges financial support from the several institutions: the Fundac¸˜ao para a Cieˆncia e a Tecnologia, Praxis Transactions of the ASME

XXI program, Portugal; the Fundac¸˜ao Cultural Luso-Americana, the Fulbright program; the V. Kahn-Rassmussen Foundation; and MIT, through a Rosenblith Fellowship. L.K. Norford acknowledges the financial and technical support of ASHRAE, via research project 1120-RP.

References 关1兴 Goldberg, D., 1989, Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley. 关2兴 IEE., 1995, Proc. of 1st Int. Conf. on Genetic Algorithms in Engineering Systems: Innovations and Applications, IEE Conf. Pub. 414. 关3兴 IEE, 1997, Proc. of 2nd Int. Conf. on Genetic Algorithms in Engineering Systems: Innovations and Applications, IEE Conf. Pub. 446. 关4兴 Gero, J., and Radford, A., 1978, ‘‘A Dynamic Programming Approach to the Optimum Lighting Problem,’’ Eng. Optimiz., 3共2兲, pp. 71– 82. 关5兴 Chutarat, A., 2001, ‘‘Experience of Light: The Use of an Inverse Method and a Genetic Algorithm in Daylighting Design,’’ Ph.D. Thesis, Dept. of Architecture, MIT, Cambridge, MA. 关6兴 Wright, J., and Farmani, R., 2001, ‘‘The Simultaneous Optimization of Building Fabric Construction, HVAC System Size, and the Plant Control Strategy,’’ Proc. Building Simulation 2001, 865– 872, International Building Performance Simulation Assoc. 关7兴 Sakamoto, Y., Nagaiwa, A., Kobayasi, S., and Shinozaki, T., 1999, ‘‘An Optimization Method of District Heating and Cooling Plant Operation Based on Genetic Algorithm,’’ ASHRAE Trans., 105共2兲, pp. 104 –115. 关8兴 Schaffer, J. D., 1985, ‘‘Multiple Objective Optimization With Vector Evaluated Genetic Algorithms,’’ Proc of Ist Int. Conf. on Genetic Algorithms, J. J. Grefenstette 共ed.兲, Lawrence Erlbaum, pp. 93–100. 关9兴 Fourman, M. P., 1985, ‘‘Compaction of Symbolic Layout Using Genetic Algorithms,’’ Proc. of 1st Int. Conf. on Genetic Algorithms, J. J. Grefenstette 共ed.兲, Lawrence Erlbaum, pp. 141–153. 关10兴 Tamaki, H., Kita, H., and Kobayashi, S., 1996, ‘‘Multi-Objective Optimization by Genetic Algorithms: A Review,’’ Proc. of 1996 IEEE Int. Conf. on Evolutionary Computation, pp. 517–522. 关11兴 Fonseca, C., and P. Fleming, 1993, ‘‘Genetic Algorithms for Multiobjective Optimization: Formulation, Discussion and Generalization,’’ Proc. 5th Int. Conf. on Genetic Algorithms, S. Forrest 共ed.兲, Morgan Kaufman, pp. 416 – 423. 关12兴 Horn, J., Nafpliotis, N., and Goldberg, D., 1994, ‘‘Niched Pareto Genetic Algorithm for Multiobjective Optimization.’’ Proc. of 1st IEEE Conf. on Evolutionary Computation, Part 1, Orlando, FL, pp. 82– 87. 关13兴 Tamaki, H., Mori, M., and Araki, M., 1995, ‘‘Generation of a Set of ParetoOptimal Solutions by Genetic Algorithms,’’ Trans. Society of Instrumental and Control Engineers, 31共8兲, pp. 1185–1192. 关14兴 Srinivas, N., and Kalyanmoy, D., 1995, ‘‘Multiobjective Optimization Using Nondominated Sorting in Genetic Algorithms,’’ Evolutionary Computation, 2共3兲, MIT Press, Cambridge, MA, pp. 221–248. 关15兴 Engrand, P., 1997, ‘‘A Multi-Objective Optimization Approach Based on Simulated Annealing and its Application to Nuclear Fuel Management,’’ Proc. of 5th Int. Conf. on Nuclear Engr, Nice, France. 关16兴 Coley, D. A., and Schukat, S., 2002, ‘‘Low-Energy Design: Combining Computer-Based Optimization and Human Judgement,’’ Building and Environment, 37, pp. 1241–1247. 关17兴 Caldas, L. G., and Norford, L. K., 1999, ‘‘A Genetic Algorithm Tool for Design Optimization,’’ ACADIA ’99. Proc. of 1999 Conf. of the Association for Computer-Aided Design in Architecture, Salt Lake City, UT.

Journal of Solar Energy Engineering

关18兴 Caldas, L., and Norford, L. K., 2001, ‘‘Architectural Constraints in a Generative Design System: Interpreting Energy Consumption Levels,’’ Proc. of Building Simulation 2001, Int. Building Performance Simulation Association. 关19兴 Caldas, L. G., and Norford, L. K., 2001, ‘‘A Design Optimization Tool Based on a Genetic Algorithm,’’ Autom. Constr., 11共2兲, pp. 173–184. 关20兴 Caldas, L., Norford, L., and Rocha, J., 2001, ‘‘An Evolutionary Model for Sustainable Design,’’ Proc. Passive and Low Energy Architecture (PLEA). 关21兴 DOE2, 2002, simulationresearch.lbl.gov/. 关22兴 Caldas, L. G., 2001, ‘‘An Evolution-Based Generative Design System: Improving the Environmental Performance of Buildings.’’ Ph.D. Thesis, Building Technology Program, Dept. of Architecture, MIT, Cambridge, MA. 关23兴 Wright, J. A., 1996, ‘‘HVAC Optimization Studies: Sizing by Genetic Algorithm,’’ Building Services Engineering Research and Technology, 17共1兲, pp. 7–14. 关24兴 Wright, J., and Loosemore, H., 2001, ‘‘The Multicriterion Optimization of Building Thermal Design and Control,’’ Proc. of Building Simulation 2001, 873– 880, Int. Building Performance Simulation Association. 关25兴 Wright, J. A., Loosemore, H. A., and Farmani, R., 2002, ‘‘Optimization of Building Thermal Design and Control by Multi-Criterion Genetic Algorithm,’’ Energy Build., 34, pp. 959–972. 关26兴 Fonseca, C. M., and Fleming, P. J., 1995, ‘‘Multi-Objective Genetic Algorithms Made Easy: Selection, Sharing and Mating Restrictions,’’ Proc. of 1st Int. Conf. on Genertic Algorithms in Engineering Systems: Innovations and Applications, IEE Conf. Pub, 414, pp. 45–52. 关27兴 Fonseca, C. M., and Fleming, P. J., 1998, ‘‘Multi-Objective Optimization and Multiple Constraint Handling With Evolutionary Algorithms, Part 1: A Unififed Formulation,’’ IEEE Trans. Systems and Cybernetics Part A: Systems and Humans, 28共1兲, pp. 26 –37. 关28兴 Asiedu, Y., Besant, R. W., and Gu, P., 2000, ‘‘HVAC Duct System Design Using Genetic Algorithms,’’ Int. J. of HVAC&R Research, 6共2兲, pp. 149–174. 关29兴 Huang, W., and Lam, H., 1997, ‘‘Using Genetic Algorithms to Optimize Controller Parameters for HVAC Systems,’’ Energy Build., 26, pp. 277–282. 关30兴 Clark, D. R., 1985, ‘‘HVACSIM⫹ Building Systems and Equipment Simulation Program Reference Manual,’’ NBSIR 84-2996, National Institute of Standards and Technology, Gaithersburg, MD. 关31兴 Clark, D. R., and May, Jr., W. B., 1985, ‘‘HVACSIM⫹ Building Systems and Equipment Simulation Program-Users Guide,’’ NBSIR 85-3243, National Institute of Standards and Technology, Gaithersburg, MD. 关32兴 Park, C., Clark, D. R., and Kelly, G. E., 1985, ‘‘An Overview of HVACSIM⫹, a Dynamic Building/HVAC/Control Systems Simulation Program,’’ Proc. 1st Annual Building Energy Simulation Conf., Seattle, WA. 关33兴 Park, C., Clark, D. R., and Kelly, G. E., 1986, ‘‘HVACSIM⫹ Building Systems and Equipment Simulation Program: Building Loads Calculation,’’ NBSIR 86-3331, National Institute of Standards and Technology, Gaithersburg, MD. 关34兴 Letherman, K. M., 1981, Automatic Controls for Heating and Airconditioning, Pergamon Press, Oxford. 关35兴 Seem, J. E., 1998, ‘‘A New Pattern Recognition Adaptive Controller with Application to HVAC Systems,’’ Automatica, 34共8兲, pp. 969–982. 关36兴 Dickinson, S., and Bradshaw, A., 1995, ‘‘Genetic Algorithm Optimization and Scheduling for Building Heating Systems,’’ Proc. of 1st IEE/IEEE Int. Conf. on Genetic Algorithms in Engineering Systems: Innovations and Applications, IEE Conf. Pub. 414, pp. 106 –111. 关37兴 Reddy, T. A., and Norford, L. K., 2002, ‘‘Building Operation and Dynamics within an Aggregated Load,’’ Final report for Research Project 1146-RP, ASHRAE, Atlanta. 关38兴 Mathworks, 2001, Matlab Version 6.1 Release 12.1, Natick, MA.

AUGUST 2003, Vol. 125 Õ 351