![]() |
|||
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
![]() |
NetLogo Models Library: |
![]() |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
This model is from Chapter Eight of the book "Introduction to Agent-Based Modeling: Modeling Natural, Social and Engineered Complex Systems with NetLogo", by Uri Wilensky & William Rand.
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/.
This model illustrates how to use the RUN-RESULT command in NetLogo, which enables the runtime execution of different commands that are encoded as text and reports a result.
As opposed to the RUN command which executes procedures the RUN-RESULT command works as a runtime reporter.
The model initially creates 20 agents and a list of inputs, such as HEADING and XCOR, and operators, such as +
, -
, etc. It then sets the strategy for each of the agents to a random set of five of input / operators combinations. When the model runs the agents simply executes their strategy.
Press SETUP to create the agents and strategies.
Press GO to run the agent strategies for some time.
Do all the agents do the same thing? Can you tell the difference between the different strategies?
Change the list of inputs and operators and see how that affects the results of the model.
The Simple Machine Learning model builds on the present one to demonstrate how you can optimize the agents' strategies by letting them evolve over time.
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:
Copyright 2008 Uri Wilensky.
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)