overview of key anylogicinfrastructure, modeling types and ... · modeling types and interface ......

18
Overview of Key AnyLogic Infrastructure, Modeling Types and Interface Nathaniel Osgood CMPT 858 January 13, 2011

Upload: others

Post on 21-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Overview of KeyAnyLogic Infrastructure,

Modeling Types and Interface

Nathaniel OsgoodCMPT 858

January 13, 2011

Page 2: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Announcements

• Links to 3 installers distributed• Department machines requisitioned• Tutorial time feedback sought

Page 3: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Project Ideas• HPV/Cervical cancer

– Smoking/Age/Ethnicity/Vaccination

– Adapting existing aggregate model

– Contact: Karen Yee (returns Monday)

• eLearning system– Facilitating learning by 

tapping into social networks

• MRSA (nosocomial –institutional spread)– Tie‐in with institutional 

flow models

• Gonorrhea– Mutation & drug resistance– Sexual networks

• Chronic Wasting Disease– Movement of animals over 

landscape– Seasonal changes in 

behaviour– Contact: Cheryl Waldner

• TB– Contact: NDO & Assaad Al‐

Azem– Work with TB Control

Page 4: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Project Ideas

• Gestational & Type 2 Diabetes– Intergenerational effects of diabetes in the mother

• H1N1 Spread– Network micro‐data– Aggregate data?– Contact: Cheryl Waldner & Simon Kapaj

• Lifecourse weight trajectories– 50 year longitudinal data (National Childhood Development Survey)

• Physiological model of weight & body composition– Interaction with 

• Food intake• Physical activity

Page 5: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

AnyLogic basics• Multi‐platform• Declarative graphical languages• Basic language: Java• Rich library of built‐in objects• Continuous or discrete time/space• Modeling approaches supported

– System Dynamics– Agent‐based

• Regular & irregular spatial embedding, network embedding

– Discrete event

Page 6: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

System Dynamics

• Feedback‐focus• Traditional graphical depiction

– Stocks (state of system)– Flows (rates of change to the state)– Continuous variation in state

• Stocks are initialized, are then change according to flows

• Values of flows are determined by stocks & any other variables

Page 7: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Hands on Model Use Ahead

Load model: SIR Agent Based.alp

Page 8: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Agent‐Based Approaches

• Agent (actor) focused• Traditional graphical depiction: 

State transition diagram– States– Transitions– Discrete variation in state

• Regular or irregular topologies connect between agents– Messages sent via connections

Page 9: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Hands on Model Use Ahead

Load model: Emergency Department Tulsa.alp

Page 10: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Discrete Event Modeling

• Resource‐based modeling– Queues– Processes– Flow charts– Capacitated resource pools

– Send to – Attachment/detachment

Page 11: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

“Network Modeling”Irregular Spatial Embedding

Page 12: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic
Page 13: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Network Embedded Individuals

Page 14: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Regular Spatial Embedding

Page 15: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Hybrid Models

• Much of the power of AnyLogic lies in its ability to integrate multiple types of modeling in a single model

• Attractive schemes– Agent‐based using system dynamics for continuous agent state (c.f. age)

– System dynamics using agent‐based to determine flows

– Agent‐based using system dynamics for global dynamics

– Agents entering into process‐based health services

Page 16: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Example Hybrid Model

Page 17: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Advantages of AnyLogic(as compared to other Agent‐Based Modeling Software)

• Primarily declarative specification• Less code• Great flexibility• Access to Java libraries• Support for multiple modeling types• Support for mixture of modeling types

Page 18: Overview of Key AnyLogicInfrastructure, Modeling Types and ... · Modeling Types and Interface ... tapping into social ... Microsoft PowerPoint - Lecture 3 -- Overview of AnyLogic

Painful Sides of AnyLogic Education/Advanced

• Export of model results: Lack of trajectory files• Lack of debugger• Need for bits of Java code• Many pieces of system