Open access peer-reviewed chapter

A Simulated Annealing Based Optimization Algorithm

Written By

Yoel Tenne

Submitted: 14 March 2016 Reviewed: 20 October 2016 Published: 26 April 2017

DOI: 10.5772/66455

From the Edited Volume

Computational Optimization in Engineering - Paradigms and Applications

Edited by Hossein Peyvandi

Chapter metrics overview

1,665 Chapter Downloads

View Full Metrics

Abstract

In modern engineering finding an optimal design is formulated as an optimization problem which involves evaluating a computationally expensive black-box function. To alleviate these difficulties, such problems are often solved by using a metamodel, which approximates the computer simulation and provides predicted values at a much lower computational cost. While metamodels can significantly improve the efficiency of the design process, they also introduce several challenges, such as a high evaluation cost, the need to effectively search the metamodel landscape and to locate good solutions, and the selection of which metamodel is most suitable to the problem being solved. To address these challenges, this chapter proposes an algorithm that uses a hybrid simulated annealing and SQP search to effectively search the metamodel. It also uses ensembles that combine prediction of several metamodels to improve the overall prediction accuracy. To further improve the ensemble accuracy, it adapts the ensemble topology during the search. Finally, to ensure convergence to a valid optimum in the presence of metamodel inaccuracies, the proposed algorithm operates within a trust-region framework. An extensive performance analysis based on both mathematical test functions and an engineering application shows the effectiveness of the proposed algorithm.

Keywords

  • simulated annealing
  • metamodelling
  • ensembles
  • trust‐region
  • expensive optimization problems

1. Introduction

With the advent of high performance computing, intricate computer simulations can now model real‐world physics with high accuracy. This, in turn, transformed the engineering design process into a simulation‐driven process in which candidate designs are evaluated by a computer simulation instead of a laboratory experiment. In this set‐up, the design process is formulated as an optimization problem with several unique features [1]:

  • The computer simulation acts as the objective function, since it assigns objective values to candidate designs. However, the simulation is often a legacy code or commercial software whose inner workings are inaccessible to the user, and so there is no analytic expression that defines how candidate designs are mapped to objective values. Such a black‐box function precludes the use of optimization algorithms that require an analytic function.

  • Each simulation run is computationally expensive, that is, it requires a lengthy run time, and this severely restricts the number of candidate designs that can be evaluated.

  • Both the real‐world physics being modelled and the numerical simulation process may result in an objective function, which has a complicated landscape, and this further complicates the optimization process.

An optimization strategy that has proven effective in such problems is that of metamodel‐assisted optimization, namely, where a metamodel approximates the true expensive function and provides predicted objective values at a lower computational cost [1]. However, the integration of metamodels and ensembles into the optimization search introduces several challenges:

  • Locating a good solution requires effectively searching the metamodel, which can have a complicated landscape with multiple local solutions, and hence can be a difficult task.

  • Since function evaluations are expensive, only a small number of evaluated vectors will be available and hence the metamodel will be inaccurate. In severe cases, the optimization search can converge to a false optimum, namely, which was artificially created by the metamodel's inaccurate approximation of the true expensive function.

  • A variety of metamodels have been proposed, for example, artificial neural networks (ANNs), Kriging and radial basis functions (RBFs) [2, 3], but the optimal variant is problem‐dependant, and is typically not known a priori. In an attempt to address this issue, ensembles employ several metamodels concurrently and aggregate their individual predictions into a single one [4, 5]. However, the effectiveness of ensembles depends on their topology, namely, which metamodels they incorporate, but the optimal topology is again typically unknown a priori, and may be impractical to identify by numerical experiments due to the high cost of each simulation run.

To address this issue, this chapter proposes an optimization algorithm that uses a hybrid‐simulated annealing (SA) search followed by a local refinement of solutions based on an SQP search. In this manner, this set‐up achieves both an effective global and local search, which assists in locating good solutions. To address the issue of inaccurate metamodel predictions, the proposed algorithm operates within a trust region (TR) approach that manages the metamodel and ensures convergence to a valid optimum. Finally, to further improve the prediction accuracy the proposed algorithm uses ensembles and selects the most suitable topology during the search.

Accordingly, this chapter presents several contributions: (a) a hybrid SA‐SQP metamodel‐assisted search, (b) integration within a TR framework, and (c) continuous selection of the ensemble topology during the search. An extensive performance analysis based on both mathematical test functions and an engineering problem of airfoil shape optimization shows the effectiveness of the proposed algorithm.

The remainder of this chapter is organized as follows: Section 2 provides the background information, Section 3 describes the proposed algorithm, then Section 4 provides an extensive performance evaluation and discussion, and finally Section 5 concludes this chapter.

Advertisement

2. Background

2.1. Optimization techniques

As mentioned in Section 1, simulation‐driven problems often include a challenging objective function, such as having multiple local optima or lacking an analytic expression. In such settings, classical gradient‐based optimization algorithms can perform poorly, and therefore researchers have explored various alternative approaches [1]. One class of such algorithms is the nature‐inspired metaheuristics, which include evolutionary algorithms (EAs), particle swarm optimization (PSO), and SA. The latter was inspired by the physics of the annealing process in metals: initially a metal has a high temperature and so particles have a high probability of moving to a higher energy state. As the metal cools in the annealing process, particles are more likely to move to a lower energy level than to a higher one. The process is completed once the system has reached the lowest possible energy level, typically its temperature of equilibrium with the environment. In the realm of global optimization, these mechanics have been translated into a heuristic search, which starts with an initial vector, namely, a candidate solution. During the search, the current vector is perturbed so that new vectors in its vicinity are obtained. These vectors are evaluated and replace the original vector if: (a) they are better, or (b) they are worse and with probability p, which is analogous to the energy state changes. As p decreases, the search is transformed from being explorative to being more localized. Two main parameters of the SA algorithm are the annealing schedule, namely, the duration of the search process, which is determined by the manner that the temperature is decreased, and the selection probability function, which defines the dynamic threshold for accepting a worse solution. Algorithm 1 gives a pseudocode of a baseline SA algorithm, while Section 3 gives the specific parameter settings of the SA implementation used in this study.

The underlying mechanism of the SA algorithm was originally proposed by Metropolis et al. [6], while the more common annealing‐inspired formulation was later proposed by Černy [7] and Kirkpatrick et al. [8]. Since then the algorithm has been widely used in the literature, and some recent examples include [9] in finance, [10] in machine learning, [11] in chemical engineering and [12] in production line machine scheduling.

2.2. Expensive black‐box problems

Computationally expensive optimization problems are common across engineering and science. Typically in such problems, candidate designs are parameterized as vectors of design variables and sent to the simulation for evaluation, as shown in Figure 1.

Figure 1.

The layout of an expensive black‐box optimization problem. The optimization algorithm generates candidate solutions, and these are evaluated by the simulation, which acts as a ‘black‐box’ function, to obtain their corresponding objective values.

As mentioned in Section 1, metamodels are often used in such settings to alleviate the high computational cost of the simulation runs [2, 3]. However, the integration of metamodels into the search introduces two main challenges:

  • Prediction uncertainty: Due to the high cost of the simulation runs only a small number of designs can be evaluated, which in turn degrades the prediction accuracy of the metamodel and leads to optimization with uncertainty regarding the validity of the predicted objective values [13]. To address this, the metamodel needs to be updated during the search to ensure that its accuracy is sufficient to drive the search to a correct final result. To accomplish this, the proposed algorithm is structured based on the TR approach [14]. In this way, the algorithm performs a sequence of trial steps that are constrained to the TR, namely, the region where the metamodel is assumed to be accurate. Based on the success of the trial step, namely, if a new optimum has been found, the TR and the set of vectors are updated. Section 3 presents a detailed description of the TR approach implemented in this study.

  • Metamodel suitability: Various metamodel variants have been proposed, but the optimal variant is problem dependant and is typically unknown a priori [15]. To address this, ensembles employ multiple metamodels concurrently and combine their predictions into a single one to obtain a more accurate prediction [4, 5, 16]. Figure 2 shows an example based on the Rosenbrock function.

    The ensemble topology, namely, which metamodel variants are incorporated, is typically determined a priori and is unchanged during the search. However, the topology directly affects the prediction accuracy, and hence an unsuitable topology can degrade the search effectiveness. As an example, RBFs, RBFN and Kriging metamodels (described in Appendix 1) were used to generate several ensemble topologies. The same testing and training samples were used with all the topologies (sized 30 and 20 vectors, respectively), such that each ensemble was trained with training sample and its prediction accuracy was tested on the testing sample. The prediction accuracy was measured both with the root mean squared error (RMSE),

    RMSE=1ni=1n(f^(xi)f(xi))2E1

    and the R2 indicator,

    R2=StSrSt,E2a

    where

    St=(f(xi)f(xi)¯)2,Sr=(f(xi)f^(xi))2,E2b

    where f(x), and f^(x) are the true and the ensemble predicted values, respectively, and xi, i=1n are the testing vectors. Table 1 presents the test results, from which it follows that the prediction accuracy varied with the topology and that no single topology was the overall best.

Figure 2.

An ensemble topology consisting of RBF, RBFN and Kriging metamodels. The overall prediction is the aggregation of the individual predictions.

Ensemble topology
R+RNR+KRN+K
FunctionRMSER2RMSER2RMSER2
Ackley‐5D1.172e+00‐1.830e‐021.630e+00‐2.613e‐021.176e+00‐9.521e‐01
Rastrigin‐10D3.149e‐02‐2.407e‐012.471e‐02‐1.812e‐012.907e‐02‐3.381e‐01
Rosenbrock‐20D6.101e‐04‐3.566e‐014.968e‐04‐4.541e‐013.859e‐04‐1.410e‐01
Schwefel 2.13‐30D1.003e‐03‐9.573e‐012.234e‐04‐7.182e‐023.212e‐04‐1.321e‐01

Table 1.

Statistics for prediction accuracies of different topologies.

Note: R: RBF, RN: RBF network, K: Kriging.


Addressing this issue, the algorithm proposed in this study selects the most suitable ensemble topology during the search, as explained in the following section.

Advertisement

3. Proposed algorithm

This section describes the algorithm proposed in this study, which is designed to address the issues described in Sections 1 and 2. The proposed algorithm operates in five main steps, as follows:

Step 1. Initialization: The algorithm begins by generating an initial sample of vectors based on the optimal Latin hypercube design (OLHD) method [17]. The method ensures that the resultant sample is space‐filling, namely, adequately covers the search space, which in turn improves the prediction accuracy of the metamodels. The OLHD method exploits patterns of point locations for optimal Latin hypercube designs based on a variation of the maximum distance criterion to produce near‐optimal designs efficiently. After generating the sample, the vectors are evaluated with the true expensive function.

Step 2. Ensemble selection:

Step 2.1. Following the cross‐validation (CV) procedure [18], the vectors that have been evaluated so far are split into a training set and a testing set. In turn, each candidate metamodel variant is trained with the training set and is tested on the testing set. The prediction accuracy is measured with the root mean squared error (RMSE), which is calculated as

εj=1li=1l(mj(xi)f(xi))2,E3

where xi, i=1l, are the vectors in the testing set, f(xi) is the exact and already known function value at xi, and mj(x) is the prediction of the jth metamodel variant that has been trained with the training set.

Step 2.2. The evaluated vectors are again split into a training and a testing set. For each candidate ensemble topology, the following steps are performed:

  • Each metamodel variant that is active in the ensemble is assigned an ensemble weight, which is calculated as

    wi=εi1j=1nmεj1,E4

    and the overall ensemble prediction is then given by

    ψ(x)=i=1nmwimi(x),E5

    where nm is the number of participating metamodels in the ensemble and mi(x) is a metamodel that has been trained with the new training sample.

  • The prediction accuracy of the ensemble is estimated based on its RMSE on the testing set

    ε=1ki=1k(ψ(xi)f(xi))2,E6

    where xi, i=1k, are the vectors in the testing set.

    Step 2.3. After repeating the process with all the candidate topologies, the one having the lowest RMSE, as defined in Eq. (6), is selected for the current optimization iteration. A new ensemble is then trained based on the selected topology and on all the evaluated vectors. This ensemble will be used in the following step.

    It is emphasized that during the above process, the true expensive function is not used, and hence the process requires negligible computational resources.

    For the specific implementation in this chapter, three well‐established metamodels were considered for the ensembles: RBF, RBFN and Kriging that are all described in Appendix 1, while Table 2 presents the candidate ensemble topologies. Also, the split ratio between the training and testing vectors was calibrated by numerical experiments, as described in Appendix 2.

    Step 3. Optimization trial step: The proposed algorithm now seeks an optimum based on the ensemble prediction in the bounded TR around the current best solution (xb), namely

    ={x:xxb2Δ},E7

    where Δ is the TR radius. The search is performed by using a hybrid approach [19], which is composed of an initial search performed by a SA algorithm, and followed by a localized refinement of the solution with a sequential quadratic programming (SQP) algorithm. The main settings of the SA algorithm were based on existing studies [2022], as follows:

  • Initial temperature: Tmax=1000d where d is the function dimension. This was done to increase the annealing schedule for higher dimensional problems, which require a more extensive search.

  • Final temperature (stopping condition): T108.

  • Temperature decrease function: A 5% decrease, namely

    T(t)=0.95T(t1)E8

    where t is the current time‐step counter. This way the temperature initially decreases at a slow rate, which assists the exploration search, but the reduction is much faster in later stages when the search is localized.

  • Acceptance probability function: A decaying exponent, namely

    p(T)=exp(f(xn)f(xc)T(t))E9

    where xn is the new vector being examined and xc is the current vector.

    During the entire process, objective values are obtained only from the ensemble at a negligible computational cost, and hence the SA and SQP were able to evaluate a large number of candidate vectors.

    Step 4. TR updates: The best vector found in the previous step (x) is evaluated with the true expensive function, and the following updates are performed [14]:

  • If f(x)<f(xb): The trial step was successful since the vector found was indeed better than the current best one. This indicates that the ensemble prediction is accurate, and accordingly the TR radius is doubled.

  • If f(x)f(xb) and there are sufficient vectors in the TR: The search was unsuccessful since the solution found is not better than the current best one. However, since there are enough vectors in the TR to train the metamodels the failure is attributed to the TR being too large, and accordingly the TR radius is halved.

  • If f(x)f(xc) and there are insufficient vectors in the TR: As above but now the failure is attributed to having too few vectors in the TR to train the metamodels with. Therefore, a new vector is sampled in the TR, as explained below.

    The implementation described above differs from the classical TR framework in two main aspects:

  • The TR is contracted only if the number of vectors in the TR is above a threshold n, which is done to avoid premature convergence. The threshold parameter was calibrated through numerical experiments, as described in Appendix 2.

  • In Step 4, a new vector may be sampled in the TR to improve the prediction accuracy. This vector should be located in a region that is sparse with vectors, namely away from existing TR vectors. To accomplish this efficiently, the proposed algorithm generates a Latin hypercube design (LHD) sample of vectors in the TR and selects the one having the largest minimal distance (max‐min criterion) from the existing TR vectors.

Metamodels participating in the ensemble
IndexRBFRBFNKriging
1
2
3
4
5
6
7

Table 2.

Candidate ensemble topologies.

To conclude the description, Algorithm 2 gives the pseudocode of the proposed algorithm.

Advertisement

4. Performance analysis

4.1. Benchmark tests based on mathematical test functions

To evaluate its effectiveness, the proposed algorithm was applied to the established set of mathematical functions [23]: Ackley, Griewank, Rastrigin, Rosenbrock, Schwefel 2.13 and Weierstrass in dimensions 5–40, as listed in Table 3. These test functions represent challenging features such as high multimodality, deceptive landscapes and noise, and are therefore adequate for the testing purpose.

FunctionDefinition, f(x)=Domain
Ackley20exp(0.2i=1dxi2/d)exp(i=1dcos(2πxi)/d)+20+e[32,32]d
Griewanki=1d{xi2/4000}i=1d{cos(xi/i)}+1[100,100]d
Rastrigini=1d{xi210cos(2πxi)+10}[5,5]d
Rosenbrocki=1d1{100(xi2xi+1)2+(xi1)2}[10,10]d
Schwefel 2.13i=1d{j=1d[(ai,jsin(αj)+bi,jcos(αj))(ai,jsin(xj)+bi,jcos(xj))]}2[π,π]d
Weierstrassi=1d{k=0200.5kcos(2π3k(xi+0.5))}dk=0200.5kcos(π3k)[0.5,0.5]d

Table 3.

Mathematical test functions.

For a comprehensive evaluation, the proposed algorithm was benchmarked against the following four reference algorithms:

  • V1: A variant of the proposed algorithm, which is identical to it in operation, except that it used a single metamodel (RBF), but no ensembles.

  • V2: A variant of the proposed algorithm, which is identical to it in operation, except that it used a fixed ensemble, which consisted of the RBF, RBFN and Kriging metamodels, but without any topology selection.

  • Evolutionary algorithm with periodic sampling (EA‐PS): The algorithm leverages on the concepts in references [24, 25]. It uses a Kriging metamodel and a real‐coded evolutionary algorithm (EA). The accuracy of the metamodel is maintained by periodically evaluating a small subset of the EA population with the true objective function, and using these sampled vectors to update the metamodel.

  • Expected improvement with covariance matrix adaptation evolutionary strategy (CMA‐ES) (EI‐CMA‐ES) [26]: The algorithm combines a covariance matrix adaptation evolutionary strategy (CMA‐ES) algorithm with a Kriging metamodel, and uses the expected improvement (EI) framework to select new vectors for evaluation based both on the response and uncertainty in the metamodel prediction. This way the algorithm balances between a local search around the current best solution, and an explorative search in less‐visited regions of the search space.

This testing set‐up was used for several reasons: (i) any gains brought by using ensembles are highlighted through the comparisons to the V1 and V2 algorithms and (ii) the performance of the proposed algorithm is benchmarked against representative metamodel‐assisted algorithms from the literature, namely, the EA‐PS and EI‐CMA‐ES algorithms. Each algorithm‐objective function combination was tested over 30 runs to support a valid statistical analysis, and the number of evaluations of the true objective function was limited to 200, to represent the tight optimization budget in expensive problems.

Tables 4 and 5 give the resultant test statistics of mean, standard deviation (SD), median, minimum (best) and maximum (worst) objective value for each algorithm‐objective function combination. It also gives the statistic α that indicates the significance level at which the results of the proposed algorithm were better than those of the competing algorithms, measured at either the 0.01 or 0.05 levels, while an empty entry indicates no such statistically significant advantage. The α statistic was obtained by using the Mann‐Whitney non‐parametric test [27].

ProposedV1V2EA‐PSEI‐CMA‐ES
Ackley‐10Mean7.576e+001.415e+011.320e+015.241e+001.796e+01
SD8.218e+004.522e+007.843e+005.590e-011.529e+00
Median2.274e+001.547e+011.855e+015.408e+001.797e+01
Min(best)8.677e-022.362e+003.381e+004.098e+001.443e+01
Max(worst)1.779e+011.778e+012.046e+016.010e+001.988e+01
α0.010.01
Griewank‐10Mean1.253e‐011.920e‐018.625e‐019.579e‐019.338e‐01
SD1.759e‐011.643e‐011.401e‐011.076e‐012.435e‐01
Median7.507e‐021.267e‐018.834e‐019.862e‐011.007e+00
Min(best)9.163e‐033.485e‐025.304e‐017.146e‐012.441e‐01
Max(worst)6.194e‐015.401e‐011.022e+001.046e+001.050e+00
α0.010.010.01
Rastrigin‐5Mean6.259e+009.031e+007.828e+007.631e+002.131e+01
SD3.695e+007.483e+008.286e+004.811e+004.890e+00
Median5.844e+007.273e+004.246e+007.226e+002.139e+01
Min(best)1.950e+001.005e+003.224e+001.621e+001.353e+01
Max(worst)1.189e+012.653e+013.046e+011.456e+013.006e+01
α0.01
Rosenbrock‐5Mean1.443e+013.247e+011.358e+022.074e+023.701e+02
SD3.839e+017.480e+012.784e+021.640e+022.320e+02
Median2.508e+003.522e+006.636e+001.796e+023.498e+02
Min(best)2.465e-021.730e+004.085e+001.368e+017.677e+01
Max(worst)1.236e+022.388e+028.787e+025.617e+026.719e+02
α0.010.010.01
Schwefel‐5Mean5.379e+023.809e+023.663e+025.598e+023.333e+02
SD8.894e+029.297e+026.567e+024.995e+023.227e+02
Median7.371e+012.749e+001.715e+024.804e+022.050e+02
Min(best)2.508e-025.862e-024.835e+015.685e+013.426e+01
Max(worst)2.202e+032.955e+032.215e+031.817e+031.080e+03
α
Weierstrass‐10Mean6.620e+008.936e+008.168e+003.706e+005.909e+00
SD1.970e+001.731e+002.042e+005.593e-012.777e+00
Median6.395e+009.023e+008.494e+003.702e+005.805e+00
Min(best)3.786e+006.875e+005.234e+002.787e+001.657e+00
Max(worst)1.052e+011.236e+011.108e+014.627e+009.409e+00
α0.01

Table 4.

Test statistics: test functions—low dimension.

ProposedV1V2EA‐PSEI‐CMA‐ES
Ackley‐20Mean6.446e+008.795e+001.947e+016.814e+001.863e+01
SD5.712e+006.302e+002.836e-012.461e-011.921e+00
Median3.885e+005.524e+001.944e+016.744e+001.934e+01
Min(best)2.683e+003.574e+001.909e+016.468e+001.493e+01
Max(worst)1.802e+011.804e+011.998e+017.203e+002.044e+01
α0.050.010.050.01
Griewank‐40Mean1.045e+001.270e+008.192e+001.461e+001.102e+00
SD2.942e-021.185e-011.151e+006.031e-023.032e-02
Median1.040e+001.246e+008.068e+001.454e+001.096e+00
Min(best)1.013e+001.120e+006.567e+001.387e+001.071e+00
Max(worst)1.114e+001.475e+001.035e+011.595e+001.157e+00
α0.010.010.010.01
Rastrigin‐20Mean6.490e+016.501e+011.492e+021.223e+022.105e+02
SD3.753e+011.703e+012.754e+011.219e+013.914e+01
Median4.808e+016.683e+011.449e+021.230e+022.296e+02
Min(best)3.924e+014.203e+011.144e+021.046e+021.395e+02
Max(worst)1.568e+028.807e+011.983e+021.429e+022.507e+02
α0.010.010.01
Rosenbrock‐20Mean5.653e+021.005e+039.013e+038.435e+023.967e+03
SD2.067e+025.794e+025.142e+033.012e+029.406e+02
Median5.807e+028.295e+028.112e+037.782e+023.685e+03
Min(best)2.042e+025.281e+024.165e+034.676e+023.141e+03
Max(worst)8.756e+022.497e+032.271e+041.439e+036.144e+03
α0.010.010.050.01
Schwefel‐40Mean7.503e+058.786e+052.322e+061.774e+061.667e+06
SD2.173e+052.506e+055.317e+052.509e+056.520e+05
Median7.074e+058.420e+052.369e+061.744e+061.528e+06
Min(best)4.989e+055.815e+051.666e+061.415e+068.933e+05
Max(worst)1.126e+061.348e+063.186e+062.104e+062.871e+06
α0.010.010.01
Weierstrass‐40Mean2.730e+014.048e+015.105e+012.343e+013.598e+01
SD4.414e+004.106e+002.138e+001.265e+001.463e+01
Median2.445e+014.100e+015.135e+012.304e+012.597e+01
Min(best)2.365e+013.351e+014.817e+012.214e+012.100e+01
Max(worst)3.419e+014.685e+015.333e+012.567e+015.817e+01
α0.010.01

Table 5.

Test statistics: test functions—high dimension.

Test results show that the proposed algorithm performed well, as it obtained the best mean and median statistics in 8 out of 12 cases. Its results also had a statistically significant advantage over the other algorithms in 30 out of 48 cases. The performance advantage of the proposed algorithm was particularly pronounced in the high‐dimensional cases, where it obtained the best mean and median in five out of six test functions. In terms of repeatability of performance, its SD was often slightly higher but was competitive with the best SD in each test case.

Overall, the proposed algorithm consistently outperformed the V1 and V2 variants, which shows that selecting the ensemble topology during the search improved the search effectiveness, both when compared to using a fixed metamodel or a fixed ensemble topology. Also, the proposed algorithm consistently outperformed the two reference algorithms from the literature, which shows that it compares well with existing approaches.

The analysis of the experiments also examined how the ensemble topology was updated, to examine if either a single or multiple topologies were predominantly selected. Accordingly, Figure 3 shows representative plots of the ensemble topologies selected during a run with the Ackley‐10D function and another with the Rosenbrock‐20D function. It follows that in both cases, different topologies were selected, which indicate that no single topology was the overall optimal, and further justifies the proposed approach.

Figure 3.

Ensemble topologies selected during two test runs. Abbreviations: K: Kriging, R: RBF, RN: RBF network.

4.2. Engineering test problem

The proposed algorithm was also applied to a representative simulation‐driven engineering problem, where the goal is to find an airfoil shape, which maximizes the lift L and minimizes the drag (aerodynamic friction) D at some prescribed flight conditions. In practise, the design requirements for airfoils are specified in terms of the non‐dimensional lift and drag coefficients, cl and cd, respectively, defined as

cl=L12ρV2SE10a
cd=D12ρV2SE10b

where L and D are the lift and drag forces, respectively, ρ is the air density, V is the aircraft speed, and S is the reference area, such as the wing area. The relevant flight conditions are the aircraft altitude, speed and angle of attack (AOA) that is the angle between the aircraft velocity and the airfoil chord line. Figure 4 gives a schematic layout of the airfoil problem.

Figure 4.

The layout of the airfoil problem: main components (left) and parameterization (right).

Candidate airfoils were represented with the Hicks‐Henne method [28], such that an airfoil profile was defined as

y=yb+i=1hαibi(x),E11

where yb is a baseline profile taken here to be the NACA0012 symmetric profile, and bi are the shape basis functions [29].

bi(x)=[sin(πxlog((0.5)log(i/(h+1)))]4,E12

where αi[0.01,0.01] are the variables, as shown in Figure 4. Ten basis functions were used for the upper and lower airfoil profiles, respectively, which resulted in a total of 20 variables per airfoil. Also, for structural integrity the thickness of an airfoil between 0.2 and 0.8 of its chord line was required to be greater than a critical thickness t=0.1. The lift and drag coefficients of candidate airfoils were obtained by using XFoil, an aerodynamics simulation code for subsonic isolated airfoils [30]. Each airfoil evaluation required up to 30 s on a desktop computer, so evaluations were not prohibitively expensive and the tests could be completed within a reasonable time.

Based on the above discussion, the objective function used was

f=clcd+p,p={tt|clcd|ift<t0otherwiseE13

where p is the penalty for violation of the thickness constraint. The flight conditions were an altitude of 30,000 ft, a speed of Mach 0.7, namely 70% of the speed of sound, and an AOA of 2°.

Tests were performed along the set‐up of Section 4.1, and Table 6 gives the resultant test statistics. The trends are consistent with those of the test functions, and the proposed algorithm outperformed the other candidate algorithms also here. It obtained the best mean and median statistics, and had a competitively low SD.

ProposedV1V2EA‐PSEI‐CMA‐ES
Mean‐3.376e+00‐3.279e+00‐3.368e+00‐3.231e+00‐3.278e+00
SD1.242e‐016.683e‐021.008e‐017.164e‐029.597e‐02
Median‐3.355e+00‐3.274e+00‐3.352e+00‐3.227e+00‐3.267e+00
Min(best)‐3.624e+00‐3.393e+00‐3.533e+00‐3.335e+00‐3.395e+00
Max(worst)‐3.158e+00‐3.161e+00‐3.214e+00‐3.134e+00‐3.098e+00
α0.010.010.05

Table 6.

Test statistics for the airfoil problem.

Advertisement

5. Conclusion

While computer simulations can improve the efficiency of the engineering design process, they also introduce new optimization challenges. Metamodels aim to alleviate the challenge of a high evaluation cost by providing computationally cheaper approximations of the true expensive function.

While metamodels can significantly improve the search effectiveness, they also introduce various challenges, such as identifying an optimal combination of metamodel variants, and effectively searching the metamodel landscape. To address these issues, this chapter has proposed a hybrid algorithm that uses SA to perform a global search, and it then refines the solutions with an SQP local search. To further enhance its effectiveness, the proposed algorithm uses ensembles of metamodels and selects the most suitable ensemble topology during the search. Lastly, to ensure convergence to an optimum of the true expensive function in the light of the inherent metamodel inaccuracies, the proposed algorithm operates within a TR approach such that the optimization is performed through a series of trial steps.

In an extensive performance analysis, the proposed algorithm was benchmarked against two implementations without selection of the ensemble topology, and two reference algorithms from the literature, which also do not use topology adaption. Analysis of the results shows that the proposed algorithm consistently outperformed the other algorithms: it achieved better results in 30 out of 48 cases with mathematical test functions, and also performed well with a simulation‐driven problem. Its performance advantage was evident from the superior mean and median statistics that was obtained across the tests and was particularly pronounced in the high‐dimensional problems.

The analysis also showed that during the optimization search the optimal topology continuously varied during the search, and that no single topology was the overall optimal. This observation further supports the approach proposed of selecting the ensemble topology during the search.

Overall, the solid performance of the proposed algorithm shows the merit of the hybrid SA+SQP algorithm proposed. It also suggests that the proposed algorithm could be applied to problems from a variety of academic domains, such as scheduling, systems engineering and model calibration, to name a few.

References

  1. 1. Tenne Y, Goh CK, editors. Computational intelligence in expensive optimization problems. Vol. 2 of Evolutionary Learning and Optimization. Berlin: Springer; 2010.
  2. 2. Queipo NV, Haftka RT, Shyy W, Goel T, Vaidyanathan R, Tucker KP. Surrogate‐based analysis and optimization. Progress in Aerospace Science. 2005;41:1–28.
  3. 3. Forrester AIJ, Keane AJ. Recent advances in surrogate‐based optimization. Progress in Aerospace Science. 2008;45(1–3):50–79.
  4. 4. Acar E. Various approaches for constructing an ensemble of metamodels using local measures. Structural and Multidisciplinary Optimization. 2010;42(6):879–896.
  5. 5. Zhou X, Ma Y, Cheng Z, Liu L, Wang J. Ensemble of metamodels with recursive arithmetic average. In: Luo Q, editor. Proceedings of the International Conference on Industrial Mechatronics and Automation–ICIMA 2010. Piscataway, NJ: IEEE; 2010. pp. 178–182.
  6. 6. Metropolis N, Rosenbluth AW, Rosenbluth MN, Teller AH, Edward T. Equation of state calculations by fast computing machines. Journal of Chemical Physics. 1953;21(6):1087–1092.
  7. 7. Černy V. Thermodynamical approach to the traveling salesman problem: An efficient simulation algorithm. Journal of Optimization Theory and Applications. 1985;45(1):41–51.
  8. 8. Kirkpatrick S, Gelatt CD, Vecchi MP. Optimization by simulated annealing. Science. 1983;220(4598):471–480.
  9. 9. Xiang Y, Gubian S, Suomela B, Hoeng J. Generalized simulated annealing for global optimization: The gensa package. The R Journal. 2013;5(1):13–28.
  10. 10. Belloni A, Liang H Tengyuan Narayanan, Rakhlin A. Escaping the local minima via simulated annealing: Optimization of approximately convex functions. The Journal of Machine Learning Research. 2015;40:240–265.
  11. 11. Rodríguez DA, Oteiza PP, Brignole NB. Simulated annealing optimization for hydrocarbon pipeline networks. Journal of Industrial Engineering and Chemical Research. 2013;52(25):8579–8588.
  12. 12. Sivasankaran P, Sornakumar T, Panneerselvam R. Design and comparison of simulated annealing algorithm and grasp to minimize makespan in single machine scheduling with unrelated parallel machines. Intelligent Information Management. 2010;2:406–416.
  13. 13. Jin Y, Olhofer M, Sendhoff B. A framework for evolutionary optimization with approximate fitness functions. IEEE Transactions on Evolutionary Computation. 2002;6(5):481–494.
  14. 14. Conn AR, Scheinberg K, Toint PL. On the convergence of derivative‐free methods for unconstrained optimization. In: Iserles A, Buhmann MD, editors. Approximation Theory and Optimization: Tributes to M.J.D. Powell. Cambridge, New York: Cambridge University Press; 1997. pp. 83–108.
  15. 15. Simpson TW, Poplinski JD, Koch PN, Allen JK. Metamodels for computer‐based engineering design: Survey and recommendations. Engineering with Computers. 2001;17:129–150.
  16. 16. Jin Y, Sendhoff B. Reducing fitness evaluations using clustering techniques and neural network ensembles. In: Deb K, et al., editors. Proceedings of the Genetic and Evolutionary Computation Conference–GECCO 2004. Berlin, Heidelberg: Springer‐Verlag; 2004. pp. 688–699.
  17. 17. Viana FAC, Venter G, Balabanov V. An algorithm for fast optimal Latin hypercube design of experiments. International Journal of Numerical Methods in Engineering. 2009;82(2):135–156.
  18. 18. Burnham KP, Anderson DR. Model Selection and Inference: A Practical Information‐Theoretic Approach. New York: Springer; 2002.
  19. 19. Mininno E, Neri F. A memetic differential evolution approach in noisy optimization. Journal of Soft Computing. 2010;2:111–135.
  20. 20. Yang B, Guang L, Säntti T, Plosila J. Parameter‐optimized simulated annealing for application mapping on networks‐on‐chip. In: Hamadi Y, Schoenauer M, editors. Learning and Intelligent Optimization: 6th International Conference, LION 6, Paris, France, January 16–20, 2012, Revised Selected Papers. Berlin, Heidelberg: Springer Berlin Heidelberg; 2012. pp. 307–322.
  21. 21. Frausto‐Solis J, Alonso‐Pecina F. Analytically tuned parameters of simulated annealing for the timetabling problem. WSEAS Transactions on Advances in Engineering Education. 2008;5(5):272–281.
  22. 22. Park MW, Kim YD. A systematic procedure for setting parameters in simulated annealing algorithms. Computers and Operations Research. 1998;25(3):207–217.
  23. 23. Suganthan PN, Hansen N, Liang JJ, Deb K, Chen YP, Auger A, et al. Problem Definitions and Evaluation Criteria for the CEC 2005 Special Session on Real‐Parameter Optimization. Nanyang Technological University, Singapore and Kanpur Genetic Algorithms Laboratory, Indian Institute of Technology Kanpur, India; 2005.KanGAL2005005.
  24. 24. Ratle A. Optimal sampling strategies for learning a fitness model. In: The 1999 IEEE Congress on Evolutionary Computation–CEC 1999. Piscataway, New Jersey: IEEE; 1999. pp. 2078–2085.
  25. 25. de Jong KA. Evolutionary Computation: A Unified Approach. Cambridge, Massachusetts: MIT Press; 2006.
  26. 26. Büche D, Schraudolph NN, Koumoutsakos P. Accelerating evolutionary algorithms with Gaussian process fitness function models. IEEE Transactions on Systems, Man, and Cybernetics–Part C. 2005;35(2):183–194.
  27. 27. Sheskin DJ. Handbook of Parametric and Nonparametric Statistical Procedures. 4th ed. Boca Raton, Florida: Chapman and Hall; 2007.
  28. 28. Hicks RM, Henne PA. Wing design by numerical optimization. Journal of Aircraft. 1978;15(7):407–412.
  29. 29. Wu HY, Yang S, Liu F, Tsai HM. Comparison of three geometric representations of airfoils for aerodynamic optimization. In: Proceedings of the 16th AIAA Computational Fluid Dynamics Conference. Reston, Virginia: American Institute of Aeronautics and Astronautics; 2003. pp. 1–11. AIAA 2003‐4095.
  30. 30. Drela M, Youngren H. XFOIL 6.9 User Primer. Cambridge, MA: Massachusetts Institute of Technology; 2001.
  31. 31. Sacks J, Welch WJ, Mitchell TJ, Wynn HP. Design and analysis of computer experiments. Statistical Science. 1989;4(4):409–435.
  32. 32. Powell MJD. Radial basis function methods for interpolation of functions of many variables. In: Lipitakis EA, editor. Proceedings of the 5th Hellenic‐European Conference on Computer Mathematics and its Applications (HERCMA‐01). Athens, Hellas: LEA Press; 2001. pp. 2–24.
  33. 33. Golberg MA, Chen CS, Karur SR. Improved multiquadric approximation for partial differential equations. Engineering Analysis with Boundary Elements. 1996;18:9–17.
  34. 34. Benoudjit N, Archambeau C, Lendasse A, Lee J, Verleysen M. Width optimization of the gaussian kernels in radial basis function networks. In: Verleysen M, editor. Proceedings of the 10th European Symposium on Artificial Neural Networks–ESANN 2002.Evere D‐Side; 2002. pp. 425–432.

Written By

Yoel Tenne

Submitted: 14 March 2016 Reviewed: 20 October 2016 Published: 26 April 2017