# Assignments WS 2018/2019

## Simulation proposal (dolj04)

Topic/goal: Optimal size of HDD for virtual Digitization server

Definition of the problem:
- each day an average of 47 batches of documents is being processed by the server with average size per batch of 32 MB (calculated from customers server)
- the number of batches changes a lot and cant be easily predicted so it will have to be taken into consideration (from sample: lowest number of batches scanned in a day is 13, the highest is 134)
- the average size is not changing that much
- (batch contains original scanned documents, extracted data in XML files, log files, enhanced images and searchable PDF)
- backup images from scanning will stay on the server for 6 months (those are additional ~50 % of the batch size)
- successfully processed batches older than 14 days are deleted every day
- for precaution lets say around 5% of batches wont be processed correctly
- those will stay on the server and will be processed every month by admins

Simulation environment: Vensim

on what data you will base the simulation? I do not see any causal loops in the issue you are trying to solve, using Vesim does not make much sense then- this topic suits the Monte Carlo if you have the data to derive the parameters from. Oleg.Svatos (talk) 22:38, 18 December 2018 (CET)
I would like to take the data at work as I have access to production server which is used by one of our customers for digitization and I will use Monte Carlo as you suggested.
OK.Approved. Make sure that the derivation of probability distributions out of the real data for generating the random values is also part of your paper.Oleg.Svatos (talk) 08:38, 20 December 2018 (CET)

## Simulation proposal (svem02 Martin svejda (talk) 18:42, 18 December 2018 (CET))

Topic: likelihood of infection with flu

Definition of the problem:
- everyone has a certain probability of getting sick with a flu, this model calculates the probability based on the people you are in contact with (two types of people, infected, not infected). Other variables and levels are available (e.g. infestation, total population

Simulation environment: Vensim

on what data you would set up the simulation? how would you simulate the individual people and their connection in Vensim? (in my opinon this topic fits multiagent simulation) Oleg.Svatos (talk) 22:30, 18 December 2018 (CET)
I would base the simulation on how much one person interacts with others, depending on this variable the person would have some probability of getting sick thus the number of ill people would increase thus the probability of him getting sick would be higher and higher. The variable infestation would represent how much the illness is easily transimited to other people. Martin svejda (talk) 14:04, 19 December 2018 (CET)
I do not see it as simulation - not much of randomness, no causal feedback loops and pretty obvious result (the longer the simulation would run, the more sick people or that one gets sick) with no practical use. Not to mention, there is no data to derive the equations needed. Either reformulate it for the Netlogo so that it has some useful results based on some real data, or try something else. Oleg.Svatos (talk) 14:27, 19 December 2018 (CET)
Ok, I will try something else. New proposal at the bottom of the page Martin svejda (talk) 16:46, 19 December 2018 (CET)

## Simulation proposal (xkaij00 (talk) 21:20, 18 December 2018 (CET)) (Not approved yet)

Topic: Social and economical effects of reunification of North & South Korea

Definition of the problem:
Let's hope one day South and North Korea will be reunited. That would mean a big fluctuation of people between the two separated states:
- North Koreans will migrate to South Korea area, look for flats, try to get jobs and receive welfare.
- South Koreans will invest in North Korea area and create jobs and factories there.

I would like to simulate:
- What will be the population ratio of the two areas per square meter.
- How many North Koreans will move to South Korea area after the reunification and how many of them will be on welfare and how much that will cost the new reunited country.
- How much will the suicide rate change in Korea after the reunification since it's a known fact that defected North Koreans have a high suicide rate due to the fact they have difficulties to adjust to the new lifestyle and process propaganda-free information.
- What will be the housing situation after the reunification.
- How will the GDP of the new country possibly develop.
- Possibly how much money will be needed from international help.

Simulation environment: NetLogo

I must say it is a really interesting topic, but I am afraid it is a bit too ambitious. Please, if you are interested in this topic, elaborate in detail, how you would solve it. What agents would you use, what parameters, how the simulation would look like, on what data it should be based (and where you get them). And perhaps focus on fewer goals. To be honest, I am still not sure if this is doable, because of the need for extensive research. But, try to think about it yourself. Tomáš (talk) 19:26, 19 December 2018 (CET)

Thank you for the feedback - I tried to break down and simplify the simulation:
Agents:
- North Koreans (0-14 years)
- North Koreans (15-24 years)
- North Koreans (25-54 years)
- North Koreans (55-64 years)
- North Koreans (65 years and over)
- South Koreans (0-14 years)
- South Koreans (15-24 years)
- South Koreans (25-54 years)
- South Koreans (55-64 years)
- South Koreans (65 years and over)
- South Korea listed companies
- Foregin investors
Parameters
- North Korea GDP
- North Korea GDP growth
- South Korea GDP
- South Korea GDP growth
- North Korea area [sq. meters]
- South Korea area [sq. meters]
- North Korea unemployment rate
- South Korea unemployment rate
- South Korea average salary [[1]]
- North Korea suicide rate ([[2]])
- Income / Suicide Rate ratio ([[3]])
- Migration rates from East to West Germany after the fall of the Iron Curtain [[4]] (will be used as a reference for random migration rates)
Targets of the simulation:
- Determine population distribution based on migration rates (random based on data from Eastern/Western Germany case) and population
- Determine unemployment in the reunited country
- Determine suicide rates of North Koreans based on welfare / amount of underage persons (students) / average salary / amount of retired persons
- Determine new GDP based on above data (foreign investors being random)
Data sources:
Apart from the sources linked above, the data on North Korea will be used from CIA website [[5]], comparable data on South Korea will be used from the same source for consistence [[6]] and other specific data on South Korea will be pulled from Wikipedia.
The running simulation should show charts of the suicide rates, unemployment and GDP in time and the absolute numbers for the population distribution.
Please let me know if this narrowing-down and breakdown is sufficient :) Thank you.
Xkaij00 (talk) 00:48, 20 December 2018 (CET)
The relevance of comparison with Germany is questionable, but, ok. Let's say there perhaps isn't any better comparison. Nevertheless, I still don't understand, how the simulation should work. How the agents will act? How it will be measured? How you will be able to calculate all the figures? Tomáš (talk) 18:28, 21 December 2018 (CET)
OK, I thought about how I would realize the simulation in NetLogo and I see you were right about it being too complicated. So I tried to simplify my model even more to be doable:
- The patches will be divided proportionally by area of the two countries, they will also be characterized by a certain portion of the initial GDP as their wealth.
- The turtles representing Koreans will have initial wealth (also based on the initial GDP) and they will be migrating towards one of the two states based on their inclination to migrate to the other country. This inclination will be calculated randomly based on the East-West Germany migration data and their wealth.
- On each tick, the simulation will determine:
- if the turtle (Korean) has a job (landed one, got fired, is working, or didn't get hired) based semi-randomly on the wealth of the patch the turtle is on.
- The wealth of the patch and turtle -> if the turtle is employed, it gains wealth and also generates a little wealth for the patch; If unemployed, it drains the wealth of the patch a little and its wealth decreases a little.
- Based on the suicide rates, employment and wealth, it will also semi-randomly decide if the person is likely to kill themselves.
That way we can at least simulate and see the wealth distribution, suicide rates and population distribution in a very simplified model... Does that makes sense or am I still in over my head? :) Xkaij00 (talk) 19:20, 21 December 2018 (CET)

## Simulation proposal (bobj00) (Bobrekjiri (talk) 13:49, 19 December 2018 (CET)) (Not approved yet)

Topic/goal: Comparing the efficiency of Diamond interchange and Diverging diamond interchange

Definition of the problem:
- Diverging diamond interchange is an alternative to Diamond interchange that is being used in France since 1970s and was brought to light recently (2009) in USA because it should be more effective than Diamond interchange in terms of waiting times and also in terms of safety (fewer crossing points of traffic).
- Goal of the simulation is to measure if the statement about lower waiting times is correct and under which conditions (traffic load, traffic lights setup).
- Throughput and waiting times will be measured under several traffic conditions, for example: most cars exiting highway are heading south or most cars entering highway are heading west, etc.
- Model does not include simulation of traffic accidents, so the safety cannot be measured and will not be part of the simulation.

Simulation environment: Netlogo Approved Tomáš (talk) 18:29, 21 December 2018 (CET)

## Simulation proposal Martin svejda (talk) 16:52, 19 December 2018 (CET)

Topic/goal: Maze runner vs fire

Definition of the problem:
- There will be a maze, in one corner a person, who tries to find the way out, in the other corner will be fire spreading rapidly. Does the person survives or dies by fire? Person and fire wont be able to jump through walls.

Simulation environment: Netlogo

What is the purpose of the simulation? Tomáš (talk) 18:30, 21 December 2018 (CET)
to find out whether a person who is lost in a bulding will survive. Imagine yourself in a bulding you have never been before and a fire appears. Wouldn’t it be interesting to know If you would find your way out? Martin svejda (talk) 22:51, 21 December 2018 (CET)

## Simulation proposal qnesa01 (Not approved yet)

Topic/goal: Traffic simulation Argentinska street

Situation:
- Argentinska street is one of the important roads in Prague that connects Bubenské nábřeží with bridge “Barikádníků”. It leads from city centre and other parts of city outside to the northern part of the country, and to Germany or Poland. Moreover, Argentinska street connects hospital “Na Bulovce” with city centre and other parts. For emergency vehicles it is the way how to get faster, where help is needed.

Definition of the problem:
- There is traffic on the road during mornings and evenings, which makes people wait sometimes hours to get out and more important it makes difficult pass for emergency vehicles.

Purpose of simulation:
In the scope is part of Argentinska street from Bubenské nábřeží till Dělnická street plus street Za Viaduktem, part of Jateční and part of Tusarova street as they have influence on the whole situation of Argentinska traffic. The purpose of the simulation is to find ways how to make traffic less. In order to do it will be checked, first, if it is possible to change lights more efficiently for cars flow. Second, answer the question – if we can add only one line only to one direction, which direction we have to choose: to city centre or from city centre?

Simulation environment: Simprocess; SUMO (for traffic representation)

Brief process of simulation :
1) Data collection. Data will be collected manually (observation) and from HERE traffic API. Manually for morning, midday and evening during 30 mins each part of the day within one week. At the end of data collecting the average distribution will be made based on the data. 2) Real situation simulation 3) Based on simulation of real situation will be checked the efficiency of lights changes 4) The hypothetical model of adding one more line will be created based on simulation of real situation 5) Summary

Ok, SUMO could be used for this. I just don't understand what you will simulate in SUMO, and what you will simulate in Simprocess, and why? The combination of two tools is uneasy, so there should be a good reason. However sounds interesting. Tomáš (talk) 18:41, 21 December 2018 (CET)

## Simulation proposal Kadj02 (talk) (Jindřich Kadoun) 18:52, 19 December 2018 (CET)

Topic/goal: Survival of the apocalypse

Definition of the problem:
- This simulation would aim to showcase in what conditions can humanity survive in the zombie-apocalyptic scenario.

The usual scenario in which zombie appears is very simple: there are some number of patiants zero and the rules for spreading the plague is to get bitten by the infected. There is also a percantual chance of beeing immune against the plague. Zombies are usually slower than human beeings and behave on the basic of their nearest vision.

Numerous factors can be acounted for survival, like ability for humanity to reproduce, their number, immunity, effectivnes of the plague.

Simulation environment: Netlogo

Please, no zombie-topics! The problem is that you cannot verify such an assignment with real data. Tomáš (talk) 18:43, 21 December 2018 (CET)
Alright then. My second suggestion would be simulating slime mold searching for food. (gif representing the mold [[7]] ) I should be able to confront that with a reality and the number of “foods” and speed of the mold could be variable. Kadj02 (talk) 23:36, 21 December 2018 (CET)

## Simulation proposal Xlazl00 (talk) 22:33, 19 December 2018 (CET)

Topic/goal: Medieval Battle Simulation

Definition of the problem:

Two kingdoms come to a dispute and after extensive diplomacy had failed, they take up arms and go to battle.
Each kingdom can have different number of units, but they each choose from the same kind of units (unit types are better against some and weaker to other).
Each side has their own staging area, but within that area the units can spawn at random locations to test different strategic formations.
When they meet in battle, they fight to the last man who wins the dispute for his king.

Purpose of simulation:
It simulates medieval combat on battlefield between two sides.
The user can select which type of units and how many will each kingdom have.
Repeated simulation can lead to conclusions on what strategy the kings should focus on and which units they should train for successful reign when facing a violent foe.

Simulation environment: NetLogo

I would narrow this down to testing battle strategies. Forget kingdoms. You can perform a research on some historical strategies, their pros and cons, choose some, and try to simulate them, and compare. If it sounds meaningful, please, redefine the assignment. Tomáš (talk) 18:48, 21 December 2018 (CET)
The part about kingdoms was more of a story telling. The objects in NetLogo would just be the units (of different types). I envisioned them to spawn at random on their given side of the plane, but if it's necessary I could include spawning in historical formations. Would that be ok? Xlazl00 (talk) 11:00, 22 December 2018 (CET)

## Simulation proposal Xsmyt00 (talk) 09:30, 20 December 2018 (CET)

Topic/goal: Proof of a business plan - simulation of capacities of a Café

Definition of the problem:

At the moment we have a venue in a small town under construction which we would like to turn into a café.
The spatial dispositions are set and now there are many questions like: how to set up tables, find out how many people can be at one time in the café, if the café is profitable when the amount of people coming in is low/medium/high, etc.

Purpose of simulation:
As said, I would like to simulate a process of people coming in to find out the right amount of seats and tables when knowing there will be just one staff member at the time.
I would also like to find out whether it is even possible to manage the whole place being just one person responsible for everything and/or whether it is cost efficient.

The output data should help us find out whether the whole concept is viable and based on the findings we could adjust the business plan.

Simulation environment: I would like to use Simprocess for the simulation of the venue setting and probably complement it with some calculations in Excel.

I like the idea, just hesitate about the tool. As far as I understand, a substantial part of the whole thing is about the spatial arrangement of the café. Then Simprocess is not the first choice. Why do you want to use it? Tomáš (talk) 18:56, 21 December 2018 (CET)

## Simulation proposal Manj01 (talk) 15:21, 21 December 2018 (CET)

Topic/goal: Effective class configuration a plane between Prague and Dubai

Definition of the problem:

There is a new airline operating between Prague and Dubai. The want to configure their planes as effectively as possible. They have one second hand Boeing 777 (396 seats in economy class only configuration)

Purpose of simulation:
Company wants to operate daily air route between Prague and Dubai. The company can have up to four classes - economy, economy plus, business and first. Seat in higher class takes more space, but generates more money. Prices are available from companies currently operating on this route. Demand predictions can be made based on class configurations used by companies already operating on this and similar routes (6-hours mainly holiday) destinations.

Simulation environment: I would like to use MS Excel to do Monte Carlo simulation.

I just wonder, where is the randomnes, as you want to just derive the configuration from the already operating competition. If it should be a simulation, you would have to have real daily data (for reasonable long period, a year minimum) for the demand for the flights (there and back) and also for the individual classes. Only then you are able to derive probability distributions for the simulation that would make sense. Oleg.Svatos (talk) 22:31, 21 December 2018 (CET)

## Simulation proposal (xpipj04)

Topic/goal: You are what you eat

Definition of the problem:
Most people nowadays want to hit the gym or eat healthy to get fit and at the same time take a long high quality sleep and work effectively. All the success in life and your energy comes from the food (nutrition values) you consume a day and the regime you have. The new year is knocking the door and you want to make sure that you will plan your food and regime effectively so your life is in balance.

Purpose of simulation:
Based on the input you choose the simulation should be able to give you the expected levels of achieved energy, work efficiency and especially if you are about to get fit or you will drop down to be a couch potato.

Input parameters
- Food consumed - listed types of food with calculated nutrition values (protein, fat, sugar, energy)
- Time spent at gym (kardio, workout, culturist)
- Time spent at work - type of work (manual, manager)
- Time spent sleeping

Output