44
G54SIM (Spring 2016) Lecture 01 Introduction to Modelling and Simulation Peer-Olaf Siebers [email protected]

G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM (Spring 2016)

Lecture 01

Introduction to Modelling and Simulation

Peer-Olaf Siebers

[email protected]

Page 2: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Container Terminal of Novorossiysk

2

Page 3: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM 3

Page 4: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM 4

Page 5: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM 5

Page 6: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM 6

Page 7: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

What is this Module About?

G54SIM 7

Page 8: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

What is this Module About?

G54SIM 8

Page 9: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

My Research Interests

• It's all about Agents and Agent-Based Modelling

G54SIM 9

Page 10: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

My Research Interests

• Technical Aspects – From archetypes to multi-agent systems

– Engineering agent-based social simulations

• Using UML to define agents and their interactions

G54SIM 10

Page 11: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

My Research Interests

• Applications – My Mission: Applying ABM to as many fields as possible

• Business studies (Risk Assessment; CBA; MCDA)

• Economics (Game Theory; Agent Based Computational Economics)

• Social Sciences (Political Science; Social Simulation)

• Engineering (Manufacturing; Urban Modelling; Energy; Transportation)

• Computer Science (Robotics; Game Development)

• Operations Research (Healthcare)

• Systems Biology (Immunology)

G54SIM 11

Page 12: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

Motivation for this Lecture

• Clarify module organisation

• Introduce the idea of "Would Be Worlds" [Casti 1998]

• Introduce terminology used throughout the course

• Introduce the different simulation modelling paradigms

G54SIM 12

Page 13: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Module Organisation

• Classes: – Tuesdays: 1-3pm

– CompSci.C60

• Labs: – Mondays: 9-11am

– CompSci.A32

13

Page 14: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

Module Organisation

• Credits: 10 = 100 hours of work

G54SIM 14

Page 15: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Module Organisation

15

Page 16: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Module Organisation

• Staff – Convenor: Peer-Olaf Siebers: CompSci.B35

– Lab Assistance: Tuong Manh Vu: CompSci.B36

• Resources – Module Website: Moodle

• Slides + reading list + announcements

• Assessment: – 100% Coursework

• Submission Deadline: Thursday 28 April 4pm

16

Page 17: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Module Organisation

• Software: – AnyLogic PLE v7.2.0 (not available on virtual desktop!)

17

Page 18: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Module Organisation

• Reading

18

Page 19: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Simulation Examples

19

Page 20: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

20

Systems

• System: – Collection of parts organised for some purpose (weather system:

parts: sun, water, land, etc.; purpose: maintaining life)

– Defining a system requires setting boundaries

• Different categories of systems: – Natural systems (weather system, galactic system)

– Designed physical systems (house, car, production system)

– Designed abstract systems (mathematics, literature)

– Human activity systems (family, city, political system)

G54SIM 20

Page 21: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Systems

• System: – Collection of parts organised for some purpose (weather system:

parts: sun, water, land, etc.; purpose: maintaining life)

– Defining a system requires setting boundaries

• Different categories of systems: – Natural systems (weather system, galactic system)

– Designed physical systems (house, car, production system)

– Designed abstract systems (mathematics, literature)

– Human activity systems (family, city, political system)

21

Page 22: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

22

Systems

• Operations systems: – Configuration of resources combined for the provision of goods and

services (functions: manufacture, transport, supply, service).

• Social systems: – Entities or groups in definite relation to each other which create

enduring patterns of behavior and relationship within social systems.

• Economic system: – Particular set of social institutions which deals with the production,

distribution, and consumption of goods and services.

G54SIM 22

Page 23: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

23

Systems

• Operations systems: – Configuration of resources combined for the provision of goods and

services (functions: manufacture, transport, supply, service)

• Social systems: – Entities or groups in definite relation to each other which create

enduring patterns of behavior and relationship within social systems.

• Economic system: – Particular set of social institutions which deals with the production,

distribution, and consumption of goods and services

G54SIM 23

Page 24: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Models

• Model: – Some form of abstract representation of a real system intended to

promote understanding of the system it represents.

– A model is a static representation of the system

– Models can have many forms

• mathematical equations, diagrams, physical mock-ups

• Why model? – Models give us a comprehensible representations of a systems

• Something to think about

• Something to communicate about

24

Page 25: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Simulation

• Simulation: – The process of designing a model of a real system and conducting

experiments with this model for the purpose of understanding the behaviour of the system and /or evaluating various strategies for the operation of the system [Shannon 1975]

– Uses a model to emulate the dynamic characteristics of a system

• Why simulate? – Predict the performance of a system under a specific set of inputs

– Experimental approach to modelling (what-if analysis tool)

25

Page 26: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Nature of Operations and Social Systems

• Such systems are subject to variability – Predictable variability

• E.g. staff rota, planned maintenance of machines

– Unpredictable variability

• E.g. customer arrivals, machine breakdowns

• Such systems are interconnected – Components of a system affect one another

• E.g. customers in a three stage service process

[Robinson 2014]

26

Page 27: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Nature of Operations and Social Systems

• Such systems are (highly) complex – Combinatorial complexity

• Number of components and number of combinations of components

– Dynamic complexity

• Mainly systems that are highly interconnected; feedback systems; action has different effect in short/long run; action has different consequences in one part of the system compared to another; action has non-obvious consequences

• In simulation studies we are able to explicitly represent the variability, interconnectedness, and complexity of operations systems

[Robinson 2014]

27

Page 28: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Why Simulate?

• It is possible with a simulation: – to predict system performance

– to compare alternative system designs

– to determine the effects of alternative policies on system performance

• Advantages: Simulation vs. Experimentation – Cost

– Time (real time vs. virtual time)

– Control of experimental conditions

– If real system does not exist

28

Page 29: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Why Simulate?

• Advantages: Simulation vs. other modelling approaches

– Analytical methods used in Operations Research (examples)

• Linear Programming

• Network Analysis

• Dynamic Programming

• Meta Heuristics

• Game Theory

• Markov Chains

• Queuing Theory

• Simulation

29

Page 30: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Why Simulate?

• Advantages: Simulation vs. other modelling approaches – Modelling variability: Some other approaches could be adapted to

account for variability but it often increases their complexity

– Restrictive assumptions: Most of the other approaches require assumptions, e.g. queuing theory assumes particular distributions for arrival and service times, for many processes these distributions are not appropriate

– Transparency: More intuitive than a set of equations, an animated display of the system can be created, giving a non-expert grater understanding of, and confidence in, the model

– Creating knowledge and understanding: Sometimes just building the model is enough

– Visualisation, communication, interaction

30

Page 31: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Why Simulate?

• Disadvantages of simulation: – Expensive

– Time consuming

– Data hungry

– Requires expertise: It is an art rather than a science

– Overconfidence: When interpreting the results from a simulation, consideration must be given to the validity of the underlying model and the assumption and simplifications that have been made!

31

Page 32: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

32

Classification of Simulation

• Static vs. Dynamic: – Static: No attempts to model a time sequence of changes.

– Dynamic: Updating each entity at each occurring event.

• Deterministic vs. Stochastic: – Deterministic: Rule based.

– Stochastic: Based on conditional probabilities.

• Discrete vs. Continuous: – Discrete: Changes in the state of the system occur instantaneously at

random points in time as a result of the occurrence of discrete events.

– Continuous: Changes of the state of the system occur continuously over time.

G54SIM 32

Page 33: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Classification of Simulation

• Static vs. Dynamic: – Static: No attempts to model a time sequence of changes.

– Dynamic: Updating each entity at each occurring event.

• Deterministic vs. Stochastic: – Deterministic: Rule based.

– Stochastic: Based on conditional probabilities.

• Discrete vs. Continuous: – Discrete: Changes in the state of the system occur instantaneously at

random points in time as a result of the occurrence of discrete events.

– Continuous: Changes of the state of the system occur continuously over time.

33

Page 34: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Level of Abstraction

• Simulation can be applied at different stages:

– Strategic

• high abstraction, less detailed, macro level

– Tactical

• middle abstraction, medium details, meso level

– Operational

• low abstraction, more details, micro level

34

Page 35: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Level of Abstraction

Strategic

Tactical

Operational

Aggregate, global causal dependencies, feedback dynamics

Individual objects, exact sizes, velocities, distances, timings

traffic macro modelling, traffic micro modelling,

supply chain management, population dynamics,

financial risk analysis, manufacturing systems,

ecosystems, pedestrian dynamics, health care

applications, health economics, military planning,

business dynamics, warehouse operations

35

Page 36: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Level of Abstraction

traffic macro modelling

traffic micro modelling

supply chain management

population dynamics

financial risk analysis

manufacturing systems

ecosystems

pedestrian dynamics

health care applications

health economics

military planning

business dynamics

Strategic

Tactical

Operational

Aggregate, global causal dependencies, feedback dynamics

Individual objects, exact sizes, velocities, distances, timings

warehouse operations

36

Page 37: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Paradigms

• System Dynamics Modelling (SDM) and Simulation (SDS) – Modelling: Stock and flow diagrams

– Simulation: Deterministic continuous (differential equations)

• Discrete Event Modelling (DEM) and Simulation (DES) – Modelling: Flow charts

– Simulation: Stochastic discrete (process oriented approach)

• Agent Based Modelling (ABM) and Simulation (ABS) – Modelling: Equations or state charts

– Simulation: Stochastic discrete (object oriented approach)

• Hybrid Modelling (HM) and Simulation (HS)

37

Page 39: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

39

Paradigms

G54SIM 39

Page 40: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Level of Abstraction

traffic macro modelling

traffic micro modelling

supply chain management

population dynamics

financial risk analysis

manufacturing systems

ecosystems

pedestrian dynamics

health care applications

health economics

military planning

business dynamics

Strategic

Tactical

Operational

Aggregate, global causal dependencies, feedback dynamics

Individual objects, exact sizes, velocities, distances, timings

warehouse operations

40

Page 41: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

Paradigms

• Alternative view: – The diagram will be further developed in the subsequent lectures

G54SIM 41

Page 42: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

Summary and Outlook

• Summary – Definition of systems, models, and simulation

– Nature of operations and social systems

– Why simulate

– Classification of simulation

– Level of abstraction

– Paradigms

• Outlook – How to conduct simulation studies

42

Page 43: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

Questions / Comments

G54SIM 43

Page 44: G54SIM (Spring 2016) - Nottinghampszps/g54sim/2016/G54SIM-Lec01_2016_full.pdf–The process of designing a model of a real system and conducting ... –to determine the effects of

G54SIM

References

• Casti (1998). Would-Be Worlds: How Simulation is Changing the Frontiers of Science

• Robinson (2014). Simulation: The Practice of Model Development and Use

• Shannon (1975). Systems Simulation: The Art and Science

44