Skip to content

Fritingo/Beetle_Antennae_Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beetle Antennae Search (BAS) Visualization

This repository provides a Python-based visualization of the Beetle Antennae Search (BAS) algorithm, a novel metaheuristic optimization algorithm inspired by the foraging behavior of beetles.

Description

The script BAS_2D.py implements a 2D visualization of the BAS algorithm. The beetle explores a 2D space to find the optimal solution (goal), and its path is plotted in real-time. The fitness of the beetle's position is determined by its proximity to the goal.

For more information on the BAS algorithm, refer to the original paper: Beetle Antennae Search Algorithm.

BAS Visualization

Requirements

  • Python 3
  • NumPy
  • Matplotlib
  • SciPy

Usage

To run the visualization, execute the following command in your terminal:

python BAS_2D.py

The script will generate a plot showing the beetle's path as it searches for the goal. The simulation will continue until the beetle's fitness reaches a certain threshold.

About

BAS visualization with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages