Acessibilidade / Reportar erro

Genetic algorithm and variational method to identify initial conditions: worked example in hyperbolic heat transfer

Abstracts

The identification of initial condition from measurements at a given time is a hard inverse problem, and it can be applied to evaluate the robustness of inversion strategies. Relevant scientific issues are related with estimation of initial condition: cosmology and data assimilation are good examples. Two different inversion methods are employed to identify initial condition for parabolic and hyperbolic differential equations: Genetic Algorithm and Variational Method. The heat transfer process was selected to be used in our tests. A harder inversion is verified on hyperbolic case. Both inverse methods were effective: the numerical difference between the inverse solution was not significant, although the variational method presented a smoother inversion. The inversion obtained with the variational method presented lower processing time.

initial condition identification; epidemic genetic algorithm; variational method; parabolic and hyperbolic differential equation


A identificação de condição inicial a partir de medidas de um dado período de tempo e um problema inverso difícil e pode ser aplicado para avaliar a robustez de estratégias de inversão. Questões científicas relevantes estão relacionadas ao contexto de estimar condições iniciais: cosmologia e assimilação de dados são dois bons exemplos. Dois métodos distintos são empregados para identificar condições iniciais para equações parabólicas e hiperbólicas. O processo de transferência de calor foi selecionado em nossos testes. A inversão mostrou-se mais difícil para o caso hiperbólico. Ambos os métodos de inversão foram efetivos: as diferenças numéricas entre as soluções inversas não foram significativas, embora o método variacional tenha produzido soluções inversas mais suaves. A inversão com o método variacional apresentou menor tempo de processamento.

identificação de condição inicial; algoritmo genético epidêmico; método variacional; equação parabólica e hiperbólica


Genetic algorithm and variational method to identify initial conditions: worked example in hyperbolic heat transfer

L.B.L. SantosI, * * Corresponding author: Leonardo B.L. Santos ; L.D. ChiwiacowskyII; H.F. Campos-VelhoIII

IPrograma de Mestrado em Computação Aplicada - CAP, Instituto Nacional de Pesquisas Espaciais - INPE. E-mail: santoslbl@gmail.com

IIPrograma Interdisciplinar de Pós-graduação em Computação Aplicada - PIPCA. E-mail: ldchiwiacowsky@unisinos.br

IIILaboratório Associado de Computação e Matemática Aplicada - LAC, Instituto Nacional de Pesquisas Espaciais -INPE. E-mail: haroldo@lac.inpe.br

ABSTRACT

The identification of initial condition from measurements at a given time is a hard inverse problem, and it can be applied to evaluate the robustness of inversion strategies. Relevant scientific issues are related with estimation of initial condition: cosmology and data assimilation are good examples. Two different inversion methods are employed to identify initial condition for parabolic and hyperbolic differential equations: Genetic Algorithm and Variational Method. The heat transfer process was selected to be used in our tests. A harder inversion is verified on hyperbolic case. Both inverse methods were effective: the numerical difference between the inverse solution was not significant, although the variational method presented a smoother inversion. The inversion obtained with the variational method presented lower processing time.

Keywords: initial condition identification, epidemic genetic algorithm, variational method, parabolic and hyperbolic differential equation.

RESUMO

A identificação de condição inicial a partir de medidas de um dado período de tempo e um problema inverso difícil e pode ser aplicado para avaliar a robustez de estratégias de inversão. Questões científicas relevantes estão relacionadas ao contexto de estimar condições iniciais: cosmologia e assimilação de dados são dois bons exemplos. Dois métodos distintos são empregados para identificar condições iniciais para equações parabólicas e hiperbólicas. O processo de transferência de calor foi selecionado em nossos testes. A inversão mostrou-se mais difícil para o caso hiperbólico. Ambos os métodos de inversão foram efetivos: as diferenças numéricas entre as soluções inversas não foram significativas, embora o método variacional tenha produzido soluções inversas mais suaves. A inversão com o método variacional apresentou menor tempo de processamento.

Palavras-chave: identificação de condição inicial, algoritmo genético epidêmico, método variacional, equação parabólica e hiperbólica.

1. INTRODUCTION

Partial differential equations (PDE) are frequently used to express the mathematical models for natural phenomena. Let be a linear PDE:

where the coefficients A, B, C, D, E, F are functions such that A2(x, y) + B2(x, y) + C2(x, y) ≠ 0, and G = G(x, y) is a real function defined on an open set. The PDE can be classified looking at the quantity Δ = B2(x, y) - 4A(x, y)C(x, y). A PDE is classified as parabolic if Δ< 0, elliptic if Δ = 0, and hyperbolic if Δ> 0.

Elliptic equations are usually linked to the equilibrium relations, while parabolic and hyperbolic equations are associated with evolution processes. Parabolic and hyperbolic equations have infinity and finite velocities for the signal propagation, respectively.

For the solution of a PDE, it is necessary to specify the properties of the system (system coefficients and heterogeneous terms), with the initial and boundary conditions. This solution characterizes the forward problem. Inverse problem is expressed when the PDE solution is measured or specified, and we are interested to determine some property: coefficients, forcing term, boundary or initial condition. Considering the cause-effect pair, the forward problem is to determine effects from the known causes, while the inverse problem deals with the identification of one (or some) cause(s) from the measured or desired effects [2]. The latter inverse problem is also known as inverse design or optimal experiment design.

Initial condition determination is a crucial issue, for example, in cosmology, since different initial conditions produces different models of the cosmos. Therefore, in order to have a good understanding of the cosmos formation or its evolution, the estimation of initial condition is necessary [9]. Other application where the initial condition identification is an essential procedure is the data assimilation [13], one of most important topics of research, and it is employed for the numerical weather prediction, ocean circulation, environmental prediction, and ionospheric dynamics.

The focus of the present paper is to determine initial condition, where inverse solution is identified by two different methodologies: genetic algorithm with epidemic operator (GAE), and variational approach.

The inverse schemes are tested on the heat transfer processes. From the conservation principles and from the Fourier's law, the heat conduction problem is formulated generally by a parabolic equation. A modification on the Fourier's law is done to model the thermal signal with finite speed, implying in a hyperbolic equation for the heat propagation [5]. The latter equation describes a damped wave, with similar behavior of mechanical or electromagnetic waves in the attenuating medium.

Inverse problems can be formulated as an optimization problem with constraints, where the objective function is expressed as the squared difference between the measured (desired) property and the computed solution of a PDE. The constraints could be an additional property on the estimated quantity (e.g. smoothness or regularized solution), or the PDE itself. The latter condition is employed in the variational approach. The Alifanov's formulation for the variational approach uses the conjugate gradient method (CGM) for solving the optimization problem [1]. The optimum solution can also be computed by applying techniques based on artificial intelligence, as genetic algorithm, a stochastic global search method.

The Alifanov's iterative regularization method [1] was originally applied to the conductive heat transfer process, where the problem is formulated by a parabolic PDE [6]. The approach does not produce good inverse solutions when the forward problem is described by a hyperbolic equation (mechanical vibrations, for example), where the noise in the initial condition are not damped - the initial condition signal is exponentially attenuated in the parabolic equations. For dealing with hyperbolic systems, a hybrid method was proposed [3, 7, 17], where the genetic algorithm, with epidemic operator [16], is combined with the CGM. The GAE is used to find a solution in the attraction basin. Following, the CGM is activated to perform a local search to compute the final inverse solution.

There are some results in the literature to compute inverse solutions in the hyperbolic heat transfer. However, there is no results estimating initial condition using the Alifanov's approach: Huang and Hsin-HsienWu [10] apply the Alifanov's approach to estimate the boundary condition; Huang and Lin [11] apply Alifanov's approach to estimate simultaneously two boundary conditions; Huang and Lin [12] seek source term estimation by Alifanov's approach; Das et al. [8] employ a genetic algorithm for simultaneous estimation of the extinction coefficient and the conduction-radiation parameter.

For mathematical models with diffusion process, the inverse problem of initial condition identification is harder than determine boundary condition. On the other hand, the effect of noise in the hyperbolic problem is more significant than in the parabolic formulation, because the initial condition signal is propagated to entire domain. Therefore, the reconstruction of the initial condition for the wave equation for the heat transfer is a good test problem to evaluate inversion techniques.

The goal of this paper is to present the physical description, mathematical formulation, numerical solution of the forward problem for heat transfer considering both infinity (standard heat conduction) and finite (wave equation) speed of signal, and lastly to show results of the inversion techniques when estimating initial condition for these two test problems.

2. FORWARD PROBLEM SOLUTIONS

The principle of the energy conservation for the heat transport in a solid homogeneous and isotropic material without source term implies that the variation of the temperature is given by the divergence of heat flux inside of a given domain:

where T is the temperature, ρ is the density, c is the heat capacity and is the heat flux at specific position and time t.

The heat conduction equation is derived from the Fourier's law of heat flux. The generalized Fourier's law for the heat flux is expressed as

where κ is the thermal conductivity coefficient (a material property) and τ is the relaxation time, which indicates a no-null finite time of heat accumulation for changing the thermal flux.

The standard form of Fourier law is a constitutive relation expressed by the temperature gradient multiplied by the thermal conductivity κ and assuming τ = O in Eq. (2.2):

The parabolic heat conduction transfer is derived combining the standard constitutive relation above with the conservation principle (2.1). The wave equation for the heat transfer is obtained by combining the generalized Fourier's law (2.2) and the energy conservation law (2.1) [5]:

In the parabolic case τ = 0, and in the hyperbolic problem the formulation works with an upper-limit for the no-null finite speed of the propagation signal defined as:

The hyperbolic approach is relevant when high ratios of heat transfer on short time period, very low temperature, and electromagnetic radiation of high intensity are involved [15]. Depending on the type of the material, the value of τ is different with values, for homogeneous materials, from 10-10 to 10-8s for gases, and from 10-12 to 10-10s for solids and dielectric liquids, but different values are also reported in the literature [14].

For our test problem, a 1D forward problem to the heat wave can be defined. Let T (x, t) C2 defined in the domain such as:

Several analytical and numerical methods can be applied for solving the parabolic and the hyperbolic forward problems. In this work a numerical scheme, based on finite difference (a truncated Taylor approximation), forward time, centered in space, was used to compute the solution for the forward problem.

3. INVERSE SOLUTIONS

In this work two different methods are proposed for the initial condition identification related to both parabolic and the hyperbolic heat transfer. The inverse problem solution is sought by using methods of two different classes: stochastic and deterministic. In one hand, the Genetic Algorithm is a bio-inspired stochastic method. On the other hand, the Variational method (or Alifanov's iterative regularization approach) is a deterministic scheme where the conjugate gradient method is used with the adjoint equation.

The solution of the inverse heat conduction problem employing the techniques considered here, is based on the minimization of a well-posed functional form given by:

where M is the number of temperature sensors, T(xm, t) f(x) is the temperature computed using the recovered initial condition, and T (xm, t )Exp is the measured temperature at each sensor location.

3.1 Stochastic Approach - The Genetic Algorithm

Concerning the GA implemented here and applied for the solution of the inverse problem of initial temperature estimation, it operates on a fixed-sized population which is randomly generated initially. Each member of the population corresponds to a particular initial temperature profile f (x), which is encoded as a fixed-length and real valued string. Following, the evolutionary operators employed in this work are presented.

- Tournament Selection

best:=rand; worst:=rand; val:=0.75;

if (ran < val) then

position:=best;

else

position:=worst;

end f

where rand is a random number from [0, 1) with uniform distribution, best is a best fitness individual and worst is a worst fitness individual.

- Geometrical Crossover

This crossover operator breeds only one offspring from two parents. From the parents xi and y the offspring is represented by

where µ is a number between [0,1]. A typical value is µ = 1 /2, where the same weight is given to both parents.

- Non-uniform Mutation

This mutation operator is defined by

such as

where rand is a random number from [0, 1) with uniform distribution, H is the maximal generation number, t is the current generation number, and b is a system parameter determining the degree of non-uniformity.

- Epidemical Strategy

Beyond the standard genetic operators described before, a new operator called epidemical has been used. This operator is activated when a specific number of generations is reached without improvement of the best individual. When it is activated, all the individuals are affected by a plague, and only the fittest individuals (e.g. the first 5% fittest individuals in the population) survive. The remaining die and their place is occupied by new individuals with new genetic variability, such as immigrants arriving, to continue the work that was done before by others.

3.2 Deterministic Approach - The Variational method

The variational method is an efficient and elegant option to find inverse solutions. Its implementation uses several steps: forward problem, sensitivity problem, adjoint problem and gradient equation, and conjugate gradient method. The functional form to be minimized is that defined in eq. (3.12). A description of the implementation steps is presented.

3.2.1 The sensitivity problem

The sensitivity problem is derived from the forward problem, by applying a small perturbation on the initial condition, resulting f (x) + Δf (x). This perturbation implies in a modification on the answer of the forward problem, T(x, t) + ΔT(x, t). The sensitivity problem is obtained by introducing the perturbed quantities in the forward problem and subtracting it from the unperturbed problem. Following, the respective sensitivity problem is defined:

In the case of parabolic heat conduction, the equations are the same, but taking τ=0.

3.2.2 The adjoint problem and the gradient equation

For the adjoint problem definition, the forward problem is used as a constraint for the optimization problem to be solved. The functional form (3.12) is modified by adding the constraint and using a new function λ(χ, t), called the Lagrange multiplier [1]. Thus, the equation of forward problem is multiplied by the Lagrange multiplier (or adjoint function) λ(χ, t), integrating the resulting expression over time and space domain and adding the result to the functional given by (3.12). Performing integration by parts and using the boundary conditions and the sensitive problem, is possible to construct the following adjoint problem:

The term left in the development of the differential of the Lagrangian is used to determine the gradient equation, respectively defined as:

In the case of parabolic heat conduction, again, the equations are the same, but taking τ=0.

3.2.3 The stopping criterion

If the problem contains no measurement errors, one can use the customary stopping criteria

where is a small specified number. However, in practical applications, measurement errors are always present; therefore the discrepancy principle as described below should be used to establish the stopping criterion [1].

It is assumed that the temperature residuals may be approximated by

where σ is the standard deviation of the measurement errors, assumed the same for all sensors and measurements.

Introducing this result into equation (3.12) we obtain

Then the discrepancy principle for the stopping criterion is taken as

4. RESULTS AND DISCUSSIONS

Results are shown for estimating the initial condition (a triangular profile) for the diffusion and wave heat transfer problems. The estimation is computed using two methods: genetic algorithm and variational approach. The parameters used to solve the forward problem were Nx = 101 grid points, tf = 0.15s with 250 time-steps. For emulating the experimental data, a multiplicative white Gaussian noise was associated to the computed temperature.

The genetic algorithm was executed with 2000 as a maximum number of iterations, population with 100 individuals, mutation ratio 20%, and the epidemic operator is activated when the best solution does not change for 10 iterations. The action of the epidemic operator preserves the 5% of the best individuals, and the rest of the population is substituted by other randomly generated. In the variational approach, the conjugate gradient is executed up to 200 iterations or if the Morozov's discrepancy principle is reached. On average, each iteration of GA requires 0.19 sec., and 0.1 sec. for the variational method, on the following hardware: processor Intel Celeron, 2133 Mhz, 1GB DDR2 memory.

Figure 1(a) shows the initial condition estimated by the GA, obtained with and without the di-crepancy principle. The inversions are similar to those found in the literature [2]. The numerical experiments were carried out with 0.5% of noise level. Better results are achieved when the discrepancy principle is used as stopping criterion.


Results for variational method are shown in Figure 1(b), with the same level of noise, using and not using the Morozov's stopping criterion. If the Morozov's principle is not applied the inverse solution is corrupted by the noise. With the application of discrepancy criterion only three iterations are necessary to get the inverse solution.


Inversion for hyperbolic heat transfer using GA is displayed by Figure 2(a), with and without application of the discrepancy principle. The presence of noise has a stronger impact on the hyperbolic model: for the hyperbolic problem the level of noise was 0.1% - 5 times lower than the parabolic example. Figure 2(b) shows the inversion for the hyperbolic heat transfer computed by the variational method with and without the Morozov's stopping criterion.

Noisy data makes the inversion harder for the hyperbolic in comparison to the parabolic problem - the Figure 3 shows the recovery of initial temperature profile using a high value of noise (15%) on the experimental data for, respectively, the parabolic and hyperbolic cases, on both cases applying the Variational Method with the Morozov's principle. The mathematical nature linked to these different heat transfer processes could explain the difference. The parabolic situation implies in a exponential decay for the initial condition, while in the hyperbolic problem the initial condition is propagated through the domain.


5. CONCLUSIONS AND FINAL REMARKS

Two methodologies (Genetic Algorithm and Variational Method) to compute inverse solutions were applied to identify the initial condition on two class of partial differential equations problems (Parabolic and Hyperbolic). Both methodologies were effective to compute the inverse solution. In despite of several results in the literature to compute inverse solutions in the hyperbolic heat transfer with a number of different methods, and recovery initial conditions on a lot of problems, to the best of author's knowledge, there are no results estimating initial condition on this hyperbolic problem, and, in this case, using the Alifanov's approach [4].

The epidemic GA was more time consuming than the variational method. The Morozov's discrepancy principle was showed to be a necessary stopping criterion. Smoother inverse solutions were obtained with variational method. Although, the variational method has presented a better performance (faster convergence, and smoother inversions), the variational formulation is required (sometimes is difficult to derive this formulation, if possible), and the method is only applicable for differentiable functions.

The hyperbolic case is more sensitive related to the experimental noise than the parabolic formulation, since the propagation of the initial condition and its persistence during the process for a longer time contributes to corrupt the solution in a harder way.

Received on December 4, 2012

Accepted on May 20, 2013

  • [1] O.M. Alifanov. Solution of an Inverse Problem of Heat Conduction by Iteration Methods. Journal of Engineering Physics, 26(1974), 471-476.
  • [2] H.F. Campos-Velho. Problemas Inversos em Pesquisa Espacial, Mini-curso Congresso Nacional de Matematica Aplicada e Computacional (CNMAC), Belem (PA), Brasil, 120 p., (2008).
  • [3] L.D. Chiwiacowsky. "Metodo Variacional e Algoritmo Genetico em Identificacão de Danos Estruturais". Tese de Doutorado, CAP, INPE, Sao Jose dos Campos, SP, (2005).
  • [4] L.B.L. Santos. "Abordagem hierarquica ao metodo híbrido de identificacão de danos em estruturas aeroespaciais". Dissertacão de Mestrado, CAP, INPE, Sao Jose dos Campos, SP, (2011).
  • [5] L.D. Chiwiacowsky. "Uso da Funcão de Transferencia em problemas de conducão do calor com a Lei de Fourier modificada". Dissertacão de Mestrado, EM, UFRGS, Porto Alegre, RS, (2002).
  • [6] L.D. Chiwiacowsky & H.F. de Campos Velho. Different Approaches for the Solution of a Backward Heat Conduction Problem. Inverse Problems in Engineering, 11(3): 471-494.
  • [7] L.D. Chiwiacowsky, P. Gasbarri & H.F. de Campos Velho. Damage Assessment of Large Space Structures Through the Variational Approach. Acta Astronautica, 62(10) (2008), 592-604.
  • [8] R. Das, S.C. Mishra, T.B.P. Kumar & R. Uppaluri. An Inverse Analysis for Parameter Estimation Applied to a Non-Fourier Conduction-Radiation Problem. Heat Transfer Engineering, 32(6) (2011), 455-466.
  • [9] U. Frisch, S. Matarrese, R. Mohayaee & A. Sobolevski. A reconstruction of the initial conditions of the universe by optimal mass transportation. Nature, 417(6886) (2002), 260-262.
  • [10] C. Huang & W. Hsin-Hsien. An inverse hyperbolic heat conduction problem in estimating surface heat flux by the conjugate gradient method. Journal of Physics D: Applied Physics, 39, (18) (2006), 4087-4096.
  • [11] C.H. Huang & C.Y. Lin. An iterative regularization method in estimating the unknown energy source by laser pulses with a dual-phase-lag mode. International Journal for Numerical Methods in Engineering, 76(1) (2008), 108-126.
  • [12] C.H. Huang & C.Y. Lin. Inverse Hyperbolic Conduction Problem in Estimating Two Unknown Surface Heat Fluxes Simultaneously. Journal ofThermophysics and Heat Transfer, 22(4) (2008), 766774.
  • [13] E. Kalnay. Atmospheric Modeling, Data Assimilation and Predictability, 2nd ed., New York: Cambridge University Press, (2003).
  • [14] W. Kaminsk. Hyperbolic heat conduction equation for materials with a nonhomogeneous inner structure. Journal of Heat Transfer, 112 (1990), 555-560.
  • [15] J.M. Kozlowska, M. Kozlowski & Z. Mucha. Thermal waves in two-dimensional heterogeneous materials. Lasers Engineering, 11(3) (2001), 189-194.
  • [16] F.L.L. Medeiros. "Algoritmo Genetico Híbrido como um Metodo de Busca de Estados Estacionarios de Sistemas Dinamicos". Dissertacão de Mestrado, CAP, INPE, Sao Jose dos Campos, SP, (2003).
  • [17] L.B.L. Santos, L.D. Chiwiacowsky & H.F. de Campos Velho. Analise de robustez do metodo híbrido de estimacão de dano estrutural. TEMA: Tendencias em Matematica Aplicada e Computacional, 12(3) (2011), 245-252.
  • *
    Corresponding author: Leonardo B.L. Santos
  • Publication Dates

    • Publication in this collection
      08 Nov 2013
    • Date of issue
      Aug 2013

    History

    • Received
      04 Dec 2012
    • Accepted
      20 May 2013
    Sociedade Brasileira de Matemática Aplicada e Computacional Rua Maestro João Seppe, nº. 900, 16º. andar - Sala 163 , 13561-120 São Carlos - SP, Tel. / Fax: (55 16) 3412-9752 - São Carlos - SP - Brazil
    E-mail: sbmac@sbmac.org.br