Models Library NetLogo provides a built-in models library of over 600 models across multiple disciplines, including
social science,
psychology,
mathematics,
physics,
biology,
economics,
game theory, and more. Many of those models are part of the
An introduction to agent-based modeling: Modeling natural, social and engineered complex systems with NetLogo textbook.
Wolf-Sheep Predation The
Wolf-Sheep Predation model is simple multiagent model in NetLogo, which is shown in the screenshot above. It models the population growth of a predator/prey system over time. It has the following characteristics: • There are two breeds of turtles, called
sheep and
wolves. • Sheep and wolves move randomly and have limited energy. • Wolves and sheep lose energy by moving. If a wolf or sheep has zero energy, it dies. • Sheep gain energy by eating grass. • Wolves gain energy by eating sheep. • Both wolves and sheep can reproduce, sharing energy with their offspring.
Traffic Grid The
Traffic Grid model in NetLogo simulates vehicular movement and traffic light control on a two‑dimensional city grid. Cars accelerate, decelerate, or stop depending on traffic lights, other vehicles, and a user‑defined speed limit. The model is designed to demonstrate urban traffic dynamics and gridlock formation while allowing users to experiment with traffic management strategies.
Features: • Cars accelerate until reaching the speed limit, slow down behind other cars, and stop for red lights. • Traffic lights can be controlled either: •
Manually – users select intersections and toggle lights directly. •
Automatically – lights switch phases each cycle based on a user‑defined schedule. • Global variables include: •
Grid size (number of horizontal and vertical streets) •
Number of cars in the simulation •
Speed limit and
ticks per cycle for light changes • Cars wrap around the world edges, enabling continuous traffic flow.
Plots and Outputs: •
Stopped Cars – number of cars stopped each tick •
Average Speed of Cars – tracks overall traffic flow efficiency •
Average Wait Time – measures delay per vehicle The model allows users to test scenarios such as removing lights entirely (causing frequent gridlock), optimizing light phases for maximum flow, and adjusting car density to explore congestion thresholds.
Modeling Commons The
Modeling Commons is a web-based platform for sharing and collaborating on NetLogo models, hosted at modelingcommons.org. Serving as the official NetLogo modeling forum, it allows users to upload, version, and manage NetLogo models, as well as discuss them and attach related files such as data or documentation. Users can search for models by name, author, tags, or content in the Info and Code tabs, and can create "child" variants of existing models to explore modifications while preserving lineage through a parent–child structure. The platform also supports group-based permissions to manage collaboration and access, and automatically grants coauthor status to anyone who uploads a new version of a model. The site is designed to work with all modern web browsers and is most extensively tested on Chrome, Firefox, and Safari. ==HubNet==