Corresponding relationships between bird foraging and PSO algorithm.
--> . In addition, the results indicate that optimizing the weights corresponding to the control points can improve the quality of designed shape. However, the MGA has the obvious drawback that the convergence velocity is relatively low.
The PSO algorithm is a kind of biologically inspired algorithm whose search process is similar to foraging of birds and it was proposed in 1995 by Eberhart and Kennedy [26]. The physical model of PSO is very simple and the computational program is easy to be implemented, it also has strong robustness and achieves good performance on computational efficiency and accuracy. In addition, PSO algorithm can well balance the global and local search of particles, which enhance the global convergence of the algorithm. Farahmand et al. [27] investigated the inverse geometry design of two-dimensional radiative enclosures with diffuse gray surfaces based on the PSO and the retrieval results show that PSO algorithm obtains better performance in satisfying the design goal based in terms of computational accuracy and CPU time compared with MGA. However, the standard PSO algorithm also suffers from easily trapping into local optima in solving high dimensional problems. In order to strengthen the applicability of PSO, some improvements have been proposed and widely applied, including Stochastic PSO (SPSO), Differential Evolution PSO (DEPSO), Multi Phase PSO (MPPSO), and so on. However, to the authors’ best knowledge, there are few reports concerning about the applications of improved PSO algorithms for solving inverse geometry design problems of radiative enclosures.
In this chapter, the application of PSO algorithms in solving inverse geometry design problems of two-dimensional radiative enclosures filled with participating media is investigated. The design goal is to satisfy a uniform distribution of radiative heat flux on the designed surface. The discrete ordinate method (DOM) with a body-fitted coordinate system is used to solve the RTE. The standard PSO, SPSO and DEPSO algorithms are applied to optimize the locations of the control points, and Akima cubic interpolation is adopted to obtain the boundary geometry shape through these points. A typical inverse geometry design test is studied to demonstrate the good performance of PSO algorithms and the effects of corresponding parameters are also discussed.
The remainder of this chapter is organized as follows: the theoretical principles of PSO algorithms are introduced in Section 2. The feasibility of PSO algorithms by four famous benchmark functions is verified in Section 3. The inverse geometry design of two-dimensional radiative enclosures and the influences of the number of control points and the radiative properties of media on the inverse design results are investigated in Section 4. The main conclusions of the researches in this chapter are summarized in Section 5.
Bird individuals will communicate with each other to share their information about food when they are foraging, which can help birds find food faster. The advantages of cooperation of bird swarm are much greater than the disadvantages of competition among bird individuals. Based on the features of bird foraging behavior, Kennedy and Eberhart proposed PSO algorithm in 1995 [26]. The solving process of PSO algorithm is similar to the foraging behavior of birds, and the corresponding relationships are shown in Table 1.
Bird foraging behavior | PSO algorithm |
---|---|
Foraging domain of bird individual | Searching space of each particle |
Bird individual | Particle |
Flight speed of bird | Moving speed of particle |
Location of bird | Location of particle, which represents a solution of optimization problems |
Location of food | The best solution of optimization problems |
Corresponding relationships between bird foraging and PSO algorithm.
There are two dominant parameters in the PSO algorithm, namely, the speed and the location of particles. The moving speed decides the direction and distance of the particles, and every location of particles can be considered as the potential a solution of optimization problems. PSO adopts a combination of local and global searches and shares the evolutionary information among particle individuals to find the optimal solution.
At the beginning of the optimization of PSO, every location and velocity of particles are randomly generated. During each iteration, there will be two extreme values. One is best location that an individual particle found so far, which is called local best location. Another is the best location that the whole particle swarm found so far, which is called global best location. The velocity and location of each particle are stochastically accelerated according to these two extremes and the evolutionary formula can be expressed as follows [26]
where
The evolution of particle’s location.
According to Eq. (1), we can find that the velocity of
The flowchart of the basic PSO algorithm.
The main procedure of PSO algorithm for solving optimization problems can be carried out according to the following steps:
The flowchart of the basic PSO algorithm is shown in Figure 2.
However, there are some obvious shortcomings in the basic PSO algorithm, such as slow convergence, easy to fall into local optimum, and even the velocities tend to be infinity in some occasions. Thus, many modifications have been proposed to overcome these drawbacks.
There are two important capabilities in PSO algorithm, namely exploration and exploitation of particles. Exploration is the phenomenon that particles leave the original orbit and search for new space. Exploitation is the phenomenon that particles look for better locations along the original track. In order to better take advantage of these two search way, Shi and Eberhart put forward the standard PSO algorithm on the basis of basic PSO in 1998 [28], in which an inertia weight coefficient
where
Comparing Eq. (1) with Eq. (3) we can find that basic PSO algorithm is a special circumstance of standard PSO algorithm that inertia weight is set as
In order to overcome the drawback that PSO algorithm converges too early and make sure to reach the goal of global convergence, Zeng and Cui proposed SPSO algorithm in 2004 [30, 31], in which a stopped changing particle is utilized to improve the global searching ability of particle swarms.
In SPSO algorithm, the inertia weight coefficient is set as
According to Eq. (5), it can be found that the local searching ability of SPSO is increased compared with standard PSO. However, the global searching ability is reduced significantly. In order to further strengthen the global searches of SPSO, the algorithm randomly generates a particle in the searching space whose location is
After above updates, the following criterions are executed:
(1) If
(2) If
(3) If
Through the above analysis we can find that there is at least one particle’s location reaches the global best location at a particular iteration, which indicates that at least one particle is randomly generated at each iteration. Therefore, SPSO algorithm has been proved with strong global search ability.
Differential Evolution (DE) algorithm adopts simple differential operation among potential solutions to produce new candidate solution, which is a parallel, direct and stochastic searching technique. It was first proposed for solving Chebyshev polynomials and global optimization problems over continuous spaces by Storn and Price in 1995 [32]. Taking a cue from DE, the mutation operation is introduced into PSO algorithm to overcome the drawback of trapping in local optima, which is called DEPSO.
In DEPSO algorithm, the differential evolution operator is introduced to increase the diversity of particle swarms which is defined as
where
where
However, the location obtained by mutation operation maybe a worse result which will cause a bad influence on the search of other particles. In order to make sure the rapidity and stability of DEPSO algorithm, the following judgment should be executed before the location is updated:
(1) If the fitness value of the new location is better than the fitness value of the earlier location, which demonstrates the mutation is successful. Then the location of
(2) If the new fitness value is worse than before, which indicates this mutation is failed. Then the location of
In addition, there is a significant difference between DEPSO and basic PSO that the velocities of particles are not limited in the searching process, which can increase the convergence rate.
Function | Expression | Dimension | Search Space |
---|---|---|---|
Sphere | |||
Rastrigin | |||
Rosenbrock | |||
Schaffer |
Details of four benchmark functions.
In order to test the performance of the above PSO algorithms, four benchmark optimization functions are used for verification whose details are shown in Table 2. The parameters in PSO algorithms are set as follows: the number of particle swarm population is set as
The images of (a) Sphere function, (b) Rastrigin function, (c) Rosenbrock function and (d) Schaffer function with dimension
Function | Dimension | PSO | SPSO | DEPSO |
---|---|---|---|---|
Sphere | 10 | 5.94×10-28±3.46×10-27 | 8.33×10-31±1.67×10-31 | 8.25×10-31±1.91×10-31 |
20 | 2.82×10-13±7.76×10-13 | 4.80×10-17±3.63×10-16 | 2.98×10-25±1.54×10-24 | |
30 | 5.27×10-8±8.6910-8 | 1.23×10-6±3.97×10-6 | 7.30×10-15±2.34×10-14 | |
Rastrigin | 10 | 4.82×10-28±1.82×10-27 | 8.35×10-31±1.62×10-31 | 6.87×10-31±2.16×10-31 |
20 | 2.68×10-13±5.52×10-13 | 7.22×10-17±9.23×10-16 | 2.03×10-25±1.46×10-24 | |
30 | 5.39×10-8±7.56×10-8 | 1.48×10-6±4.34×10-6 | 7.08×10-15±6.66×10-14 | |
Rosenbrock | 3 | 3.36×10-8±8.39×10-8 | 3.53×10-17±1.06×10-16 | 2.95×10-16±9.21×10-16 |
5 | 5.62×10-2±6.02×10-2 | 4.12×10-2±1.99×10-2 | 1.37×10-2±2.85×10-2 | |
10 | 3.18×100±1.56×100 | 4.62×100±3.45×100 | 5.78×100±2.61×100 | |
Schaffer | 2 | 5.11×10-2±5.61×10-2 | 9.87×10-4±2.92×10-3 | 4.66×10-4±2.60×10-3 |
The retrieval results of three test functions with 1000 independent runs.
Considering a radiative equilibrium problem in two-dimensional irregular enclosures filled with participating media whose schematic diagram is shown in Figure 4. The curve EF represents the design surface and the design purpose is to produce a uniform distribution of radiative heat flux on the design surface. The bottom surface AD is the heating surface which can considered as the radiative heat source and its temperature is fixed as
Physical model of inverse geometry design.
In order to optimize the geometry shape of the design surface to meet the specified requirement, the objective function (being equal to the fitness function in PSO algorithms) is defined as the square residuals between the estimated and average dimensionless radiative heat flux values which can be expressed as
where
where
To evaluate the optimization results, the relative error is defined as
The design surface is discretized into a series of control points, and Akima cubic interpolation is used to approximate the geometry shape of the surface in optimization process. Akima interpolation is formulated by a cubic polynomial between two control points. First, the prerequisite is introduced as [33]
where
and the function
At the endpoints, the value of the function
If the above equations are satisfied, then the cubic polynomial in the subinterval [
where
( | ( | ( | ( | ( | ( | ( |
Case 1 | (0.0, 1.0) | (0.2, 1.2) | (0.4, 1.5) | (0.6, 1.5) | (0.8, 1.2) | (1.0, 1.0) |
Case 2 | (0.0, 1.0) | (0.2, 1.5) | (0.4, 1.3) | (0.6, 1.3) | (0.8, 1.5) | (1.0, 1.0) |
Case 3 | (0.0, 1.0) | (0.28, 1.2) | (0.41, 1.4) | (0.67, 1.1) | (0.88, 1.3) | (1.0, 1.0) |
Coordinates of control points of three test cases.
Curve fitting results by means of Akima cubic interpolation.
In order to test the performance of the Akima cubic interpolation, three interpolation cases are applied, in which six specified points are used as control points whose coordinates are shown in Table 4. The curves in Figure 5 indicate the Akima cubic interpolation can successfully applied for geometry shape fitting.
The boundary shape changes with the optimization of the design surface and the computational domain must be re-meshed, which greatly increase the solving difficulty of the inverse geometry design problems. In addition, the forward radiative heat transfer problem cannot be precisely solved by the normal numerical method. For the purpose of fitting the irregular boundary shape, the DOM with a body-fitted coordinate system is adopted to solve the RTE. For the participating media, the forward can be written as [34]
which is an integro-differential type, where
where
where
The Jacobian matrix is used for coordinate transformation to solve the radiative heat transfer in irregular enclosures
The spatially discretized RTE with a body-fitted coordinate system can be expressed as
where
The step scheme is applied to solve the above equations, and Eq. (22) can be expressed as
where the subscripts
Eq. (24) can be expressed in matrix form
where
The schematic diagram of grids in computational domains.
The dimensionless radiative heat flux distribution on the bottom boundary for different absorption coefficients.
Consider a non-radiative equilibrium problem in the two-dimensional irregular enclosure filled with participating media. The four boundaries are cold surfaces whose temperature is 0K and all the boundaries are assumed as blockbody. The temperature of media is set as
The inverse geometry design model in Section 4.1 is considered and the standard PSO algorithm is abbreviated as PSO if there is no special instruction. The initial shape of the enclosure is rectangular, whose size is set as
(a) Initial and final geometry shape of the design surface, (b) dimensionless radiative heat flux distribution on the design surface, and (c) relative error distributions of dimensionless radiative heat flux on the design surface, of a two-dimensional radiative enclosure.
Algorithms | CPU time (s) | Fitness values | Average relative error (%) | Maximum relative error (%) |
---|---|---|---|---|
PSO | 40037 | 7.28×10-8 | 0.0313 | 0.0737 |
SPSO | 31572 | 4.05×10-8 | 0.0244 | 0.0518 |
DEPSO | 36944 | 5.62×10-8 | 0.0275 | 0.0669 |
Comparison of inverse design results by PSO, SPSO and DEPSO algorithms.
In view of the random characteristic of intelligent algorithms, all the tests are repeated 50 trials to compare the performance of PSO algorithms. Table 5 shows the comparison of the results obtained by PSO, SPSO and DEPSO algorithms. It can be found that all the PSO algorithms have reached the special design requirement and both SPSO and DEPSO achieve better performance than the initial PSO in terms of computational accuracy and efficiency.
(a) Geometry shape of the design surface and (b) dimensionless radiative heat flux distribution on the design surface by means of SPSO algorithm for different numbers of control points.
In order to enhance the computational efficiency of inverse geometry design problems, the effects of corresponding parameters are investigated in this study. For the fact that the design surface is discretized into a series of control points in the inverse design process, the number of control point has a direct impact on the inverse geometry design results. The radiative physical parameters of media are kept as the same as the above typical example and the numbers of control point are set as
Control point numbers | Iteration numbers | Fitness values | Average relative error (%) | Maximum relative error (%) |
---|---|---|---|---|
1 | 164 | 3.89×10-8 | 0.2711 | 0.5597 |
3 | 19 | 5.36×10-8 | 0.0280 | 0.0796 |
5 | 26 | 6.72×10-8 | 0.0309 | 0.0875 |
7 | 37 | 7.63×10-8 | 0.0321 | 0.1024 |
Comparison of inverse design results for different number of control points.
Geometry shape of the design surface for different extinction coefficients of media.
Geometry shape of the design surface for different scattering albedo of media.
The physical properties of the media have an important influence on the energy transfer and then affect the optimization results of radiative enclosures. The effects of the extinction coefficient and the scattering albedo on the inverse design results are studied here. The scattering albedo of media is fixed as
Algorithm | Extinction coefficient | Fitness values | Dimensionless radiative heat flux | Average relative error (%) | Maximum relative error (%) | |
---|---|---|---|---|---|---|
PSO | 8.22×10-8 | 0.2333 | 0.0329 | 0.0895 | ||
7.19×10-8 | 0.1137 | 0.0496 | 0.0736 | |||
3.94×10-8 | 0.0735 | 0.0460 | 0.1297 | |||
SPSO | 7.61×10-8 | 0.2334 | 0.0295 | 0.0816 | ||
5.63×10-8 | 0.1136 | 0.0398 | 0.0723 | |||
2.42×10-8 | 0.0734 | 0.0301 | 0.0909 | |||
DEPSO | 5.07×10-8 | 0.2334 | 0.0230 | 0.0849 | ||
4.16×10-8 | 0.1136 | 0.0351 | 0.0706 | |||
2.85×10-8 | 0.0734 | 0.0307 | 0.0889 |
Inverse geometry design results for different extinction coefficients.
Algorithm | Scattering albedo | Fitness values | Dimensionless radiative heat flux | Average relative error (%) | Maximum relative error (%) |
---|---|---|---|---|---|
PSO | 7.93×10-8 | 0.1137 | 0.0459 | 0.0867 | |
7.19×10-8 | 0.1137 | 0.0496 | 0.0736 | ||
7.23×10-8 | 0.1136 | 0.0355 | 0.636 | ||
SPSO | 3.02×10-8 | 0.1136 | 0.0297 | 0.0804 | |
5.63×10-8 | 0.1136 | 0.0398 | 0.0723 | ||
4.49×10-8 | 0.1136 | 0.0322 | 0.0665 | ||
DEPSO | 5.07×10-8 | 0.1136 | 0.0352 | 0.0349 | |
4.16×10-8 | 0.1136 | 0.0351 | 0.0706 | ||
3.49×10-8 | 0.1136 | 0.0358 | 0.0710 |
Inverse geometry design results for different scattering albedo of media.
The scattering of media will affect the original transfer direction of radiative heat or energy, so the scattering characteristic of media also has influence on the inverse geometry design of radiative enclosures. The extinction coefficient and scattering albedo of the media are set as
Geometry shape of the design surface scattering characteristics of media.
Algorithm | Scattering characteristic | Fitness values | Dimensionless radiative heat flux | Average relative error (%) | Maximum relative error (%) | |
---|---|---|---|---|---|---|
PSO | 8.66×10-8 | 0.1297 | 0.0354 | 0.0828 | ||
9.04×10-8 | 0.1136 | 0.0403 | 0.0776 | |||
7.21×10-8 | 0.1006 | 0.0385 | 0.0941 | |||
SPSO | 7.57×10-8 | 0.1297 | 0.0328 | 0.0982 | ||
8.16×10-8 | 0.1136 | 0.0463 | 0.0825 | |||
1.60×10-8 | 0.1007 | 0.0195 | 0.0629 | |||
DEPSO | 5.53×10-8 | 0.1297 | 0.0378 | 0.0797 | ||
6.94×10-8 | 0.1136 | 0.0426 | 0.0735 | |||
5.71×10-8 | 0.1007 | 0.0413 | 0.0882 |
Inverse geometry design results for different scattering characteristics of media.
In this chapter, the basic theoretical principles of PSO algorithm is introduced in detail and three kinds of PSO algorithms—standard PSO, SPSO and DEPSO—are applied for solving the inverse geometry design problem of a two-dimensional radiative enclosure filled with participating media. The design purpose is to produce a uniform distribution of radiative heat flux on the designed surface. The design surface is discretized into a series of control points and the Akima cubic interpolation is used to approximate the geometry shape of the boundary. The radiative heat transfer problem in the irregular enclosures is solved by the DOM with a body-fitted coordinate system. The pre-required radiative heat flux distribution is satisfied by optimizing the positions of control points based on the PSO algorithms. The retrieval results show that PSO algorithms can be successfully applied to solve inverse geometry design problems and SPSO achieves the best performance on computational time. Meanwhile, the scattering albedo and scattering characteristics of media have little effect on the geometry shape of the design surface. To improve the computational efficiency, the number of control points is recommended as
The supports of this work by the National Natural Science Foundation of China (Nos. 51476043 and 51576053), the Major National Scientific Instruments and Equipment Development Special Foundation of China (No. 51327803), and the Foundation for Innovative Research Groups of the National Natural Science Foundation of China (No. 51421063) are gratefully acknowledged. A very special acknowledgement is also made to the editors and referees who make important comments to improve this chapter.
Submitted: October 6th, 2015 Reviewed: February 2nd, 2016 Published: September 21st, 2016
© 2016 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.