SlideShare a Scribd company logo
1 of 32
Download to read offline
Vensim
                 e s
                Chapter 6
     Building a Simulation Model



Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Naming Conventions
     g
     Levels – initial capital letters; e.g., Population
     Rates, auxiliaries, constants, lookups, data variables – all lower 
     Rates auxiliaries constants lookups data variables – all lower
     case; e.g., average lifetime




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Sketch Conventions
 Sketch Conventions
     Levels or stocks are entered with the Box Variable tool
     Levels or stocks are entered with the Box Variable tool
     Rates are entered with the Rate tool




         Box Variable - Level         Rate




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Sketching the Rabbit Model
        g
 File > New Model




                                     1                                           5
                                     2
                                                                           Type the name
                                                                         Population and press
                                     3                                           enter
                                                                                   t




                 4



Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim          December 2010
Sketching the Rabbit Model
        g

          9

                  7        8   6



          6                              5             6


                  8


                 7                                                       7



 A positive feedback loop from Population to births increases 
 Population, and a negative feedback loop from deaths 
 decreases Population
 decreases Population
Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim       December 2010
Writing Equations
      g q
 births = population * birth rate
 Birth rate has not causes; it is constant in the model
 Bi th t h        t         it i      t t i th      d l




                                                Equations                  All the variables in the
                                                                           model will turn black.

                                                                           The highlights indicate
                                                                           which variables still
                                                                           require equations or
                                                                           have incomplete
                                                                           equations


Vensim Chapter 6: Building a Simulation Model     Presented by Diana Lim          December 2010
Checking y
       g your model
 Model > Units Check




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Variable Type: Auxiliary
          yp           y
 Click on variable births


                                  2



      1




                            3




                   4

Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Variable Type: Level
              yp
     Click on variable population
                                       equation is already present in the equation editing box

                                       Rates constructed by clicking first outside, and then on the Level
                                       are considered positive (inwards) flows; rates constructed by
                                       clicking on the Level, and then outside the Level are considered
               2                       negative (draining) flows

1



               3




           4
    Vensim Chapter 6: Building a Simulation Model      Presented by Diana Lim            December 2010
Variable Type: Constant
          yp
 birth rate

                  2




 1



                        3    this means that the fractional birth
                             rate is measured in fraction (of
                             rabbits) per year.



              4

Vensim Chapter 6: Building a Simulation Model      Presented by Diana Lim   December 2010
Variable Type: Constant
          yp
 average lifetime


            1




                2




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Variable Type: Auxiliary
          yp           y
 Click on variable deaths


                            1




                 2




        3

Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Checking y
       g your model
 Model > Check Model




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Checking y
       g your model
 Model > Units Check




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Unit Equivalents ( y
      q          (Synonyms)
                       y )
 Fail in Units check because Vensim does not see the plural 
 form as the same word
 form as the same word
 Model > Settings...

                                    1




                     2



                         3


Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Simulating the Model
           g
                                                                  2
                                1
Double click on the Runname editing
box on the Toolbar and type equilib for
                        yp q
the first run name.




    Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Model Analysis
          y
 Click on the Level Population in the sketch.
 Click on the Graph t l A
 Cli k    th G h tool. A graph of Population i
                                 h fP      l ti is generated:
                                                         t d




2                                                       1
    Graph




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Model Analysis
          y




 Population appears as a flat line at the top of the graph at 
 P     l i                fl li        h       f h       h
 1000 rabbits. To check that no change is occurring,
 Click on the Table tool
   l k     h    bl     l
                                                                         Output window
                                                                          shows that
                                                                          Population is
                                                                          unchanging.


Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim    December 2010
Simulation Experiments
             p
 Click on the SyntheSim      button . Answer yes to 
 whether you want to overwrite the existing run.
 whether you want to overwrite the existing run
 The toolbar will change to 

 and you will see variable behavior for all elements on the 
 diagram.
 di




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Simulation Experiments
             p
 Click on the Runname editing box and replace equilib with the 
 name growth.
 name growth
 Drag the slider beneath birth rate up till it shows 0.2 as its 
 value.




 The blue lines show the current run and the red line the 
 equilib run results
         run results.
 Click on the Stop button to stop SyntheSim.
 View>Show Behavior to see behavior graphs again.
 Vi >Sh B h i t               b h i        h     i
Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Alternative Simulation Setup
                           p
 Click on the Set up a Simulation button
 The Toolbar changes to the simulation toolbar.
 The Toolbar changes to the simulation toolbar

 notice that the constants turn into yellow words with blue 
    ti th t th        t t t      i t    ll      d ith bl
 background
 Also, the sketch tools are grayed out, preventing work in the 
 Also the sketch tools are grayed out preventing work in the
 sketch window.
                                                             Click on the variable birth rate
                                                             and in the editing box
                                                             type the value 0.2

                                                             This is a temporary change for
                                                             this run only and does not
                                                             permanently alter the value in
                                                             your model.
                                                                       d l

Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim        December 2010
Causes Strip Graph
           p    p
 Click on Population to select it into the workbench.
 Click on the Control Panel button
 Cli k    th C t l P       l b tt
                                 1




                           2


                                                The last run you made (growth)
                                                is loaded first (at the top of the
                                                dialog).




Vensim Chapter 6: Building a Simulation Model    Presented by Diana Lim         December 2010
Causes Strip Graph
           p    p
 Click on the Graph tool. A graph will show both runs




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Causes Strip Graph
           p    p
   Now click on the Causes Strip tool.


Causes Strip




 Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Runs Compare
        p
  Click on the Runs Compare tool.
  shows the differences in the Constant birth rate for runs 
  equilib and growth.



Runs Compare




  Population grew in the growth run because the birth rate was 
  set to a higher value than the equilibrium value. This made the 
  positive feedback loop through births stronger than the 
  positive feedback loop through births stronger than the
  negative feedback loop through deaths, resulting in Population 
  growth over time.

 Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Exponential Decay
  p             y
 make changes to a model Constant to generate exponential 
 decay or decline in the population
 decay or decline in the population
                                          1
           1
                                                      4    2

                                                                         Drag the Slider under
                                                                         average lifetime till it
                                                                         displays
                                                                         di l a value of 4
                                                                                      l    f 4.

                                                                         Click on the Stop
                                                                         Button
                                                       3



 Click the Simulate button and the model will simulate


Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim         December 2010
Exponential Decay
  p             y
 Click on the Graph tool and compare the three runs.
                                          1



                                                                         double click
                                                                         on the run equilib in
                                                                         the right box; this will
                                                                          h i h b        hi ill
                                                                         unload the run so the
                                                2                        Analysis tools will
                                                                         not examine it
                                                                                      it.




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim         December 2010
Exponential Decay
  p             y
 Click on the Causes Strip tool 
 to show Population and its 
 to show Population and its
 causes— births and deaths, for 
 the two last runs.
 the two last runs

Population d li
P    l i declines i the d
                    in h decay run
because the average lifetime was set to a
lower value than the equilibrium value.
This made the negative feedback loop
through deaths stronger than the positive
feedback loop through births, resulting in
             p       g                 g
Population decline over time.



Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Input and Output Objects
  p          p     j
 Click on the Control Panel button and then select the 
 Graphs tab
         tab.
                                                1




                                                2




                                                                             3




Vensim Chapter 6: Building a Simulation Model       Presented by Diana Lim       December 2010
Input and Output Objects
  p          p     j


                                        1

                                                                         Do the same for
                                                                         births (select births
                                                                         from the list) and
                                                                         f      h li ) d
                                                                         deaths (select deaths
                                3                                        from the list)
                                                         4
                      2
   5




              6                                 5

Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim         December 2010
Input and Output Objects
  p          p     j
 Select the Input Output Object sketch tool


                   4                                                2


            1




                                                                                    3




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010
Input and Output Objects
  p          p     j
 Click the SyntheSim button
 Experiment with moving the sliders around and seeing 
 E      i   t ith      i th lid          d d      i
 the results on the graph.




Vensim Chapter 6: Building a Simulation Model   Presented by Diana Lim   December 2010

More Related Content

What's hot

Dynamic System Development Method (DSDM)
Dynamic System Development Method (DSDM)Dynamic System Development Method (DSDM)
Dynamic System Development Method (DSDM)LennonDukeDuero
 
Introduction to Systems Thinking: System Structures and Behaviour
Introduction to Systems Thinking: System Structures and BehaviourIntroduction to Systems Thinking: System Structures and Behaviour
Introduction to Systems Thinking: System Structures and BehaviourJason Yip
 
DSDM Dynamic System Development Method
DSDM  Dynamic System Development MethodDSDM  Dynamic System Development Method
DSDM Dynamic System Development MethodN R Z Malik
 
Monkey & banana problem in AI
Monkey & banana problem in AIMonkey & banana problem in AI
Monkey & banana problem in AIManjeet Kamboj
 
01 Introduction to System Dynamics
01 Introduction to System Dynamics01 Introduction to System Dynamics
01 Introduction to System Dynamicsiddbbi
 
UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and ViewsKumar
 
Modelling simulation (1)
Modelling simulation (1)Modelling simulation (1)
Modelling simulation (1)Cathryn Kuteesa
 
Musings - System thinking - Notes on Donella Meadow's Book
Musings - System thinking - Notes on Donella Meadow's BookMusings - System thinking - Notes on Donella Meadow's Book
Musings - System thinking - Notes on Donella Meadow's BookJames Cracknell
 
Introduction to simulation modeling
Introduction to simulation modelingIntroduction to simulation modeling
Introduction to simulation modelingbhupendra kumar
 
Types of Mathematical Model.
Types of Mathematical Model.Types of Mathematical Model.
Types of Mathematical Model.Megha Sharma
 
Introduction to Agent-based Modelling
Introduction to Agent-based ModellingIntroduction to Agent-based Modelling
Introduction to Agent-based Modellingurbanmovements
 
HCI - Chapter 6
HCI - Chapter 6HCI - Chapter 6
HCI - Chapter 6Alan Dix
 
Software Engg. process models
Software Engg. process modelsSoftware Engg. process models
Software Engg. process modelsTauseef Ahmad
 
Socio organizational issues ppt
Socio organizational issues pptSocio organizational issues ppt
Socio organizational issues ppttamizh arthanari
 

What's hot (20)

Dynamic System Development Method (DSDM)
Dynamic System Development Method (DSDM)Dynamic System Development Method (DSDM)
Dynamic System Development Method (DSDM)
 
Introduction to Systems Thinking: System Structures and Behaviour
Introduction to Systems Thinking: System Structures and BehaviourIntroduction to Systems Thinking: System Structures and Behaviour
Introduction to Systems Thinking: System Structures and Behaviour
 
DSDM Dynamic System Development Method
DSDM  Dynamic System Development MethodDSDM  Dynamic System Development Method
DSDM Dynamic System Development Method
 
Monkey & banana problem in AI
Monkey & banana problem in AIMonkey & banana problem in AI
Monkey & banana problem in AI
 
01 Introduction to System Dynamics
01 Introduction to System Dynamics01 Introduction to System Dynamics
01 Introduction to System Dynamics
 
UML Architecture and Views
UML Architecture and ViewsUML Architecture and Views
UML Architecture and Views
 
Modelling simulation (1)
Modelling simulation (1)Modelling simulation (1)
Modelling simulation (1)
 
System dynamics ch 1
System dynamics ch 1System dynamics ch 1
System dynamics ch 1
 
Musings - System thinking - Notes on Donella Meadow's Book
Musings - System thinking - Notes on Donella Meadow's BookMusings - System thinking - Notes on Donella Meadow's Book
Musings - System thinking - Notes on Donella Meadow's Book
 
Software Development Process
Software Development ProcessSoftware Development Process
Software Development Process
 
Introduction to simulation modeling
Introduction to simulation modelingIntroduction to simulation modeling
Introduction to simulation modeling
 
Types of Mathematical Model.
Types of Mathematical Model.Types of Mathematical Model.
Types of Mathematical Model.
 
CMM
CMMCMM
CMM
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Introduction to Agent-based Modelling
Introduction to Agent-based ModellingIntroduction to Agent-based Modelling
Introduction to Agent-based Modelling
 
HCI - Chapter 6
HCI - Chapter 6HCI - Chapter 6
HCI - Chapter 6
 
Software Engg. process models
Software Engg. process modelsSoftware Engg. process models
Software Engg. process models
 
Hci
HciHci
Hci
 
Socio organizational issues ppt
Socio organizational issues pptSocio organizational issues ppt
Socio organizational issues ppt
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 

More from Diana Lim

Lessons From Late Movers
Lessons From Late MoversLessons From Late Movers
Lessons From Late MoversDiana Lim
 
The Evolving Contributions In Intl Strategic Mgt
The Evolving Contributions In Intl Strategic MgtThe Evolving Contributions In Intl Strategic Mgt
The Evolving Contributions In Intl Strategic MgtDiana Lim
 
When You Shouldnt Go Global Ppt
When You Shouldnt Go Global PptWhen You Shouldnt Go Global Ppt
When You Shouldnt Go Global PptDiana Lim
 
Pet Airways Ppt V1
Pet Airways Ppt V1Pet Airways Ppt V1
Pet Airways Ppt V1Diana Lim
 
The rise of linux
The rise of linuxThe rise of linux
The rise of linuxDiana Lim
 
Clockspeed chapter 2
Clockspeed chapter 2Clockspeed chapter 2
Clockspeed chapter 2Diana Lim
 
Nestle lc1 presentation
Nestle lc1 presentationNestle lc1 presentation
Nestle lc1 presentationDiana Lim
 
Companion or cuisine ppt
Companion or cuisine pptCompanion or cuisine ppt
Companion or cuisine pptDiana Lim
 

More from Diana Lim (8)

Lessons From Late Movers
Lessons From Late MoversLessons From Late Movers
Lessons From Late Movers
 
The Evolving Contributions In Intl Strategic Mgt
The Evolving Contributions In Intl Strategic MgtThe Evolving Contributions In Intl Strategic Mgt
The Evolving Contributions In Intl Strategic Mgt
 
When You Shouldnt Go Global Ppt
When You Shouldnt Go Global PptWhen You Shouldnt Go Global Ppt
When You Shouldnt Go Global Ppt
 
Pet Airways Ppt V1
Pet Airways Ppt V1Pet Airways Ppt V1
Pet Airways Ppt V1
 
The rise of linux
The rise of linuxThe rise of linux
The rise of linux
 
Clockspeed chapter 2
Clockspeed chapter 2Clockspeed chapter 2
Clockspeed chapter 2
 
Nestle lc1 presentation
Nestle lc1 presentationNestle lc1 presentation
Nestle lc1 presentation
 
Companion or cuisine ppt
Companion or cuisine pptCompanion or cuisine ppt
Companion or cuisine ppt
 

Recently uploaded

Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfMindful Wellness Journey
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing YogaRaphaël Semeteys
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterssuserdfec6a
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterssuserdfec6a
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptxumef01177
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...Cara Menggugurkan Kandungan 087776558899
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...mitaliverma221
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationbrynpueblos04
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxStephenMino
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfaprilross605
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theorydrae5
 

Recently uploaded (15)

Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletter
 
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptx
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdf
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
 

Vensim chapter 6 v1

  • 1. Vensim e s Chapter 6 Building a Simulation Model Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 2. Naming Conventions g Levels – initial capital letters; e.g., Population Rates, auxiliaries, constants, lookups, data variables – all lower  Rates auxiliaries constants lookups data variables – all lower case; e.g., average lifetime Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 3. Sketch Conventions Sketch Conventions Levels or stocks are entered with the Box Variable tool Levels or stocks are entered with the Box Variable tool Rates are entered with the Rate tool Box Variable - Level Rate Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 4. Sketching the Rabbit Model g File > New Model 1 5 2 Type the name Population and press 3 enter t 4 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 5. Sketching the Rabbit Model g 9 7 8 6 6 5 6 8 7 7 A positive feedback loop from Population to births increases  Population, and a negative feedback loop from deaths  decreases Population decreases Population Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 6. Writing Equations g q births = population * birth rate Birth rate has not causes; it is constant in the model Bi th t h t it i t t i th d l Equations All the variables in the model will turn black. The highlights indicate which variables still require equations or have incomplete equations Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 7. Checking y g your model Model > Units Check Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 8. Variable Type: Auxiliary yp y Click on variable births 2 1 3 4 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 9. Variable Type: Level yp Click on variable population equation is already present in the equation editing box Rates constructed by clicking first outside, and then on the Level are considered positive (inwards) flows; rates constructed by clicking on the Level, and then outside the Level are considered 2 negative (draining) flows 1 3 4 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 10. Variable Type: Constant yp birth rate 2 1 3 this means that the fractional birth rate is measured in fraction (of rabbits) per year. 4 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 11. Variable Type: Constant yp average lifetime 1 2 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 12. Variable Type: Auxiliary yp y Click on variable deaths 1 2 3 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 13. Checking y g your model Model > Check Model Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 14. Checking y g your model Model > Units Check Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 15. Unit Equivalents ( y q (Synonyms) y ) Fail in Units check because Vensim does not see the plural  form as the same word form as the same word Model > Settings... 1 2 3 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 16. Simulating the Model g 2 1 Double click on the Runname editing box on the Toolbar and type equilib for yp q the first run name. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 17. Model Analysis y Click on the Level Population in the sketch. Click on the Graph t l A Cli k th G h tool. A graph of Population i h fP l ti is generated: t d 2 1 Graph Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 18. Model Analysis y Population appears as a flat line at the top of the graph at  P l i fl li h f h h 1000 rabbits. To check that no change is occurring, Click on the Table tool l k h bl l Output window shows that Population is unchanging. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 19. Simulation Experiments p Click on the SyntheSim button . Answer yes to  whether you want to overwrite the existing run. whether you want to overwrite the existing run The toolbar will change to  and you will see variable behavior for all elements on the  diagram. di Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 20. Simulation Experiments p Click on the Runname editing box and replace equilib with the  name growth. name growth Drag the slider beneath birth rate up till it shows 0.2 as its  value. The blue lines show the current run and the red line the  equilib run results run results. Click on the Stop button to stop SyntheSim. View>Show Behavior to see behavior graphs again. Vi >Sh B h i t b h i h i Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 21. Alternative Simulation Setup p Click on the Set up a Simulation button The Toolbar changes to the simulation toolbar. The Toolbar changes to the simulation toolbar notice that the constants turn into yellow words with blue  ti th t th t t t i t ll d ith bl background Also, the sketch tools are grayed out, preventing work in the  Also the sketch tools are grayed out preventing work in the sketch window. Click on the variable birth rate and in the editing box type the value 0.2 This is a temporary change for this run only and does not permanently alter the value in your model. d l Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 22. Causes Strip Graph p p Click on Population to select it into the workbench. Click on the Control Panel button Cli k th C t l P l b tt 1 2 The last run you made (growth) is loaded first (at the top of the dialog). Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 23. Causes Strip Graph p p Click on the Graph tool. A graph will show both runs Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 24. Causes Strip Graph p p Now click on the Causes Strip tool. Causes Strip Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 25. Runs Compare p Click on the Runs Compare tool. shows the differences in the Constant birth rate for runs  equilib and growth. Runs Compare Population grew in the growth run because the birth rate was  set to a higher value than the equilibrium value. This made the  positive feedback loop through births stronger than the  positive feedback loop through births stronger than the negative feedback loop through deaths, resulting in Population  growth over time. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 26. Exponential Decay p y make changes to a model Constant to generate exponential  decay or decline in the population decay or decline in the population 1 1 4 2 Drag the Slider under average lifetime till it displays di l a value of 4 l f 4. Click on the Stop Button 3 Click the Simulate button and the model will simulate Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 27. Exponential Decay p y Click on the Graph tool and compare the three runs. 1 double click on the run equilib in the right box; this will h i h b hi ill unload the run so the 2 Analysis tools will not examine it it. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 28. Exponential Decay p y Click on the Causes Strip tool  to show Population and its  to show Population and its causes— births and deaths, for  the two last runs. the two last runs Population d li P l i declines i the d in h decay run because the average lifetime was set to a lower value than the equilibrium value. This made the negative feedback loop through deaths stronger than the positive feedback loop through births, resulting in p g g Population decline over time. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 29. Input and Output Objects p p j Click on the Control Panel button and then select the  Graphs tab tab. 1 2 3 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 30. Input and Output Objects p p j 1 Do the same for births (select births from the list) and f h li ) d deaths (select deaths 3 from the list) 4 2 5 6 5 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 31. Input and Output Objects p p j Select the Input Output Object sketch tool 4 2 1 3 Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010
  • 32. Input and Output Objects p p j Click the SyntheSim button Experiment with moving the sliders around and seeing  E i t ith i th lid d d i the results on the graph. Vensim Chapter 6: Building a Simulation Model Presented by Diana Lim December 2010