Biology or Social studies: individual vs. collective movement Day 11 COLQ 201 Multiagent modeling Harry Howard Tulane University.

Download Report

Transcript Biology or Social studies: individual vs. collective movement Day 11 COLQ 201 Multiagent modeling Harry Howard Tulane University.

Biology or Social
studies: individual vs.
collective movement
Day 11
COLQ 201
Multiagent modeling
Harry Howard
Tulane University
Course organization
 http://www.tulane.edu/~howard/Multiagent/
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
2
Independence vs.
mimetism
online
How to fix the first error
 What does output-write do?
 When in doubt read the instructions:
 http://ccl.northwestern.edu/netlogo/docs/
 Programming Guide > Output
 Find other examples of output-write in the
program.
 What should output-write "sim "
simulations do?
 Solution: output-write simulations
 Add a comment that you fixed it.
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
4
How to fix the 2nd error
 What should your first step be?
 The observer is the aspect of the program that executes a
procedure when nothing else does.
 Look at the procedures dependent and independent.
 What executes them?
 The macaques are asked to.
 Solution: ask the macaques to check mimetism:
ask macaques [
ifelse mimetism?
[dependent]
[independent]
]
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
5
Look at the interface
 Where is the go button?
 What does mimetism mean?
 Run the simulation with and without
mimetism. What is the difference?
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
6
Programming NetLogo
Play with this model
 Can you change "simulate" to "run"?
 Can you make the monkey image bigger?
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
8
Starting form scratch
 http://ccl.northwestern.edu/netlogo/docs/
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
9
Next time
 Q3
 Biology: communication
Quorum sensing
5-Feb-2010
COLQ 201, Prof. Howard, Tulane University
10