Git Product home page Git Product logo

locust-swarm-formation's Introduction

Locust swarm formation

Computational model of locust swarm formation, implemented in NetLogo (v4.1.2). The model can be used to explore the notion of 'critical density', and how that affects swarm formation.

Description

The model loosely incorporates elements of the SIR (susceptible-infectious-removed) model. Grasshoppers are treated as 'susceptible', capable of turning into locusts. A grasshopper can be 'infected' (i.e., turn into a locust) by making contact with a sufficient number of other grasshoppers & locusts within a prescribed window of time (the criterion is motivated by the idea that overcrowding induces swarm behavior). A locust is treated as 'removed', in the sense that once it turns into a locust, it remains a locust (i.e., it could not be 'infected' again).

The model also incorporates the notion of flocking. A grasshopper is assumed to wander randomly, whereas after turning into a locust, it follows flocking/swarming behavior.

Model assumptions:

  • only solitary (grasshopper) and gregarious (locust) members
  • population is fixed
  • members cannot escape world boundaries
  • solitary can become gregarious
  • gregarious remain gregarious
  • grasshopper wanders randomly
  • locust adopts swarming behavior

Model parameters:

  • population: number of members in the grasshopper-locust population (all are initialized as grasshoppers)
  • locust-mobility: distance a locust moves per cycle
  • vision: distance around a locust within which neighbors are considered as swarm mates
  • minimum-separation: distance below which a locust will separate from its nearest neighbor, and above which it aligns to the average swarm heading
  • max-align-turn: maximum turn angle allowed by a locust aligning to the average swarm heading
  • max-cohere-turn: maximum turn angle allowed by a locust cohering to the average swarm heading
  • max-separate-turn: maximum turn angle allowed by a locust separating from its nearest neighbor

Author

Michael E. Rowan โ€” mrowan137 โ€” [email protected].

License

MIT License.

Acknowledgments

References

locust-swarm-formation's People

Contributors

mrowan137 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.