https://github.com/hokagem/ninjabees
An implementation of a simulation of a bee colony
https://github.com/hokagem/ninjabees
bee bee-colony-optimization bee-swarm-simulator beehive bio-inspired python3 simulation
Last synced: 11 months ago
JSON representation
An implementation of a simulation of a bee colony
- Host: GitHub
- URL: https://github.com/hokagem/ninjabees
- Owner: HokageM
- License: mit
- Created: 2024-01-11T14:20:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T12:12:58.000Z (over 2 years ago)
- Last Synced: 2024-03-25T13:59:33.272Z (over 2 years ago)
- Topics: bee, bee-colony-optimization, bee-swarm-simulator, beehive, bio-inspired, python3, simulation
- Language: Python
- Homepage:
- Size: 2.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NinjaBees

Simulation of a bee colony.
Bees try to discover all food sources in the simulated world.
Bee Colony Optimization Algorithm as Core Algorithm:
- Employed Bee Phase
- Onlooker Bee Phase
Natural Behavior of Bees:
- Scout Bee remembers path to food
- Forager Bee uses one of all known path to get food
- If Scout Bee finds a shorter path, update path to food
- Information is only shared inside the Hive
# Demo
## Initial Phase of the Bee Colony

## Bee Colony after a few iterations

# Usage
```bash
usage: ninja_bees [-h] [--version] [--world-width WORLD_WIDTH] [--world-height WORLD_HEIGHT] [--number-bees NUMBER_BEES] [--max-cnt-foraging-bees MAX_CNT_FORAGING_BEES] [--number-food-sources NUMBER_FOOD_SOURCES] [--best-nutrition-score BEST_NUTRITION_SCORE]
Simulation of a bee colony using the bee colony optimization algorithm.
options:
-h, --help show this help message and exit
--version show program's version number and exit
--world-width WORLD_WIDTH
Width of the environment.
--world-height WORLD_HEIGHT
Height of the environment.
--number-bees NUMBER_BEES
Number of bees in the environment.
--max-cnt-foraging-bees MAX_CNT_FORAGING_BEES
The maximum count of foraging bees.
--number-food-sources NUMBER_FOOD_SOURCES
Number of food sources in the environment.
--best-nutrition-score BEST_NUTRITION_SCORE
The best nutrition score in the environment.
```