NetLogo 6.0.1 User Manual Net Logo
User Manual:
Open the PDF directly: View PDF
Page Count: 434 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Table of Contents
- What is NetLogo?
- Copyright and License Information
- What's New?
- Version 6.0.1 (March 2017)
- Version 6.0 (December 2016)
- Version 5.3.1 (February 2016)
- Version 5.3 (December 2015)
- Version 5.2.1 (September 2015)
- Version 5.2.0 (April 2015)
- Version 5.1.0 (July 2014)
- Version 5.0.4 (March 2013)
- Version 5.0 (February 2012)
- Version 4.1.3 (April 2011)
- Version 4.1 (December 2009)
- Version 4.0 (September 2007)
- Version 3.1 (April 2006)
- Version 3.0 (September 2005)
- Version 2.1 (December 2004)
- Version 2.0.2 (August 2004)
- Version 2.0 (December 2003)
- Version 1.3 (June 2003)
- Version 1.2 (March 2003)
- Version 1.1 (July 2002)
- Version 1.0 (April 2002)
- System Requirements
- Contacting Us
- Sample Model: Party
- Tutorial #1: Models
- Tutorial #2: Commands
- Tutorial #3: Procedures
- Interface Guide
- Interface Tab Guide
- Info Tab
- Code Tab Guide
- Programming Guide
- Transition Guide
- Changes for NetLogo 6.0
- Tasks replaced by Anonymous Procedures
- Link reporters overhauled to be more consistent and flexible
- Removal of Applets
- Changes to the NetLogo User Interface
- Nobody Not Permitted as a Chooser Value
- Breeds must have singular and plural names
- Removal of "Movie" Prims
- Improved Name Collision Detection
- Removal of hubnet-set-client-interface
- Improved & Updated Extensions API
- Add range primitive
- Changes for NetLogo 5.2
- Changes for NetLogo 5.0
- Changes for NetLogo 4.1
- Changes for NetLogo 4.0
- Changes for NetLogo 3.1
- Changes for NetLogo 6.0
- Shapes Editor Guide
- BehaviorSpace Guide
- System Dynamics Guide
- HubNet Guide
- Understanding HubNet
- Computer HubNet
- Activities
- Clients
- Requirements
- Starting an activity
- HubNet Control Center
- Troubleshooting
- I started a HubNet activity, but when participants open a HubNet Client, my activity isn't listed.
- When a participant tries to connect to an activity, nothing happens (the client appears to hang or gives an error saying that no server was found).
- The view on the HubNet client is gray.
- There is no view on the HubNet client.
- I can't quit a HubNet client.
- My computer went to sleep while running a HubNet activity. When I woke the computer up, I got an error and HubNet wouldn't work anymore.
- My problem is not addressed on this page.
- Known Limitations
- Teacher workshops
- HubNet Authoring Guide
- Running HubNet in headless mode
- Getting help
- HubNet Authoring Guide
- Modeling Commons Guide
- Logging
- Controlling Guide
- Mathematica Link
- NetLogo 3D
- Introduction
- Tutorial
- Dictionary
- Commands and Reporters
- Built-In Variables
- Primitives
- at-points4.1
- distancexyz4.1 distancexyz-nowrap4.1
- dz4.1
- face facexyz4.1
- left4.1
- link-pitch4.1.2
- load-shapes-3d4.1
- max-pzcor4.1 min-pzcor4.1
- neighbors4.1 neighbors64.1
- orbit-down4.1 orbit-left4.1 orbit-right4.1 orbit-up4.1
- __oxcor __oycor __ozcor
- patch4.1
- patch-at4.1
- patch-at-heading-pitch-and-distance4.1
- pitch
- pzcor
- random-pzcor4.1
- random-zcor4.1
- right4.1
- roll
- roll-left4.1
- roll-right4.1
- setxyz4.1
- tilt-down4.1 tilt-up4.1
- towards-pitch4.1 towards-pitch-nowrap4.1
- towards-pitch-xyz4.1 towards-pitch-xyz-nowrap4.1
- turtles-at4.1 <breeds>-at
- world-depth4.1
- zcor
- zoom4.1
- Extensions Guide
- NetLogo Arduino Extension
- NetLogo Array Extension
- NetLogo Bitmap Extension
- NetLogo Cf Extension
- NetLogo Csv Extension
- NetLogo Gis Extension
- Using
- Primitives
- RasterDataset Primitives
- Dataset Primitives
- VectorDataset Primitives
- Coordinate System Primitives
- Drawing Primitives
- gis:set-transformation
- gis:set-transformation-ds
- gis:set-world-envelope
- gis:set-world-envelope-ds
- gis:world-envelope
- gis:envelope-of
- gis:envelope-union-of
- gis:load-coordinate-system
- gis:set-coordinate-system
- gis:load-dataset
- gis:store-dataset
- gis:type-of
- gis:patch-dataset
- gis:turtle-dataset
- gis:link-dataset
- gis:shape-type-of
- gis:property-names
- gis:feature-list-of
- gis:vertex-lists-of
- gis:centroid-of
- gis:location-of
- gis:property-value
- gis:find-features
- gis:find-one-feature
- gis:find-less-than
- gis:find-greater-than
- gis:find-range
- gis:property-minimum
- gis:property-maximum
- gis:apply-coverage
- gis:coverage-minimum-threshold
- gis:set-coverage-minimum-threshold
- gis:coverage-maximum-threshold
- gis:set-coverage-maximum-threshold
- gis:intersects?
- gis:contains?
- gis:contained-by?
- gis:have-relationship?
- gis:relationship-of
- gis:intersecting
- gis:width-of
- gis:height-of
- gis:raster-value
- gis:set-raster-value
- gis:minimum-of
- gis:maximum-of
- gis:sampling-method-of
- gis:set-sampling-method
- gis:raster-sample
- gis:raster-world-envelope
- gis:create-raster
- gis:resample
- gis:convolve
- gis:apply-raster
- gis:drawing-color
- gis:set-drawing-color
- gis:draw
- gis:fill
- gis:paint
- gis:import-wms-drawing
- NetLogo Gogo Extension
- Usage
- Changes
- Primitives
- Other Outputs
- Utilities
- General
- Sensors
- Outputs and Servos
- gogo:primitives
- gogo:howmany-gogos
- gogo:talk-to-output-ports
- gogo:set-output-port-power
- gogo:output-port-on
- gogo:output-port-off
- gogo:output-port-clockwise
- gogo:output-port-counterclockwise
- gogo:set-servo
- gogo:led
- gogo:beep
- gogo:read-sensors
- gogo:read-sensor
- gogo:read-all
- gogo:send-bytes
- NetLogo Ls Extension
- LevelSpace fundamentals
- Citing LevelSpace in Research
- Primitives
- NetLogo Matrix Extension
- Using
- Primitives
- Matrix creation and conversion to/from lists
- Advanced features
- Matrix data retrieval and manipulation
- Math operations
- matrix:make-constant
- matrix:make-identity
- matrix:from-row-list
- matrix:from-column-list
- matrix:to-row-list
- matrix:to-column-list
- matrix:copy
- matrix:pretty-print-text
- matrix:get
- matrix:get-row
- matrix:get-column
- matrix:set
- matrix:set-row
- matrix:set-column
- matrix:swap-rows
- matrix:swap-columns
- matrix:set-and-report
- matrix:dimensions
- matrix:submatrix
- matrix:map
- matrix:times-scalar
- matrix:times
- matrix:*
- matrix:times-element-wise
- matrix:plus-scalar
- matrix:plus
- matrix:+
- matrix:minus
- matrix:-
- matrix:inverse
- matrix:transpose
- matrix:real-eigenvalues
- matrix:imaginary-eigenvalues
- matrix:eigenvectors
- matrix:det
- matrix:rank
- matrix:trace
- matrix:solve
- matrix:forecast-linear-growth
- matrix:forecast-compound-growth
- matrix:forecast-continuous-growth
- matrix:regress
- NetLogo Nw Extension
- Usage
- A note regarding floating point calculations
- Performance
- Primitives
- Generators
- Path and Distance
- Clusterer/Community Detection
- Context Management
- Import and Export
- Centrality Measures
- Clustering Measures
- nw:set-context
- nw:get-context
- nw:with-context
- nw:turtles-in-radius
- nw:turtles-in-reverse-radius
- nw:distance-to
- nw:weighted-distance-to
- nw:path-to
- nw:turtles-on-path-to
- nw:weighted-path-to
- nw:turtles-on-weighted-path-to
- nw:mean-path-length
- nw:mean-weighted-path-length
- nw:betweenness-centrality
- nw:eigenvector-centrality
- nw:page-rank
- nw:closeness-centrality
- nw:weighted-closeness-centrality
- nw:clustering-coefficient
- nw:modularity
- nw:bicomponent-clusters
- nw:weak-component-clusters
- nw:louvain-communities
- nw:maximal-cliques
- nw:biggest-maximal-cliques
- nw:generate-preferential-attachment
- nw:generate-random
- nw:generate-watts-strogatz
- nw:generate-small-world
- nw:generate-lattice-2d
- nw:generate-ring
- nw:generate-star
- nw:generate-wheel
- nw:save-matrix
- nw:load-matrix
- nw:save-graphml
- nw:load-graphml
- nw:load
- nw:save
- NetLogo Palette Extension
- NetLogo Profiler Extension
- NetLogo R Extension
- NetLogo Rnd Extension
- NetLogo Sound Extension
- NetLogo Table Extension
- NetLogo Vid Extension
- Concepts
- Primitives
- vid:camera-names
- vid:camera-open
- vid:camera-select
- vid:movie-select
- vid:movie-open
- vid:movie-open-remote
- vid:close
- vid:start
- vid:stop
- vid:status
- vid:capture-image
- vid:set-time
- vid:show-player
- vid:hide-player
- vid:record-view
- vid:record-interface
- vid:record-source
- vid:recorder-status
- vid:start-recorder
- vid:save-recording
- NetLogo View2.5d Extension
- How to Use
- Primitives
- view2.5d:patch-view
- view2.5d:decorate-patch-view
- view2.5d:undecorate-patch-view
- view2.5d:turtle-view
- view2.5d:update-all-patch-views
- view2.5d:update-patch-view
- view2.5d:update-turtle-view
- view2.5d:get-z-scale
- view2.5d:set-z-scale
- view2.5d:set-turtle-stem-thickness
- view2.5d:get-observer-angles
- view2.5d:set-observer-angles
- view2.5d:get-observer-xy-focus
- view2.5d:set-observer-xy-focus
- view2.5d:get-observer-distance
- view2.5d:set-observer-distance
- view2.5d:remove-patch-view
- view2.5d:remove-turtle-view
- view2.5d:remove-all-patch-views
- view2.5d:remove-all-turtle-views
- view2.5d:count-windows
- FAQ (Frequently Asked Questions)
- Questions
- General
- Why is it called NetLogo?
- How do I cite NetLogo or HubNet in a publication?
- How do I cite a model from the Models Library in a publication?
- Where and when was NetLogo created?
- What programming language was NetLogo written in?
- What's the relationship between StarLogo and NetLogo?
- Under what license is NetLogo released? Is the source code available?
- Do you offer any workshops or other training opportunities for NetLogo?
- Are there any NetLogo textbooks?
- Is NetLogo available in other languages besides English?
- Is NetLogo compiled or interpreted?
- Has anyone built a model of <x>?
- Are NetLogo models runs scientifically reproducible?
- Will NetLogo and NetLogo 3D remain separate?
- Can I run NetLogo on my phone or tablet?
- Downloading
- Running
- Can I run NetLogo from a CD, a network drive, or a USB drive?
- Why is NetLogo so much slower when I unplug my Windows laptop?
- Why does NetLogo bundle Java?
- How come NetLogo won't start up on my Linux machine?
- When I try to install NetLogo on Windows, I see "Windows protected your PC"
- When I try to start NetLogo on Windows I get an error "The JVM could not be started". Help!
- NetLogo won't start on Mac OS Sierra (or later)
- NetLogo won't start on Windows or crashes suddenly on Mac OS Sierra
- Can I run NetLogo from the command line, without the GUI?
- Does NetLogo take advantage of multiple processors?
- Can I distribute NetLogo model runs across a cluster or grid of computers?
- Is there any way to recover lost work if NetLogo crashes or freezes?
- Usage
- When I move the speed slider all the way to the right, why does my model seem to stop?
- Can I use the mouse to "paint" in the view?
- How big can my model be? How many turtles, patches, procedures, buttons, and so on can my model contain?
- Can I use GIS data in NetLogo?
- My model runs slowly. How can I speed it up?
- Can I have more than one model open at a time?
- Can I change the choices in a chooser on the fly?
- Can I divide the code for my model up into several files?
- Programming
- How does the NetLogo language differ from other Logos?
- How come my model from an earlier NetLogo doesn't work right?
- How do I take the negative of a number?
- My turtle moved forward 1, but it's still on the same patch. Why?
- How do I keep my turtles on patch centers?
- patch-ahead 1 is reporting the same patch my turtle is already standing on. Why?
- How do I give my turtles "vision"?
- Can agents sense what's in the drawing layer?
- I'm getting numbers like 0.10000000004 and 0.799999999999 instead of 0.1 and 0.8. Why?
- The documentation says that random-float 1 might return 0 but will never return 1. What if I want 1 to be included?
- How can I keep two turtles from occupying the same patch?
- How can I find out if a turtle is dead?
- Does NetLogo have arrays?
- Does NetLogo have hash tables or associative arrays?
- How can I use different patch "neighborhoods" (circular, Von Neumann, Moore, etc.)?
- How can I convert an agentset to a list of agents, or vice versa?
- How do I stop foreach?
- I'm trying to make a list. Why do I keep getting the error "Expected a constant"?
- BehaviorSpace
- NetLogo 3D
- Extensions
- NetLogo Dictionary
- Categories
- Built-In Variables
- Keywords
- Constants
- A
- B
- C
- can-move?3.1
- carefully2.1
- ceiling1.0
- clear-all1.0 ca1.0
- clear-all-plots1.0
- clear-drawing3.0 cd3.0
- clear-globals5.2
- clear-links4.0
- clear-output1.0
- clear-patches1.0 cp1.0
- clear-plot
- clear-ticks5.0
- clear-turtles1.0 ct1.0
- color
- cos1.0
- count1.0
- create-ordered-turtles4.0 cro4.0
- create-<breed>-to create-<breeds>-to create-<breed>-from create-<breeds>-from create-<breed>-with create-<breeds>-with create-link-to4.0 create-links-to4.0 create-link-from4.0 create-links-from4.0 create-link-with4.0 create-links-with4.0
- create-turtles1.0 crt1.0
- create-temporary-plot-pen1.1
- D
- E
- F
- G
- H
- hatch1.0
- heading
- hidden?
- hide-link4.0
- hide-turtle1.0 ht1.0
- histogram1.0
- home1.0
- hsb1.0
- hubnet-broadcast1.1
- hubnet-broadcast-clear-output4.1
- hubnet-broadcast-message4.1
- hubnet-clear-override4.1 hubnet-clear-overrides4.1
- hubnet-clients-list5.0
- hubnet-enter-message?1.2.1
- hubnet-exit-message?1.2.1
- hubnet-fetch-message1.1
- hubnet-kick-client5.0
- hubnet-kick-all-clients5.0
- hubnet-message1.1
- hubnet-message-source1.1
- hubnet-message-tag1.1
- hubnet-message-waiting?1.1
- hubnet-reset1.1
- hubnet-reset-perspective4.1
- hubnet-send1.1
- hubnet-send-clear-output4.1
- hubnet-send-follow4.1
- hubnet-send-message4.1
- hubnet-send-override4.1
- hubnet-send-watch4.1
- I
- if1.0
- ifelse1.0
- ifelse-value2.0
- import-drawing3.0
- import-pcolors3.0
- import-pcolors-rgb4.0
- import-world1.0
- in-cone3.0
- in-<breed>-neighbor? in-link-neighbor?4.0
- in-<breed>-neighbors in-link-neighbors4.0
- in-<breed>-from in-link-from4.0
- __includes4.0
- in-radius1.0
- inspect1.1
- int1.0
- is-agent?1.2.1 is-agentset?1.2.1 is-anonymous-command?6.0 is-anonymous-reporter?6.0 is-boolean?1.2.1 is-directed-link?4.0 is-link?4.0 is-link-set?4.0 is-list?1.0 is-number?1.2.1 is-patch?1.2.1 is-patch-set?4.0 is-string?1.0 is-turtle?1.2.1 is-turtle-set?4.0 is-undirected-link?4.0
- item1.0
- J
- L
- M
- map1.3
- max1.0
- max-n-of4.0
- max-one-of1.0
- max-pxcor3.1 max-pycor3.1
- mean1.0
- median1.0
- member?1.0
- min1.0
- min-n-of4.0
- min-one-of1.0
- min-pxcor3.1 min-pycor3.1
- mod1.0
- modes2.0
- mouse-down?1.0
- mouse-inside?3.0
- mouse-xcor1.0 mouse-ycor1.0
- move-to4.0
- my-<breeds> my-links4.0
- my-in-<breeds> my-in-links4.0
- my-out-<breeds> my-out-links4.0
- myself1.0
- N
- O
- P
- patch1.0
- patch-ahead2.0
- patch-at1.0
- patch-at-heading-and-distance2.0
- patch-here1.0
- patch-left-and-ahead2.0 patch-right-and-ahead2.0
- patch-set4.0
- patch-size4.1
- patches1.0
- patches-own
- pcolor
- pen-down1.0 pd1.0 pen-erase3.0 pe3.0 pen-up1.0 pu1.0
- pen-mode
- pen-size
- plabel
- plabel-color
- plot1.0
- plot-name1.0
- plot-pen-exists?4.0
- plot-pen-down1.0 plot-pen-up1.0
- plot-pen-reset1.0
- plotxy1.0
- plot-x-min1.0 plot-x-max1.0 plot-y-min1.0 plot-y-max1.0
- position1.0
- precision1.0
- print1.0
- pxcor pycor
- R
- random1.0
- random-float2.0
- random-exponential1.2.1 random-gamma2.0 random-normal1.2.1 random-poisson1.2.1
- random-pxcor3.1 random-pycor3.1
- random-seed1.0
- random-xcor3.1 random-ycor3.1
- range6.0
- read-from-string1.1
- reduce1.3
- remainder1.2.1
- remove1.0
- remove-duplicates1.0
- remove-item2.0
- repeat1.0
- replace-item1.0
- report1.0
- reset-perspective3.0 rp3.0
- reset-ticks4.0
- reset-timer1.0
- resize-world4.1
- reverse1.0
- rgb1.0
- ride3.0
- ride-me3.0
- right1.0 rt1.0
- round1.0
- run1.3 runresult1.3
- S
- scale-color1.0
- self1.3
- ; (semicolon)
- sentence1.0 se1.0
- set1.0
- set-current-directory2.0
- set-current-plot1.0
- set-current-plot-pen1.0
- set-default-shape1.0
- set-histogram-num-bars1.0
- __set-line-thickness
- set-patch-size4.1
- set-plot-pen-color1.0
- set-plot-pen-interval1.0
- set-plot-pen-mode1.0
- setup-plots5.0
- set-plot-x-range1.0 set-plot-y-range1.0
- setxy1.0
- shade-of?1.0
- shape
- shapes2.1
- show1.0
- show-turtle1.0 st1.0
- show-link4.0
- shuffle2.0
- sin1.0
- size
- sort1.0
- sort-by1.3
- sort-on5.0
- sprout1.0
- sqrt1.0
- stamp1.0
- stamp-erase3.1
- standard-deviation1.0
- startup
- stop1.0
- stop-inspecting5.2
- stop-inspecting-dead-agents5.2
- subject3.0
- sublist2.1 substring1.0
- subtract-headings2.1
- sum1.0
- T
- U
- V
- W
- X
- Y
- ->