Upload
ubed-al-idist
View
214
Download
0
Embed Size (px)
Citation preview
7/27/2019 L5-SD_Stock_Flow.ppt
1/34
Stocks & Flows Diagrams:
EXTENDED
Based on
Budi HARTONO
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
2/34
Adding Input / Output Objects
Slider Bars for constant-valued auxiliary variables
Slider Bars to set the initial value of box variables
Making a switch out of a Slider
Adding custom graphs/tables to the build window
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
3/34
REFERENCE CASE THE FLU
Susceptible People is initially 99
Infected People is initially 1
Infection Fraction = 0.0151
Get Sick = Susceptible People *
Infected People * Infection Fraction Model Settings: Initial Time = 1, Final
Time = 10, TimeStep = 0.1, unit for time
= days
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
4/34
Slider Bars for Constant-Valued Auxiliary Variables
Changing the infection fraction
Why?
What-if analysis
Calibration
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
5/34
Procedure1.
2.
3.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
6/34
Slider Bars to Set the Initial Value of a Box Variable
to vary the initial value ofSusceptible People.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
7/34
Procedure
Add a new auxiliary variable and name it Initial Valueof Susceptible People.
Add a connector from this auxiliary variable toSusceptible People.
Open the equations window ofSusceptible People. Set its initial value equal to Initial Value of Susceptible
People.
Now open the equations window for Initial Value of
Susceptible People and specify a value. Create a slider for your auxiliary variable as described
earlier
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
8/34
Making Switches Out of Sliders
restricting them to a value of either 0 or 1
turning them into On/Off switches for rates
When Get Sick On/Off = 0, the formula for Get Sick
evaluates to 0:
GS = S * I * k * 0 = 0.When Get Sick On/Off = 1, the formula for Get Sick
is normal:
GS = S * I *k * 1 = S * I * k.
GS = S * I * k * o
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
9/34
GS = S * I * k * o
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
10/34
Adding Custom Graphs and Tables to the Build Window
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
11/34
Case 4 The Workforce-Inventory Example
Self-exercise
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
12/34
The Context
You are involved in the production and sale of prefabricated
window frames. Overall your company is doing quite well, but
you often go through periods of low capacity utilization
followed by production ramp up and added shifts.
While all of this is normally blamed on market demand and
the condition of the economy, you have your doubts.
Looking back at sales and production over the last 8 years it
seems that sales is more stable than production.
Your goal is to determine why this might be, and what you can
do about it.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
13/34
Approach
In attacking this problem you want to simplify as much as
possible your current situation. There are a number of
reasons for this simplification:
It is easier to understand a simple model.
You can get results quickly and decide if you are on the right track.
It is more effective to start with a simple model and add detail, than to build a
complex model and attempt to extract insights from it after it is complete.
Using a simple model forces you to take an overview which is usually useful in
the initial modeling phases.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
14/34
The Iceberg: events patterns - structure
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
15/34
Dynamic Hypothesis
an idea about what structure might be capable ofgenerating behavior like that in the reference modes.
Key variables of interest:
____
____
The dynamic hypothesis for this firm is that a manager issetting production based on current sales, but isamplifying the amount resulting in higher (or lower)production than is necessary.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
16/34
Sales Production
Related by:
physical : production is required to produce goods to
sell
Information: managers base production decisions oncurrent or recent sales
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
17/34
Physical Relationships
Stocks?
Flows?
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
18/34
Workforce
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
19/34
Behavioral Relationships
information connections.
a stock adjustment process
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
20/34
Stock Adjustment Process
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
21/34
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
22/34
Equation Set
FINAL TIME = 100
Units: Month
INITIAL TIME = 0
Units: Month
TIME STEP = 0.25
Units: Month
SAVEPER = TIME STEP
Units: Month
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
23/34
Inventory = INTEG(production-sales, 300)
Units: Frame
net hire rate=(target workforce-Workforce)/time to adjust workforceUnits: Person/Month
production= Workforce*productivity
Units: Frame/Month
productivity= 1
Units: Frame/Month/Person
sales= 100 + STEP(50,20)
Units: Frame/Month
target production= sales
Units: Frame/Month Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
24/34
target workforce= target production/productivity
Units: Person
time to adjust workforce= 3
Units: Month
Workforce = INTEG(net hire rate, target workforce)
Units: Person
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
25/34
Run Simulation & analysis
VS.
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
26/34
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
27/34
One missing loop is introduced
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
28/34
Added equation
target production = sales + inventory correction
Units: Frame/Month
inventory correction = (target inventory - Inventory)/
time to correct inventory
Units: Frame/Monthtime to correct inventory = 2
Units: Month
target inventory = sales * INVENTORY COVERAGE
Units: Frame
INVENTORY COVERAGE = 3
Units: Month
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
29/34
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
30/34
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
31/34
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
32/34
inventory
Target inv
sales
production
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
33/34
Policy Analysis - Sensitivity
More aggressive correction for inventory deviations
Time to correct inventory: 1 month instead of 2 months
Sugeng Purwoko
7/27/2019 L5-SD_Stock_Flow.ppt
34/34
Reality Check model verification
Extreme condition test
"Without Inventory we can't ship."
Sugeng Purwoko