1
1
Gianfranco de M. Stieven
Laboratory of Nano and Microfluidics and Microsystems, Mechanical Engineering Department, Universidade Federal do
Rio de Janeiro, Avenida Athos da Silveira Ramos, 274, Rio de Janeiro 21945-970, RJ, Brazil
Daniele S. Stieven
Mechanical Engineering Department, Universidade Federal do Pará, Av. Augusto Correa, 1, Belém 66075-900, PA, Brazil
Abstract
The advancement of modeling and optimization research, law was used for the IHTC model. The numerical dis-
especially in metallurgical applications, usually aims at cretization of the problem is considered the Finite Volume
casting products with fewer macroscopic defects and Method approach. Statistical results from the Markov
superior mechanical resistance. Based on that, any casting Chain Monte Carlo method were considered a reference
industry with this objective, that requires the thermal for qualitative and quantitative performance analysis. The
optimization of the solidification process, which mainly Moth-Flame Optimizer (MFO) presented a probability of
controls the mechanical behavior of castings, must obtain a success of 85%, outperforming the other methods in all
non-trivial and relevant answer: which optimizer should parametric and non-parametric metrics. Further research
one use to get a quick and satisfactory answer to my is encouraged to verify the influence and effectiveness of
casting manufacturing process? This paper proposes a the intrinsic search to the MFO method to propose more
performance analysis of ten metaheuristic optimization efficient optimizers for this physical problem.
algorithms applied to an inverse estimation of the Inter-
facial Heat Transfer Coefficient (IHTC) coupled with the Keywords: optimization, Bayesian approach,
solidification phenomenon. For this purpose, a unidirec- nature-inspired algorithms, solidification
tional permanent mold casting was simulated considering
the Al–7wt%Si alloy. A multi-parameter temporal power
In this Section, the experimental procedure that originated Thus, when the internal temperature of the liquid is ade-
the thermal profiles that will be used in this work will be quate, the resistors of the directional device are turned off
presented. The experimental description to be mentioned and the refrigerant flow is activated, cooling the system. The
here was not performed by the authors of this work. cooling process must not be interrupted until the temperature
Despite that, for the reader’s full comprehension of this of the ingot is at room temperature, finishing the procedure.
paper, a brief elucidation of the main experimental steps After the experiment, the thermal profiles are stored so that
will be made. For further details, please consult.38,39 they serve as likelihood information in an inverse approach.
This approach will be presented in more detail in the section
To obtain the thermal distribution in a permanent mold about Markov Chain Monte Carlo. The thermophysical
experiment using a vertical upward unidirectional device, it is properties of the alloy in question, as well as the operational
important to first determine the necessary mass of each solidification parameters, can be observed in Table 1.
chemical element based on the ingot mold volume, the
specific mass of each element, and the solute percentage. In It is not possible to identify in the experimental work the
this work, the Al–7wt%Si alloy was chosen. Subsequently, thickness of the alumina layer, nor the frequency of data
these chemical elements must be accurately weighed. After acquisition. For this work, the positions of the
this stage, the directional solidification equipment is prepared.
First, the metal/mold interface must be polished to reduce Table 1. Thermophysical Properties of Al–7wt%Si and
roughness. After polishing, the metal/mold interface, as Experimental Parameters38,39
well as the ingot mold, are coated with alumina to facilitate Properties/parameters Symbol/units Al– SAE 310
demolding. For this experiment, an SAE 310 stainless steel 7wt%Si steel
interface with a 4 mm thickness was used. In Figure 1 is
presented an illustration of the solidification device under Thermal conductivity ks ½W m1 k1 90 33
analysis. (solid)
kl ½W m1 K1 90 –
(liquid)
Specific heat cs ½J kg1 K1 963 528
(solid)
cl ½J kg1 K1 963 –
(liquid)
Specific mass qs ½kg=m3 1080 8020
(solid)
ql ½kg m3 1080 –
(liquid)
Latent heat of fusion L½J kg1 397440 –
Solidus temperature Ts ½ C 557 –
Liquidus Tliq ½ C 610 –
temperature
Pouring temperature Tv ½ C 612 –
Figure 1. Illustration of an upward unidirectional solid-
ification device.
10000
8000
6000
4000
2000
0 2000 4000 6000 8000 10000
Number of States
-0.05
Parameter B [-]
-0.1
-0.15
-0.2
-0.25
-0.3
0 2000 4000 6000 8000 10000
Number of States
Figure 3. Markov chains (a) initial states: Burn-in regions and; (b) concatenation for the two parameters.
(a) (b)
0.2 0.2 1000
Thermocouple 4 mm
Thermocouple 8 mm
Thermocouple 12 mm
MCMC Expected Value
900
Posterior Probability Distribution
0.15 0.15
Temperature [K]
800
0.1 0.1
700
0.05 0.05
600
0 0 500
5800 6000 6200 6400 6600 6800 -0.17 -0.16 -0.15 -0.14 -0.13 -0.12 0 20 40 60 80 100
Parameter A [W/m2 K] Parameter B [-] Time [s]
Figure 4. (a) Histograms obtained by MCMC and; (b) Experimental38 and simulated thermal profiles of Al–7wt%Si
solidification.
Table 3. Expected Value, Standard Deviation, 95% and 5% Percentile Values of the Parameters Obtained by MCMC
Parameter Expected value Standard deviation MCMC percentile 5% MCMC percentile 95%
1
A [W m2 K ] 6301 91 6126 6476
B [-] -0.147 0.004 -0.156 -0.139
Performance Analysis of Metaheuristic Friedman Ranking Test, Iterations, Probabilities and Con-
Algorithms vergence, and Overall Performance.
In this section, a performance analysis of all metaheuristic An evaluation table of all the information present in this
algorithms shown is presented. To show the results more section can be seen in Table 4. The quantitative data were
coherently, this section presents four subsections: Sample represented qualitatively based on parameters derived both
Mean, Percentiles and Kurtosis, Error Analysis and from the information obtained by the MCMC method and
the performance of each metaheuristic algorithm. In this
(a) (b)
MCMC Expected Value MCMC Percentile 95% MCMC Percentile 5% MCMC Expected Value MCMC Percentile 95% MCMC Percentile 5%
8000 -0.08
7500 -0.1
Parameter A [W/m2 K]
Parameter B [-]
7000 -0.12
6500 -0.14
6000 -0.16
5500 -0.18
5000 -0.2
4500 -0.22
PSO DE BA FPA GWO MFO SCA WOA DA HHO PSO DE BA FPA GWO MFO SCA WOA DA HHO
Kurtosis
15 15
10 10
5 5
0 0
PSO DE BA FPA GWO MFO SCA WOA DA HHO PSO DE BA FPA GWO MFO SCA WOA DA HHO
Metaheuristic Methods Metaheuristic Methods
Figure 5. Uncertainty range and kurtosis of the metaheuristic methods and MCMC, for parameter (a) A and (b) B.
Methods Relative performancea Convergenceb Average errorc Overall performanced Friedman ranke
parameter B, which can be seen in the figure above. From Table 5 is shown the abovementioned metrics for each
the chart it is possible to visualize that: metaheuristic method analyzed.
• BA, FPA, SCA, and DA presented a sample mean Considering the E½F ðG Þ, it is possible to comment that:
out of the uncertainty range of MCMC method.
• PSO, GWO, WOA, and HHO presented a sample • MFO, PSO, GWO, and WOA, in this order,
mean inside or, at least, almost within MCMC presented very good results, outperforming the
uncertainty range, but exposed a very wide range other methods in these metrics. The data show
compared to other methods; that, on average, the optimization of these meth-
• DE and MFO stand out. The consistency of the ods was quite satisfactory, reaching low error
sample mean in relation to the reference range and values and presenting a very low E½F ðG Þ,
the small standard deviation corroborate the sometimes being less than the error obtained by
excellent result of these methods. DE did not the expected value of MCMC method;
present high kurtosis value, but its performance is
satisfactory. It is noteworthy the performance of
MFO, which presented an almost exact sample
mean and reaches a kurtosis value above 20. This
Table 5. Expected Value, Standard Deviation, Maximum
indicates that MFO, besides being accurate, is and Minimum Values of Error for the Metaheuristic
extremely precise. Algorithms Under Analysis
1 1 8 6 10 3 2 9 4 7 5
2 1 5 6 8 3 2 9 4 10 7
3 3 8 5 10 1 4 7 2 9 6
4 6 3 10 9 5 2 8 1 7 4
5 1 7 10 9 3 2 8 5 4 6
6 2 3 10 9 4 1 8 5 6 7
7 2 6 8 10 5 1 9 3 4 7
8 2 6 5 10 4 1 8 3 7 9
9 4 3 7 10 6 1 8 2 9 5
10 3 7 9 10 5 1 4 1 8 6
11 8 5 10 7 3 1 2 4 9 6
12 1 4 7 10 5 3 8 2 9 6
13 2 4 10 9 6 1 5 8 3 7
14 3 7 10 9 5 1 8 2 6 4
15 2 7 9 10 5 1 8 3 4 6
16 1 6 10 9 3 2 5 4 7 8
17 2 6 10 9 3 1 8 4 5 7
18 2 5 8 9 4 1 10 3 6 7
19 4 9 6 10 2 1 8 7 3 5
20 2 7 9 10 5 1 3 4 6 8
21 1 5 9 10 7 2 8 6 3 4
22 1 6 10 9 3 2 4 7 8 5
23 4 6 8 9 3 1 7 2 5 10
24 4 3 9 10 5 1 6 2 7 8
25 5 7 10 9 3 1 2 4 6 8
26 2 6 8 10 3 1 5 4 9 7
27 2 5 10 6 4 1 3 8 9 7
28 2 6 10 8 4 1 5 3 7 9
29 1 4 9 10 3 2 7 8 5 6
30 2 7 10 9 4 1 6 5 3 8
31 1 9 8 10 2 6 3 5 4 7
32 2 9 10 6 3 1 8 5 4 7
33 1 5 9 10 6 2 7 3 4 8
34 2 6 9 10 4 1 8 5 3 7
35 4 9 5 10 2 1 6 3 7 8
36 2 9 10 8 4 1 6 7 5 3
37 1 6 10 9 5 2 7 4 3 8
38 3 5 10 9 2 1 8 6 4 7
39 2 3 10 9 7 1 4 6 8 5
40 2 6 10 9 3 1 7 4 5 8
Sum 96 238 349 367 157 60 260 168 238 266
Rank 2 5 9 10 3 1 7 4 5 8
0.8 the fewest points is considered the best optimizer for the
problem in question. In this rank, the test statistic Q ¼ 245
0.6
and pvalue 0:001.
0.4
It is worth pointing out that some metaheuristic methods As MFO outperformed the other methods in different
studied had difficulty in optimizing the parameters contained qualitative and quantitative parameters, it has total poten-
in the IHTC because the experimental data considered in this tial to optimize the IHTC parameters A and B coupled in
study are not smooth, presenting disturbances that create the solidification phenomenon applied in the permanent
several local minima near the optimal point. This causes mold casting without loss of accuracy and precision. It is
premature convergence by creating dense local minimum worth pointing out that the selected values for the opti-
zones. Therefore, the behavior of the metaheuristic methods mizer’s intrinsic parameters highly influence their
understand this method. Comparing the social hierarchy of location of the dominant wolves (best positions previously
wolves and optimization language, the alpha wolf ðaw Þ is obtained), as expressed in Eqn. A22.
considered the fittest solution. The second and third best
xtI ¼xtaw AGWO jCGWO xtaw xti j Eqn: A19
solutions are named beta ðbw Þ and delta ðdw Þ. The rest of
the solutions is named omega ðxw Þ. In this method, aw , bw xtII ¼xtbw AGWO jCGWO xtbw xti j Eqn: A20
and dw wolves are the hunters and xw wolves follow them. xtIII ¼xtdw AGWO jCGWO xtdw xti j Eqn: A21
Consider X ¼ xti the i-th position of the current solution at Following Grey Wolf Optimizer, consider that the best
t-th iteration. In Eqn. A27 the random exchange mecha- candidate solution is represented by Eqn. A29. In this
nism between the two search equations is shown. In this equation, AWOA (Eqn. A30) and CWOA (Eqn. A31) are
equation, riter is a parameter given by Eqn. A28, rU1 and rU2 coefficients, aint is linearly decreased parameter from 2 to 0
are random numbers such that rU1 ¼ 2pu1 and rU2 ¼ 2u2 , in over the course of iterations, u1 and u2 is an uniformly
which u1 and u2 are uniformly distributed random numbers distributed random number, such that uh U ½0; 1, g is the
ðuh U ½0; 1Þ and g is the best position obtained so far. best solution obtained so far and X ¼ xti is the particle
position.
(
xtþ1
i ¼ xti þ rint sin rU1 jrU2 g xti j; if u3 \0:5
xtþ1
i ¼ xtþ1 ¼g AWOA jCWOA g xti j Eqn: A29
xtþ1
i ¼ xti þ rint cos rU1 jrU2 g xti j; if u3 0:5 i
population. SDA
i ¼ xti xtj Eqn: A35
j¼1
Markov Chain Monte Carlo Algorithm unit standard deviation, such that nh N ð0; 1Þ. After we
calculate the probability of acceptance aðh; h Þ as stated in
This algorithm is used to decide which values to accept or Eqn. A60 (based on the symmetry of the proposed
discard.We begin by selecting a candidate h from a den- distributions, as previously exposed).
sity distribution qðh ; ht1 Þ, which gives the probability of " #
changing from ht1 to h , (in this paper, the proposal dis- Pðh jX Þ
aðh; h Þ ¼ min 1; Eqn: A60
tribution qðh ; ht1 Þ is a random walk and is symmetric to P ht1 jX
q ht1 jh ), such that,
Then, aðh; h Þ is compared with a random number ur such
that ur U ð0; 1Þ. If ur aðh; h Þ, h is accepted to be ht .
h ¼ ht1 ½1 þ wSS n1 Eqn: A59
Otherwise, ht ¼ ht1 . The Algorithm 11 expresses the
where wSS is the search step and n1 is random number iterative process of the MCMC method considered in this
sampled from a normal distribution with zero mean and work.