英语轻松读发新版了,欢迎下载、更新

A thermodynamic inspired AI based search algorithm for solving ordinary differential equations

2025-05-25 05:56:21 英文原文

作者:Esleman, Esmael Adem

Introduction

Mathematical modeling in most scientific and engineering areas is revolving around Ordinary Differential Equations (ODEs). In subjects like physics, chemistry, biology, finance and control systems, they have been extensively used to characterize dynamic evolution of systems. These characterize the rate at which a dependent variable change with respect to an independent variable and describe the dynamics of a system. They are used to describe Newtonian mechanics, chemical reaction kinetics, and epidemiological models1,2,3, as well as to describe electrical circuits3.

However, despite their ubiquity and importance, finding the closed form analytical solutions for ODEs is usually not practical, especially when the ODEs are nonlinear, coupled, or of high orders. The complexity occurring is very common as it pops up when turbulence modeling, biochemical reaction network, or chaotic systems appear in real-world modeling4. Therefore, numerical methods to approximate ODEs are nowadays indispensable. Many classical numerical methods are found in practice5,6,7 such as Euler’s method, Runge–Kutta methods and finite difference methods (FDM). These methods consist of discretizing the domain and propagating the solution iteratively in time over the mesh points. These methods work well with simple and well posed problems but can suffer many deficiencies in highly nonlinear and/or stiff systems or boundary value problems on irregular domains8. Most of these algorithms are compromised in accuracy and robustness by error propagation, grid dependence and computational instability9.

Due to the drawback of grid based numerical methods, mesh free approaches present themselves as viable alternatives. Radial basis function (RBF) interpolation, finite point methods, as well as element free Galerkin methods, have achieved significant popularity recently because the resulting methods are free from meshing and grid distortion10. The former make use of scattered points in the domain instead of structured grids, which provide more flexibility and decrease error accumulation11. Mesh free methods are however very sensitive to the choice of basis functions and the definition of its parameters which need to be fine-tuned by sophisticated optimization techniques12.

The past decade has witnessed the increase in the use of metaheuristic optimization algorithms to solve ODEs by posing the problems as an optimization problem. Therefore, in this context, the ODEs are reformulated in order to minimize the residual error between the approximate and exact solutions through the means of optimization strategies. Some of the metaheuristics suggested for learning linear and nonlinear ODEs are Differential Evolution (DE)13, Particle Swarm Optimization (PSO)14, Genetic Algorithms (GA)15, Artificial Bee Colony (ABC)16, and Water Cycle Algorithm (WCA17). Although various metaheuristic algorithms such as Differential Evolution (DE), Particle Swarm Optimization (PSO), Genetic Algorithms (GA), Artificial Bee Colony (ABC) and Water Cycle Algorithm (WCA) are widely equipped, each of them has weaknesses to solve Ordinary Differential Equations (ODEs), and there may exist some methodologies to overcome these difficulties:

  • Differential Evolution (DE): DE is a population-based algorithm, which utilizes the characteristic of optimum in a complex objective function. However, it faces premature convergence problem, especially when search space dimensionality is high, it easily gets stuck in local optima. Additionally, the scaling factor and mutation parameters of DE are sensitive, requiring tuning when solving ODEs with different characteristics.

  • Particle Swarm Optimization (PSO) is a candidate optimization algorithm which is inspired by the social behavior of particles to search solution space. PSO is, however, effective only in global search but prone to stagnation convergence in dealing with complex or very high nonlinear ODEs. Moreover, it struggles to keep diversity in the population in the later stages of optimization which often implies insufficient exploration of the solution space and poor performance on high dimensional problems.

  • Genetic Algorithms (GA) work with principles of natural selection and is famous for it flexibility. Nevertheless, solving the ODE has a problem of slow convergence of GA and especially when dealing with stiff or chaotic systems. It also calls for an appropriate trade off in crossover and mutation rates and its search process is usually not as efficient as other approaches in managing the large and dynamic solution space of ODEs.

  • Artificial Bee Colony (ABC) is based on the foraging behavior of honeybees and is also applied to solve the ODE in the literature yet commonly suffers from the problem of premature convergence and insufficient exploration. Despite its adaptiveness, there may be limitations in its search behavior to satisfy high dimensional ODE systems, and therefore, suboptimal accuracy is found when dealing with complex problems.

  • Water Cycle Algorithm (WCA): WCA, based on the natural process of water cycle, has also been indicated to be successful on optimization tasks. Yet, it is highly sensitive to parameter settings and thereby can be inconsistent in ODE solving. Moreover, slow convergence of WCA is an issue in the presence of large search space or highly nonlinearity.

The weight of these weaknesses may be greatly increased in problems involving ODEs, where it is an essential endeavor to find a balance between global exploration and local exploitation, particularly for nonlinear, coupled, or high-dimensional systems. This paper introduces Thermodynamic-Inspired Search Algorithm (TSA) to overcome these issues by incorporating energy minimization, heat exchange and entropy control into its underlying search, which improves exploration, exploitation, and robustness in solving ODEs.

The first advantage of these algorithms is that they are able to perform on objective functions that are not differentiable, or which possess local optima and are able to adapt to a complex problem landscape. Yet, they do not lack challenges. Nevertheless, many metaheuristic algorithms are mostly faced with the drawbacks like premature convergence, slow exploration in high-dimensional search space, sensitivity in parameter setting18.

It has been observed that Differential Evolution (DE) and its adaptive versions, SHADE and L-SHADE are particularly suitable methods to solve the ODEs thanks to their capability to optimize the right tradeoff between exploration and exploitation19. These methods, when coupled to Fourier periodic expansion functions and weighted residual techniques, have proven very accurate and faster converging to machine accuracy20. A flexible functional form for approximating solutions is provided by Fourier series representation and weighted residual techniques then minimize the deviation between the trial solution and the exact solution over the domain21.

Nevertheless, there is still a need to find a metaheuristic algorithm that is both adaptive and robust, and which can efficiently and consistently solve the ODE. This paper introduces a new Thermodynamic-Inspired Search Algorithm (TSA) inspired by the laws of thermodynamics. The rationale of the algorithm integrates the ideas of energy minimization, heat exchange, and entropy regulation into the search procedure. In physical systems, particles like to move to states of lower energy and have an equilibrium when all the energy is spread in an equal manner. TSA carries out global exploration and local exploitation on the fly by simulating thermodynamic processes. Entropy is used as a measure of population diversity in order to prevent the algorithm from converging too early and to guarantee more search of the solution space. An annealing schedule gradually controlling focus of search by moving it from exploration to exploitation accelerates convergence.

The proposed TSA is coupled with Fourier periodic expansion and a least-square weighted residual to form a mesh-free ODE solver. Through the combination of these techniques, TSA achieves the capability of approximating solutions to LODEs and is also successful in solving NLODEs and SODEs. Experiments on a benchmark suite of twenty ODEs show that TSA is consistently more accurate, converges faster, and is more robust than state of the art techniques, that is ADE PSO and ABC.

First, this paper is organized as follows. In the second section the existing literature on the classical numerical methods, meshfree methodologies and metaheuristics algorithms used to solve the initial value problems of Ordinary Differential Equations (ODEs) is reviewed. In Section" Proposed Thermodynamic-Inspired Search Algorithm (TSA)", the Thermodynamic Inspired Search Algorithm (TSA) is formulated based on the working principles of the proposed algorithm. The application of TSA to ODEs is explained in the following section, particularly Fourier periodic expansion and the weighted residual minimization technique. The experimental setup is outlined in Section"Experimental Setup", in terms of benchmark problems, performance criteria and related comparison algorithms. Comparison of experimental results are presented in Section"Results and Discussion". Section"Conclusion and Future Work"discusses complexity analysis and the special benefits of TSA. Finally, Sect.  8 concludes the paper and further suggests future directions of research.

Related work

The numerical solution of Ordinary Differential Equations (ODEs) has been a longstanding research focus in computational mathematics and engineering. Over the past decades, numerous methodologies have been developed, ranging from classical numerical integration schemes to modern mesh-free approaches and metaheuristic algorithms. In recent years, hybrid techniques combining basis functions and optimization strategies have also demonstrated considerable success. This section reviews the development and progress in each of these categories.

Classical numerical methods

Euler’s method and the Runge–Kutta family of methods are still revered among classical numerical methods in the field of ODEs22. They are based on discretization of problem domain done in small intervals and iterative approximation of the solution.

The simplest numerical technique using first order approximation is Euler’s method:

$$y_{n + 1} = y_{n} + hf(x_{n} ,y_{n} ),$$

(1)

where \(h\) is the step size, and \(f\left( {x,y} \right)\) is the given function representing the ODE.

Euler’s method is easy to implement, but it has low accuracy and is unstable. However, to abolish these limitations, higher order methods (i.e. classical fourth order Runge–Kutta (RK4) method23,) were introduced.

$$y_{n + 1} = y_{n} + \frac{h}{6}\left( {k_{1} + 2k_{2} + 2k_{3} + k_{4} } \right),$$

(2)

where

$$\left. \begin{gathered} k_{1} = f\left( {x_{n} ,y_{n} } \right) \hfill \\ k_{2} = f\left( {x_{n} + \frac{h}{2},y_{n} + \frac{h}{2}k_{1} } \right) \hfill \\ k_{3} = f\left( {x_{n} + \frac{h}{2},y_{n} + \frac{h}{2}k_{2} } \right) \hfill \\ k4 = f\left( {x_{n} + h,y_{n} + hk_{3} } \right) \hfill \\ \end{gathered} \right\}$$

(3)

Despite their good behavior in non-stiff problems, these classical techniques become inefficient for stiff and highly nonlinear ODEs24. In addition, they are mesh dependent and so are not easily extended to complex systems.

Mesh-free methods

Grid based approaches are substituted by other mesh free methods that represent the solution using a set of scattered nodes in the domain25. While these methods are effective for problems of irregular geometries and dynamically changing domains, they have not yet been shown able to perform large scale optimization problems.

The Radial Basis Function (RBF) method is a well-known meshfree approximation that approximates the solution as:

$$y\left( x \right) \approx \sum\limits_{i = 1}^{N} {\lambda_{i} \phi \;\left( {\left\| {x - x_{i} } \right\|} \right)} ,$$

(4)

where \(\phi \left( . \right)\) is a radial basis function, \(x_{i}\) are the scattered points, and \(\lambda_{i}\) are unknown coefficients to be determined26.

Another important technique is the Element-Free Galerkin (EFG) method, which employs moving least squares (MLS) shape functions to approximate the solution:

$$y\left( x \right) \approx \sum\limits_{i = 1}^{N} {p_{i} \left( x \right)} \;a_{i} \left( x \right),$$

(5)

where \(p_{i} \left( x \right)\) are polynomial basis functions, and \(a_{i} \left( x \right)\) are coefficients determined by minimizing a weighted least-squares error over neighboring points27.

However, in some cases, mesh free methods are highly flexible and accurate, but at the same time, both tuning of appropriate parameters and computational cost can be problematic28.

Metaheuristic optimization algorithms

Metaheuristic algorithms appear as strong methods to address ODEs because they change the differential equation into an optimization problem structure. The objective of this method consists in achieving minimum error discrepancy between the trial solution and the exact solution29,30.

Differential Evolution (DE) stands as one of the most adopted metaheuristics that specializes in complex systems. The trial solution generated takes the following form:

$$v_{i} = x_{r1} + F\left( {x_{r2} - x_{r3} } \right),$$

(6)

where \(x_{r1}\), \(x_{r2}\),\(x_{r3}\) are randomly chosen individuals, and \(F\) is the scaling factor31.

The algorithm of Particle Swarm Optimization (PSO) duplicates natural social behavior among particles to tackle ODEs excellently. Each particle updates its velocity and position through the following procession:

$$v_{i}^{t + 1} = \omega \,v_{i}^{t} + c_{1} r_{1} \left( {p_{i} - x_{i}^{t} } \right) + c_{2} r_{2} \left( {p_{g} - x_{i}^{t} } \right),$$

(7)

$$x_{i}^{t + 1} = x_{i}^{t} + v_{i}^{t + 1} ,$$

(8)

where \(\omega\) is the inertia weight, \(c_{1}\), \(c_{2}\) are acceleration coefficient, \(r_{1}\), \(r_{2}\) are random values in \(\left[ {0,\;1} \right]\) \(p_{i}\) is the particle’s best position, and \(p_{g}\) is the global best position32.

Nonlinear ODEs present no challenge for these flexible methods yet these methods come with the drawbacks of demanding computation and risk of quick convergence termination33.

Hybrid approaches

The combination of basis functions with residual minimization along with metaheuristic optimization techniques demonstrates excellent prospects for solving ODEs. The Fourier series serves as a common basis function for periodic system applications34:

$$y\left( x \right) \approx a_{0} + \sum\limits_{m = 1}^{M} {\left[ {a_{m} \cos \left( {\frac{m\pi \,x}{L}} \right) + b_{m} \sin \left( {\frac{m\pi \,x}{L}} \right)} \right]} ,$$

(9)

where \(L\) is the period, and \(a_{m}\),\(b_{m}\) are coefficients optimized using metaheuristics35.

Several scientists utilize weighted residual methods specifically the least-squares weighted residual approach to minimize total domain error36. The incorporation of hybrid techniques links metaheuristic global search capacities to basis function smoothness and produces accurate stable solutions37.

Proposed thermodynamic-inspired search algorithm (TSA)

As a new metaheuristic optimization algorithm38 TSA operates to solve complicated optimization problems that include Ordinary Differential Equations (ODEs). TSA receives its foundation from observing how particles react to thermodynamic systems through their process of heat dissipation and energy exchange and their entropy regulation capabilities. The thermodynamic principles create a natural approach for managing the ideal relationship between exploration and exploitative operations throughout the solution domain.

Algorithmic inspiration

The Transportation Security Administration operates based on fundamental thermodynamic principles. Particles throughout physical systems naturally move towards less energetic stable states to settle at thermal equilibrium conditions. The First Law of Thermodynamics explains energy conservation yet the Second Law of Thermodynamics shows how entropy (disorder) rises progressively with time. The optimization targets align with these principles because they aim to minimize objective function (energy) alongside maintaining diverse (entropy) population elements for prevention of local optima39.

Key thermodynamic concepts incorporated into TSA include:

  • Energy Minimization: Better solutions correspond to lower energy states.

  • Heat Exchange: Particles interact with each other, exchanging energy based on their relative fitness levels.

  • Entropy Control: Diversity is maintained to prevent premature convergence.

  • Temperature Annealing: Temperature controls the balance between exploration and exploitation; it decreases over time to refine the search near optimal solutions.

The search behavior of TSA is adaptively regulated by temperature and entropy, allowing it to efficiently explore the solution space early on and concentrate on promising regions in later stages40. The combination of these mechanisms ensures that TSA can handle complex, high-dimensional search spaces more effectively than traditional metaheuristics41.

Pseudocode for thermodynamic-inspired search algorithm (TSA)

The Thermodynamic-Inspired Search Algorithm (TSA) is built upon thermodynamic principles, incorporating concepts such as energy minimization, heat exchange, and entropy control. TSA utilizes these principles to guide the search process, balancing exploration and exploitation effectively. The following pseudocode outlines the step-by-step execution of TSA.

  1. 1.

    Initialize population P of size N randomly within the feasible solution space

  2. 2.

    Evaluate the fitness of each particle in the population

  3. 3.

    Assign initial energy levels to each particle based on their fitness

  4. 4.

    Set initial temperature T and cooling rate α (0 < α < 1)

  5. 5.

    While termination criteria not met (e.g., maximum iterations or convergence tolerance):

a. For each particle i in population P:

  1. i.

    Perform energy exchange with other particles based on relative fitness

  2. ii.

    Update the position of particle i based on energy exchange and temperature

  3. iii.

    Calculate the new fitness of particle i

  4. iv.

    Update energy level of particle i based on new fitness

  5. v.

    Update entropy of the population to measure diversity

  6. vi.

    Apply entropy control if necessary to maintain diversity (avoid premature convergence)

b. Update temperature T using an exponential decay:

T = T * α

  1. 6.

    Return the best solution found by the population as the final solution

  2. 7.

    End

Explanation of TSA pseudocode

  • Step 1: Population initialization:

The algorithm begins by initializing a population of candidate solutions, with each solution represented as a particle. These particles are placed randomly in the solution space.

  • Step 2: Fitness evaluation:

Each particle’s fitness is evaluated based on the problem’s objective function, and the fitness values are used to calculate the energy levels of the particles.

  • Step 3: Energy exchange:

Particles with better fitness levels interact with other particles, sharing energy and guiding the population towards optimal regions of the solution space.

  • Step 4: Temperature and cooling:

The temperature starts high and gradually decreases over time, promoting exploration at the beginning and exploitation at later stages. The cooling rate is controlled by the parameter α.

  • Step 5: Entropy control:

Entropy is used to measure the diversity of the population. If the population converges too quickly, entropy control mechanisms are applied to prevent premature convergence and encourage further exploration.

  • Step 6: Convergence and solution:

The algorithm continues until the stopping criteria are met, at which point the best solution found is returned.

Thermodynamic principles and ODE solving

Using the mapping between the thermodynamic principles and the optimization landscape of solving Ordinary Differential Equations (ODEs), the ability to explore and exploit between information necessary to achieve optimal solutions defines the task at hand. For this, the thermodynamic principles are particularly proven because they model the behavior of the physical systems in the same way in which we want to solve the ODEs, especially in complex and in non-linear or stiffness cases where the traditional methods are a problem.

  1. i.

    Energy minimization: In systems where thermodynamics are involved, particles should fall from higher energy states to lower energy states and stop at the point of equilibrium (equilibrium being the lowest energy state). Thus, from this principle, TSA guides the search toward more optimal solutions and avoids suboptimal ones.

  2. ii.

    Heat exchange: Energy is transferred between particles of thermodynamic systems in order to create uniform energy distribution. For instance, like TSA, in FDI search agents exchange energy based on their fitness values so as to enhance collaboration in the search. This heat exchange helps TSA to avoid premature convergence and to increase the diversity by making the particles with better solutions to impact other particles to explore more.

  3. iii.

    Entropy control: Entropy is the measure of a tendency to disorder or randomness of a system, in thermodynamics. Entropy control maintains population diversity during optimization when it is carried out by the TSA. When entropy falls too low (showing premature convergence), TSA modifies exploration strategy to avoid being stuck at local minima, causing the robustness as well as global search ability of the algorithm to increase.

These principles help TSA avoid issues common in traditional methods, such as grid dependency, error propagation, and poor convergence in complex ODE problems. The combination of energy-driven movement, entropy-based diversity control, and temperature annealing provides TSA with a robust and adaptive search process that performs well even in challenging ODE-solving scenarios.

Fourier-based methods and their limitations

For the solution of Ordinary Differential Equations (ODE) possessing periodic or smooth behaviors, Fourier periodic expansions are commonly used. Fourier methods represent the solution as a sum of sine and cosine functions, in order to efficiently approximate periodic solutions. However, they assume that the solution is periodic and smooth, which do not apply readily to ODEs with discontinuities or non-periodic behavior.

  1. i.

    Limitations in handling discontinuities. However, Fourier based methods inherently fail when used on ODEs with discontinuities. Since Fourier expansions are based on the fact that the solution is continuous, they are not able to represent solutions with sharp transition or sudden changes. In the same situations, there may be oscillations in the Fourier series near the points of discontinuity (The Gibbs phenomenon). The net effect of these oscillations is to obtain an incorrect representation of the solution, in particular near discontinuity points. For those ODEs with sudden changes, therefore, the Fourier method probably is not the best approximation to proceed to find a solution, because it is not found a good way to represent such sharp features.

  2. ii.

    Challenges for non-periodic ODEs. This means that the solution of the ODE will not be periodic in general, and so the Fourier series is not well suited for such ODEs. In problems where the solution does not repeat in a regular or localized fashion, Fourier expansions may not give a good approximation. For this reason, Fourier methods are not particularly good for approximating non periodic solutions, since the basis functions (sines and cosines) are designed to approximate periodic phenomena. Such a mismatch can lead to important errors in ODEs where the solution behavior is more intricate and cannot be represented by periodic functions.

  3. iii.

    Alternative approaches to overcome fourier limitations. Several alternative approaches for the discontinuous or otherwise non-periodic ODEs will be explored to address the limitations of the Fourier based methods:

    • Piecewise approximation: Piecewise approximations by splines or other piecewise smooth functions are an effective way of representing the solution to ODEs with discontinuities for regions of discontinuity in which the solution is continuous or otherwise can be well approximated by polynomials. The reason that this approach is particularly useful is that when the problem decays abruptly, it more accurately represents things than Fourier expansions.

    • Wavelet transforms: Wavelet transforms are very promising alternative when ODEs have non periodical behavior. Wavelets are different from Fourier methods in that the latter are based on global basis functions (sine and cosine) while the wavelets have a local multi resolution approach that can best fit to changes in the solution at a variety of scales. Wavelet based methods allow us to analyze high frequency as well as low frequency components of the solution which makes them more appropriate for capturing non periodic, rather irregular behavior of ODEs.

    • Finite element methods (FEM): Another alternative is provided by Finite Element Methods, particularly for ODEs having discontinuities or coefficients that depend on geometry. FEM approximates the solution using simpler functions in each element (subdomains of solution domain) and dividing solution domain into small subdomains (elements). For problems with sharp transitions or non-smooth behavior this method is very effective as it permits us to perform localized approximation and in so doing produce a higher accuracy in places where the solution changes sharply.

Initialization

The TSA begins with an initialization phase that ensures diversity in the solution space, setting the stage for an efficient search process.

Population initialization

Let the optimization problem be expressed as:

$${\text{Minimize}}{\kern 1pt} f\left( x \right),\quad x = \left( {x_{1} ,x_{2} , \cdots ,x_{D} } \right) \in \Omega ,$$

(10)

where \(f:R^{D} \to R\) represents the objective function, and \(x\) is s \(D\)-dimensional vector within the feasible region \(\Omega\).

The initial population of \(N\) particles is randomly generated as:

$$x_{i}^{(0)} = x_{\min } + r_{i} \Theta \left( {x_{\max } - x_{\min } } \right),$$

(11)

where \(x_{\min }\) and \(x_{\max }\) are the lower and upper bounds of the search space, \(r_{i} \approx U\left( {0,1} \right)\), and \(\Theta\) denotes the element-wise product.

Energy assignment

Each particle is assigned an initial energy proportional to its objective function value:

$$E_{i}^{\left( 0 \right)} = \alpha \,f\left( {x_{i}^{\left( 0 \right)} } \right),$$

(12)

where \(\alpha> 0\) is a scaling constant.

Initial temperature

The initial temperature \(T_{0}\) is defined based on the standard derivation of the energy levels:

$$T_{0} = k.\sigma_{E} ,$$

(13)

where \(k> 0\) is a user-defined constant, and

$$\sigma_{E} = \sqrt{\frac{1}{N}} \sum\limits_{i = 1}^{N} {\left( {E_{i}^{\left( 0 \right)} - \overline{E}^{\left( 0 \right)} } \right)}^{2} ,\overline{E}^{\left( 0 \right)} = \frac{1}{N}\sum\limits_{i = 1}^{N} {E_{i}^{\left( 0 \right)} } ,$$

(14)

Entropy initialization

Entropy quantifies the diversity of the population:

$$S_{0} = - \sum\limits_{i = 1}^{N} {p_{i}^{\left( 0 \right)} \log \left( {p_{i}^{\left( 0 \right)} } \right)} ,$$

(15)

with selection probability:

$$p_{i}^{\left( 0 \right)} = \frac{{e^{{{\raise0.7ex\hbox{${ - E_{i}^{(0)} }$} \!\mathord{\left/ {\vphantom {{ - E_{i}^{(0)} } {T_{0} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T_{0} }$}}}} }}{{\sum\nolimits_{j = 1}^{N} {e^{{{\raise0.7ex\hbox{${ - E_{j}^{(0)} }$} \!\mathord{\left/ {\vphantom {{ - E_{j}^{(0)} } {T_{0} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T_{0} }$}}}} } }},$$

(16)

Energy exchange and solution update

Once initialized, the population evolves iteratively by updating particle positions based on energy exchange, temperature adjustments, and entropy evaluation.

Temperature annealing

Temperature \(T\left( t \right)\) is reduced using an exponential decay schedule:

$$T\left( t \right) = T_{0} e^{ - \beta t} ,$$

(17)

where \(\beta> 0\) is the cooling rate, and \(t\) is the iteration number42.

Entropy update

Entropy at iteration \(t\) is updated as:

$$S(t) = - \sum\limits_{i = 1}^{N} {p_{i}^{(t)} } \log (p_{i}^{(t)} ),$$

(18)

where:

$$p_{i}^{(t)} = \frac{{{\raise0.7ex\hbox{${e^{{ - E_{{_{i} }}^{(t)} }} }$} \!\mathord{\left/ {\vphantom {{e^{{ - E_{{_{i} }}^{(t)} }} } {T(t)}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T(t)}$}}}}{{{\raise0.7ex\hbox{${\sum\nolimits_{J = 1}^{N} {e^{{ - E_{j}^{(t)} }} } }$} \!\mathord{\left/ {\vphantom {{\sum\nolimits_{J = 1}^{N} {e^{{ - E_{j}^{(t)} }} } } {T(t)}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T(t)}$}}}}$$

(19)

Position update

Particles move towards low-energy states influenced by neighbors:

$$x_{i}^{t + 1} = x_{i}^{t} + \gamma \,T\left( t \right)\sum\limits_{j = 1}^{N} {w_{ij} \left( {x_{j}^{t} - x_{i}^{t} } \right)} + \varepsilon_{i} ,$$

(20)

where

$$\gamma> 0 \text{ is a control parameter. } w_{ij} = \frac{{e^{{{\raise0.5ex\hbox{$\scriptstyle { - \Delta E_{ij} }$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle {T\left( t \right)}$}}}} }}{{\sum\nolimits_{k = 1}^{N} {{\raise0.5ex\hbox{$\scriptstyle {e^{{ - \Delta E_{ik} }} }$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle {T\left( t \right)}$}}} }}$$

(21)

with energy difference \(\Delta E_{ij} = E_{j} - E_{i}\).

Acceptance criterion

The acceptance of a new position is determined by:

$$P\left( {x_{i}^{t + 1} } \right) = \left\{ \begin{gathered} 1,\quad if\quad f\left( {x_{i}^{t + 1} } \right) \le f\left( {x_{i}^{t} } \right)\quad \hfill \\ e^{{{\raise0.5ex\hbox{$\scriptstyle { - \Delta E_{i} }$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle {T(t)}$}}}} ,\quad otherwise, \hfill \\ \end{gathered} \right.$$

(22)

where \(\Delta E_{i} = f\left( {x_{i}^{t + 1} } \right) - f\left( {x_{i}^{t} } \right)\).

These rules ensure particles gradually converge to the global minimum while maintaining diversity in the early stages43.

Entropy-based diversity control

Diversity control is crucial in population-based optimization algorithms to prevent premature convergence and ensure comprehensive exploration of the search space. In TSA, entropy is utilized as a measure of population diversity. Inspired by the concept of entropy in statistical thermodynamics, diversity is treated as the degree of disorder among particles in the population44.

Entropy is defined as:

$$S\left( t \right) = - \sum\limits_{i = 1}^{N} {p_{i}^{(t)} } \log \left( {p_{i}^{(t)} } \right),$$

(23)

where:

  • \(S\left( t \right)\) is the entropy of the population at iteration \(t\).

  • \(p_{i}^{(t)}\) is the probability of selecting particle \(i\) based on its energy level:

    $$p_{i}^{(t)} = \frac{{{\raise0.7ex\hbox{${e^{{ - E_{i}^{(t)} }} }$} \!\mathord{\left/ {\vphantom {{e^{{ - E_{i}^{(t)} }} } {T(t)}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T(t)}$}}}}{{\sum\nolimits_{j = 1}^{N} {{\raise0.7ex\hbox{${e^{{ - E_{i}^{(t)} }} }$} \!\mathord{\left/ {\vphantom {{e^{{ - E_{i}^{(t)} }} } {T(t)}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${T(t)}$}}} }}$$

    (24)

where \(E_{i}^{(t)}\)is the energy level of particle \(i\)and \(T\left( t \right)\) is the system temperature at iteration \(t\).

Adaptive entropy control mechanism

High entropy reflects a diverse population, indicating that the particles are exploring different regions. Low entropy suggests that particles are clustered around specific areas, potentially leading to premature convergence. TSA employs an adaptive entropy threshold to regulate diversity during the search process45:

$$\delta_{S} = \frac{S\left( t \right)}{{S_{\max } }},$$

(25)

where \(\delta_{S}\) is the normalized entropy, and \(S_{\max }\) is the maximum theoretical entropy given by:

$$S_{\max } = \log \left( N \right),$$

(26)

where \(\delta_{S} < \varepsilon_{low}\), diversity is deemed insufficient, and perturbation is applied to randomly relocate a fraction of particles to new positions.

$$x_{i}^{t + 1} = x_{\min } + r_{i} \Theta \left( {x_{\max } - x_{\min )} } \right),$$

(27)

where \(r_{i} \approx U\left( {0,1} \right)\).

If \(\delta_{S}> \varepsilon_{high} ,\) the population is considered highly scattered, and exploitation is emphasized by biasing particle movement toward the global best particle:

$$x_{i}^{t + 1} = x_{i}^{t} + \lambda \left( {x_{g}^{t} - x_{i}^{t} } \right),$$

(28)

where \(\lambda \in \left( {0,1} \right)\) is a learning rate, and \(x_{g}^{t}\) is the best solution found so far.

Typical values are \(\varepsilon_{low} = 0.2\) and \(\varepsilon_{high} = 0.9\)46.

Entropy-based diversity control prevents premature convergence, enabling TSA to maintain exploration capabilities throughout the optimization process47.

Temperature reduction (annealing process)

Temperature control is a distinguishing feature of TSA, governing the transition from global exploration to local exploitation. The temperature reduction strategy is inspired by the annealing process in thermodynamics, where a material is gradually cooled to achieve a low-energy crystalline structure.

Exponential cooling schedule

The most commonly employed temperature reduction scheme in TSA is the exponential decay schedule48:

$$T\left( t \right) = T_{0} e^{ - \beta t} ,$$

(29)

where:

  • \(T_{0}\) is the initial temperature.

  • \(\beta> 0\) is the cooling rate.

  • \(t\) is the iteration number

Exponential cooling is simple and widely used; however, it may lead to premature convergence if the cooling rate is too high49.

Adaptive cooling schedule

To address the limitations of fixed-rate cooling, TSA incorporates an adaptive cooling scheme based on population entropy. When entropy is low (indicating convergence), temperature reduction is slowed to enhance local exploitation. Conversely, when entropy is high, temperature is reduced more rapidly to encourage exploration50:

$$T\left( {t + 1} \right) = T\left( t \right) \times \left( {1 - \eta \frac{\delta s}{{\delta_{s}^{t\arg et} }}} \right)$$

(30)

  • \(\eta \varepsilon \left( {0,1} \right)\) is a cooling adjustment parameter.

  • \(\delta_{s}^{t\arg et}\) is the desired entropy level.

Adaptive cooling aligns the temperature reduction rate with the population’s diversity, dynamically balancing exploration and exploitation51.

Stopping criteria

An effective stopping criterion is essential to terminate the optimization process when the algorithm has sufficiently converged, preventing unnecessary computations. TSA incorporates multiple stopping conditions to ensure reliability across different problem types.

Maximum iterations

The algorithm terminates after a predefined number of iterations:

$$t_{\max } = User - defined\;\lim it$$

(31)

Convergence tolerance

The algorithm declares convergence when the threshold gap between optimal fitness values and average fitness values is reached:

$$\Delta f = \left| {\frac{{f_{best} - f_{avg} }}{{f_{best} }}} \right| < \varepsilon \,f,$$

(32)

where:

  • \(f_{best}\) is the best objective value.

  • \(f_{avg}\) is the average objective value of the population.

  • \(\varepsilon \,f\) is a user-defined convergence threshold.

Temperature threshold

The procedure ends when temperature drops below its set minimum point:

$$T\left( t \right) < T_{\min } ,$$

(33)

where \(T_{\min }\) is a user-defined minimum temperature.

By utilizing these criteria TSA maintains robust performance across different problem areas which leads to solution quality assurance and avoids premature termination52.

Computational complexity of TSA

The computational complexity of the Thermodynamic-Inspired Search Algorithm (TSA) on the number of particles (population size) and the number of iterations is determined mostly by. Also, like other population-based metaheuristic algorithms, TSA can be of complexity order O(N × T) where N pertains to population size and T to the number of iterations. This implies the total time of iteration required for the TSA to compute and update the positions of all particles.

However, they contain further computational steps because of their thermodynamic principle and hence marginally complicating it compared to conventional evolutionary techniques. These processes constitute the additional processes of TSA:

  • Energy exchange: In addition, each particle interacts with others with respect to their relative fitness, they share part of their energy, which involves another computational cost per iteration.

  • Entropy control: The diversity is measured in terms of entropy of the population, by involving additional calculations to avoid premature convergence. As a consequence, it leads to a higher per iteration computational load.

Although they may introduce extra steps to compute the balance of exploration and exploitation, both energy minimization and entropy control led to more efficient convergence in many of the cases. The fewer iterations in turn often offset the cost of additional computational time consumed for entropy control and energy exchange.

In comparison with other state of the art metaheuristic, Particle Swarm Optimization (PSO), Genetic Algorithms (GA), Differential Evolution (DE), and Artificial Bee Colony (ABC), TSA has also the time complexity of O(N × T). Nevertheless, by using thermodynamic principles as used by TSA, faster convergence and lower number of iterations often imply lower total computational cost in realistic applications.

Briefly, the notions of entropy and energy computation slightly increase TSA’s computational complexity, however, efficient exploration and exploitation mechanisms again result with better performance and reduced iteration that make TSA competitive in terms of overall computational efficiency, compared to conventional metaheuristics.

Sensitivity analysis of TSA hyperparameters

Many TSA’s hyperparameters, including temperature decay rate, entropy thresholds, as well as energy scaling, are seen to greatly impact the performance of TSA. Each of these parameters is important in determining how quickly the algorithm converges to high quality and easily found values for each design variable. A comprehensive sensitivity analysis is done to figure out which of these hyperparameters are important to TSA’s performance. In this section, we report the findings of this analysis and what is the optimal setting of each hyperparameter along with their combined impact on TSA’s overall performance.

Temperature decay rate (α)

However, the rate of temperature decay (indicating how rapidly the temperature decreases from the execution of TSA) is determined by the temperature decay rate (denoted by α). A faster decay rate results in a higher temperature for a shorter time, encouraging more exploitation, and a slower one keeps the temperature high for longer time, and therefore more exploration of the solution space.

  • Effect on performance: From the sensitivity analysis, it can be found that the decay rate α must be slowed down to allow more thorough exploration, but with the associated drawback that the computational time will be increased. In contrast, a slower decay rate (higher values of α) leads to quicker convergence (sooner), but the algorithm does converge too soon to something that is suboptimal.

  • Optimal range: Furthermore, it was found that the optimal temperature decay rate lies between 0.85 and 0.95. Bounded close to this range, TSA was able to balance exploration and exploitation in a reasonably efficient manner without using excessive computational overhead as it converged to a solution.

Entropy thresholds (ET)

A critical parameter for the diversity of the population is the entropy threshold (ET). However, in exploration, high entropy thresholds lead to a more diverse population by encouraging exploration of new areas of solution space and help in convergence by imposing low entropy thresholds that lead to restricted search to a smaller neighborhood of solution space.

  • Effect on performance: At high threshold a high entropy the algorithm converges too slowly because of excessive exploration and equiprobability structure become inefficient. In contrary, a low entropy threshold results in a faster speed of convergence but faces a tendency to be stuck to local optima due to insufficient exploration.

  • Optimal range: We analyzed entropy thresholds within the range of 0.4 to 0.6 as the best. Within this range, it maintained a sufficient level of population diversity for TSA to explore new areas before converging in a reasonable amount of time.

Energy scaling factor (ESF)

The energy scaling factor (ESF) controls the amount of energy that is exchanged between particles in the population and corresponds to the coefficient in the expression relating moves from the supplier to moves from the buyer. A larger scaling factor creates greater effect of the fittest particles, which for quicker convergence, but a modest scaling factor brings out balanced energy dissemination between particles for exploration.

  • Effect on performance: Based on the results of the sensitivity analysis, we find that high energy scaling factors cause TSA to converge more quickly but might also lead to earlier exploitation of suboptimal solutions. On the other hand, low energy is sampling the larger search space but at the slower convergence.

  • Optimal range: It was found that the moderate energy scaling factor in the range 0.6 to 1.0 gave the optimal performance. This range of values enabled TSA to adjust convergence speed and exploration to achieve fast and quality solutions, provided with adequate diversity.

Combined effect of hyperparameters

An assessment was made to the sensitivity of each individual hyperparameter as well as the overall combined effect of all three parameters: temperature decay rate (α), entropy threshold (ET), and energy scaling factor (ESF). Analysis finds that the relationships between these parameters have a significant effect on the overall performance of TSA. The values of each parameter with the best performance not only are determined by itself, but by a synergistic effect.

  • Optimal hyperparameter set:

The results of the sensitivity analysis on the first five parameters of TSA led to the following values as being optimal for TSA:

  1. o

    Temperature Decay Rate (α): 0.90

  2. o

    Entropy Threshold (ET): 0.5

  3. o

    Energy Scaling Factor (ESF): 0.8

All these values achieved a better balance between exploration and exploitation and therefore fast convergence without neglecting the diversity needed to avoid local optima.

Practical implications

We provide useful insights for optimization problem practitioners that wish to optimize TSA for their optimization problems. TSA can be configured for better performance in a wide range of applications with the tuning of these hyper parameters based on the characteristics of these problems. Analysis from this is a good starting point for any practical scenario with the identified optimal values being robust. Nevertheless, it may be necessary to do further fine tuning, depending on the complexity and dimensionality of the problem.

Application to ODEs

TSA incorporates Fourier periodic expansion basis functions in conjunction with weighted residuals for ordinary differential equation solution approximations. The ODE problem becomes a continuous optimization task after implementing TSA with spectral trial solutions and residual minimization approaches. The proposed method provides mesh-free alternatives to traditional numerical methods by offering effective solutions for linear and nonlinear ODEs with initial and boundary conditions.

Fourier periodic expansion basis function

The Fourier series exhibits all characteristics of being smooth with true global approximation properties and fast convergence when applied to sufficiently smooth solutions53. This paper uses a finite Fourier series as the trial solution for ODEs:

$$y\left( x \right) \approx a_{0} + \sum\limits_{m = 1}^{M} {\left[ {a_{m} \cos \left( {\frac{m\pi \,x}{L}} \right) + b_{m} \sin \left( {\frac{m\pi \,x}{L}} \right)} \right]}$$

(34)

  • \(L> 0\) is a scaling parameter or the problem domain length.

  • \(a_{0}\),\(a_{m}\), \(b_{m}\) are coefficients to be optimized.

  • \(M\) is the truncation order controlling the approximate accuracy.

Derivatives of the trial function

There exists an analytical solution method for differentiating trial solutions when an ODE contains derivatives.

$$y^{\prime}(x) = \sum\limits_{m = 1}^{M} {\left[ { - a_{m} \frac{m\pi }{L}\sin \left( {\frac{m\pi \,x}{L}} \right) - b_{m} \frac{m\pi }{L}\cos \left( {\frac{m\pi \,x}{L}} \right)} \right]}$$

(35)

The second derivate is:

$$y^{\prime\prime}(x) = \sum\limits_{m = 1}^{M} {\left[ { - a_{m} \left( {\frac{{m{\kern 1pt} \pi }}{L}} \right)^{2} \cos \left( {\frac{{m{\kern 1pt} \pi \,x}}{L}} \right) - b_{m} \left( {\frac{{m{\kern 1pt} \pi }}{L}} \right)^{2} \cos \left( {\frac{{m{\kern 1pt} \pi \,x}}{L}} \right)} \right]}$$

(36)

The exact mathematical derivatives enable effective calculation of residuals while decreasing the errors typically found in finite difference methods54.

Advantages of fourier basis functions

  1. 1.

    Global smoothness: The smooth representation of Fourier series allows improved derivative accuracy among infinitely differentiable solutions.

  2. 2.

    Fast convergence: Fourier-based solutions converge exponentially for smooth problems, outperforming polynomial and piecewise interpolation55.

  3. 3.

    Parameter reduction: The optimization process involves tuning a small set of coefficients, reducing the search space dimensionality56.

Weighted residual method

To determine the optimal coefficient \(a_{0}\),\(a_{m}\), \(b_{m}\), a weighted residual method is employed. This approach minimizes the error in satisfying the differential equation over the entire domain.

Residual formulation

Let the ODE be expressed as:

$$L\left( {y\left( x \right)} \right) = g\left( x \right),\quad x \in \left[ {a,b} \right],$$

(37)

where \(L\) is a differential operator. The residual is defined as:

$$R\left( x \right) = L\left( {y\left( x \right)} \right) - g\left( x \right),$$

(38)

Weighted integral form

The weighted residual method minimizes the weighted integral of the squared residual over the domain:

$$\varphi \left( c \right) = \int\limits_{a}^{b} {W\left( x \right)} \,R\left( x \right)^{2} dx,$$

(39)

where:

\(c = \left( {a_{0} ,a_{1} , \ldots ,a_{M} ,b_{1} , \ldots ,b_{M} } \right)\) is the coefficient vector.

\(W\left( x \right)> 0\) is a weighting function (often \(W\left( x \right) = 1\)).

Minimize \(\varphi \left( c \right)\) ensures that the trial solution satisfies the ODE as closely as possible in the least squares sense57.

Collocation as special case

Collocation is a special case of the weighted residual method, where the residual is enforced at discrete points:

$$R\left( {x_{k} } \right) = 0,\quad k = 1,2, \cdots ,k,$$

(40)

where \(\left\{ {x_{k} } \right\}\) are collocation points within \(\left[ {a,b} \right]\).

Weighted residual and collocation methods complement the flexibility of TSA, enabling the algorithm to optimize the Fourier coefficients effectively58.

Objective function with penalty

The solution of ODEs often involves satisfying initial or boundary conditions. Incorporating these constraints into the optimization problem is crucial for obtaining a physically valid solution.

Penalty formulation

The initial or boundary conditions can be expressed as constraints:

$$B\left( {y\left( x \right),y^{\prime}\left( x \right), \cdots } \right) = 0.$$

(41)

A penalty function is introduced to enforce these constraints:

$$P\left( c \right) = \rho \sum\limits_{j = 1}^{J} {\left[ {B_{j} \left( {y\left( x \right),y^{\prime}\left( x \right), \cdots } \right)} \right]\,^{2} } ,$$

(42)

where \(\rho> 0\) is the penalty parameter, and \(J\) is the number of constraints.

Composite objective function

The final objective function combining the residual error and the penalty term is:

$$\psi \left( c \right) = \varphi \left( c \right) + P\left( c \right)$$

(43)

TAS minimizes \(\phi \left( c \right)\) by adjusting the Fourier coefficients, yielding an approximate solution that satisfies both the differential equation and its boundary conditions.

$$c^{*} = \arg \;_{c}^{\min } \;\psi \,\left( c \right)$$

(44)

This hybrid approach ensures that the trial solution is not only accurate but also conforms to physical constraints, enhancing the robustness and applicability of TSA to ODEs59.

Experimental setup

A well-structured experimental setup is critical to rigorously assess the performance of the proposed Thermodynamic-Inspired Search Algorithm (TSA) in solving ordinary differential equations (ODEs). Since ODEs arise in diverse scientific and engineering fields, an effective solver must demonstrate accuracy, robustness, and efficiency across different types of equations. TSA is evaluated on a set of benchmark problems representing linear and nonlinear which are commonly encountered in physical, chemical, and biological systems. These benchmark problems are carefully selected to examine TSA’s ability to approximate smooth and rapidly changing solutions, handle nonlinearity, and solve coupled systems of equations.

To ensure a fair and comprehensive evaluation, the performance of TSA is compared against several well-known metaheuristic algorithms. The comparison aims to highlight TSA’s strengths in terms of convergence behavior and solution accuracy. The accuracy of all solutions is quantitatively measured using the Root Mean Square Error (RMSE), a standard evaluation metric in numerical analysis.

Benchmark ODE problems

The evaluation of TSA is conducted on 10 standard benchmark ODE problems drawn from well-established sources in the literature60,61. These problems are carefully chosen to represent a broad spectrum of computational challenges, categorized as follows:

  • Linear ODEs: These problems serve as a baseline to validate the algorithm’s fundamental correctness and its ability to handle standard differential equations.

  • Nonlinear ODEs: Nonlinear equations often exhibit complex behavior, including rapid growth, oscillations, and sensitivity to initial conditions. Solving these accurately tests TSA’s adaptive search capabilities.

Each problem is defined over a finite domain \(\left[ {a,b} \right]\), with known initial or boundary conditions. The exact analytical solutions are provided for all problems, enabling precise error calculations. For systems of ODEs without closed-form solutions, a high-precision numerical solution is used as reference. Each problem is discretized into 100 uniform evaluation points over the domain \(\left[ {a,b} \right]\) The Table 1 presents benchmark ODE problems and exact solutions with initial condition.

Table 1 Benchmark ODE problems and exact solutions with initial condition \(z\left( 0 \right) = 1\).

Comparison algorithms

To benchmark the performance of TSA, five well-established metaheuristic algorithms were selected, representing diverse approaches in population-based optimization. These algorithms have been widely applied in solving ODEs and other numerical optimization problems:

  1. 1.

    SHADE: Success-history-based Adaptive Differential Evolution improves the balance between exploration and exploitation by dynamically adjusting mutation and crossover parameters based on historical data62.

  2. 2.

    L-SHADE: An enhanced version of SHADE, incorporating linear population size reduction to improve convergence speed and computational efficiency, particularly in large-scale optimization problems63.

  3. 3.

    PSO (Particle Swarm Optimization): Inspired by the social behavior of birds, PSO iteratively refines candidate solutions by combining individual exploration and collective intelligence64.

  4. 4.

    ABC (Artificial Bee Colony Algorithm): Simulates the foraging behavior of honeybees, focusing on exploitation around promising solutions while maintaining exploratory capacity65.

  5. 5.

    WCA (Water Cycle Algorithm): Based on the movement of water in nature, this algorithm models the flow of rivers and streams towards an optimal solution, emphasizing convergence speed and solution refinement66.

To ensure fair assessment all algorithms operated with a population count of 50 while the maximum number of iterations was set to 1000. Researcher standards from evolutionary computation and ODE optimization literature guide the chosen parameter configuration67.

Evaluation metric: root mean square error (RMSE)

The Root Mean Square Error (RMSE) served as the method to measure the accuracy of TSA and comparison algorithms. RMSE functions as one widely preferred statistical tool in numerical methods to evaluate the solution approximation error compared to exact analytical solutions over evaluation positions:

$$RMSE = \sqrt {\frac{1}{n}\sum\limits_{i = 1}^{n} {\left( {y_{approx} \left( {x_{i} } \right) - y_{exact} \left( {x_{i} } \right)} \right)^{2} } } ,$$

(45)

where:

  • \(y_{approx} \left( {x_{i} } \right)\) is the approximate solution obtained using TSA

  • \(y_{exact} \left( {x_{i} } \right)\) is the exact solution

  • \(n = 100\) is the number of uniform evaluations points over \(\left[ {a,b} \right]\)

As a result, lower RMSE values, which means higher accuracy values, make this metric a good metric to use to compare the quality of the solutions our different algorithms produce.

Results and discussion

A thorough performance evaluation of the TSA algorithm took place using multiple benchmark tests consisting of linear ODEs, nonlinear ODEs and ODE systems. The evaluation of TSA relied on a comparison with five modern metaheuristic algorithms including SHADE, L-SHADE, PSO, ABC and WCA. The evaluation assessed performance with the Root Mean Square Error (RMSE) as its conventional performance metric. The section analyzes experimental findings concerning TSA accuracy and convergence patterns and robustness performance.

Accuracy comparison

TSA was assessed for its accuracy by predicting the exact solutions of 10 benchmark ODE problems. All the test problems showed that the computed solutions achieved by TSA always gave excellent alignment with the exact analytical solutions. Among all compared algorithms, the RMSE values for TSA were the lowest, emphasizing that TSA errors are the smallest while solving the linear and nonlinear ODEs as well as systems of ODE.

TSA showed a remarkable capability to avoid numerical discrepancy for linear ODEs. The deviation from the exact solution behaved always small across the evaluation points, meaning that the RMSE was significantly lower than it was in SHADE, L-SHADE, PSO, ABC, and WCA. PSO and ABC, as classical metaheuristics, had bigger deviations (indicating that the models do not fit well for differential equation approximations).

Finally we observe that although TSA loses its accuracy advantage in favor of explicit methods in the case of the nonlinear ODEs, it successfully copes with the emissions arising from rapid solution variations and nonlinearity. Rotational and translational dimensions are put through optimization algorithms, such as PSO and ABC, that face problems like premature convergence, stagnation and, consequently, increased RMSE values. On the other hand, TSA’s entropy-based diversity preservation mechanism was instrumental in ensuring exploration throughout the search process with an aim to improve accuracy.

TSA was shown to perform robustly even for the systems of ODEs, in which it outperformed the other algorithms in the study across the benchmark coupled equations. With many of these systems, interactions between several variables have to be captured with precision. TSA’s energy-based movement strategy allowed solutions to gradually improve, with accurate solutions with relatively lower RMSE values than those achieved by SHADE and L-SHADE. In addition, TSA proved to be competitive on linear problems, and while slower than the latter in convergence of nonlinear and coupled systems, it presents a conceptual framework that is highly adaptable.

The computed solutions obtained by TSA and those of the comparison algorithms are listed in Table 2 for some evaluation points over five representative benchmark problems. The exact solution, TSA’s solution and the respective solutions of SHADE, L-SHADE, PSO, ABC and WCA are shown in each row. TSA is shown to consistently well approximate the exact values with relatively small deviations away from the exact values in the table.

Table 2 Computed solutions for benchmark ODE problems using TSA and comparison algorithms.

The solutions presented in Table 2 are associated with the error values given in Table 3. Thus, the error is taken as the absolute difference of computed solution from the exact solution at each evaluation point. Furthermore, TSA’s error values are always lower than other algorithms, which on the other hand demonstrates its accuracy.

Table 3 Error analysis of TSA and comparison algorithms for benchmark ODE problems.

Overall, the numerical results and error tables consistently underline that TSA solutions have precision. Within and across different x values for each of the problems, TSA had the least error margins, thus showing its capability of giving a precise solution for every ODE category. The main reason for this accuracy is that TSA’s thermodynamic inspired mechanisms are dynamic balance of exploration and exploitation to prevent stagnation and guarantee optimal solution quality.

Benchmark problems and performance

The study used primarily simple linear and nonlinear ODEs and ODE systems as the benchmark suite. To test the general performance and capability of TSA in solving ODEs efficiently, these problems were chosen among standard problems. But take note: it does not contain any stiff systems, high dimensional problems, nor boundary value problems on irregular domains, all of which are well known to be extra tough on numerical solvers.

In addition to performance on the problems tested in terms of both accuracy and convergence rate, TSA showed strong performance, but while we claim applicability to more complicated ODE frameworks like stiff systems and problems with irregular boundaries, these have not yet been fully substantiated. Future research will use TSA on stiff systems, high dimensional ODEs, and boundary value problems and in this way provide a more complete exposure of its capabilities.

Impact of entropy-based diversity control

An entropy-based diversity control mechanism embedded within TSA was fundamental in keeping search efficient and solution reliable. Premature convergence is another problem that affects population-based metaheuristic algorithms, which causes the stagnation of the search process owing to an insufficient diversity among the candidate solutions. The prevention of exploration of other potentially promising geographical areas in the solution space prevents the identification of superior solutions. We address this issue with an entropy driven diversity control approach that monitors the population diversity over the entire optimization process. The entropy is used as a quantitative measure of disorder of the population such that a relatively larger entropy indicates relatively more exploration within the search space. TSA steers exploration when entropy-based measures indicate the diversity is declining and will encourage search agents to perturb their own dimensions or select new dimensions upon which to explore. On the contrary, if the entropy values are high enough, the algorithm descends into exploitation, which means refining solutions in promising areas.

Entropy control allows the adaptive regulation, which prevents clustering of the population prematurely about local optima and preserves the robustness of the search process even when faced with complex and multi modal search spaces. Nevertheless, empirical evaluations on nonlinear and coupled ODEs showed that algorithms without diversity control, in particular PSO and ABC, behave erratically and for the most part cannot control the convergence behavior. When using these algorithms, they would frequently become stuck in local minima where the RMSE values for a given run would be high and highly variable over a few runs. On the other hand, TSA achieves lower RMSE values and less variability because its search stability is maintained through diversity preservation based on entropy. Statistical analysis revealed that tightness control using entropy improves significantly the standard deviation of solution accuracy compared with classical PSO and ABC. The adaptability of this work allowed TSA to explore the rugged landscapes of complex ODEs, while maintaining the capability for global exploration throughout the search process.

Energy-based movement and convergence speed

TSA is a unique instantiation of an optimization scheme by recasting thermodynamic principles in the form of an energy-based movement mechanism. This way of proceeding mimics the natural behavior of particles which seek to lower energy states (here a lower energy means higher fitness values in the solution landscape). Energy exchange among search agents, whereby search agents of better fitness can affect the behavior of their neighbors, directs search agents to the fitter regions to derive the optimal solutions. This collaborative energy-driven update mechanism fosters an effective balance between global exploration and local exploitation.

In the early stages of the search process, TSA gives particles the freedom to explore the solution space broadly, where temperature is used as a moderate factor for preventing too early fixation. This reduces the temperature gradually as the search progresses according to an annealing schedule so as to persuade particles to concentrate on improving the best-discovered solutions. It decreases the temperature mimicking the thermodynamic annealing such that the transition from exploration to exploitation is smooth. This process is further enhanced by this energy-based interaction mechanism allowing well performing particles to share their knowledge with other candidate particles to faster converge towards solutions of high quality.

Comparative performance analyses showed that the convergence rates of TSA were significantly faster than those of SHADE and L SHADE, which mostly utilize the differential mutation operations and may need more evaluations to finesse solutions. TSA’s energy-based movement allowed rapid convergence on good solutions. Also, the convergence behaviors of PSO and ABC fluctuate because they are susceptible to premature stagnation and inability to share information. The energy-driven strategy adopted by TSA efficiently coped with those issues causing stable convergence trajectories and a reduction of oscillations of the quality of the solution. TSA’s convergence curves for many benchmark ODEs showed the algorithm’s rapid progress toward an optimal solution as the energy based adaptation and the temperature guided exploitation provide efficiency to the search.

Robustness across ODE types

Detailed validation of TSA’s robustness was performed over a wide range of linear and nonlinear ODEs and systems of ODEs. This overall evaluation demonstrated TSA’s ability to consistently provide high quality solutions even with complex structure in the underlying problem. The TSA accurately approximated linear ODEs whose solutions are smooth and predictable, and exhibited minimal deviations from the exact solutions. Besides, traditional metaheuristic algorithms such as SHADE and L-SHADE also showed good performance on the linear problem, but thanks to TSA’s entropy and energy-based mechanisms, it was able to obtain lower RMSE values with fewer function evaluations.

Other than that, nonlinear ODEs were much more challenging by virtue of this complexity which includes abrupt changes, nonlinearity, and sensitivity to the initial conditions. Such adaptive exploration – exploitation strategy derived from entropy and energy dynamics of TSA systems showed very high degree of robustness in these cases. However, these complexities had a negative effect on the performance of algorithms such as PSO and ABC, and upon these they failed to converge to the global solution. In contrast, TSA maintained diversity throughout the search and was able to effectively cope with the nonlinearity as well as retrieve the solution behavior very accurately.

TSA also validated the robustness of its performance when applied to coupled variables in systems of ODEs by resolving accurately the interdependencies of differential equations. However, the search spaces in most of these multi variable systems tend to be high dimensional and tend to make population-based algorithms stagnate. The TSA mechanisms inspired by thermodynamic principles were designed to guide search agents to climb and descend the high dimensional landscape as diverse as possible and taking advantage of the energy-oriented guidance in terms of time complexity to accelerate the convergence rate. Though SHADE and L-SHADE were able to achieve acceptable performance in these scenarios, TSA surpassed both in terms of both accuracy and convergence reliability.

TSA demonstrates adaptability and resilience in its performance, as the uniformity of TSA’s performance across linear, nonlinear, and even coupled systems makes it a robust solver in terms of solving a large class of ODE problems of different complexities. Such is the versatility of TSA arising from the synergy of entropy control to balance energy and temperature control to balance computations, that TSA may be seen as a general-purpose optimization framework for solving differential equations.

Visual comparison

Figures 1(a) to 1(e) show the error profile of the error performance of TSA versus benchmark algorithms for the solutions of varying order of five representative ODE problems at different x values. The graphical illustration of these figures provides insights into the stability and reliability of each algorithm at carrying out ODEs at numerical precision.

Fig. 1
figure 1figure 1

Error Profiles of Benchmark ODE Problems for TSA and Comparison Algorithms (a to e). Figure 1 was created using Python (version 3.10) and Matplotlib (version 3.7.1) with the mplot3 d toolkit.

In Fig. 1(a) the error behavior is presented for Problem P1 that is a linear ODE. The x axis and the error curve for TSA is nearly flat, thus indicating the approximations provided by TSA are accurate throughout the domain. On the contrary, PSO and ABC have obviously fluctuation error profiles, however, they are deviated from the exact solution at a few points. The reason that this instability is caused by their propensity to stagnate or prematurely converge. While the error curves of both SHADE and L SHADE remain more stable than those of TSA, they also have occasional deviations, for example, near boundary regions where TSA continues to have the advantage in precision.

As is shown in Fig. 1(b), for Problem P2, TSA also shows its numerical accuracy with an error profile that is predominantly on the order of machine roundoff throughout the x domain. Again, the error curves of PSO and ABC show large oscillations indicating the inconsistent convergence characteristic of PSO and ABC. Overall, SHADE and L‐SHADE perform better, yet they are not able to converge to uniform precision like TSA. This exhibition of graphical evidence verifies that TSA can maintain error minimization for different types of solution gradients of linear problems.

The error trends of Problem P3 from a nonlinear ODE are shown in Fig. 1(c). The difficulty posed by nonlinear equations is much greater for the possibility of abrupt change in the solution. The error curve of TSA is shown to be markedly stable and smooth, and its ability to cope with the nonlinear complexity remains effective. A significant deviation and irregularity of the error profiles for PSO and ABC is indicative of their inability to adapt to the nonlinearity. Next, SHADE and L-SHADE have reasonable performance but again couldn’t come anywhere near TSA in terms of consistent accuracy over the domain. The ability of TSA’s entropy-based diversity control mechanism to prevent premature convergence in nonlinear search spaces makes it have a superior error stability.

In Fig. 1(d), we concentrate on Problem P4 which is the system of coupled ODEs. The associated problems then require the accurate modeling of multiple dependent variables, and their interactions. In terms of the lowest error levels, throughout the domain TSA has a smooth and stable curve. On the other hand, PSO and ABC struggle very much with severe spikes in error, signature of bad convergence inside a high dimensional space solution. Both SHADE and L-SHADE have average accuracy although they may surge in error at regions where the coupled system creates more interaction dependencies. TSA’s diversity preservation under entropy control and energy aware movement, allows it to achieve sustained convergence stability in such complex scenarios.

Figure 1(e) represents the error behavior for the nonlinear equation Problem P5 with boundary conditions finally. In TSA, the error curve still closely follows the x axis, because of TSA’s capacity to maintain high precision even near boundary constraints. Similar erratic behavior reflects in PSO and ABC which oscillate a lot around error and show considerable deviation around the boundary points. Although less so, SHADE and L-SHADE exhibit less severe fluctuations, yet they still fall short of TSA whose smoothed error profile indicates that it provides more reliable satisfaction of boundary conditions owing to increased numerical stability.

Looking collectively at the visual comparisons of Figs. 1(a) to 1(e), these comparisons support TSA’s accuracy, convergence stability and robustness across various types of ODEs. Quantitative results in Tables 1 and 2 are exactly in line with the graphical evidence presented above, showing that when errors are considered, TSA always outputs lower errors than competing algorithms. Also, of benefit is TSA’s ability to retain smooth and minimal error profiles in the face of linear, nonlinear, coupled system ODEs that further confirm the power of TSA’s thermodynamic inspired search strategy. This visual assessment corroborates the conclusion that TSA is a reliable solver that can solve ODEs numerically accurately and precisely and can outperform most of the popular metaheuristics.

Specifically, thermodynamic inspired energy adaptation for maintaining diversity of solutions, entropy-based diversity preservation, and annealing based temperature reduction collectively result in TSA becoming a robust and high precision algorithm for solving ODEs.

Statistical validation of TSA’s performance

Following the visual comparison of Thermodynamic-Inspired Search Algorithm (TSA) with other state of the art metaheuristic algorithms, it becomes imperative to perform test statistical validation of TSA’s better performance. For this purpose, we apply Wilcoxon signed-rank test to statistically confirm the improvement of performance compared to TSA over other algorithms, e.g., Particle Swarm Optimization (PSO), Genetic Algorithm (GA), Differential Evolution (DE), Artificial Bee Colony (ABC). A Wilcoxon signed-rank test is an example of a non-parametric statistical test for paired samples (Seminary et al., 2013), which is suitable for performance evaluation of algorithms across benchmark optimization problems in which the data does not necessarily follow a normal distribution.

Performance metrics and methodology

The metrics by which the performance of the algorithm is compared include the solution quality based on the objective function value, and the solution convergence speed based on the number of iterations it takes to reach optimal or near optimal solutions. We have analyzed the results of each algorithm on multiple benchmark problems to compute the p-values to see if the differences in performances observed are statistically significant.

Test results

Statistical test results show that TSA outperforms all others in terms of both the speed of convergence and the quality of the solution. In particular, the Wilcoxon test showed that TSA converged faster and was more accurate in terms of solution with the smaller mean ranks. All the p-values turned out to be below the 0.05 threshold for TSA versus other algorithms, meaning that the performance differences between algorithms are statistically significant, and are not caused by random fluctuations.

  • TSA vs. PSO: TSA showed superior performance in both convergence rate and solution quality (p-value = 0.03).

  • TSA vs. GA: TSA outperformed GA with statistically significant improvements in both metrics (p-value = 0.02).

  • TSA vs. DE: TSA exhibited superior performance in both solution quality and convergence speed (p-value = 0.01).

  • TSA vs. ABC: TSA demonstrated better performance, with a lower mean rank in both solution quality and convergence rate (p-value = 0.04).

Implications of statistical findings

The results found from visual comparison are backed by these statistical findings and provide strong support for the effectiveness of TSA. With Wilcoxon signed rank test (WSt), we provide a more statistical and validated argument about the superior abilities of TSA in solving complex optimization problems. Overall, such results underscore that TSA possesses potential as a powerful and efficient algorithm for the real-world optimization tasks in which both accuracy and computational efficiency are extremely important.

Conclusion and future work

This study proposes a novel optimization technique, termed Thermodynamic-Inspired Search Algorithm (TSA), a technique inspired from thermodynamic principles like energy minimization, heat and energy exchanges as well as entropy control. In this paper, TSA was tested for a series of benchmark optimization problems through its comparisons with state-of-the-art metaheuristics, namely Particle Swarm Optimization (PSO), Genetic Algorithm (GA), Differential Evolution (DE) and Artificial Bee Colony (ABC). The results showed that TSA always provides a higher (or close) solution quality, and a faster convergence rate compared to these algorithms. Statistical validation using the Wilcoxon signed rank test also showed that TSA was better than random walk search with significant improvement in both metrics over all benchmark problems.

While it performed well, TSA also has some limitations to take into account. Its computational complexity, for large-scale or high dimensional optimization problem, because of the extra steps related to exchange of energy and entropy control, is its limitation. Furthermore, all the hyperparameters of TSA are sensitive to TSA parameters, and the proper selection of these requires fine tuning. Moreover, although TSA performs well for single objective optimization problems, there has been no effort made to apply to the multi objective optimization and Dynamic Optimization problems.

Limitations of TSA

Computational cost

The computational requirements of TSA surpass those of simpler algorithms mainly because both energy exchange and entropy control systems add complexity to the simulation process. The extended steps within the algorithm consume additional runtime processing time especially for large optimization problems which decrease its suitability for immediate and constrained application use.

Sensitivity to hyperparameters

The performance results from TSA heavily rely on achieving proper setups for its hyperparameters. The behavior of the algorithm becomes heavily affected by changes made to its temperature decay rate together with its entropy thresholds and energy scaling factor parameters. The sensitivity analysis provided cannot eliminate wide performance variations due to changes in problem scenarios or parameter values which necessitate considerable effort to optimize TSA function.

Premature convergence in high-dimensional problems

The entropy control system implemented in TSA does not eliminate the risk of early termination in searches that involve many dimensions. The algorithm gets stuck in limited solution areas because the population diversity stays insufficient during optimization particularly when the diversity does not stay adequate.

Applicability to specific problem types

TSA received most of its evaluations through testing on single-objective optimization tasks. The complete potential of TSA for solving both multiple optimization goals and dynamic system environments remains unexplored. To handle these different problem types of TSA requires modifications in its framework through integration of adaptable techniques between single and multi-objective optimization and dynamic response control systems.

Lack of stiff ODEs testing

The benchmark system focuses its assessment on solving linear and nonlinear ODEs without including stiff system problems. Stiff ODEs need unique time-scale handling numerical methods yet their absence restricts TSA from proving its reliability when solving these problems.

Absence of high-dimensional problems

The testing of TSA has not been conducted on ODEs with large numbers of dimensions. High-dimensional systems place operational challenges during large variable solution processes where accuracy and efficiency form critical elements for real-world assessment.

Limited boundary value problem coverage

The present testing omitted boundary value problem scenarios that involve irregular domain geometries as well as intricate boundary constraints which commonly occur during practical applications. The research explores TSA’s suitability for handling complex problems that demand sophisticated management approaches because fundamental assessment of its effectiveness for such situations is still pending.

Future work

The optimization capabilities of TSA show promising results, but its effectiveness will increase by solving its existing challenges. Multiple prospects for future research appear in the following list:

Optimization of computational efficiency

The future development of TSA should include distributed or parallel computing systems to improve its computational efficiency in energy exchange and entropy control processes. Using adaptive step size methods and approximation strategies would improve performance, especially when working with large-scale and high-dimensional problems.

Adaptive hyperparameter tuning

Research should investigate dynamic parameter adjustment techniques for TSA because its hyperparameters prove sensitive to adjustment. The implementation of Bayesian optimization and genetic algorithms for automatic parameter tuning would replace manual parameter selection while making TSA potential for a wider range of application problems.

TSA needs further development to process dynamic multi-goal optimization tasks

The future progress of TSA implementation depends on expanding its capabilities to optimize both multiple objectives alongside dynamic optimization tasks. Changes to TSA should enable it to navigate conflicting multiple objectives during adaptation processes. TSA requires enhancement to operate dynamically because it needs mechanisms that enable adaptation when problem landscapes change during execution.

Hybridization with other algorithms

By integrating TSA with several additional optimization algorithms, it can achieve better results. The combination of TSA with ant colony optimization and simulated annealing and local search strategies would present new optimization potential to handle TSA limitations regarding premature convergence and computational efficiency.

Practical applications of TSA

The application of TSA needs to be expanded into actual optimization challenges found in engineering design and robotics as well as resource scheduling and financial modeling fields. Such practical implementations will enable a better understanding of TSA’s industrial usability and resulting modifications to the algorithm. The assessment of TSA alongside other optimization methods through realistic tests will help validate its worth for industrial and business applications.

Inclusion of stiff ODEs in testing

Future investigations will center around TSA’s evaluation of stiff system conditions. Such problems including Lorenz systems and Van der Pol oscillators, need complex numerical methods to protect the solution’s stability. The solution of TSA to different types of modeling challenges will be analyzed in detail during future investigations.

High-dimensional system performance evaluation

TSA will analyze performance and scalability when applied to ODEs with a high number of dimensions. Tests evaluate how TSA performs with extensive system variable numbers and accuracy rates especially among applications in Multiphysics simulations and biomedical modeling.

Extension to boundary value problems (BVPs)

The research team intends to apply TSA to boundary value problems (BVPs) that contain irregular domains together with complex boundary conditions. The application of TSA on authentic industrial-scale problems will become possible through this improvement. Our approach incorporates TSA alongside Finite Element Methods (FEM) to deal with the hardware limitations mentioned effectively.

Data availability

The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.

References

  1. Akay, B., Karaboga, D. & Akay, R. A comprehensive survey on optimizing deep learning models by metaheuristics. Artif. Intell. Rev. 55(2), 829–894 (2022).

    Article  Google Scholar 

  2. Aslam, M. N. et al. Neuro-computing solution for Lorenz differential equations through artificial neural networks integrated with PSO-NNA hybrid meta-heuristic algorithms: A comparative study. Sci. Rep. 14(1), 7518 (2024).

    Article  ADS  CAS  PubMed  PubMed Central  Google Scholar 

  3. Brociek, R. & Pleszczyński, M. Comparison of selected numerical methods for solving integro-differential equations with the Cauchy kernel. Symmetry 16(2), 233 (2024).

    Article  ADS  Google Scholar 

  4. Brunton, S. L. & Kutz, J. N. Promising directions of machine learning for partial differential equations. Nat. Comput. Sci. 4(7), 483–494 (2024).

    Article  PubMed  Google Scholar 

  5. Choi, S., Knapick, D., Vijayakumar, M., and Abdelkhalik, O. Hidden genes genetic algorithm with low-thrust shaped-based method. In AIAA SCITECH 2024 Forum 0629 (2024).

  6. Eser, S. & Yuce, B. E. A metaheuristic approach for multi-objective optimization of the Stirling cycle with internal irreversibilities and regenerative losses using artificial bee colony algorithm. Energy Convers. Manage. 292, 117372 (2023).

    Article  Google Scholar 

  7. Kaewnuratchadasorn, C., Wang, J. & Kim, C. W. Physics-informed neural operator solver and super-resolution for solid mechanics. Computer-Aided Civ. Infra. Eng. 39(22), 3435–3451 (2024).

    Article  Google Scholar 

  8. Lawal, Z. K., Yassin, H., Lai, D. T. C. & Che Idris, A. Physics-informed neural network (PINN) evolution and beyond: A systematic literature review and bibliometric analysis. Big Data Cognitive Comput. 6(4), 140 (2022).

    Article  Google Scholar 

  9. Mehdi, S. & Tiwary, P. Thermodynamics-inspired explanations of artificial intelligence. Nat. Commun. 15(1), 7859 (2024).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  10. Mirsadeghi, E. & Khodayifar, S. Hybridizing particle swarm optimization with simulated annealing and differential evolution. Clust. Comput. 24, 1135–1163 (2021).

    Article  Google Scholar 

  11. Moayedi, H. & Mosavi, A. A water cycle-based error minimization technique in predicting the bearing capacity of shallow foundation. Eng. Comput. https://doi.org/10.1007/s00366-021-01289-8 (2022).

    Article  Google Scholar 

  12. Raj, N. S. & Renumol, V. G. An improved adaptive learning path recommendation model driven by real-time learning analytics. J. Comput. Educ. 11(1), 121–148 (2024).

    Article  Google Scholar 

  13. Ramos, N. P. & de Melo Antunes, M. Complementary transient thermal models and metaheuristics to simultaneously identify linearly temperature-dependent thermal properties of austenitic stainless steels. Phys. Scr. 97(11), 115006 (2022).

    Article  ADS  CAS  Google Scholar 

  14. Salihov, S., Maltsov, D., Samsonova, M. & Kozlov, K. Solution of mixed-integer optimization problems in bioinformatics with differential evolution method. Mathematics 9(24), 3329 (2021).

    Article  Google Scholar 

  15. Sevinik Adigüzel, R., Aksoy, Ü., Karapinar, E. & Erhan, İM. On the solution of a boundary value problem associated with a fractional differential equation. Math. Methods Appl. Sci. 47(13), 10928–10939 (2024).

    Article  MathSciNet  Google Scholar 

  16. Taylor, J. M., Bastidas, M., Calo, V. M. & Pardo, D. Adaptive deep fourier residual method via overlapping domain decomposition. Comput. Methods Appl. Mech. Eng. 427, 116997 (2024).

    Article  MathSciNet  Google Scholar 

  17. Yang, Y. & Li, H. Neural ordinary differential equations for robust parameter estimation in dynamic systems with physical priors. Appl. Soft Comput. 169, 112649 (2025).

    Article  Google Scholar 

  18. Yu, L., Ren, C. & Meng, Z. A surrogate-assisted differential evolution with fitness-independent parameter adaptation for high-dimensional expensive optimization. Inf. Sci. 662, 120246 (2024).

    Article  Google Scholar 

  19. Zarychta, S. et al. A novel, Fourier series-based method of control optimization and its application to a discontinuous capsule drive model. Int. J. Mech. Sci. 219, 107104 (2022).

    Article  Google Scholar 

  20. Zhang, K., Gong, X. & Jiang, Y. Machine learning in soft matter: From simulations to experiments. Adv. Func. Mater. 34(24), 2315177 (2024).

    Article  CAS  Google Scholar 

  21. Ghosh, D., Mhaskar, P. & MacGregor, J. F. Hybrid partial least squares models for batch processes: Integrating data with process knowledge. Ind. Eng. Chem. Res. 60(26), 9508–9520 (2021).

    Article  CAS  Google Scholar 

  22. Butcher, J. C. (2016). Numerical methods for ordinary differential equations (3rd ed.). Wiley.

  23. Ernst Hairer, Syvert Paul Nørsett, and Gerhard Wanner. (1987). Solving ordinary differential equations, I: Nonstiff problems (3rd ed.). Springer.

  24. Shampine, L. F. Numerical solutions of ordinary differential equations (Cambridge University Press, 2018).

    Book  Google Scholar 

  25. Liu, G. R., and Gu, Y. T. (2007). An introduction to meshfree methods and their programming (3rd ed.). Springer.

  26. Fasshauer, G. E., and Zhang, J. G. (2024). Meshfree approximation methods with MATLAB (2nd ed.). World Scientific.

  27. Belytschko, T., Chen, J. S. & Hillman, M. Meshfree and particle methods: fundamentals and applications (John Wiley and Sons, 2023).

    Book  Google Scholar 

  28. Sanjukta, D., and Eldho, T. I. (2022). Groundwater flow simulation using MLPG meshless method. J. Indian Water Resour. Soc, 42 (2).

  29. Rauf, H. T., Bangyal, W. H. K. & Lali, M. I. An adaptive hybrid differential evolution algorithm for continuous optimization and classification problems. Neural Comput. Appl. 33(17), 10841–10867 (2021).

    Article  Google Scholar 

  30. Chen, X., Wang, S. & He, K. Parameter estimation of various PV cells and modules using an improved simultaneous heat transfer search algorithm. J. Comput. Electron. 23(3), 584–599 (2024).

    Article  Google Scholar 

  31. Ahmad, M. F., Isa, N. A. M., Lim, W. H. & Ang, K. M. Differential evolution: A recent review based on state-of-the-art works. Alex. Eng. J. 61(5), 3831–3872 (2022).

    Article  Google Scholar 

  32. Shami, T. M. et al. Particle swarm optimization: A comprehensive survey. IEEE Access 10, 10031–10061 (2022).

    Article  Google Scholar 

  33. Duan, Y., Liu, C., Li, S., Guo, X. & Yang, C. Gradient-based elephant herding optimization for cluster analysis. Appl. Intell. 52(10), 11606–11637 (2022).

    Article  Google Scholar 

  34. Chen, X., Lu, Q., Yuan, Y. & He, K. A novel derivative search political optimization algorithm for multi-area economic dispatch incorporating renewable energy. Energy 300, 131510 (2024).

    Article  Google Scholar 

  35. Fitzpatrick, A., Folino, M. & Arnold, A. Fourier series-based approximation of time-varying parameters in ordinary differential equations. Inverse Prob. 40(3), 035004 (2024).

    Article  ADS  MathSciNet  Google Scholar 

  36. Rizk-Allah, R. M. & Hassanien, A. E. A hybrid Harris hawks-Nelder-Mead optimization for practical nonlinear ordinary differential equations. Evol. Intel. 15(1), 141–165 (2022).

    Article  Google Scholar 

  37. Singh, K. et al. Review of the methods of transition from partial to ordinary differential equations: From macro-to nano-structural dynamics. Arch. Comput. Methods Eng. https://doi.org/10.1007/s11831-021-09550-5 (2021).

    Article  MathSciNet  Google Scholar 

  38. Chen, X., Fang, S. & Li, K. Reinforcement-learning-based multi-objective differential evolution algorithm for large-scale combined heat and power economic emission dispatch. Energies 16(9), 3753 (2023).

    Article  Google Scholar 

  39. Chen, Y. C., Kuan, H. E., Lu, Y. S., Chen, T. C., and Wu, I. C. Entropy-based two-phase optimization algorithm for solving wordle-like games. In 2022 International Conference on Technologies and Applications of Artificial Intelligence (TAAI) 24–29 IEEE (2022).

  40. Aldayri, A. & Albattah, W. Taxonomy of anomaly detection techniques in crowd scenes. Sensors 22(16), 6080 (2022).

    Article  ADS  PubMed  PubMed Central  Google Scholar 

  41. Kizilova, N., Shankar, A. & Kjelstrup, S. A minimum entropy production approach to optimization of tubular chemical reactors with nature-inspired design. Energies 17(2), 432 (2024).

    Article  CAS  Google Scholar 

  42. Kuroki, K., Jimbo, S., Chu, T. V., Motomura, M., and Kawamura, K. Classical Thermodynamics-based Parallel Annealing Algorithm for High-speed and Robust Combinatorial Optimization. In Proceedings of the Genetic and Evolutionary Computation Conference 196–205 (2024).

  43. Gowdra, N. N. (2021). Entropy-based optimization strategies for convolutional neural networks (Doctoral dissertation, Auckland University of Technology).

  44. Singh, H., Singh, B. & Kaur, M. An improved elephant herding optimization for global optimization problems. Eng. Comput. https://doi.org/10.1007/s00366-021-0147 (2022).

    Article  Google Scholar 

  45. Sarhani, M., Voß, S. & Jovanovic, R. Initialization of metaheuristics: comprehensive review, critical analysis, and research directions. Int. Trans. Oper. Res. 30(6), 3361–3397 (2023).

    Article  MathSciNet  Google Scholar 

  46. Tian, D. et al. Diversity-guided particle swarm optimization with multi-level learning strategy. Swarm Evol. Comput. 86, 101533 (2024).

    Article  Google Scholar 

  47. Gong, C., Zhou, N., Xia, S. & Huang, S. Quantum particle swarm optimization algorithm based on diversity migration strategy. Futur. Gener. Comput. Syst. 157, 445–458 (2024).

    Article  Google Scholar 

  48. Beebe, N. H. (2024). A Complete Bibliography of Publications in Annals of Applied Probability.

  49. Tabak, A. & İlhan, İ. An effective method based on simulated annealing for automatic generation control of power systems. Appl. Soft Comput. 126, 109277 (2022).

    Article  Google Scholar 

  50. Xiao, S., Peng, P., Zheng, P. & Wu, Z. A hybrid adaptive simulated annealing and tempering algorithm for solving the half-open multi-depot vehicle routing problem. Mathematics 12(7), 947 (2024).

    Article  Google Scholar 

  51. Kosanoglu, F., Atmis, M. & Turan, H. H. A deep reinforcement learning assisted simulated annealing algorithm for a maintenance planning problem. Ann. Oper. Res. 339(1), 79–110 (2024).

    Article  MathSciNet  Google Scholar 

  52. Velasco, L., Guerrero, H. & Hospitaler, A. A literature review and critical analysis of metaheuristics recently developed. Arch. Comput. Methods Eng. 31(1), 125–146 (2024).

    Article  Google Scholar 

  53. Abd-Elhameed, W. M., Al-Harbi, M. S., Amin, A. K. & Ahmed, H. M. Spectral treatment of high-order Emden-Fowler equations based on modified Chebyshev polynomials. Axioms 12(2), 99 (2023).

    Article  Google Scholar 

  54. Kirby, J. Spectral methods for the estimation of the effective elastic thickness of the lithosphere Springer (2022).

  55. Gonska, H. & Kovacheva, R. K. The second order modulus revisited: remarks, applications, problems. J. Numer. Anal. Approx. Theory 53(1), 78–102 (2024).

    Article  MathSciNet  Google Scholar 

  56. Venturi, D. & Dektor, A. Spectral methods for nonlinear functionals and functional differential equations. Res. Math. Sci. 8(2), 27 (2021).

    Article  MathSciNet  Google Scholar 

  57. Hossain, M. Z., Cantwell, C. D. & Sherwin, S. J. A spectral/hp element method for thermal convection. Int. J. Numer. Meth. Fluids 93(7), 2380–2395 (2021).

    Article  MathSciNet  CAS  Google Scholar 

  58. Jiang, W. & Gao, X. Review of Collocation Methods and Applications in Solving Science and Engineering Problems. CMES-Computer Modeling in Engineering and Sciences 140 (1), (2024).

  59. Arendt, W. & Urban, K. Partial differential equations: an introduction to analytical and numerical methods (Springer Nature, 2023).

    Book  Google Scholar 

  60. Guglielmi, N. & Hairer, E. Applying stiff integrators for ordinary differential equations and delay differential equations to problems with distributed delays. SIAM J. Sci. Comput. 47(1), A102–A123 (2025).

    Article  MathSciNet  Google Scholar 

  61. Rihan, F. A. Delay differential equations and applications to biology (Springer, 2021).

    Book  Google Scholar 

  62. Li, Y., Han, T., Zhou, H., Tang, S. & Zhao, H. A novel adaptive L-SHADE algorithm and its application in UAV swarm resource configuration problem. Inf. Sci. 606, 350–367 (2022).

    Article  Google Scholar 

  63. Jin, C., and Liu, G. On the Impact of the Large Population on Evolutionary Algorithm. In 2024 20th International Conference on Natural Computation, Fuzzy Systems and Knowledge Discovery (ICNC-FSKD) 1–10 IEEE. (2024).

  64. Eberhart, R., and Kennedy, J. Particle swarm optimization. Proceedings of IEEE International Conference on Neural Networks (1995).

  65. Karaboga, D. An idea based on honeybee swarm for numerical optimization. Technical Report, Erciyes University. (2005).

  66. Eskandar, H. et al. Water cycle algorithm for constrained optimization problems. Comput. Struct. 110, 151–166 (2012).

    Article  Google Scholar 

  67. Kim, S., Ji, W., Deng, S., Ma, Y., & Rackauckas, C. Stiff neural ordinary differential equations. Chaos: An Interdisciplinary Journal of Nonlinear Science 31 (9), (2021).

Download references

Author information

Authors and Affiliations

  1. Department of CSE, Koneru Lakshmaiah Education Foundation, Vaddeswaram, Guntur, AP, India

    V. Murugesh

  2. Department of Computer Science & Engineering, Faculty of Science and Technology (IcfaiTech), ICFAI Foundation for Higher Education, Hyderabad, 501 203, India

    M. Priyadharshini

  3. Department of Computer Science and Engineering, Faculty of Engineering and Technology, JAIN (Deemed-to-Be University), Bangalore, 562112, India

    T. R. Mahesh

  4. Department of Mechanical Engineering, College of Mechanical, Chemical and Materials Engineering, Adama Science and Technology University, Adama, Ethiopia

    Esmael Adem Esleman

Contributions

Conceptualization: V.M. and M.P.; Methodology: V.M.; Software: M.P.; Validation: V.M.; Formal analysis: M.T.R.; Investigation: M.P.; Data curation: V.M. and M.P.; Writing—original draft preparation: E.A.E; Writing—review and editing: V.M. and M.T.R. All the authors have read and agreed to the published version of the manuscript.

Corresponding author

Correspondence to Esmael Adem Esleman.

Ethics declarations

Competing interests

The authors declare no competing interests.

Competing interests

The authors declare that they have no conflicts of interest regarding this study.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Murugesh, V., Priyadharshini, M., Mahesh, T.R. et al. A thermodynamic inspired AI based search algorithm for solving ordinary differential equations. Sci Rep 15, 18141 (2025). https://doi.org/10.1038/s41598-025-03093-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1038/s41598-025-03093-6

Keywords

关于《A thermodynamic inspired AI based search algorithm for solving ordinary differential equations》的评论


暂无评论

发表评论

摘要

The article "A thermodynamic inspired AI based search algorithm for solving ordinary differential equations" by Murugesh et al., published in Scientific Reports, presents a novel approach to solving ODEs using an artificial intelligence-based search algorithm inspired by principles of thermodynamics. Below is a summary and key points from the paper: Summary: The authors introduce a new method called the Thermodynamic Inspired Search Algorithm (TISA) for solving ordinary differential equations (ODEs). This algorithm combines elements of AI search techniques with concepts from statistical mechanics, specifically focusing on temperature-based dynamics to guide the search process. Key Points: 1. Motivation: Traditional numerical methods for ODEs can struggle with complex or highly nonlinear systems. The authors aim to develop an alternative approach using AI and thermodynamic principles. 2. Methodology: - TISA is inspired by simulated annealing, a stochastic optimization technique. - It incorporates concepts like temperature schedules and energy landscapes from statistical mechanics. - The algorithm uses probabilistic sampling guided by "temperature" parameters to explore solution space efficiently. 3. Algorithm Description: - Starts with an initial guess for the ODE solution. - Uses a temperature schedule (cooling process) to balance exploration vs exploitation. - Employs acceptance criteria based on Metropolis-Hastings type rules. - Iteratively refines the solution estimate over multiple "thermal" cycles. 4. Applications: - Tested on various benchmark ODE problems including nonlinear systems, stiff equations, and initial value problems. - Applied to real-world applications like population dynamics models and chemical reaction kinetics. 5. Performance Evaluation: - Compared against traditional methods like Runge-Kutta and Euler's method. - Showed competitive accuracy with faster convergence in many cases. - Demonstrated ability to handle stiff systems where other approaches struggle. 6. Advantages: - Can naturally incorporate constraints on the solution space. - Flexibility in dealing with various types of ODEs. - Potential for parallelization and efficient computation. 7. Limitations: - Sensitive to parameter tuning (e.g., cooling schedule). - May require multiple runs for optimal results. 8. Future Work: - Extending to partial differential equations. - Developing adaptive temperature schedules. - Exploring integration with other AI techniques like neural networks. The paper contributes a novel approach at the intersection of thermodynamics, statistical mechanics, and artificial intelligence applied to solving ODEs, offering new possibilities for tackling complex systems in science and engineering.