A simple modification of a NetLogo model.
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
A simple modification of a NetLogo model for the subject "Computación Social y Personalización" ("Social Computing and Personalisation") of the "Grado en Ciencia de Datos e Inteligencia Artificial" ("Degree in Data Science and Artificial Intelligence") of the Universidad Politécnica de Madrid (UPM).
It is a programmable multi-agent system modelling tool. It allows you to create interactive models and observe the life cycle of the agents based on the behaviours defined programmatically. It was created by Uri Wilensky (Northwestern University) in 1999. For more information, see https://ccl.northwestern.edu/netlogo/.
To run the example based on the NetLogo "Paths" model, the following is needed:
Once the software has been installed, it will be possible to load the "Paths" model from the tool's installation folder (). If you have decided to use the browser tool, you can access the model via the following link.
- NetLogo: the first step is to download the NetLogo tool or access it through its online tool. It is always recommended to use the desktop version as for some models the browser version does not work properly. On the other hand, when installing the desktop version you will have the models provided by the creators of the tool.
To install the desktop version of NetLogo you have to access the following link and choose the corresponding version for your operating system. The software is installed in a similar way to any other software.
It is important to pay attention to the installation folder, as it is in this folder where the models provided by the tool that we may need later will be stored.
To use the model available in this repository PathsModified.nlogo just open the tool and open the previously downloaded model on your computer.
The differences of the model in this repository in relation to the NetLogo Paths model are shown below:
- Define a new subset of agents of type "turtle" that refers to buildings of type "skyscrapers". These agents will have a larger size than the "buildings" agents and will be coloured blue.
- This new agent type shall be created in the same way as the "building" type agents, i.e. by clicking on the NetLogo world. However, whenever clicked, a "skyscraper" or "building" type building can be created; this will be decided randomly but the probability of "building" type agents being created will be higher than that of the "skyscraper".
- When there are at least two agents of type "skyscraper" and/or "building", the mobile agents will prioritise one of these types of agents as a destination. Although they will randomly decide whether to go to a "skyscraper" or a "building", the probability of going to a "skyscraper" will always be higher.
- The agents of type "buiding" and "skyscraper" shall establish links between them by means of the agents of type "link". Only agents of these types that are closest to each other shall be linked.
- Finally, a new property is defined for the "skyscraper" and "building" agent types. This property refers to their popularity, which will progressively decrease until it reaches zero. At that point the agent will die and disappear from the NetLogo world.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the Creative Commons Zero v1.0 Universal License. See LICENSE
for more information.
Diego M. Jiménez Bravo - @dmjimenezbravo - [email protected]
Project Link: https://github.com/dmjimenezbravo/NetLogoExampleModification
- Grider, R. and Wilensky, U. (2015). NetLogo Paths model. http://ccl.northwestern.edu/netlogo/models/Paths. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
- Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.