NetLogo Documentation

website·Indexed 34 days ago

https://docs.netlogo.org/

Documentation for the NetLogo programming language, including a comprehensive programming guide and detailed references for extensions such as view2.5d, vid, nw (network), palette, profiler, matrix, and table.

Tokens
187.8K
Snippets
1.1K
Records
1.6K
Agent score
67%

What's inside NetLogo

  1. Overview of NetLogo BehaviorSpace

    BehaviorSpace is an integrated tool in NetLogo used for 'parameter sweeping'. It runs a model multiple times, systematically varying settings (such as sliders, switches, choosers, and global variables) and recording the results of each run. This allows developers to explore the model's parameter space to identify which combinations of settings produce specific behaviors. If the host computer has multiple processor cores, BehaviorSpace can execute model runs in parallel to increase efficiency, though this increases memory usage.
  2. Overview of NetLogoLab and GoGo Board

    NetLogoLab is an infrastructure that connects NetLogo to the physical world for robotics, interactive art, and scientific investigation. It primarily utilizes the GoGo Board, an open-source, low-cost interface board. The GoGo Board supports up to 8 sensors (e.g., temperature, light, pressure) and 4 output devices (e.g., motors, LEDs, relays), along with connectors for add-on modules like Bluetooth, GPS, and real-time clocks.
  3. Overview of NetLogo Bundled Resources

    Bundled resources allow developers to store the contents of external files directly within the NetLogo model file. This eliminates the need to distribute separate data or asset files alongside the model, ensuring that all necessary dependencies are contained in a single file.
  4. Overview of NetLogo for agent-based modeling

    NetLogo is an open-source, programmable modeling environment used to simulate natural and social phenomena. It is specifically designed for agent-based modeling (ABM), allowing users to define rules for hundreds or thousands of independent agents to explore how micro-level behaviors create macro-level patterns. It runs on the Java Virtual Machine (JVM), making it cross-platform (Windows, Mac, Linux), and can be operated as a desktop application or via the command line.
  5. Overview of NetLogo GIS extension capabilities

    The NetLogo GIS extension enables the loading and interaction of vector and raster GIS data.

    Supported Formats:

    • Vector Data: ESRI Shapefiles (.shp) and GeoJSON (.geojson). Supports points, lines, and polygons.
    • Raster Data: ESRI ASCII Grid files (.asc or .grd).

    Core Workflow:

    1. Define a transformation between GIS data space and NetLogo world space.
    2. (Optional) Define a projection for the GIS space (requires .prj files for automatic re-projection).
    3. Load datasets using gis:load-dataset.
    4. Perform spatial analysis or spawn agents based on the data.
  6. Overview of NetLogoLab Hybrid Modeling

    NetLogoLab is a research framework designed to investigate the connections between computer simulations and the physical world. It utilizes "hybrid modeling," which merges multi-agent-based simulations with physical manipulatives and electronic sensing. The goal is to allow students to build physical counterparts to their computer models, run them in tandem via an analog-to-digital interface, and debug their computational models based on real-world sensor data.
  7. Overview of the NetLogo Modeling Commons

    The Modeling Commons is a free, web-based collaboration system for NetLogo modelers. It allows users to share, download, modify, create variations of, comment on, and run NetLogo models. Models can be kept public or private (restricted to the user or a specific group). The service is sponsored by the CCL, the group that develops NetLogo.
  8. Overview of the NetLogo-Mathematica link

    The NetLogo-Mathematica link provides a real-time, interpreted connection between NetLogo and Mathematica. It allows users to load models, execute commands, and report data back to Mathematica for advanced statistical analysis, data visualization, and document creation. Unlike the Java-based Controlling API, this link is interpreted, making it suitable for rapid experiment design and debugging.
  9. Overview of Rnd extension weighted selection

    The Rnd extension implements roulette wheel selection, where the probability of an item being selected is proportional to its weight. The choice of primitive depends on the source (AgentSet vs List) and whether multiple items are needed with or without repeats.
    GoalFrom an AgentSetFrom a List
    One itemrnd:weighted-one-ofrnd:weighted-one-of-list
    Many items, without repeatsrnd:weighted-n-ofrnd:weighted-n-of-list
    Many items, with repeatsrnd:weighted-n-of-with-repeatsrnd:weighted-n-of-list-with-repeats
  10. Overview of HubNet participatory simulations

    HubNet is a technology that extends NetLogo to allow participatory simulations. In these simulations, a whole class interacts with a model in real-time; each student controls a specific part of the system using a networked device (client), while the teacher manages the simulation via the NetLogo application (server).
  11. Overview of the NetLogo System Dynamics Modeler

    The System Dynamics Modeler is a tool for creating aggregate-level models in NetLogo. Unlike agent-based modeling, which focuses on individual agent behaviors and emergent patterns, System Dynamics focuses on how populations (stocks) behave as a whole and how they influence one another. The Modeler allows users to draw a visual diagram of these relationships, which it then translates into NetLogo global variables, procedures, and reporters.
  12. Understand the NetLogo 3D coordinate system

    NetLogo 3D extends the 2D world by adding a z-axis. Patches are cubes rather than squares. To address a patch or a turtle's position, three Cartesian coordinates are used: x, y, and z.

    • Patches use pxcor, pycor, and pzcor.
    • Turtles use xcor, ycor, and zcor.
    • The total number of patches is calculated as: world-width * world-height * world-depth.