BBAE16502
Research Methods and Simulation
研究方法與仿真
Lecturer:
Helmond Io Hio Nam (姚曉南)
hnio@must.edu.mo
Week#2
More reading materials
NetLogo User Manual:
– https://ccl.northwestern.edu/netlogo/docs/
“Agent-Based Modelling for the Self Learner Tutorials Edition”
– on Moodle
“An Introduction to Agent-Based Modeling”
– https://mitpress.mit.edu/books/introduction-agent-based-modeling
Command Center
The Command Center is found in the Interface tab. It allows you to enter commands or directions to a model. Commands are instructions you can give to NetLogo’s agents: turtles, patches, links, and the observer.
Agent Monitor
color and pcolor
The color variable is a turtle variable,
while the pcolor variable is a patch variable.
Task#3 answer
Task#4 answer
Exercise with patches
ask patch 3 -4 [ set pcolor green
]
ask patches with [pxcor > 0] [ set pcolor green
]
ask patches with [(pxcor > 0) and (pycor > 0)] [ set pcolor green
]
Exercise with patches
ask patch 3 -4 [ set pcolor green
]
ask patches with [pxcor > 0] [ set pcolor green
]
ask patches with [(pxcor > 0) and (pycor > 0)] [ set pcolor green
]
if
ifelse