An improved fruit fly optimization algorithm based on selecting evolutionary direction intelligently

Lei Wu, Wensheng Xiao, Liang Zhang, Qi Liu, Jingli WangInt. J. Comput. Intell. Syst 2016

Introduction

The Fruit Fly Optimization Algorithm (FOA) is a popular meta-heuristic inspired by the foraging behavior of fruit flies, utilizing their keen olfactory and visual senses to locate food sources. Despite its simplicity and robustness, the standard FOA faces two significant challenges that limit its performance in complex optimization tasks. First, the algorithm relies on a purely random search mechanism, lacking "memory" of previous successful iterations, which often leads to slow convergence. Second, the traditional fitness calculation—based on the distance from the origin—prevents the algorithm from effectively searching in negative coordinate domains.

To address these limitations, this paper proposes an improved variant: Selecting Evolutionary Direction Intelligently (SEDI-FOA). By introducing a mechanism to calculate an optimal evolutionary vector and biasing the swarm's movement toward it, SEDI-FOA achieves superior convergence speed and global search capabilities.

Methodology: The SEDI-FOA Approach

The core innovation of SEDI-FOA lies in transitioning from a random walk to an "intelligent" search. This is achieved through several key modifications to the standard FOA framework.

Direct Fitness Evaluation

To overcome the "negative domain trap," SEDI-FOA evaluates the smell concentration (fitness) directly from the decision variables. This eliminates the dependency on distance-from-origin proxies, allowing the algorithm to navigate the entire search space, including negative coordinates, with equal efficacy.

Optimal Search Direction ($F_n$)

In each generation, the algorithm identifies the best-performing individual. It then defines an optimal search vector, $F_n$, which points from the current center of the swarm toward this best individual. This vector serves as a collective "memory" for the swarm, indicating the most promising direction for finding the global optimum.

Mechanism of intelligent direction selection in SEDI-FOA

Intelligent Selection Function ($g(\theta)$)

Rather than moving in random directions, individual flies are steered by a probability density function, $g(\theta)$, where $\theta$ is the angle between a fly's potential path and the optimal vector $F_n$. Directions aligned with $F_n$ (small $\theta$) are assigned a higher probability of selection, while directions opposing $F_n$ have a probability approaching zero. This "probability steering" ensures that the swarm prioritizes promising areas while maintaining enough diversity to avoid premature convergence in local optima.

Algorithmic Workflow

The iterative process of SEDI-FOA (referred to in implementation as IAFOA) is structured to refine the search area dynamically. After the initial random search in the first iteration, the algorithm enters a loop of defining the optimal direction, executing the central flight step based on $g(\theta)$, and evaluating performance to update the swarm's center.

Flowchart of the improved optimization process (IAFOA)

Performance Evaluation

The effectiveness of SEDI-FOA was rigorously tested using 12 standard benchmark functions ($f_1$ through $f_{12}$). These functions include unimodal landscapes to test convergence speed and complex multimodal landscapes (such as Rastrigin and Ackley) to evaluate the algorithm's ability to escape local traps. The algorithm's performance was compared against several state-of-the-art methods, including Particle Swarm Optimization (PSO), CMAES, and SaDE, as well as other FOA variants like DFOA and IFFO.

Key Results and Discussion

Experimental results demonstrate the clear dominance of SEDI-FOA across multiple criteria:

  • Superior Accuracy: SEDI-FOA achieved the best results in 29 out of 36 testing metrics. In several benchmarks, it successfully located the absolute global minimum (0.0) where other algorithms failed.
  • High Precision: For functions like $f_4$ through $f_8$, SEDI-FOA provided significantly more precise results (e.g., $10^{-10}$) compared to its competitors (e.g., $10^{-7}$).
  • Robust Stability: The algorithm consistently showed lower standard deviations across runs, indicating a high level of reliability and reduced sensitivity to initial conditions.

The success of SEDI-FOA highlights the value of "bio-inspiration" over simple "bio-mimicry." By mathematically modeling the collective intelligence and memory of a swarm, the algorithm behaves more like a real biological entity hunting for resources, rather than a collection of random walkers.

Conclusion

SEDI-FOA represents a significant advancement in fruit fly optimization. By intelligently selecting evolutionary directions, it overcomes the inherent randomness and domain limitations of the original FOA. While the algorithm shows exceptional performance on standard benchmarks, future research will focus on its scalability to high-dimensional engineering problems and the automation of parameter tuning, such as the iteration step value ($R$), to enhance its practical applicability in real-world optimization scenarios.

Summary updated

BibTeX
@article{wu2016improved,
  author = {Lei Wu and Wensheng Xiao and Liang Zhang and Qi Liu and Jingli Wang},
  title = {{An improved fruit fly optimization algorithm based on selecting evolutionary direction intelligently}},
  journal = {Int. J. Comput. Intell. Syst.},
  year = {2016},
  doi = {10.1080/18756891.2016.1144155},
}
Figure