NetLogo banner

Home
Download
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo Models Library:
IABM Textbook/chapter 5

(back to the library)

Agentset Ordering

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

ACKNOWLEDGMENT

This model is from Chapter Five of the book "Introduction to Agent-Based Modeling: Modeling Natural, Social and Engineered Complex Systems with NetLogo", by Uri Wilensky & William Rand.

  • Wilensky, U. & Rand, W. (2015). Introduction to Agent-Based Modeling: Modeling Natural, Social and Engineered Complex Systems with NetLogo. Cambridge, MA. MIT Press.

This model is in the IABM Textbook folder of the NetLogo Models Library. The model, as well as any updates to the model, can also be found on the textbook website: http://www.intro-to-abm.com/.

WHAT IS IT?

NetLogo has two different kinds of agentsets: constructed agentsets, that act as a 'snapshot' of a particular set of turtles at a particular point in time, and special agentsets that always contain the most updated list of turtles.

This model explores the order with which constructed agentsets follow their commands. In particular, this model explores how an agentset constructed by collecting agents with a certain property do not automatically update even if the properties of the agents change during a run of the model. The agentset continues to consist of the agents that had that property at the time of agentset construction. In other words, even though you ASK agents that have a particular criterion to take an action, not all agents after the ASK that satisfy that criterion will necessarily take that action, since some of the agent properties may have changed during the ASK execution.

HOW IT WORKS

SETUP creates a world of 100 blue turtles with random sizes between 0.0 and 2.0.

GO constructs an agentset of all turtles with size < 1.0, and asks them first to ask a big turtle to decrease its size, and then to turn red.

HOW TO USE IT

Press SETUP to create the turtles. Then press GO to run the model for one tick. The RED TURTLES monitor shows the number of red turtles. The SMALL TURTLES monitor shows the number of turtles with size < 1.0.

THINGS TO NOTICE

The number of red turtles is not the same as the number of turtles with size less than 1.0. Even though all the turtles with size < 1.0 were asked to turn red. Why is this?

HOW TO CITE

This model is part of the textbook, “Introduction to Agent-Based Modeling: Modeling Natural, Social and Engineered Complex Systems with NetLogo.”

If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.

For the model itself:

Please cite the NetLogo software as:

Please cite the textbook as:

  • Wilensky, U. & Rand, W. (2015). Introduction to Agent-Based Modeling: Modeling Natural, Social and Engineered Complex Systems with NetLogo. Cambridge, MA. MIT Press.

COPYRIGHT AND LICENSE

Copyright 2008 Uri Wilensky.

CC BY-NC-SA 3.0

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.

(back to the NetLogo Models Library)