# Computer Simulation

*2021-02-02*

# Preface

In this course the students will learn the three main modeling and simulation techniques: Discrete Event Simulation, System Dynamics and Agent-Based Simulation. The course follows a rather modeling centric approach, where the main focus lies on developing models with the AnyLogic Multi-Method modeling and simulation software, rather than coding it from bottom up in a programming language. This allows for a deeper and quicker understanding of the three methods, how they are used and of the subtleties of computer simulation in general. The focus in the 1st semester is on Discrete Event Simulation and System Dynamics, with Agent-Based Simulation only briefly introduced as the latter one is the main focus of the 3rd semester course and project, where also implementation work has to be done by the students.

## Lecture Content for *Introduction to Computer Simulation of Complex Systems*

- Preliminaries
- Motivating Example
- Simulation and Optimisation
- Introduction
- Discrete Simulation: Basics and Terminology
- Discrete Simulation: Single-Server Queue
- Discrete Simulation: Implementation Techniques
- Discrete Simulation: Queuing Models and Theory
- Discrete Simulation: Stochastic Processes and Output
- Discrete Simulation: Modeling
- Continuous Simulation: Basics
- Continuous Simulation: Equilibrium, Stability, Attractors
- Continuous Simulation: Implementation Techniques
- Continuous Simulation: Patterns
- Continuous Simulation: Modeling
- Agent-Based Simulation: From SD to ABS
- Agent-Based Simulation: Implementation Techniques
- Agent-Based Simulation: Modeling

## Lecture Content for *Agent Based Computer Simulation / Project Simulation and Optimization*

## Timeline

This is the timeline of the 1st semester course *Introduction to Computer Simulation*

*Lecture*Tuesday 22 Sep, 08:10 - 09:45- Preliminaries
- Motivating Example
- Simulation and Optimisation
- Introduction

*Lecture*Tuesday 29 Sep, 08:10 - 09:45- Introduction
- Discrete Simulation: Basics and Terminology
- Exercise DES - Tutorial

*Lecture*Tuesday 6 Oct, 08:10 - 09:45- Discrete Simulation: Single-Server Queue
- Exercise DES - Queue Statistics

*Lecture*Tuesday 13 Oct, 08:10 - 09:45- Discrete Simulation: Implementation Techniques
- Exercise DES - Java Implementation

*Lecture*Tuesday 27 Oct, 08:10 - 09:45- Discrete Simulation: Queuing Models and Theory
- Exercise DES - Generalist vs. Specialist

*Lecture*Tuesday 3 Nov, 08:10 - 09:45- Discrete Simulation: Stochastic Processes
- Exercise DES - Manufacturing System

*Lecture*Tuesday 10 Nov, 08:10 - 09:45- Discrete Simulation: Process Oriented Modeling
- Exercise DES - Inventory Management

*Lecture*Tuesday 17 Nov, 08:10 - 09:45- Continuous Simulation: Basics
- Exercise SD - Tutorial

*Lecture*Tuesday 24 Nov, 08:10 - 09:45- Continuous Simulation: Equilibrium, Stability, Attractors
- Exercise SD - Lotka Volterra Part 1

*Lecture*Tuesday 1 Dec, 08:10 - 09:45- Continuous Simulation: Implementation Techniques
- Exercise SD - Java Implementation

*Lecture*Tuesday 15 Dec, 08:10 - 09:45- Continuous Simulation: Patterns
- Exercise SD - Lotka Volterra Part 2

*Lecture*Tuesday 22 Dec, 08:10 - 09:45- Continuous Simulation: Modeling Techniques
- Exercise: -

*Lecture*Tuesday 12 Jan, 08:10 - 09:45- Agent-Based Simulation: From SD to ABS
- Exercise ABS - Adopters

*Lecture*Tuesday 19 Jan, 08:10 - 09:45- Agent-Based Simulation: Implementation Techniques
- Exercise ABS - Java Implementation or Exercise ABS - Manhattan Party

*Lecture*Tuesday 26 Jan, 08:10 - 09:45- Agent-Based Simulation: Modeling
- Exercise: -

## Assessment

Exercises

## References and Copyright

TODO add relevant references

**We do not claim original authorship of these lecture notes and put emphasis on the fact that they do not contribute original work, are intended as supplementary material to students in the respective lecture and are not intended for publication or print**.

**However, some chapters are the product of the authors own work and ideas and do not constituted copied work. These chapters are always indicated clearly. Obviously, this work and ideas is also inspired by others (we all stand on the shoulders of giants) and if used and cited this is always indicated clearly in these chapters.**

These lecture notes are not a unique work of the author but are a summary and compendium of the respective topics from the following sources: TODO. Whole parts of these sources have been copied, with some slightly changed and adopted to the narrative and flow of the text. We refrained from making references to each copied sentence to avoid clutter. Many figures were copied as well, however we always indicate the source of figures clearly in case they are copied from other sources.