SlideShare a Scribd company logo
1 of 24
Download to read offline
Levels and Rates

The Bath tub Example




     Dennis T. Beng Hui, De La Salle
           University-Manila
Stock Flow Diagram (Flow
        Diagrams)
Stock and flow diagrams are ways of
representing the structure of a system
with more information than a simple
causal loop diagram.
Stocks (levels) are fundamental to
generating behavior in a system.


         Dennis T. Beng Hui, De La Salle University-
                          Manila
Stock Flow Diagram (Flow
        Diagrams)
Flows (rates) causes stocks to change.
Stock and flow diagram is a common
step toward building a simulation
model because they help define the
types of variables that are important in
causing behavior.


         Dennis T. Beng Hui, De La Salle University-
                          Manila
Stock Flow Diagram
Stocks or levels


Flows or Rates



Auxiliary

Table Function

Constant


Exogenous Variable


Variable not defined in diagram

Information Link

Material Link

Source or Sink of material


                   Dennis T. Beng Hui, De La Salle University-
                                    Manila
Population Stock Flow
         Diagram


                                  Population
                 Birth                                    Death




% Birth Women                                           % of Population
 Giving Birth                                                dying




                Dennis T. Beng Hui, De La Salle University-
                                 Manila
Aids Stock Flow Model



                    HIV                              AIDS
Infection Rate                  Incubation Rate                Death Rate




                 Dennis T. Beng Hui, De La Salle University-
                                  Manila
Stock Flow of Ordering
        system


                      Amount of
  Delivery             Invty
                                                     Orders



  Amount to
                                              Demand Rate
  replenish



       Dennis T. Beng Hui, De La Salle University-
                        Manila
Stock Flow of Ordering
 system (Alternative)

                   Order                           Demand



                                Amount of
                                Inventory
   Net of Orders and
       Delivery


             Deliver
     Dennis T. Beng Hui, De La Salle University-
                      Manila
Coffee Temperature Stock
      Flow Diagram

     Coffee Temperature
                                 Change in Temp




                Heat Loss



                            Room Temp




       Dennis T. Beng Hui, De La Salle University-
                        Manila
Stock Flow of Household
      Expenditure


                       Available
     Income             Money                Allowance


                               Utilities

    Amount of
    Overtime


     Dennis T. Beng Hui, De La Salle University-
                      Manila
Problem and Addiction Stock
       Flow diagram
                              Addicition
       Change in level         Level




                           Amount of
       New Problems         Problem
                                        Solved Problems




       Dennis T. Beng Hui, De La Salle University-
                        Manila
Classes of Equations
Level equations
Rate equations
Auxiliary equations
Supplementary equations
Initial-value equations



    Dennis T. Beng Hui, De La Salle University-
                     Manila
Level equations
Level equations have varying contents
of reservoirs of the system. They
would exist even if the system is in rest
and no flows existed.
Examples are stocks, inventories and
others.
New values of levels are calculated at
each of the closely spaced solution
intervals.

         Dennis T. Beng Hui, De La Salle University-
                          Manila
Level equations
    Levels are assumed to change at a
    constant rate between solution times,
    but no values are calculated between
    those times.
    Levels determine rates
    Example:
L      INVTY.K=INVTY.J+DT(MAKES.JK- SALES.JK)



             Dennis T. Beng Hui, De La Salle University-
                              Manila
Rate equations
Rate equations are decision functions.
Defines the rates of flow between the
levels of the system.
A rate equation is evaluated from
presently existing values of levels in
the system, very often, including the
level from which the rate comes and
the one into which it goes.
        Dennis T. Beng Hui, De La Salle University-
                         Manila
Rate equations
The rate in turn cause the changes in
the levels.
Rates determine levels.
Example:
    R BIRTH.KL = POPN.K*0.20




        Dennis T. Beng Hui, De La Salle University-
                         Manila
Auxiliary equations
Auxiliary Equations are components of
a rate equation. These are equations
that assist but are incidental.
Helps in keeping the model in close
correspondence to the actual system.



        Dennis T. Beng Hui, De La Salle University-
                         Manila
Auxiliary equations
These equations can be substituted
forward into one another and hence
into rate equations.
Unlike     rate   equations, auxiliary
equations must be evaluated in proper
order.


         Dennis T. Beng Hui, De La Salle University-
                          Manila
Auxiliary equations
    Example:
A    DRUGS.K = POPN.K * 0.1
R    USERS.KL = DRUGS.K * 0.2
L    AIDS.K = AIDS.J + DT(BIRTH.JK + USERS.JK)




             Dennis T. Beng Hui, De La Salle University-
                              Manila
Supplementary equations
Supplementary Equations are used to
define variables which are not actually
part of the model structure but arise in
printing and plotting values of interest
about the model.
These equations are denoted y “S”.


         Dennis T. Beng Hui, De La Salle University-
                          Manila
Initial-value equations
Initial-Value Equations are used to define
initial values of all levels and some rates
that must be given before the first cycle of
model equation computation can begin.
These also be values of some constants
from other constants.
Example:
               N INVTY = 100

          Dennis T. Beng Hui, De La Salle University-
                           Manila
Computational Interval
    (Solution Interval)
DT represents “Delta Time”
It is the model time elapsing between
computations in the simulation model.




         Dennis T. Beng Hui, De La Salle University-
                          Manila
Computational Interval
     (Solution Interval)
The solution interval must be short enough
so that its value does not seriously affect the
computed results.
It should also be long enough as
permissible to avoid unnecessary digital-
computer time
DT should be between one-half to one-tenth
of the smallest time constant in the
model.Common values are 0.50, 0.25, and
0.125)
           Dennis T. Beng Hui, De La Salle University-
                            Manila
Coffee Cooling Model using
         Dynamo
*Coffee Cooling Temperature

NOTE COFTEMP.K = Coffee Temperature in Celsius
L COFTEMP.K=COFTEMP.J+DT*(COOL.JK)
N COFTEMP=100

NOTE COOL.KL = Cooling Rate of Coffee
R COOL.KL=K(ROOM-COFTEMP.K)
C ROOM=25
NOTE K is a constant
C K=.01

SPEC DT=.25/SAVPER=.25/LENGTH=5
NOTE Time is in minutes
SAVE COFTEMP,COOL,ROOM
                Dennis T. Beng Hui, De La Salle University-
                                 Manila

More Related Content

What's hot

16 the molecular basis of inheritance
16 the molecular basis of inheritance16 the molecular basis of inheritance
16 the molecular basis of inheritancekindarspirit
 
Ch 13: Meiosis and Sexual Life Cycles
Ch 13: Meiosis and Sexual Life CyclesCh 13: Meiosis and Sexual Life Cycles
Ch 13: Meiosis and Sexual Life Cyclesveneethmathew
 
Ch 15: The Chromosomal Basis of Inheritance
Ch 15: The Chromosomal Basis of InheritanceCh 15: The Chromosomal Basis of Inheritance
Ch 15: The Chromosomal Basis of Inheritanceveneethmathew
 
Ch 5: The Structure and Function of Large Biological Molecules
Ch 5: The Structure and Function of Large Biological MoleculesCh 5: The Structure and Function of Large Biological Molecules
Ch 5: The Structure and Function of Large Biological Moleculesveneethmathew
 
Ch 17: From Gene to Protein
Ch 17: From Gene to Protein Ch 17: From Gene to Protein
Ch 17: From Gene to Protein veneethmathew
 
08 an introduction to metabolism
08 an introduction to metabolism08 an introduction to metabolism
08 an introduction to metabolismkindarspirit
 
14 mendel and the gene idea
14 mendel and the gene idea14 mendel and the gene idea
14 mendel and the gene ideakindarspirit
 
17 - From Gene to Protein
17 - From Gene to Protein17 - From Gene to Protein
17 - From Gene to Proteinkindarspirit
 
13 meiosis and sexual life cycles
13 meiosis and sexual life cycles13 meiosis and sexual life cycles
13 meiosis and sexual life cycleskindarspirit
 
09 cellular respiration
09 cellular respiration09 cellular respiration
09 cellular respirationkindarspirit
 
23 the evolution of populations
23 the evolution of populations23 the evolution of populations
23 the evolution of populationskindarspirit
 
Chapter 40-animal-form-function-2014
Chapter 40-animal-form-function-2014Chapter 40-animal-form-function-2014
Chapter 40-animal-form-function-2014NeilDaterao
 
Ch 14: Mendel and the Gene Idea
Ch 14: Mendel and the Gene IdeaCh 14: Mendel and the Gene Idea
Ch 14: Mendel and the Gene Ideaveneethmathew
 
23 lecture evolution_populations
23 lecture evolution_populations23 lecture evolution_populations
23 lecture evolution_populationsveneethmathew
 
21 genomes and their evolution
21 genomes and their evolution21 genomes and their evolution
21 genomes and their evolutionkindarspirit
 

What's hot (20)

20 lecture biotech
20 lecture biotech20 lecture biotech
20 lecture biotech
 
16 the molecular basis of inheritance
16 the molecular basis of inheritance16 the molecular basis of inheritance
16 the molecular basis of inheritance
 
Ch 13: Meiosis and Sexual Life Cycles
Ch 13: Meiosis and Sexual Life CyclesCh 13: Meiosis and Sexual Life Cycles
Ch 13: Meiosis and Sexual Life Cycles
 
Ch 15: The Chromosomal Basis of Inheritance
Ch 15: The Chromosomal Basis of InheritanceCh 15: The Chromosomal Basis of Inheritance
Ch 15: The Chromosomal Basis of Inheritance
 
27 lecture bacteria
27 lecture bacteria27 lecture bacteria
27 lecture bacteria
 
Ch 5: The Structure and Function of Large Biological Molecules
Ch 5: The Structure and Function of Large Biological MoleculesCh 5: The Structure and Function of Large Biological Molecules
Ch 5: The Structure and Function of Large Biological Molecules
 
Ch 17: From Gene to Protein
Ch 17: From Gene to Protein Ch 17: From Gene to Protein
Ch 17: From Gene to Protein
 
08 an introduction to metabolism
08 an introduction to metabolism08 an introduction to metabolism
08 an introduction to metabolism
 
54 lectures ppt
54 lectures ppt54 lectures ppt
54 lectures ppt
 
14 mendel and the gene idea
14 mendel and the gene idea14 mendel and the gene idea
14 mendel and the gene idea
 
17 - From Gene to Protein
17 - From Gene to Protein17 - From Gene to Protein
17 - From Gene to Protein
 
13 meiosis and sexual life cycles
13 meiosis and sexual life cycles13 meiosis and sexual life cycles
13 meiosis and sexual life cycles
 
09 cellular respiration
09 cellular respiration09 cellular respiration
09 cellular respiration
 
23 the evolution of populations
23 the evolution of populations23 the evolution of populations
23 the evolution of populations
 
Chapter 40-animal-form-function-2014
Chapter 40-animal-form-function-2014Chapter 40-animal-form-function-2014
Chapter 40-animal-form-function-2014
 
Ch 14: Mendel and the Gene Idea
Ch 14: Mendel and the Gene IdeaCh 14: Mendel and the Gene Idea
Ch 14: Mendel and the Gene Idea
 
Ch 12: Cell Cycle
Ch 12: Cell CycleCh 12: Cell Cycle
Ch 12: Cell Cycle
 
23 lecture evolution_populations
23 lecture evolution_populations23 lecture evolution_populations
23 lecture evolution_populations
 
21 genomes and their evolution
21 genomes and their evolution21 genomes and their evolution
21 genomes and their evolution
 
Ch43
Ch43Ch43
Ch43
 

More from De La Salle University-Manila

Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulationDe La Salle University-Manila
 

More from De La Salle University-Manila (20)

Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Queuing problems
Queuing problemsQueuing problems
Queuing problems
 
Verfication and validation of simulation models
Verfication and validation of simulation modelsVerfication and validation of simulation models
Verfication and validation of simulation models
 
Markov exercises
Markov exercisesMarkov exercises
Markov exercises
 
Markov theory
Markov theoryMarkov theory
Markov theory
 
Game theory problem set
Game theory problem setGame theory problem set
Game theory problem set
 
Game theory
Game theoryGame theory
Game theory
 
Decision theory Problems
Decision theory ProblemsDecision theory Problems
Decision theory Problems
 
Decision theory handouts
Decision theory handoutsDecision theory handouts
Decision theory handouts
 
Sequential decisionmaking
Sequential decisionmakingSequential decisionmaking
Sequential decisionmaking
 
Decision theory
Decision theoryDecision theory
Decision theory
 
Decision theory blockwood
Decision theory blockwoodDecision theory blockwood
Decision theory blockwood
 
Decision theory
Decision theoryDecision theory
Decision theory
 
Random variate generation
Random variate generationRandom variate generation
Random variate generation
 
Random number generation
Random number generationRandom number generation
Random number generation
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
Input modeling
Input modelingInput modeling
Input modeling
 
Conceptual modeling
Conceptual modelingConceptual modeling
Conceptual modeling
 
Chapter3 general principles of discrete event simulation
Chapter3   general principles of discrete event simulationChapter3   general principles of discrete event simulation
Chapter3 general principles of discrete event simulation
 

Recently uploaded

Dubai Call Girls O528786472 Call Girls Dubai Big Juicy
Dubai Call Girls O528786472 Call Girls Dubai Big JuicyDubai Call Girls O528786472 Call Girls Dubai Big Juicy
Dubai Call Girls O528786472 Call Girls Dubai Big Juicyhf8803863
 
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking MenDelhi Call girls
 
How can I fly with the British Airways Unaccompanied Minor Policy?
How can I fly with the British Airways Unaccompanied Minor Policy?How can I fly with the British Airways Unaccompanied Minor Policy?
How can I fly with the British Airways Unaccompanied Minor Policy?flightsvillacom
 
Moving to Italy - A Relocation Rollercoaster
Moving to Italy - A Relocation RollercoasterMoving to Italy - A Relocation Rollercoaster
Moving to Italy - A Relocation RollercoasterStefSmulders1
 
Exploring Sicily Your Comprehensive Ebook Travel Guide
Exploring Sicily Your Comprehensive Ebook Travel GuideExploring Sicily Your Comprehensive Ebook Travel Guide
Exploring Sicily Your Comprehensive Ebook Travel GuideTime for Sicily
 
LPC Transport Presentation introduction to PLC
LPC Transport Presentation introduction to PLCLPC Transport Presentation introduction to PLC
LPC Transport Presentation introduction to PLCthomas851723
 
Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236Sherazi Tours
 
A Comprehensive Guide to The Types of Dubai Residence Visas.pdf
A Comprehensive Guide to The Types of Dubai Residence Visas.pdfA Comprehensive Guide to The Types of Dubai Residence Visas.pdf
A Comprehensive Guide to The Types of Dubai Residence Visas.pdfDisha Global Tours
 
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Delhi Call girls
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking MenDelhi Call girls
 
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsx
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsxHoi An Ancient Town, Vietnam (越南 會安古鎮).ppsx
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsxChung Yen Chang
 
Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Sherazi Tours
 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking MenDelhi Call girls
 
Italia Lucca 1 Un tesoro nascosto tra le sue mura
Italia Lucca 1 Un tesoro nascosto tra le sue muraItalia Lucca 1 Un tesoro nascosto tra le sue mura
Italia Lucca 1 Un tesoro nascosto tra le sue murasandamichaela *
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxseribangash
 
best weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdfbest weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdftour guide
 
08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking Men08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking MenDelhi Call girls
 
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptx
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptxAkshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptx
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptxAkshay Mehndiratta
 

Recently uploaded (20)

Dubai Call Girls O528786472 Call Girls Dubai Big Juicy
Dubai Call Girls O528786472 Call Girls Dubai Big JuicyDubai Call Girls O528786472 Call Girls Dubai Big Juicy
Dubai Call Girls O528786472 Call Girls Dubai Big Juicy
 
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
 
How can I fly with the British Airways Unaccompanied Minor Policy?
How can I fly with the British Airways Unaccompanied Minor Policy?How can I fly with the British Airways Unaccompanied Minor Policy?
How can I fly with the British Airways Unaccompanied Minor Policy?
 
Moving to Italy - A Relocation Rollercoaster
Moving to Italy - A Relocation RollercoasterMoving to Italy - A Relocation Rollercoaster
Moving to Italy - A Relocation Rollercoaster
 
Exploring Sicily Your Comprehensive Ebook Travel Guide
Exploring Sicily Your Comprehensive Ebook Travel GuideExploring Sicily Your Comprehensive Ebook Travel Guide
Exploring Sicily Your Comprehensive Ebook Travel Guide
 
LPC Transport Presentation introduction to PLC
LPC Transport Presentation introduction to PLCLPC Transport Presentation introduction to PLC
LPC Transport Presentation introduction to PLC
 
Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236
 
A Comprehensive Guide to The Types of Dubai Residence Visas.pdf
A Comprehensive Guide to The Types of Dubai Residence Visas.pdfA Comprehensive Guide to The Types of Dubai Residence Visas.pdf
A Comprehensive Guide to The Types of Dubai Residence Visas.pdf
 
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men
 
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsx
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsxHoi An Ancient Town, Vietnam (越南 會安古鎮).ppsx
Hoi An Ancient Town, Vietnam (越南 會安古鎮).ppsx
 
Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236Visa Consultant in Lahore || 📞03094429236
Visa Consultant in Lahore || 📞03094429236
 
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 18 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men
 
Italia Lucca 1 Un tesoro nascosto tra le sue mura
Italia Lucca 1 Un tesoro nascosto tra le sue muraItalia Lucca 1 Un tesoro nascosto tra le sue mura
Italia Lucca 1 Un tesoro nascosto tra le sue mura
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptx
 
Call Girls 🫤 Connaught Place ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ...
Call Girls 🫤 Connaught Place ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ...Call Girls 🫤 Connaught Place ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ...
Call Girls 🫤 Connaught Place ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ...
 
best weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdfbest weekend places near delhi where you should visit.pdf
best weekend places near delhi where you should visit.pdf
 
08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking Men08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking Men
 
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptx
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptxAkshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptx
Akshay Mehndiratta Summer Special Light Meal Ideas From Across India.pptx
 

Levels And Rates

  • 1. Levels and Rates The Bath tub Example Dennis T. Beng Hui, De La Salle University-Manila
  • 2. Stock Flow Diagram (Flow Diagrams) Stock and flow diagrams are ways of representing the structure of a system with more information than a simple causal loop diagram. Stocks (levels) are fundamental to generating behavior in a system. Dennis T. Beng Hui, De La Salle University- Manila
  • 3. Stock Flow Diagram (Flow Diagrams) Flows (rates) causes stocks to change. Stock and flow diagram is a common step toward building a simulation model because they help define the types of variables that are important in causing behavior. Dennis T. Beng Hui, De La Salle University- Manila
  • 4. Stock Flow Diagram Stocks or levels Flows or Rates Auxiliary Table Function Constant Exogenous Variable Variable not defined in diagram Information Link Material Link Source or Sink of material Dennis T. Beng Hui, De La Salle University- Manila
  • 5. Population Stock Flow Diagram Population Birth Death % Birth Women % of Population Giving Birth dying Dennis T. Beng Hui, De La Salle University- Manila
  • 6. Aids Stock Flow Model HIV AIDS Infection Rate Incubation Rate Death Rate Dennis T. Beng Hui, De La Salle University- Manila
  • 7. Stock Flow of Ordering system Amount of Delivery Invty Orders Amount to Demand Rate replenish Dennis T. Beng Hui, De La Salle University- Manila
  • 8. Stock Flow of Ordering system (Alternative) Order Demand Amount of Inventory Net of Orders and Delivery Deliver Dennis T. Beng Hui, De La Salle University- Manila
  • 9. Coffee Temperature Stock Flow Diagram Coffee Temperature Change in Temp Heat Loss Room Temp Dennis T. Beng Hui, De La Salle University- Manila
  • 10. Stock Flow of Household Expenditure Available Income Money Allowance Utilities Amount of Overtime Dennis T. Beng Hui, De La Salle University- Manila
  • 11. Problem and Addiction Stock Flow diagram Addicition Change in level Level Amount of New Problems Problem Solved Problems Dennis T. Beng Hui, De La Salle University- Manila
  • 12. Classes of Equations Level equations Rate equations Auxiliary equations Supplementary equations Initial-value equations Dennis T. Beng Hui, De La Salle University- Manila
  • 13. Level equations Level equations have varying contents of reservoirs of the system. They would exist even if the system is in rest and no flows existed. Examples are stocks, inventories and others. New values of levels are calculated at each of the closely spaced solution intervals. Dennis T. Beng Hui, De La Salle University- Manila
  • 14. Level equations Levels are assumed to change at a constant rate between solution times, but no values are calculated between those times. Levels determine rates Example: L INVTY.K=INVTY.J+DT(MAKES.JK- SALES.JK) Dennis T. Beng Hui, De La Salle University- Manila
  • 15. Rate equations Rate equations are decision functions. Defines the rates of flow between the levels of the system. A rate equation is evaluated from presently existing values of levels in the system, very often, including the level from which the rate comes and the one into which it goes. Dennis T. Beng Hui, De La Salle University- Manila
  • 16. Rate equations The rate in turn cause the changes in the levels. Rates determine levels. Example: R BIRTH.KL = POPN.K*0.20 Dennis T. Beng Hui, De La Salle University- Manila
  • 17. Auxiliary equations Auxiliary Equations are components of a rate equation. These are equations that assist but are incidental. Helps in keeping the model in close correspondence to the actual system. Dennis T. Beng Hui, De La Salle University- Manila
  • 18. Auxiliary equations These equations can be substituted forward into one another and hence into rate equations. Unlike rate equations, auxiliary equations must be evaluated in proper order. Dennis T. Beng Hui, De La Salle University- Manila
  • 19. Auxiliary equations Example: A DRUGS.K = POPN.K * 0.1 R USERS.KL = DRUGS.K * 0.2 L AIDS.K = AIDS.J + DT(BIRTH.JK + USERS.JK) Dennis T. Beng Hui, De La Salle University- Manila
  • 20. Supplementary equations Supplementary Equations are used to define variables which are not actually part of the model structure but arise in printing and plotting values of interest about the model. These equations are denoted y “S”. Dennis T. Beng Hui, De La Salle University- Manila
  • 21. Initial-value equations Initial-Value Equations are used to define initial values of all levels and some rates that must be given before the first cycle of model equation computation can begin. These also be values of some constants from other constants. Example: N INVTY = 100 Dennis T. Beng Hui, De La Salle University- Manila
  • 22. Computational Interval (Solution Interval) DT represents “Delta Time” It is the model time elapsing between computations in the simulation model. Dennis T. Beng Hui, De La Salle University- Manila
  • 23. Computational Interval (Solution Interval) The solution interval must be short enough so that its value does not seriously affect the computed results. It should also be long enough as permissible to avoid unnecessary digital- computer time DT should be between one-half to one-tenth of the smallest time constant in the model.Common values are 0.50, 0.25, and 0.125) Dennis T. Beng Hui, De La Salle University- Manila
  • 24. Coffee Cooling Model using Dynamo *Coffee Cooling Temperature NOTE COFTEMP.K = Coffee Temperature in Celsius L COFTEMP.K=COFTEMP.J+DT*(COOL.JK) N COFTEMP=100 NOTE COOL.KL = Cooling Rate of Coffee R COOL.KL=K(ROOM-COFTEMP.K) C ROOM=25 NOTE K is a constant C K=.01 SPEC DT=.25/SAVPER=.25/LENGTH=5 NOTE Time is in minutes SAVE COFTEMP,COOL,ROOM Dennis T. Beng Hui, De La Salle University- Manila