GEOG 490/590 SPATIAL MODELING SPRING 2015 ASSIGNMENT 3: PATTERN-ORIENTED MODELING WITH AGENTS

Similar documents
Lab 5: Bumper Turtles

Lab 6: Energizer Turtles

Lab 7: Experimenting with Life and Death

COYOTES and FOXES. Final Report. - Chantilly Fulgham, - Gracie Sanchez,

Half-Lives of Antibiotics

StarLogo Complete Command List (Edited and reformatted by Nicholas Gessler, 6 June 2001.)

CS108L Computer Science for All Module 7: Algorithms

Lab 10: Color Sort Turtles not yet sorted by color

5 State of the Turtles

Relationship Between Eye Color and Success in Anatomy. Sam Holladay IB Math Studies Mr. Saputo 4/3/15

Name: Date: Algebra I - Unit 3, Lesson 4: Writing and Graphing Inequalities to Represent Constraints

Reference Guide Playful Invention Company

Code Documentation MFA (Movable Finite Automata) Eric Klemchak CS391/CS392

Virtual Dog Program in Scratch. By Phil code-it.co.uk

1 Turtle Graphics Concepts

Math 290: L A TEXSeminar Week 10

Turtle Ballet: Simulating Parallel Turtles in a Nonparallel LOGO Version. Erich Neuwirth

Finch Robot: snap level 4

Scratch Jigsaw Method Feelings and Variables

Building Concepts: Mean as Fair Share

SLITHER DOWN THE SNAKE WALK Red next to black? Red next to yellow? Figure out my patterns, you fine fellow.

In this project you will use loops to create a racing turtle game and draw a race track.

Recursion with Turtles

Grade 5 English Language Arts

Jumpers Judges Guide

Code, Draw, and 3D-Print with Turtle Tina

Solving Problems Part 2 - Addition and Subtraction

Writing Simple Procedures Drawing a Pentagon Copying a Procedure Commanding PenUp and PenDown Drawing a Broken Line...

Econometric Analysis Dr. Sobel

Performance Task: Lizards, Lizards, Everywhere!

Getting Started. Instruction Manual

Use of Agent Based Modeling in an Ecological Conservation Context

Monarchs: Metamorphosis, Migration, Mimicry and More

Appendix from T. J. Ord and J. A. Stamps, Species Identity Cues in Animal Communication

Cane toads and Australian snakes

Integer Operations Long-Term Memory Review Grade 7 Review 1

Call of the Wild. Investigating Predator/Prey Relationships

Life Under Your Feet: Field Research on Box Turtles

GARNET STATIC SHOCK BARK COLLAR

Mastitis Reports in Dairy Comp 305

Hello Scratch! by Gabriel Ford, Sadie Ford, and Melissa Ford. Sample Chapter 3. Copyright 2018 Manning Publications

Kansas Department of Transportation DISTRICT 6. Project(s): Max: Min:

The Cat Fanciers Association, Inc BREED COUNCIL POLL TURKISH ANGORA

HerdMASTER 4 Tip Sheet CREATING ANIMALS AND SIRES

Sketch Out the Design

Elite Outdoor Bark Control

Coding with Scratch - First Steps

A SPATIAL ANALYSIS OF SEA TURTLE AND HUMAN INTERACTION IN KAHALU U BAY, HI. By Nathan D. Stewart

SYTLE FORMAL : The Online Dog Trainer In-Depth Review

Non-fiction: Sample Food Chain. Sample Food Chain. eaten by. created for. after death, eaten by ReadWorks, Inc. All rights reserved.

Fractal. Fractals. L- Systems 1/17/12

TESTING THE IDEAL FREE DISTRIBUTION: FEEDING EXPIREMENTS WITH TURTLES

Do the traits of organisms provide evidence for evolution?

LRRB Local Operational Research Assistance Program (OPERA) for Local Transportation Groups Field Report

Lesson 1.1 Assignment

Andy Hartman Director of Agility. August, Dear Agility Judges:

King Fahd University of Petroleum & Minerals College of Industrial Management

Grade 5, Prompt for Opinion Writing Common Core Standard W.CCR.1

Biology Meets Math. Predator-Prey Relationships in Belowground Ecosystems. US Department of Homeland Security

Maze Game Maker Challenges. The Grid Coordinates

USING FARMAX LITE. Upper navigation pane showing objects. Lower navigation pane showing tasks to be performed on objects

Homemade Squirrel Repellent Effectively Alters Natural Foraging Behaviors

Workbook. Version 3. Created by G. Mullin and D. Carty

b. vulnerablebreeds.csv Statistics on vulnerable breeds for the years 2003 through 2015 [1].

The Ecology of Lyme Disease 1

genotype: A A genotype: A B genotype: B B

Grade 4 Science Practice Test Answer Key

Visual and Instrumental Evaluation of Mottling and Striping

Guidance Notes on the Antimicrobial Companion Audit Tool for the Antimicrobial Prescribing Quality Indicators 2017/18

LAB. NATURAL SELECTION

What is the right approach to tackle the illegal consumption and trade of marine turtle products in Cape Verde?

Upgrade KIT IV Operation Manual

GARNET STATIC SHOCK BARK COLLAR

Vigilance Behaviour in Barnacle Geese

A Guide to the TurtleGraphics Package for R

ORANGE PUBLIC SCHOOLS OFFICE OF CURRICULUM AND INSTRUCTION OFFICE OF MATHEMATICS. GRADE 5 MATHEMATICS Pre - Assessment

NATURAL SELECTION SIMULATION

CAPABILITIES AND RESTRICTIONS OF ORTHOPHOTO PROCUCTION SYSTEMS FOR TERRESTRIAL ARCHAEOLOGICAL SURVEYS

Homework Case Study Update #3

Overview of Online Record Keeping

Component 2 - Biology: Environment, evolution and inheritance

Understanding the App. Instruction Manual

The City School. Learn Create Program

Algebra 3 SAILS. Pacing Guide to make an A in the course = equivalent to 21 ACT math sub-score: SAILS Pacing for Traditional Schedule Module 1

TURTLES DEMONSTRATE THE IDEAL FREE DISTRIBUTION BY DISTRIBUTING TO MAXIMIZE FOOD CONSUMPTION

Applied Information and Communication Technology. Unit 3: The Knowledge Worker January 2010 Time: 2 hours 30 minutes

Grade 2 English Language Arts

YELLOW VIBRATION BARK COLLAR

Grade 3, Prompt for Opinion Writing

Scratch Lesson Plan. Part One: Structure. Part Two: Movement

Representation, Visualization and Querying of Sea Turtle Migrations Using the MLPQ Constraint Database System

Probably Not! A c t i v i t y 11. Objective. Materials

Innovative technology

What is the average time needed to train a dog using a pet containment system?

Are my trawl wires marked correctly? Is my trawl spread optimally? Is the trawl on bottom?

Generalization by George Hickox

Rapid City, South Dakota Waterfowl Management Plan March 25, 2009

Miniature American Shepherd (standard effective 06/27/2012) Breed Test

Status and Management of Amphibians on Montana Rangelands

DragonflyTV: GPS Activity 14

Transcription:

GEOG 490/590 SPATIAL MODELING SPRING 2015 ASSIGNMENT 3: PATTERN-ORIENTED MODELING WITH AGENTS Objective: To determine a process that produces a particular spatial pattern. Description: An ecologist studying the movement patterns of two species (A and B) is interested to know what underlying processes are driving observable locational patterns. Below are descriptions of the observed spatial and temporal patterns of both species. You are responsible for evaluating three models of movement to determine if they describe the observed patterns. The models are (1) flocking, (2) foraging, and (3) random movement. You will follow the instructions below to create a single NetLogo model that provides options to test these three models. Using videos and text, you will provide an answer to the question of which of the three movement theories best describes the spatial and temporal patterns of both species. 1

PART 1: SETTING UP YOUR MODEL 1. Create new model. INSTRUCTIONS 2. Create two buttons: go and setup. Create a chooser that looks like this: 3. Initialize the model using the setup button. Under the setup code, type the following: to setup clear-all setup-patches setup-turtles reset-ticks 4. In the setup-patches method, create 5 resources patches in random locations in your landscape (HINT: use the ask n-of x patches function). Set the color of your random resources green. 5. In the setup-turtles method, use the command crt 20 to put 20 turtles on the patch with coordinates 0,0. Set the turtle color to blue. Don t change the shape of your turtles as it is important to have a shape that will indicate the direction the turtles are facing. 2

6. Create a button called turtle-movement. Under to go method, use if statements to call a specific type of turtle movement theory: to go if turtle-movement = "Random Walk" [random-walk if turtle-movement = "Foraging" [forage if turtle-movement = "Flocking" [flock tick PART 2: CREATE RANDOM WALK MODEL 7. Create a new method in your model called random-walk. 8. Create a switch called Directed-Walk? that will allow you to toggle between a random and a directed walk. Next, in the random-walk method, insert the following code: ask turtles [ ifelse (Directed-Walk?) [rt random 90 lt random 90 [rt random 360 forward.25 Can you explain what this code accomplishes? PART 3: CREATE FORAGING MODEL 9. Create a new method called forage and insert the following code: ask turtles [ ifelse (Directed-Walk?) [rt random 90 lt random 90 [rt random 360 forward.25 Can you explain what this code accomplishes? 3

10. In this model the turtles will gain energy from the food as represented by the green patches. To do this, the turtles need to own a variable called energy and the patches need to own a variable named food (this code should be inserted at the top of the code panel): turtles-own [ energy patches-own [ food 11. In the setup-turtles method, set the turtles initial energy to 500 using the following code. ask turtles [set energy 500 12. The turtles will walk around the landscape looking for food. If the turtle is on a green food resource turtle energy will return to 500. The code needs to be within the ask turtles block of code. if pcolor = green[ set energy 500 13. As of now, nothing happens if the turtles run out of energy. Rather than have them die, you will code the turtles to make them move directly to a food resource when energy = 0. set energy energy - 1 if energy = 0 [ move-to min-one-of patches with [pcolor = green [distance myself PART 4: CREATE FLOCKING MODEL 14. Add two more turtles-own variables at the beginning of the model called flockmates and nearest-neighbor. turtles-own [ energy flockmates nearest-neighbor 4

15. Paste the following at the of your code to flock ask turtles [ flocking repeat 5 [ ask turtles [ fd 0.2 display ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;; to flocking find-flockmates if any? flockmates [ find-nearest-neighbor ifelse distance nearest-neighbor < 1 [ separate [ align cohere to find-flockmates set flockmates other turtles in-radius 3 to find-nearest-neighbor set nearest-neighbor min-one-of flockmates [distance myself to separate turn-away ([heading of nearest-neighbor) 1.5 to align turn-towards average-flockmate-heading 5 to-report average-flockmate-heading ;; turtle procedure ;; We can't just average the heading variables here. ;; For example, the average of 1 and 359 should be 0, ;; not 180. So we have to use trigonometry. let x-component sum [dx of flockmates let y-component sum [dy of flockmates ifelse x-component = 0 and y-component = 0 [ report heading 5

[ report atan x-component y-component to cohere turn-towards average-heading-towards-flockmates 3 to-report average-heading-towards-flockmates ;; turtle procedure let x-component mean [sin (towards myself + 180) of flockmates let y-component mean [cos (towards myself + 180) of flockmates ifelse x-component = 0 and y-component = 0 [ report heading [ report atan x-component y-component to turn-towards [new-heading max-turn ;; turtle procedure turn-at-most (subtract-headings new-heading heading) max-turn to turn-away [new-heading max-turn ;; turtle procedure turn-at-most (subtract-headings heading new-heading) max-turn to turn-at-most [turn max-turn ifelse abs turn > max-turn [ ifelse turn > 0 [ rt max-turn [ lt max-turn [ rt turn ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PART 5: CREATE MONITOR FOR MEASURING NEAREST NEIGHBORS 16. Add a monitor and plot to capture the mean nearest neighbor of the turtles in the graph. This plot will show the distance to the closest turtle, and can be a powerful way to link the emergent pattern of the model to the underlying processes. First, create a new turtle variable called nearest-neighbor-distance. You will update this variable at the of each timestep. Make the final line of the random-walk, forage, and flock methods update-plot. 6

17. At the of the model, copy the following code: to update-plot ask turtles [ let nd min-one-of other turtles [distance myself set nearest-neighbor-distance distance nd NOTE: nd is a temporary variable. It s value is the name of the turtle which is closest to it in the model environment. The variable nearest-neighbordistance is simply the distance to the closest turtle. 18. Finally create a plot and monitor to show the mean value of the nearestneighbor-distance variable. Refer to the traffic grid model in the model library for the code syntax for plotting a turtle variable. PART 6: DISCUSSION 19. Create an Assignment 3 page. Provide videos and text that address the following questions: i. Describe in 4-5 sentences the utility of using a pattern oriented modeling approach for understanding the observed patterns of both species. ii. iii. iv. For each movement model, describe how agent interactions lead to emergent patterns in both space and time. Which movement model best describes the patterns observed for species A? Why? Which movement model best describes the patterns observed for species B? Why? v. How did a pattern oriented modeling approach allow you to determine the answers to (iii) and (iv)? GRADING Your answer to each question in Part 6 TOTAL 5 POINTS 25 POINTS DUE DATE: Tuesday, April 21 th at 11:59pm *Late submissions will be penalized 5% per day. 7