2-Day Introduction to Agent-Based Modelling Day 1: Session 4 Networks.

Slides:



Advertisements
Similar presentations
2-Day Introduction to Agent-Based Modelling Day 1: Session 2 NetLogo Style, Documentation, kinds of agents, reacting to other agents.
Advertisements

MY NCBI (module 4.5).
Noadswood Science,  To know how to use Python to produce windows and colours along with specified co-ordinates Sunday, April 12, 2015.
Coloring Randomly: Random Selection in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Some Future Directions in Social Simulation Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University.
Word Processing First Steps
EPIDEMIOLOGY: Introduction to the Agent-based epidemic modeling Dr. Qi Mi Department of Sports Medicine and Nutrition, SHRS, Univ. of Pitt.
Meta Clustering in cyt New feature. Importing Data Step 1.
6 th Annual Focus Users’ Conference Custom Reports and Dashboards Presented by: Mike Morris.
2. Run. Hours button 1. Run. Hours screen Running hours.
Introduction to TouchDevelop
© English Language Testing Ltd Taking the Password Knowledge with Reading and Writing Test.
2-Day Introduction to Agent-Based Modelling Day 2: Session 5 Variables and Debugging.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Teaching Contemporary Mathematics Conference January 25, 2013 Christine Belledin NC School of Science and Mathematics.
Department of Computer Science What is NetLogo UH-DMML  Multi-agent programmable modeling environment  Well suited for modeling complex systems evolving.
PowerPoint Hints & Tips This example file gives you some examples of good and bad practice plus problem-solving tips.
Buttons and Hyperlinks in PowerPoint To add a button: 1.Open a PowerPoint Project and select the slide on which you wish to place a button. 2.Click on.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
2-Day Introduction to Agent-Based Modelling Day 1: Session 1 Introduction, commands, loops, conditionals.
ABM Frameworks Dr Andy Evans With additions from Dr Nick Malleson.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
CISC 1600 – Lecture 3.2 Simulations Complex Input & Output NetLogo.
2-Day Introduction to Agent-Based Modelling Day 2: Session 8 Exploring Model Collections, NetLogo Lists, Further Resources.
Week 11 DO NOW QUESTIONS. An ask turtles block is a set of instructions that is issued to every turtle. Even though computers can do things very quickly,
To search for a credit class, Click on Credit students.
1.Introduction 2.How to use this module 3.Learning outcomes 4.Text 5.The Master slide 6.Hyperlinks 7.Slide Management 8.Multiple Choice Questions 9.Exploring.
A Look Inside Some NetLogo Simulations Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University.
Petrel Workflow Tools – 5 Day Introduction Course
New Mexico Computer Science For All Interface Input in NetLogo Maureen Psaila-Dombrowski.
An Introduction to NetLogo Gabriel Wurzer, Vienna University of Technology AnthropologischeGesellschaftWien.
New Mexico Computer Science For All Interface Output in NetLogo (Part 1) Maureen Psaila-Dombrowski.
Changing Color, Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Chapter 1 - Getting to know Greenfoot
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
Introduction to TouchDevelop
Models in NetLogo Day 3 COLQ 201 Multiagent modeling Harry Howard Tulane University.
© English Language Testing Ltd Taking the Password with Reading and Writing Test.
BIL528 – Bilgisayar Programlama II Introduction 1.
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
2-Day Introduction to Agent-Based Modelling Day 2: Session 6 Mutual adaption.
New Mexico Computer Science For All Variables and Scope Maureen Psaila-Dombrowski.
PowerPoint Basics Tutorial 4: Interactivity & Media PowerPoint can communicate with the outside world by linking to different applications, managing different.
Sequence Diagrams And Collaboration Diagrams HungNM.
Enzymes Activity: Chew on This!
ExitTOC TIMSNT Introduction 2003-Part 3 1 Introduction to TIMSNT-Part 3 Part 3: Menu Items Runs, Driver Directions, Stops, Routes and Options Use the buttons.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
2-Day Introduction to Agent-Based Modelling Day 2: Session 7 Social Science, Different Purposes and Changing Networks.
AVCE ICT – Unit 7 - Programming Session 12 - Debugging.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
21/03/ Working with Controls Text and List Boxes.
M10 WS11:Krankenhausbedarfsplanung The World as We See It given by Gabriel Wurzer and Wolfgang E. Lorenz
Week 12 DO NOW QUESTIONS. In NetLogo, monitors are output windows that allow you to keep track of how a something (a variable, a reporter or an expression.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
1 Agent-Based Tools: focus on NetLogo Ing. Cristina Ponsiglione University of Naples Federico II Laboratorio di Simulazione ad Agenti.
M10 WS11:Krankenhausbedarfsplanung More, More and Even-More More given by Gabriel Wurzer and Wolfgang E. Lorenz
Management Information Systems
Management Information Systems
An introduction to Netlogo agent-based software
Attendance Tracking Module
Hands-On given by Gabriel Wurzer and Wolfgang E. Lorenz
Brian Lafferty Virus on a Network.
Javascript Game Assessment
Introduction to TouchDevelop
European Computer Driving Licence
creating a ecosystems model in net logo
Presentation transcript:

2-Day Introduction to Agent-Based Modelling Day 1: Session 4 Networks

“Confessions” of a social scientist who is learning NetLogo Critically assessing and analysing simulation results, Bruce Edmonds, ISS Course, 2011, slide 2

Interaction Structures There are a number of possible ways of structuring agent interactions, including: Randomly – others are chosen from population at random Via space – those within a certain distance or in nearby/the same space Via a social network of links Only indirectly via the environment All of these are relatively simple in NetLogo Critically assessing and analysing simulation results, Bruce Edmonds, ISS Course, 2011, slide 3

Making & using a network in NetLogo ask turtles [ create-links-with n-of number-links-each other turtles ] For each node: make links with the set number of others, but not oneself (hence the “other”) n-of returns that number of the set provided it (at random) Later any node can be asked to do something with all its “link-neighbours” – a set of all those it is connected with, e.g.: if any? link-neighbors with [color = red] [ … do something or other… ] Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 4

Load and run the “infection” ABM Load the model “4-infection-begin.nlogo” 1.Set the “population” and “number-of-links- each” sliders 2.Initialise the simulation 3.Press “infect” to infect an initial node 4.The either “step” (repeatedly) or “go” to see what happens 5.If they all go to grey you might want to infect another node 6.To see what is happening it might be easier if you slow down the simulation using the slider at the top-centre of the Interface Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 5

Adding a choice of network I Right-click (or ctrl-click) on some empty space and choose “Chooser” In the dialogue that appears, enter network-type for “Global Variable” and… "random" "nearest” …in the “Choices” box, then press “OK” In the setup procedure change: ask turtles [ create-links-with n-of number-links-each other turtles ] to: if network-type = "random" [ ask turtles [ create-links-with n-of number-links-each other turtles ] Now this method is only used to make the network if “random” is chosen in the Chooser dialogue Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 6

Adding a choice of network II Add the following into the setup procedure (immediately above or below the last bit of code we messed with): if network-type = "nearest" [ ask turtles [ create-links-with min-n-of number-links-each other turtles [distance myself] ] If the nearest choice is made, for each node this links to the set number of nodes with smallest distance to itself (closest) Go back to the interface and try the simulation with this kind of network, evaluate the difference Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 7

To spread the graph display out a bit Add the command: repeat 100 [ layout-spring turtles links ] Just before the “reset-ticks” command in the setup procedure “layout-spring” just adjusts the gaps between nodes as if they were connected with certain kinds of spring – doing this 100 times This just makes the network easier to see – NetLogo provides a number of varieties of these for different network display styles Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 8

Add a plot Right-Click on some empty space and choose “Plot”, then enter the following information before pressing “OK” Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 9 To add a new plot line, press the “Add Pen” button. To change the pen name click on the name, delete the existing name and type your own. To change the colour, click on the colour, choose a colour and then “OK”.

Your simulation should look something like this… Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 10

Things you might try… Look at all the code, make sure you understand what everything does, if there is a bit you do not understand, ask someone! Can you change the code so some random links are added at the start using “ask” “one-of” and “create-links-with” Using the command “ask one-of my-links [die]” see if you can alter the code so that a node drops links if it is infected Some Future Directions in Social Simulation, Bruce Edmonds, ISS Course, 2011, slide 11

The End 2-Day Introduction to Agent-Based Modelling Centre for Policy Modelling Manchester Metropolitan University Business School Institute for Social Change Cathie Marsh Centre for Census and Survey Research University of Manchester