Fata Morgana Algorithm

From testwiki
Jump to navigation Jump to search
A Fata Morgana of a cargo ship seen off the coast of Oceanside, California

The Fata Morgana Algorithm (FATA) is a swarm intelligence optimization algorithm designed to solve continuous multi-type optimization problems [1]. FATA is inspired by the natural phenomenon of a mirage, known as "Fata Morgana," which occurs due to the refraction and reflection of light through layers of atmosphere with varying densities. This algorithm introduces two innovative strategies: the Mirage Light Filtering Principle (MLF) and the Light Propagation Strategy (LPS), which enhance the exploration and exploitation capabilities of FATA [2].

Overview

FATA was developed to tackle a variety of optimization challenges, including engineering problems. It combines mathematical modeling of the Fata Morgana effect, which balances global and local search strategies, to provide efficient solutions for both benchmark functions and real-world applications. The algorithm was tested against numerous competitive optimization methods and demonstrated superior performance.

Key Features

  • Mirage Light Filtering Principle (MLF): A global exploration strategy that evaluates population quality and filters out individuals that are not contributing to the optimal solution.
  • Light Propagation Strategy (LPS): A local exploitation strategy that improves convergence speed by simulating light refraction and total internal reflection, focusing on refining the solution.

Algorithm Inspiration: Fata Morgana Phenomenon

A Fata Morgana is a complex form of mirage, visible from the sea or land, which distorts objects like boats on the horizon. The phenomenon occurs when rays of light bend due to atmospheric conditions, specifically temperature gradients between layers of air.

FATA mimics this phenomenon by balancing between:

  • Global search (exploration)—analogous to light filtering through various atmospheric layers.
  • Local search (exploitation)—analogous to the refraction and reflection of light to sharpen the focus on the optimal solution.

Algorithm Structure

The FATA algorithm is composed of two primary strategies:

3.1 The Mirage Light Filtering Principle

The section shows the Fata Morgana algorithm’s population search strategy based on the principle of definite integral. During the physical process of mirage formation, the hull emits two types of light rays. The majority of the light rays belong to the first type, which do not propagate and form a mirage. The other type of light rays undergoes physical transformations that result in the formation of a mirage and are referred to as the mirage light x.

In FATA, distinguishing between the two types of light populations is crucial for the algorithm to find xbest. Therefore, FATA employs a light population quality evaluation strategy based on the definite integral principle to assess the different types of light populations. In swarm intelligence algorithms, population quality is evaluated by calculating individuals' fitness and then aggregating the fitness values for the entire population.

If the fitness of individuals in a light population is ranked, it forms a cumulative curve. To efficiently compute the fitness of different types of light populations (other light, the mirage light), FATA utilizes definite integration to evaluate the curve, using the integral value as a measure of fitness. The mirage light x that is selected based on the definite integral principle is also referred to as the filtered mirage light population.

First, the strategy determines the population as other light or the mirage light based on the population quality to perform different search methods:

xinext={Lb+(UbLb)randif rand>Pxbest+xiPara1if randP and rand<qxrand+[0.5(α+1)(UbLb)αxi]Para2if randP and randq

P=SSworstSbestSworst

q=fitifitworstfitbestfitworst

where x is the light individual, and xnext is the new individual. Among them, the expressions for the first-half refraction strategy, the second-half refraction strategy, and the total internal reflection strategy are:

xinext=Lb+(UbLb)rand

xinext=xbest+xiPara1

xinext=xrand+[0.5(α+1)(UbLb)αxi]Para2

In P, Sworst represents the quality of the worst population. Sbest represents the quality of the best population. The mirage light populations have excellent population quality. In q, fiti represents the fitness of the current individual (x). fitworst represents the fitness of the worst individual. fitbest represents the fitness of the best individual.

Algorithm 1: The Mirage Light Filtering Strategy

Input: light individual x; Fit the population quality function f(x) according to the fitness of the individuals; Calculate the integrated area S of the f(x) based on the principle of definite integration; P=SSworstSbestSworst If rand>P The population is the light rays directed towards a medium with inhomogeneous density populations; The population performs xinext=Lb+(UbLb)rand; Else The population is the light rays not directed towards a medium with inhomogeneous density populations; The population executes the search strategy (Eqs. (2-3)); End If Return new individual xnext;

y=f(x)=j=0ncjϕjx

S=abf(x)dxban((y0+y1)2+(y1+y2)2++(yn1+yn)2)

The Light Propagation Principle

The light propagation principle in FATA is executed after the mirage light filtering principle, and it serves as the individual search strategy of the algorithm responsible for local exploitation in the search space to find local minima. The light population of FATA, represented by the mirage light rays, starts from the small boat in the lower-left corner. First, it undergoes the mirage light filtering strategy, where the light population is evaluated and filtered based on the principles of calculus to select the individuals that form the mirage phenomenon. Furthermore, the filtered mirage light population undergoes refraction and reflection sequentially. The individual changes in the light population during refraction and reflection can be observed. The light rays change in direction and size during the processes of refraction and reflection.

The Fata Morgana algorithm designs the individual search strategy based on the light propagation principle combined with trigonometric functions. The algorithm chooses to execute the reflection strategy (the first half phase), the reflection strategy (the second half phase), and the refraction strategy based on the individual quality factor.

Light refraction (the first half phase). In the first half refraction, the light x enters the medium with inhomogeneous density from an optically denser medium to an optical thinning medium, changing the direction and size of the light. The angle of incidence i1 is smaller than the angle of refraction i2.

In the first half refraction strategy, the new individual after the first half reflection strategy is:

xnext=xbest+xz

where

xz=xPara1

and

Para1=sin(i1)Ccos(i2)=tan(θ)

xnext is the new individual. xbest is the current best individual. xz represents the refraction step of the strategy. Para1 is the first-half refraction ratio.

Light refraction (the second half phase). After performing the first half refraction phase, the light performs the second half refraction phase at random points. The angle of incidence i3 is less than the angle of refraction i4. The light propagates in a medium with inhomogeneous density, so the refractive index Para2 changes continuously. In the second half refraction strategy, the light individual (xf) will generate a new individual (xnext) based on random individuals (xrand) in the search space.

xnext=xrand+xs

where

xs=xfPara2

and

Para2=cos(i5)Csin(i6)=1tan(θ)

xs is the refraction step in the second half refraction strategy. xrand is a random individual from the population. Para2 is the second refraction ratio.

The light total internal reflection. The total internal reflection phase is the final stage of light propagation in the formation of the mirage phenomenon. This is because as the refraction angle increases, the light undergoes total internal reflection in the medium with inhomogeneous density. The total internal reflection strategy drives the FATA population to explore in the opposite direction.

In the strategy, the light individual (x) is transformed into the individual (xnext) to search for the target in the opposite direction.

xnext=xf=0.5(α+1)(Ub+Lb)αx

α=FE

x0xf=F(xx0)E

x0=(UbLb)2+Lb=(Ub+Lb)2

Pseudocode

The following pseudocode outlines the structure of the FATA algorithm:

Input: parameters n, d, MaxFEs;
Output: best individual;
1. Initialize parameters Para1, Para2, α;
2. Initialize a population of size n;
3. Calculate fitness of each individual;
4. While (FEs <= MaxFEs):
    a. Update best fitness x_best;
    b. For each individual in the population:
        i. Execute Mirage Light Filtering Principle;
        ii. If rand > P, initialize the population randomly;
        iii. Else, execute Light Propagation Strategy:
        - Refraction (first and second phases);
        - Total Internal Reflection.
    c. Increment FEs;
5. Return the best individual x_best;

Applications

FATA has been applied to various benchmark optimization problems, including:

  • Continuous multi-type functions.
  • Real-world engineering problems such as structural design optimization and network scheduling.

The algorithm has consistently outperformed other optimization techniques in both accuracy and convergence speed.

References