CISC 1600 – Lecture 3.2 Simulations Complex Input & Output NetLogo.

Slides:



Advertisements
Similar presentations
Netlogo! NetLogo is a programmable modeling environment for simulating complex systems. Modelers can give instructions to hundreds or thousands of independent.
Advertisements

Agents and Pervasive Computing Group Università di Modena e Reggio Emilia System Requirements NetLogo is designed: to run almost any type of computer.
Lecture 14 User-defined functions Function: concept, syntax, and examples © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
Netlogo and its Relatives Logo (Papert) –Language for teaching mathematics graphically –Tell turtle how to move Starlogo (Resnick) & StarlogoT (Wilensky)
StarLogoTNG 101 Treasure Hunt Game Unit Lesson 4: Forever and Procedures.
New Mexico Computer Science For All Local Variables in Netlogo Maureen Psaila-Dombrowski.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
New Mexico Computer Science for All Agent-based modeling By Irene Lee December 27, 2012.
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
Agent-based model of a simple stable economy Alexandre Lomovtsev Advisor: Dr. Russell Abbott, Ph.D. California State University, Los Angeles Department.
Virtual reality interfaces in connection with building process simulations. Prof. Nash Dawood Centre for Construction Innovation Research University of.
Agent-based model of a simple stable economy Alexandre Lomovtsev Adviser: Dr. Russ Abbott.
1 Simulation Modeling and Analysis Verification and Validation.
Agent-based model of a simple stable economy Alexandre Lomovtsev Advisor: Dr. Russell Abbott, Ph.D. California State University, Los Angeles Department.
Sometimes you want to see how things change with time Electrical activity is invisible, unless you know how to look at it.
Other Interaction Styles: Direct Manipulation, Haptic, Multimedia, Multimodal, Virtual Reality, Video Games Dr.s Barnes and Leventhal.
2-Day Introduction to Agent-Based Modelling Day 2: Session 5 Variables and Debugging.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
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.
2-Day Introduction to Agent-Based Modelling Day 1: Session 1 Introduction, commands, loops, conditionals.
New Mexico Computer Science For All Statements and Expressions in NetLogo Maureen Psaila-Dombrowski.
ABM Frameworks Dr Andy Evans With additions from Dr Nick Malleson.
An Interactive Web-Based Simulation of a General Computer Architecture
NetLogo Dr. Feng Gu. NetLogo NetLogo is a programmable modeling environment for simulating natural and social phenomena, authored by Uri Wilensky in 1999.
2-Day Introduction to Agent-Based Modelling Day 1: Session 4 Networks.
2-Day Introduction to Agent-Based Modelling Day 2: Session 8 Exploring Model Collections, NetLogo Lists, Further Resources.
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
A Look Inside Some NetLogo Simulations Bruce Edmonds Centre for Policy Modelling Manchester Metropolitan University.
Bridges To Computing General Information:  This document was created for use in the "Bridges to Computing" project of Brooklyn College.  You are invited.
An Introduction to NetLogo Gabriel Wurzer, Vienna University of Technology AnthropologischeGesellschaftWien.
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
SUPERCOMPUTING CHALLENGE KICKOFF 2015 A Model for Computational Science Investigations Oct 2015 © challenge.org Supercomputing Around.
Modeling Complex Dynamic Systems with StarLogo in the Supercomputing Challenge
Bridges To Computing General Information:  This document was created for use in the "Bridges to Computing" project of Brooklyn College.  You are invited.
Well-behaved objects Main concepts to be covered Testing Debugging Test automation Writing for maintainability Objects First with Java - A Practical.
New Mexico Computer Science For All Command Procedures in NetLogo Maureen Psaila-Dombrowski.
New Mexico Computer Science For All Variables and Scope Maureen Psaila-Dombrowski.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski.
NEW CHAPTER Circuits and Electronics CHAPTER the BIG idea Circuits control the flow of electric charge. Charge needs a continuous path to flow. Circuits.
Bridges To Computing General Information:  This document was created for use in the "Bridges to Computing" project of Brooklyn College.  You are invited.
New Mexico Computer Science For All Patches and Agent/Environment Interactions Maureen Psaila-Dombrowski.
Enzymes Activity: Chew on This!
Oct 2015 © challenge.org Supercomputing Around Us: Sensors and Data1 Computational Science and Mathematical Modeling.
LECTURE IV MODELSIM. Go to the link listed below for a demonstration of how to begin working with Modelsim. The video shows you how to write a Verilog.
G RAPHICS & I NTERACTIVE P ROGRAMMING Lecture 2 More Programming with Processing.
MIS 585 Special Topics in MIS: Agent-Based Modeling 2015/2016 Fall.
Wizard of OZ Oxford, Maurice Vereecken. Goal of implementing Woz Wp2 –Quick insight in mapping events to Ontdeknet –Working towards what to do in WP3.
AUTOMATIC CONTROL THEORY II Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Computer Control and Monitoring Today we will look at: What we mean by computer control Examples of computer control Sensors – analogue and digital Sampling.
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
An Introduction to NetLogo given by Gabriel Wurzer and Wolfgang E
Management Information Systems
Management Information Systems
An introduction to Netlogo agent-based software
Week 14 DO NOW QUESTIONS.
Section 17.1 Section 17.2 Add an audio file using HTML
MIS 643 Agent-Based Modeling and Simulation 2016/2017 Fall.
Computer Programming.
Algorithms and Flow Charts
Nuclear and Atomic Physics
creating a ecosystems model in net logo
Presentation transcript:

CISC 1600 – Lecture 3.2 Simulations Complex Input & Output NetLogo

Content 1.Agent Based Programming and Simulations 1.Cost Savings 2.Danger Prevention 2.Digital and Analog, Input and Output 3.NetLogo KeyConcepts 1.Agents 2.Procedures and Primitives (functions) 3.Variables 4.ask and show 5.Sensors and Effectors 6.General Program Outline 4.Modeling a problem

Agent Based Programming and Simulations We discussed the two main reasons for agent- based programming in our last lecture: 1.Managing Complexity 2.Emergent Behavior (phenomena) Another SIGNIFIGANT reason for using agent based programming is that it allows us to run "virtual simulations" of real world scenarios. Why would we do this?

(1.1) Simulations – Cost Savings Biosphere2 (Biosphere 1 is Earth) was built to help explore the use of an enclosed biosphere as part of future space colonization. It cost $200 million to build and operate ( ). During the 1 st Biosphere experiment oxygen levels fell below safe levels. The reason for the oxygen drop was that the exposed concrete of the structure was absorbing gases (CO2). Biosphere 2: Planners failed to model in all the possible variables when designing the enclosed ecosystem.

(1.2) Simulations – Danger Prevention On 21 May 1946, Louis Slotin, a researcher at Los Alamos, accidentally irradiated himself when an experiment with a sphere of plutonium took a wrong turn. Immediately realizing what had happened Slotin quickly disassembled the device, likely saving the lives of seven fellow scientists nearby. Slotin himself succumbed to radiation poisoning nine days later. Many of the first computers and computer programs created/written were used to help calculate radiation yields for nuclear devices.

(2) Digital and Analog Signals Most of our work in multimedia programming, up to this point, has used text files and text instructions as input. Input can also come in the form or analog and digital signal waves. Those input waves, in turn, can represent any real world phenomena that you can imagine.

(3.1) Netlogo - Key Concepts Agents Netlogo creates programs by specifying behaviors for sets of agents and then allowing those agents to interact in a controlled "chain reaction". Netlogo has 4 types of agents: 1.Patches -> The squares on the world grid. 2.Turtles -> Agents that can move. 3.Links -> Lines between agents. 4.The Observer -> The master controller.

(3.2) Netlogo - Key Concepts Procedures and Primitives Procedures are functions that you create and name yourself. Primitives are functions that are part of the semantics of the Netlogo language. Note: The syntax of the Netlogo language is different than the syntax of other text based languages we have examined.

(3.3) Netlogo - Key Concepts Variables Variables can be created in several ways, and can either be: – global -> anyone can see and use. – agent-based -> limited to use by a set of agents. – Local -> only available within a procedure.

(3.3) Global Variables – Interface

(3.4) Netlogo - Key Concepts ask and show Instructions can be given to agents and the values for variables can be set using the ask command. The show command in turn can be used to display the values of variables. In Netlogo groups of related commands are placed within square ('[' ']' ) brackets.

(3.5) Netlogo - Key Concepts sensors and effectors Agents in Netlogo can use special primitives (built in functions) to "see" their environment. – turtles-here – patches-here – turtles-at – patches-at – self Agents can also use special primitives (built in functions) to "effect" their environment. – setxy – set color – set pcolor – hatch – die

(3.5) sensors & effectors

(3.6) General Program Outline

Bonus Question How is Netlogo implementing the following Imperative Paradigm requirements: – Sequence – Selection – Repetition

(4) Modeling a Problem 1.Get a very clear idea of the problem. 2.What/who are the agents? 1.Which are turtles? 2.Which are patches? 3.What variables will you need? 4.How do the agents interact? 5.What order will events need to happen in?

(5) Modeling in Netlogo 1.Adjust world (screen) settings. 2.Create setup and start buttons. 3.Create interface controlled variables (sliders, etc..). 4.Create breeds (if needed). 5.Create global and local variables (if needed). 6.Create and fill setup procedure with sub-setup procedures. 7.Create and fill sub-setup procedures. 8.Create and fill go procedure with sub-go procedures. 9.Create and fill sub-go procedures. 10.Create plot and plot pens (in the interface). 11.Create and fill do-plots procedure.

(6) Getting Help Fantastic (short) NetLogo Quick Guide Full Netlogo Manual NetLogo Dictionary Example Nuclear Reaction Project