Skip to content

MofokengLefu/AI-Boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

AI-Boids

Application of swarm intelligence in boids

graph TB;
    AI-->SwarmIntelligence;
    AI-->Nature-inspired-algorithms;
    AI-->RainformentLearning;
    SwarmIntelligence--> Boids;
    Nature-inspired-algorithms-->Boids;
    RainformentLearning-->Boids;
Loading

What is boids simulation?

The boids model simulates the flocking behavior of birds and has since become a benchmark for research in the field of artificial life and swarm intelligence. The boids model is a simple artificial life program that simulates the behavior of a flock of birds. Each "boid" is represented as a simple object with a position, velocity, and acceleration. The behavior of each boid is governed by three simple rules: separation, alignment, and cohesion. Separation ensures that each boid maintains a safe distance from its neighbors, alignment ensures that each boid aligns its velocity with the group, and cohesion ensures that each boid moves towards the average position of its neighbors.

Techniques Use In Application Of Boids

  • Rule-base technique: consists of the three rules that Craig Reynolds stated in 1986
  • Simulation Time Step: consists of the discrete time step where boids can take which are calculated based the position and velocity at the previous step
  • Graphics and Visualization: is technique to render the shapes to be used for boids and obstacles
  • Steering Behavior: which allow the boids to respond to the environment and make decisions about where to move next if there are obstacles on the way

Videos for Trial and error

Overall Running simulations

simulation.1.mp4

Trial and error simulations

simulation.2.mp4

Overall Code

simulation.code.mp4

code reference to (Daniel Shiffman)

The explanation of the code is on the word document submitted on our school side. The video is to show the overal code and find explanatuon of our school website for more information

How to run the document

First you need to download processing IDE, then you dont install it just run the "processing.exe". It will download or extract the file and open. After that copy and paste the provided code to the processing IDE and click play icon or button. Wait for it to run and the running time differs from computer to computer in teams of memory and ram. You will see the simulation environment with circular abstacle color in red. Add boids by left click (if you do move the cursor it will continue adding boids to the environemenr) and add obstacle by right click. Play around with the simulation and have fun.............

About

Application of swarm intelligence in boids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors