Models in NetLogo Day 3 COLQ 201 Multiagent modeling Harry Howard Tulane University.

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

The essentials managers need to know about Excel
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
Objectives Build and modify an organization chart.
Agents and Pervasive Computing Group Università di Modena e Reggio Emilia System Requirements NetLogo is designed: to run almost any type of computer.
Step-by-Step: Adjust a Chart Axis USE the Pricing Final presentation that is still open from the previous exercise. 1.Click the chart on slide 2 to select.
Step-by-Step: Add a Graphical Hyperlink USE the Special Events Final presentation that is still open from the previous exercise. 1.Go to slide 4, and click.
Congratulations! You have just installed the Presentation Game Add-In.
Microsoft Excel Presented by ShoWorks Fair Software and Online Entries
DEVELOPING ICT SKILLS PART -TWO
Microsoft Office XP Microsoft Excel
Creating Charts and Pivot Tables
Excel Navigation. Instructions Use this PowerPoint presentation as you answer the Excel Navigation worksheet questions. Have Excel open also and use ALT.
FrontPage Express By John G. Summerville Ph.D.©, RN.
Biomedical Modeling: Introduction to the Agent-based epidemic modeling
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Earth sciences: diffusion Day 4 COLQ 201 Multiagent modeling Harry Howard Tulane University.
Microsoft Word 2010 Lesson 1: Introduction to Word.
Creating a Document with a Table, Chart, and Watermark
CREATING A MULTIPLE PAGE REPORT Presented by: Dr. Ennis-Cole.
Chapter 10—Creating Presentations
Managing Grades with Excel Viewing Help To view Help 1.Open Excel on your computer. 2.In the top right hand corner of the Excel Screen type in the.
EPIDEMIOLOGY: Introduction to the Agent-based epidemic modeling Dr. Qi Mi Department of Sports Medicine and Nutrition, SHRS, Univ. of Pitt.
Microsoft ® Office Excel ® 2007 Training Get started with PivotTable ® reports [Your company name] presents:
Microsoft ® Office Excel ® 2007 Training Get started with PivotTable ® reports Guangzhou Newelink Technology Co,. Ltd.
1 Computing for Todays Lecture 10 Yumei Huo Fall 2006.
Generation of atlas graphs & charts. Objective The major objective this training session is to equip participants with the knowledge and skills of creating.
XP New Perspectives on Microsoft Office Excel 2003 Tutorial 4 1 Microsoft Office Excel 2003 Tutorial 4 – Working With Charts and Graphics.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Multisim Tutorial Basics of Schematic Capture [ Parts ] By James P. O’Rourke, D.Sc.
Creating charts in excel
Using Draw Tools C 2012jkc. Click File on the menu bar and select Page Setup on the drop- down menu to get the Page Setup dialog box. Under the Margins.
Mastering Your Word Processing Skills
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
Microsoft PowerPoint Getting Started Guide Prepared for Towson University Dr. Jeff M. Kenton Amy Chase Martin 2007.
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
Color Correct and Remove Keystoning A minimalist approach to photographing your art By Paul Marley.
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
World Cities PowerPoint Tutorial Mrs. Bushman. Take Flight In iMovie Choose Your Path Movies in PowerPointAction Buttons.
Finding a Music File to Work With From the PUSD student home page, select “Royalty Free Music”
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
Microsoft Word Tables ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
PowerPoint Basics Tutorial 3: Graphics In this tutorial we’ll be looking at graphics, and the various types of illustrations that can be included in a.
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
CIS111 PC Literacy Getting Started with Windows XP.
PowerPoint Practice Exercise 1 1.Save this file in your AV-TECH Folder as PowerPoint Practice Exercise 1. 2.Open this file in PowerPoint. 3.Edit each slide.
Using Charts in a Presentation
MS Excel 2007 Charts Delivering a Message Prof. Donna B. Sanders.
Advanced Graphing Using Excel V.1 Part II: Giving your graph style Written and Created by: James Golen University of Michigan – Dearborn Science Learning.
Computing Fundamentals Module Lesson 7 — The Windows Operating System Computer Literacy BASICS.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Introduction to Drafting and Design In order to begin our drawing we have to set the drawing limits or the paper size.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Biology: foraging Day 6 COLQ 201 Multiagent modeling Harry Howard Tulane University.
PowerPoint Basics Tutorial 2: A Slide Show In this tutorial you’re going to create a presentation from scratch. You will have to keep this presentation.
Learning the Basics of ArcMap 3.3 Updated 4/27/2010 Using Arc/View pt. 1 1.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
You’ll Make a spreadsheet which will be like a Mad Libs Game. These Are The Directions.
Introducing Scratch Learning resources for the implementation of the scenario
1. Explore Interactive GIS 2. Create Map Layouts 3. Reuse a Custom Map Layout 4. Create a Custom Map Template 5. Add a Report to a Layout 6. Add a Graph.
1 Agent-Based Tools: focus on NetLogo Ing. Cristina Ponsiglione University of Naples Federico II Laboratorio di Simulazione ad Agenti.
Scratch for Interactivity
Excel 2010 Screen Symbols.
Microsoft Windows 2000 Professional
Using Charts in a Presentation
creating a ecosystems model in net logo
Presentation transcript:

Models in NetLogo Day 3 COLQ 201 Multiagent modeling Harry Howard Tulane University

15-Jan-2010COLQ 201, Prof. Howard, Tulane University2 Course organization 

15-Jan-2010COLQ 201, Prof. Howard, Tulane University3 Questions? ?

Models in NetLogo Tutorial #1: Models - Wolf Sheep Predation NetLogo User Manual

15-Jan-2010COLQ 201, Prof. Howard, Tulane University5 Wolf-sheep predation  Start NetLogo.  File > Models Library > Biology > Wolf Sheep Predation.  Interface elements allow you to interact with the model:  Buttons are blue;  they set up, start, and stop the model.  Sliders and switches are green;  they alter model settings.  Monitors and plots are beige;  they display data.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University6 First look  When you first open the model, you will notice that the view is empty (all black).  To begin the model, you will first need to set it up.  Press the "setup" button.  What do you see appear in the view?  Press the "go" button to start the simulation.  As the model is running, what is happening to the wolf and sheep populations?  Press the "go" button to stop the model.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University7 Button types  Once buttons:  Forever buttons:

15-Jan-2010COLQ 201, Prof. Howard, Tulane University8 Stopping  Stopping a forever button is the normal way to stop a model.  It's safe to pause a model by stopping a forever button, then make it go on by pressing the button again.  You can also stop a model with the "Halt" item on the Tools menu, but you should only do this if the model is stuck for some reason.  Using "Halt" may interrupt the model in the middle of an action, and as the result the model could get confused.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University9 The speed slider  The speed slider allows you to control the speed of a model, that is, the speed at which turtles move, patches change color, and so on.  When you move the slider to the left the model slows down so there are longer pauses between each tick (time step).  That makes it easier to see what is happening.  You might even slow the model down so far as to see exactly what a single turtle is doing.  When you move the speed slider to the right of the center the model will speed up.  NetLogo will start skipping frames, that is, it won't update the view at the end of every tick, only some ticks.  Showing the state of the world takes time, so showing it less often means the model progresses faster.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University10 Adjusting settings: sliders and switches  The settings within a model give you an opportunity to work out different scenarios or hypotheses.  Altering the settings and then running the model to see how it reacts to those changes can give you a deeper understanding of the phenomena being modeled.  Switches and sliders give you access to a model's settings.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University11 Try them out  Press "setup" and "go" and let the model run for about a 100 time-ticks. (Note: there is a readout of the number of ticks right above the plot.)  Stop the model by pressing the "go" button.  What happened to the sheep over time?  A switch has two values: on or off.  Turn the "grass?" switch on.  Press "setup" and "go" and let the model run for a similar amount of time as before.  What did this switch do to the model?  Was the outcome the same as your previous run?

15-Jan-2010COLQ 201, Prof. Howard, Tulane University12 Sliders  A slider has a range of numeric values that can be adjusted.  For example, the "initial-number-sheep" slider has a minimum value of 0 and a maximum value of 250.  The model could run with 0 sheep or it could run with 250 sheep, or anywhere in between.  As you move the marker from the minimum to the maximum value, the number on the right side of the slider changes; this is the number the slider is currently set to.  Try this out and see what happens.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University13 Information tab  Read the contents of the Information tab, located above the toolbar, to learn what each of this models' sliders represents.  It offers guidance and insight into the model.  Within this tab you will find an explanation of the model, suggestions on things to try, and other information.  You may want to read the Information tab before running a model, or you may want to just start experimenting, then look at the Information tab later.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University14 Testing a hypothesis  What would happen to the sheep population if there was more initial sheep and less initial wolves at the beginning of the simulation?  Turn the "grass?" switch off.  Set the "initial-number-sheep" slider to 100.  Set the "initial-number-wolves" slider to 20.  Press "setup" and then "go".  Let the model run for about 100 time-ticks.  Run the model several times with these settings.  What happened to the sheep population?  Did this outcome surprise you?  What other sliders or switches can be adjusted to help out the sheep population?

15-Jan-2010COLQ 201, Prof. Howard, Tulane University15 Another hypothesis  Set "initial-number-sheep" to 80 and "initial-number-wolves" to 50. (This is close to how they were when you first opened the model.)  Set "sheep-reproduce" to 10.0%.  Press "setup" and then "go".  Let the model run for about 100 time ticks.  What happened to the wolves in this run?

15-Jan-2010COLQ 201, Prof. Howard, Tulane University16 What happens to the settings?  When you open a model, all the sliders and switches are on a default setting.  If you open a new model or exit the program, your changed settings will not be saved, unless you choose to save them.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University17 Gathering information  One purpose to modeling is to gather data on a subject or topic that would be very difficult to do in a laboratory situation.  NetLogo has two main ways of displaying data to the user: plots and monitors.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University18 Plots  The plot in Wolf Sheep Predation contains three lines:  sheep, wolves, and grass / 4.  (The grass count is divided by four so it doesn't make the plot too tall.)  The lines show what's happening in the model over time.  To see which line is which, click on "Pens" in the upper right corner of the plot window to open the plot pens legend.  A key appears that indicates what each line is plotting.  In this case, it's the population counts.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University19 Plots, cont.  When a plot gets close to becoming filled up, the horizontal axis increases in size and all of the data from before gets squeezed into a smaller space.  In this way, more room is made for the plot to grow.  If you want to save the data from a plot to view or analyze it in another program, you can use the "Export Plot" item on the File menu.  You can also export a plot by control-clicking (Mac) or right- clicking (Windows) it and choosing "Export..." from the popup menu.  It saves this information to your computer in a format that can by read back by spreadsheet and database programs such as Excel.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University20 Monitors  The monitor labeled "time-ticks" tells us how much time has passed in the model.  The other monitors show us the population of sheep and wolves, and the amount of grass.  The numbers displayed in the monitors update continuously as the model runs, whereas the plots show you data from the whole course of the model run.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University21 Controlling the view  Selecting the interface tab, you'll see a strip of controls along the top edge in the toolbar.  These controls change various aspects of the view.  Press "setup" and then "go" to start the model running.  As the model runs, move the speed slider to the left.  What happens?  This slider is helpful if a model is running too fast for you to see what's going on in detail.  Move the speed slider to the middle.  Try moving the speed slider to the right.  Now try checking and unchecking the view updates checkbox.  What happens?

15-Jan-2010COLQ 201, Prof. Howard, Tulane University22 Impatience  Fast forwarding the model and turning off view updates are useful if you're impatient and want a model to run faster.  Fast forwarding (moving the speed slider to the right) drops view updates so the model can run fast, since updating the view takes time that could be used for running the model itself.  When view updates are off completely, the model continues to run in the background, and plots and monitors still update;  but if you want to see what's happening, you need to turn view updates back on by rechecking the box.  Many models run much faster when view updates are off; for others, it makes little difference.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University23 The size of the view  … is determined by five separate settings:  Min and Max X,  Min and Max Y and  Patch Size.  Press the "Settings..." button in the toolbar.  What are the current settings for max-pxcor, min-pxcor, max-pycor, min-pycor, and Patch size?  Press "cancel" to make this window go away without changing the settings.

15-Jan-2010COLQ 201, Prof. Howard, Tulane University24 Interactive view change  Place your mouse pointer next to, but still outside of, the view.  You will notice that the pointer turns into a crosshair.  Hold down the mouse button and drag the crosshair over the view.  The view is now selected, which you know because it is now surrounded by a gray border.  Drag one of the square black "handles".  The handles are found on the edges and at the corners of the view.  Unselect the view by clicking anywhere in the white background of the Interface tab.  Press the "Settings..." button again and look at the settings.  What numbers changed?  What numbers didn't change?

15-Jan-2010COLQ 201, Prof. Howard, Tulane University25 Next time  Earth sciences: diffusion  NetLogoGreenHouse, Climate change,  Bring your laptop to class.