The Scientific World Journal

Volume 2014, Article ID 451274, 8 pages

http://dx.doi.org/10.1155/2014/451274

## Application of Genetic Algorithms in Nonlinear Heat Conduction Problems

^{1}Department of Electronics and Power Engineering, PN Engineering College, National University of Sciences and Technology, PNS Jauhar, Karachi 75350, Pakistan^{2}Department of Engineering Sciences, PN Engineering College, National University of Sciences and Technology, PNS Jauhar, Karachi 75350, Pakistan

Received 23 August 2013; Accepted 7 November 2013; Published 17 February 2014

Academic Editors: K. J. Chua and A. J. N. Khalifa

Copyright © 2014 Muhammad Bilal Kadri and Waqar A. Khan. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Genetic algorithms are employed to optimize dimensionless temperature in nonlinear heat conduction problems. Three common geometries are selected for the analysis and the concept of minimum entropy generation is used to determine the optimum temperatures under the same constraints. The thermal conductivity is assumed to vary linearly with temperature while internal heat generation is assumed to be uniform. The dimensionless governing equations are obtained for each selected geometry and the dimensionless temperature distributions are obtained using MATLAB. It is observed that GA gives the minimum dimensionless temperature in each selected geometry.

#### 1. Introduction

In many engineering and biological systems, conduction heat transfer plays a vital role. The basic information on conduction heat transfer can be found in any text book [1–3]. Many researchers, including [4–16], have investigated analytically/numerically the problems of steady/unsteady conduction heat transfer in different geometries with different boundary conditions.

Davalos and Rubinsky [17] incorporated, perhaps for the first time, the ideas from the fields of evolution and genetics in a new approach to solve heat transfer problems. They also demonstrated the feasibility of this new approach to solving problems in physics. Later on, Rubinsky and Davalos [18] solved the conduction heat transfer equation by using genetic algorithms. But their analysis was limited to very coarse meshes. Tsourkas and Rubinsky [19] not only resolved this problem but also extended their analysis to fine meshes. They also studied the effect of different parameters and operators on the accuracy of the results. Tsourkas and Rubinsky [20] developed genetic algorithms for implementation on parallel computers to solve heat conduction problems. Their algorithm involved a novel local search operator that greatly improves its accuracy. Gosselin et al. [21] presented a comprehensive review of the application of genetic algorithms in heat transfer problems. They presented a number of papers in which heat conduction was optimized. They identified three main types of heat transfer problems related to thermal systems, inverse heat transfer problems and development of heat transfer correlations. Felczak and Wicek [22] implemented genetic algorithm for electronic devices placement optimization. They assumed that nine electronic devices can be positioned randomly on a substrate surface and created a 2-level optimization algorithm. They optimized the positions of nine electronic devices with respect to thermal criteria and wiring length.

Genetic Algorithm is based on the Darwinian principle of evolution and it follows the principle of “survival of the fittest.” Genetic algorithms, proposed by Holland [23] and enhanced by others [24, 25], have shown exponential growth in various fields of engineering and technology ranging from control theory, signal processing, antenna design, biomedical signal processing, and so forth [26–28]. Genetic algorithms have been successfully applied in the field of heat transfer since mid-1990s [29, 30]. Complex optimization involving nonlinear constraints can be easily solved using genetic algorithms [31]. Conventional deterministic optimization techniques have immense computational requirement and can only be applied when the objective function is differentiable and continuous [32]. Conventional optimization schemes have a drawback of converging in local minima; hence, the solution is compromised [33]. Deterministic optimization schemes often fail when the objective function is multiextremal [34, 35].

#### 2. Genetic Algorithm

Genetic algorithms have been successfully applied in the field of heat transfer since mid-1990s. Complex optimization involving nonlinear constraints can be easily solved using genetic algorithms. Optimization problems that cannot be solved because of the extremely massive computational requirements can be easily solved using genetic algorithms. Genetic algorithms are based on heuristic approach and searches for the best individuals. A generation consists of randomly generated population. The members of the population are tested for fitness. The most suitable candidates are allowed to reproduce the new generation. The next generation consists of the best individuals from the previous generation and their offspring. The chromosomes of each member are also mutated to generate a more suitable candidate in the next generation.

The fitness function (the function to be minimized) is the entropy generation in all the cases. The simulation is developed in MATLAB. The fitness scores, returned by the fitness function, are ranked on the basis of their scores. The rank of the fittest individual is set to “1” and the next fittest is assigned a rank of “2” and so on. Rank fitness scaling removes the effect of raw scores. “Stochastic uniform” scaling function is used for selection of parents in the next generation. The parents are selected based on the rank as determined earlier. Stochastic uniform algorithm lays out a line in which each parent corresponds to a section of the line of length proportional to its expectation. The algorithm moves along the line in steps of equal size, one step for each parent. At each step, the algorithm allocates a parent from the section it lands on. The first step is a uniform random number less than the step size. Reproduction algorithm determines how the offspring are generated. The elite count is set to “2” which guarantees that a maximum of two individuals will survive in the next population. Crossover generates member of the new generation by combining genes from two individuals from the previous generation. The crossover process used is “scattered” which first creates a random binary vector. A “1” in the random binary vector is replaced by genes from the first parent and a “0” in the random binary vector is replaced by a gene from the second individual. Crossover fraction is a factor which determines how many individuals in the next generation will be generated by mixing genes from two different chromosomes. The crossover fraction has a value of 0.8. The remaining members of the generation will be generated by the mutation process. In the mutation process one or two genes are inverted in order to generate a better diversity in the population. The mutation function used in our experiment is “Gaussian.” Gaussian adds a random number to each individual; the random number is derived from a Gaussian distribution having zero mean and a standard deviation of 1. In all the experiments the size of the population in each generation was set to 10. Total generations were set to 10. The optimized values from the genetic algorithm for the three selected geometries are shown in Table 1.

#### 3. Mathematical Analysis

Consider one-dimensional steady conduction in a plane wall of thickness , a hollow cylinder of inside radius , outside radius , and length or a hollow sphere of inside radius and outside radius with temperature dependent thermal conductivity , where is a measure of the thermal conductivity variation with temperature and is the thermal conductivity at temperature . Each geometry is experiencing a uniform volumetric heat generation at the rate . The temperature on the left face of the wall or at the inner radius is while the temperature on the right face or at the outer radius is , where . The dimensionless governing equations for a plane wall, hollow cylinder, and hollow sphere with temperature dependent thermal conductivity and uniform volumetric heat generation can be written as
with *boundary conditions*
where
The governing equations given in (1) are nonlinear due to temperature dependent thermal conductivity and do not have exact analytical solutions. In this study, numerical solution is obtained by using MATLAB. The equations were solved using MATLAB built-in function “bvp4c.” In order to use this function (1) was transformed into a system of equations. The boundary conditions were specified in each case. The mesh size (used to solve the boundary value problem) was set to 10, that is, 10 equidistant points between initial and final values of temperatures.

##### 3.1. Entropy Generation Rates

Once the dimensionless temperature distribution is known, the entropy generation rate for the selected geometries can be calculated using the expressions for the volumetric entropy generation rates given by Bejan [36]. In dimensionless form, the entropy generation rates for the selected geometries can be written as These expressions were also evaluated numerically using MATLAB. The solution of the dimensionless temperature, that is, or (depending upon the geometry) is obtained by utilizing “bvp4c”. A third order polynomial was approximated from the solution. The integral for the entropy generation rates in (4) for each of the three cases was solved by invoking MuPad facility from the MATLAB environment. The solution for the definite integral was found to be very accurate. The variation of entropy generation rate with respect to "a" and "Q" for three geometries are shown in Figures 3, 5 and 7 respectively.

The optimization process is shown in Figure 1. An initial population is generated which should lie within the constraints defined on the parameters. The constraints are applied on ,, and , respectively. Each member of the population is evaluated for fitness. The most suitable individuals (having the best fitness values) are allowed to breed. The breeding process (in a broad sense) consists of crossover and mutation; the bad individuals are replaced by the best offspring. The genetic algorithm checks for the convergence. If the algorithm converges then it terminates otherwise it generates a new set of population [37]. In our experiment the maximum number of generations are set to 10. If 10 generations is produced then the algorithm terminates giving the best value of (objective function) in the 10th generation.

#### 4. Theoretical Foundation of Genetic Algorithms

Genetic algorithm is used for optimizing functions. Let the objective function to be minimized be denoted by , where . “” denotes the parameter space of the optimization problem. is the maximum number of parameters to be considered in the optimization process. “” can be continuous or discrete, real or imaginary [26]. The genetic algorithm transforms the parameter’s values into a symbolic representation “” which is termed as a chromosome. Many genes combine to form a chromosome. The number of genes in a chromosome determines the quantization level of the parameters (used in optimization process). The chromosome “” can be represented by where is the length of the chromosome. The encoding of a parameter value “” into “” can be represented by where and are the minimum and maximum values of the parameter . A generation consists of randomly generated population: where “” is the maximum number of members in the population. The members of the population are tested for fitness. In our specific case the members are tested so that they lie within the bounds defined on the parameters. The filtered individuals are used to determine the cost (of the objective function). Production of new members in the next population consists of three major steps, namely, selection, crossover, and mutation. the most suitable candidates are selected as parents and are allowed to reproduce the new generation. The selectionoperation can be represented by which produces a population of size “.” Various selection schemes have been proposed such as ranking, roulette-wheel, and stochastic uniform methods [25]. The next generation consists of the best individuals from the previous generation and their offspring. Chromosomes from two parents are combined to generate an offspring; this process is termed as crossover process. Crossover can be denoted as the union over a composition of operators and is given by where the operator “” chooses a random chromosome from and the operator “” maps a pair of chromosomes and to another pair such that: where the newly produced offspring are given by The chromosomes of each member are also mutated (the value of a randomly selected gene is inverted from 0 to 1 or 1 to 0) to generate a more suitable candidate in the next generation. The mutation process is given by and mathematically it can be represented as For a chromosome , , and

#### 5. Simulation Setup

The fitness function (the function to be minimized) is the entropy generation rate in all the cases. The simulation is developed in MATLAB. The fitness scores returned by the fitness function are ranked on the basis of their scores. The rank of the fittest individual is set to “1” and the next fittest is assigned a rank of “2” and so on. Rank fitness scaling removes the effect of raw scores. “Stochastic uniform” scaling function is used for selection of parents in the next generation. The parents are selected based on the rank as determined earlier. Stochastic uniform algorithm lays out a line in which each parent corresponds to a section of the line of length proportional to its expectation. The algorithm moves along the line in steps of equal size, one step for each parent. At each step, the algorithm allocates a parent from the section it lands on. The first step is a uniform random number less than the step size. Reproduction algorithm determines how the offspring are generated. The elite count is set to “2” which guarantees that a maximum of two individuals will survive in the next population. The crossover process used is “scattered” which first creates a random binary vector. A “1” in the random binary vector is replaced by genes from the first parent and a “0” in the random binary vector is replaced by a gene from the second individual. Crossover fraction is a factor which determines how many individuals in the next generation will be generated by mixing genes from two different chromosomes. The crossover fraction has a value of 0.8. The remaining members of the generation will be generated by the mutation process. The mutation process generates a better diversity in the population. The mutation function used in our experiment is “Gaussian.” Gaussian adds a random number to each individual; the random number is derived from a Gaussian distribution having zero mean and a standard deviation of 1. In all the experiments the size of the population in each generation was set to 10, that is, is set to 10. Total generations were set to 10. The optimized values from the genetic algorithm for plane wall, hollow cylinder, and hollow sphere are shown in Table 1.

#### 6. Results and Discussion

The genetic optimization tool in the MATLAB environment was used to solve nonlinear heat conduction problem in three selected geometries. The most important task is to code the fitness function and to set all the constraints. The genetic algorithm calls the fitness function at each instant with random values of the parameters to be optimized. These random values are the members of the population. With each set of values, the boundary value problem is solved and the numerical solution is converted into a third degree polynomial. The polynomial is subsequently used (by invoking MUPAD from MATLAB) to determine the entropy generation rate. The entropy generation rate is determined for the complete population and the minimum value of the entropy generation rate is held and the remaining values are discarded.

One case for each of the selected geometries that is, plane wall, hollow cylinder, and hollow sphere, is shown in Figures 2–7, respectively. In Figure 2, initially the fitness function value is above 4 and the worst score varies between 3 and 9 but when more members of the population are generated, the fitness value converges. It can be observed that after the fourth generation the fitness value does not change. In the case of hollow cylinder, the fitness values converge in the sixth generation. There is a lot of variation in the initial generations as can be seen in Figure 4 but the solution gradually converges. For the case of hollow sphere (Figure 3), the solution converges in the fifth generation. The vertical lines in all the figures represent the maxima and minima generated in each generation. In all the cases there are vertical lines for the initial generations but the vertical lines do not appear in the later generations. This clearly shows that only the best individuals are retained and they migrate from one generation to another.

#### 7. Conclusions

Genetic algorithms are successfully employed to optimize the dimensionless temperature in the selected geometries. The concept of minimum entropy generation was used to obtain the minimum dimensionless temperature. It is found that, for the same constraints, the minimum dimensionless temperature and hence the minimum entropy generation rates are obtained in case of plane wall.

#### Nomenclature

Thermal conductivity parameter, , dimensionless | |

: | Area of plane wall normal to the direction of heat transfer, m^{2} |

: | Thermal conductivity, W/m·K |

: | Thermal conductivity at , W/m·K |

: | Thickness of plane wall or the length of hollow cylinder, m |

: | Radial coordinate, m |

: | Inside radius of hollow cylinder or hollow sphere, m |

: | Outside radius of hollow cylinder or hollow sphere, m |

: | Dimensionless radial coordinate, |

: | The ratio of outside to inside radius, / |

: | Entropy generation rate per unit volume, W/m^{3}·K |

: | Entropy generation rate, W/K |

: | Temperature, K |

: | Distance, m |

: | Dimensionless distance, . |

*Greek Symbols*

: | Thermal conductivity coefficient, K^{−1} |

: | Dimensionless temperature, |

: | temperature ratio, . |

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### References

- M. N. Özisik,
*Heat Conduction*, Wiley Interscience, New York, NY, USA, 2nd edition, 1993. - V. S. Arpaci,
*Conduction Heat Transfer*, Addison-Wesley, London, UK, 1966. - B. Gebhart,
*Heat Conduction and Mass Diffusion*, McGraw Hill, London, UK, 1993. - O. Bautista, F. Méndez, and J. L. Martinez-Meyer, “(Bejan's) early vs. late regimes method applied to entropy generation in one-dimensional conduction,”
*International Journal of Thermal Sciences*, vol. 44, no. 6, pp. 570–576, 2005. View at Publisher · View at Google Scholar · View at Scopus - C. Cortés, A. Campo, and I. Arauzo, “Reflections on lumped models of unsteady heat conduction in simple bodies,”
*International Journal of Thermal Sciences*, vol. 42, no. 10, pp. 921–930, 2003. View at Publisher · View at Google Scholar · View at Scopus - T. Yilmaz, “Equations for heating and cooling of bodies of various shapes,”
*International Journal of Refrigeration*, vol. 18, no. 6, pp. 395–402, 1995. View at Google Scholar · View at Scopus - L. S. Langston, “Heat transfer from multidimensional objects using one-dimensional solutions for heat loss,”
*International Journal of Heat and Mass Transfer*, vol. 25, no. 1, pp. 149–150, 1982. View at Google Scholar · View at Scopus - A. C. Cleland and R. L. Earle, “A simple method for prediction of heating and cooling cooling in solids of various shapes,”
*International Journal of Refrigeration*, vol. 5, no. 2, pp. 98–106, 1982. View at Google Scholar · View at Scopus - J.-H. He, “Homotopy perturbation method: a new nonlinear analytical technique,”
*Applied Mathematics and Computation*, vol. 135, no. 1, pp. 73–79, 2003. View at Publisher · View at Google Scholar · View at Scopus - F. Jiang and A. C. M. Sousa, “Analytical solution for hyperbolic heat conduction in a hollow sphere,”
*Journal of Thermophysics and Heat Transfer*, vol. 19, no. 4, pp. 595–598, 2005. View at Google Scholar · View at Scopus - C. K. Liu, “Thermal stabilities of slabs and hollow spheres with internal heat generation and variable thermal conductivity- II. Thermal stability of hollow spheres,”
*Journal of the Franklin Institute*, vol. 323, no. 1, pp. 43–53, 1987. View at Google Scholar · View at Scopus - C. K. Liu and B. K. Hodge, “Heat conduction in homogeneous infinite cylinders and spheres with arrhenius heat generator, and a comment on squires approximation,” Tech. Rep. TN-ASH, 1969. View at Google Scholar
- F. Jiang, “Solution and analysis of hyperbolic heat propagation in hollow spherical objects,”
*Heat and Mass Transfer*, vol. 42, no. 12, pp. 1083–1091, 2006. View at Publisher · View at Google Scholar · View at Scopus - G. Atefi and M. Moghimi, “A temperature Fourier series solution for a hollow sphere,”
*Journal of Heat Transfer*, vol. 128, no. 9, pp. 963–968, 2006. View at Publisher · View at Google Scholar · View at Scopus - J. F. Branco, C. T. Pinho, and R. A. Figueiredo, “Heat conduction in the hollow sphere with a power-law variation of the external heat transfer coefficient,”
*International Communications in Heat and Mass Transfer*, vol. 27, no. 8, pp. 1067–1076, 2000. View at Publisher · View at Google Scholar · View at Scopus - J.-H. He, “Homotopy perturbation technique,”
*Computer Methods in Applied Mechanics and Engineering*, vol. 178, no. 3-4, pp. 257–262, 1999. View at Google Scholar · View at Scopus - R. V. Davalos and B. Rubinsky, “An evolutionary-genetic approach to heat transfer analysis,”
*Journal of Heat Transfer*, vol. 118, no. 3, pp. 528–531, 1996. View at Google Scholar · View at Scopus - B. Rubinsky and R. Davalos, “The use of evolutionary-genetic analogy in numerical analysis,”
*Communications in Numerical Methods in Engineering*, vol. 14, no. 2, pp. 151–160, 1998. View at Google Scholar · View at Scopus - P. Tsourkas and B. Rubinsky, “Evolutionary-genetic algorithm for solving 2-D steady-state conduction problems,”
*Numerical Heat Transfer B*, vol. 43, no. 2, pp. 99–115, 2003. View at Google Scholar · View at Scopus - P. Tsourkas and B. Rubinsky, “A parallel genetic algorithm for heat conduction problems,”
*Numerical Heat Transfer B*, vol. 47, no. 2, pp. 97–110, 2005. View at Publisher · View at Google Scholar · View at Scopus - L. Gosselin, M. Tye-Gingras, and F. Mathieu-Potvin, “Review of utilization of genetic algorithms in heat transfer problems,”
*International Journal of Heat and Mass Transfer*, vol. 52, no. 9-10, pp. 2169–2188, 2009. View at Publisher · View at Google Scholar · View at Scopus - M. Felczak and B. Wicek, “Application of genetic algorithms for electronic devices placement in structures with heat conduction through the substrate,”
*Microelectronics Reliability*, vol. 51, no. 2, pp. 453–459, 2011. View at Publisher · View at Google Scholar · View at Scopus - J. H. Holland,
*Adaption in Natural and Artificial Systems*, MIT Press, 1975. - D. E. Goldberg,
*Genetic Algorithms in Search, Optimization and Machine Learning*, Addison-Wesley, Reading, Mass, USA, 1989. - Z. Michalewicz,
*Genetic Algorithms+Data Structures = Evolution Program*, Springer, Berlin, Germany, 1994. - D. S. Weile and E. Michielssen, “Genetic algorithm optimization applied to electromagnetics: a review,”
*IEEE Transactions on Antennas and Propagation*, vol. 45, no. 3, pp. 343–353, 1997. View at Publisher · View at Google Scholar · View at Scopus - C. L. Karr and E. J. Gentry, “Fuzzy control of pH using genetic algorithms,”
*IEEE Transactions on Fuzzy Systems*, vol. 1, no. 1, pp. 46–53, 1993. View at Publisher · View at Google Scholar · View at Scopus - D. A. Linkens and H. O. Nyongesa, “Learning systems in intelligent control: an appraisal of fuzzy, neural and genetic algorithm control applications,”
*IEE Proceedings of the Control Theory and Application*, vol. 143, pp. 367–386, 1996. View at Google Scholar - J.-T. Horng, S.-F. Chang, T.-Y. Wu, P.-L. Chen, and Y.-H. Hung, “Thermal optimal design for plain plate-fin heat sinks by using neuro-genetic method,”
*IEEE Transactions on Components and Packaging Technologies*, vol. 31, no. 2, pp. 449–460, 2008. View at Publisher · View at Google Scholar · View at Scopus - L. Gosselin, M. Tye-Gingras, and F. Mathieu-Potvin, “Review of utilization of genetic algorithms in heat transfer problems,”
*International Journal of Heat and Mass Transfer*, vol. 52, no. 9-10, pp. 2169–2188, 2009. View at Publisher · View at Google Scholar · View at Scopus - A. Nagose, A. Somani, A. Shrot, and A. Narasimhan, “Genetic algorithm based optimization of PCM based heat sinks and effect of heat sink parameters on operational time,”
*Journal of Heat Transfer*, vol. 130, no. 1, Article ID 011401, 2008. View at Publisher · View at Google Scholar · View at Scopus - H. Najafi, B. Najafi, and P. Hoseinpoori, “Energy and cost optimization of a plate and fin heat exchanger using genetic algorithm,”
*Applied Thermal Engineering*, vol. 31, no. 10, pp. 1839–1847, 2011. View at Publisher · View at Google Scholar · View at Scopus - J. J. Grefenstette, “Optimization of control parameters for genetic algorithms,”
*IEEE Transactions on Systems, Man and Cybernetics*, vol. 16, no. 1, pp. 122–128, 1986. View at Google Scholar · View at Scopus - S. Sanaye and H. Hajabdollahi, “Thermal-economic multi-objective optimization of plate fin heat exchanger using genetic algorithm,”
*Applied Energy*, vol. 87, no. 6, pp. 1893–1902, 2010. View at Publisher · View at Google Scholar · View at Scopus - S. Sanaye and H. Hajabdollahi, “Multi-objective optimization of rotary regenerator using genetic algorithm,”
*International Journal of Thermal Sciences*, vol. 48, no. 10, pp. 1967–1977, 2009. View at Publisher · View at Google Scholar · View at Scopus - A. Bejan,
*Entropy Generation Minimization*, CRC Press, Boca Raton, Fla, USA, 1996. - M. B. Kadri, W. Khan, and Q. Ali, “Optimization of micro-channel heat sinks using genetic algorithms,”
*Heat Transfer Engineering*, vol. 34, no. 4, pp. 279–287, 2013. View at Google Scholar