Libraries‎ > ‎


BehaviourComposer: ignore everything before this.
The behaviours in this library have been placed in these categories:

Movement | Attributes | Appearance  | Parameters | Scheduling |  Interacting |  Linking |  Layout |  Adding agents |  Removing |  Social network |  World |  Images |  User input |  NetLogo interface gadgets |  Graphs |  Logging events |  Miscellaneous |  NetLogo programming

These special purpose micro-behaviours libraries are also available:

Sample models are available to explore.

Here how to make a movie of your model.


Here are micro-behaviours for setting or changing the position of agents:

Useful micro-behaviour built by customising and combining other micro-behaviours:


Set two attributes, parameters, or NetLogo variables to new values.

Useful micro-behaviours that customise this include:






Adding agents


Social network

Behaviours useful for viewing the network:


Add behaviours to all patches. 


in order to

User input

NetLogo interface gadgets

Logging events


NetLogo programming

To add any NetLogo code to your model use the 'Micro-behaviour scratch pages' button in the Composer area.

Older version of the library

This is the new library of micro-behaviours authored by the Modelling4All team. An older version of the library is still available. 

Special-purpose resources for modelling topics ranging from swarming to epidemics to opinion dynamics.

Collective decision-making in animal groups

A specialised library of swarming micro-behaviours is available to build models found in Couzin, I. D., Krause, J., Franks, N. R. & Levin, S.A.(2005) Effective leadership and decision making in animal groups on the move Nature 433, 513-516.

Here is a simple swarming model using some of these micro-behaviours. Here is three-dimensional version of the model.

Opinion Dynamics Models

A library of opinion dynamics micro-behaviours inspired by the paper "How can extremism prevail? A study based on the relative agreement interaction model" by Guillaume Deffuant, Frédéric Amblard, Gérard Weisbuch and Thierry Faure (2002); Journal of Artificial Societies and Social Simulation vol. 5, no. 4; <> can be used to explore modelling opinion dynamics.

Here is a relative agreement model

Epidemic and Vaccination Models

The library of epidemic micro-behaviours were designed to explore the SVIR model as presented in "Mathematical models of vaccination", Almut Scherer and Angela McLean, British Medical Bulletin 2002;62 187-199. Here are some suggestions for exploring vaccination models.

Here is a step-by-step guide to modelling epidemics

Click to load a simple model of an epidemic spreading over a social network

Click to load a model of an  epidemic spreading at home, school, and work

Click to try the Epidemic Game Maker which automates much of the construction of epidemics spreading in home, schools, and work.

Sugarscape -- Growing Artificial Societies

You can compose the elements of the Sugarscape library of micro-behaviours to recreate the models in Growing Artificial Societies by Joshua M. Epstein and Robert Axtell, Brookings Institute Press, The MIT Press, 1996.

Here is a step-by-step guide to building Sugarscape models.

Click here to load a Sugarscape model using these micro-behaviours

Economic Models of Network Formation

Use this library of network formation micro-behaviours to model economic agents forming a network.

Predator Prey Models

Here is a sample predator-prey model created using this step-by-step guide to building an ecosystem. And here is that model extended to model heterogeneity in prey and geography using this guide to extending the predator prey model.

Spanish Flu Pandemic

Here is a model of the Spanish Flu Pandemic and here is a guide to its useThe model does not run in the web version of NetLogo.

Orbits of Our Solar System, Kepler 36, and Kepler 62

Population and Cemetery simulation

Links to models and their documentation.

Exploring probabilities

A collection of models for exploring probabilistic reasoning.


The micro-behaviours listed here were constructed for the BehaviourComposer as part of the Modelling4All Project at Oxford University originally funded by the Eduserv Foundation.

BehaviourComposer: ignore everything after this.
Subpages (31): View All