AnyLogic 5.0 System Dynamics Tutorial
58 pages
English

AnyLogic 5.0 System Dynamics Tutorial

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
58 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

AnyLogic V System Dynamics Tutorial © 1992-2004 XJ Technologies Company Ltd. www.xjtek.comAnyLogic V System Dynamics Tutorial Copyright © 1992-2004 XJ Technologies. All rights reserved. XJ Technologies Company Ltd AnyLogic@xjtek.com http://www.xjtek.com/products/anylogic © 1992-2004 XJ Technologies http://www.xjtek.com ii AnyLogic V System Dynamics Tutorial Contents ABOUT THIS TUTORIAL .......................................................................................... 1 1. THE PRODUCT LIFE CYCLE MODEL.............................................................2 1.1 CREATING A NEW PROJECT......................................................................................2 1.2 ANALYZING THE MODEL.3 1.3 MODELING CUSTOMER AND POTENTIAL CUSTOMER POPULATIONS AS STOCKS .....................................................................................................................................4 1.4 MODELING ADOPTION AS A FLOW ......................................................................7 1.5 DEFINING ADOPTION FLOW INFLUENCE ON POPULATIONS................7 1.6 ADDING CONSTANTS...................................................................................................8 1.7 DEFINING INITIAL VALUES OF STOCKS...........................................................11 1.8 ADDING AUXILIARIES ...............................................................................................12 1.9 DEFINING THE ADOPTION RATE ...

Informations

Publié par
Nombre de lectures 40
Langue English

Extrait

AnyLogic V
System Dynamics Tutorial
© 1992-2004 XJ Technologies Company Ltd. www.xjtek.com
99-20240XJeThc©1etjx.wwwmoc.kesgilono//p:tth
AnyLogic V System Dynamics Tutorial
ii
XJ Technologies Company Ltd AnyLogic@xjtek.com http://www.xjtek.com/products/anylogic
Copyright © 1992-2004 XJ Technologies. All rights reserved.
AnyLogic V System Dynamics Tutorial
Contents ABOUT THIS TUTORIAL .......................................................................................... 11. 2THE PRODUCT LIFE CYCLE MODEL.............................................................1.1 ...................................................................................... 2CREATING A NEW PROJECT1.2 3ANALYZING THE MODEL...........................................................................................1.3MODELING CUSTOMER AND POTENTIAL CUSTOMER POPULATIONS AS STOCKS ..................................................................................................................................... 41.4 7MODELING ADOPTION AS A FLOW ......................................................................1.5 ................ 7DEFINING ADOPTION FLOW INFLUENCE ON POPULATIONS1.6ADDING CONSTANTS ................................................................................................... 81.7 ........................................................... 11DEFINING INITIAL VALUES OF STOCKS1.8 12ADDING AUXILIARIES ...............................................................................................1.9DEFINING THE ADOPTION RATE FORMULA ................................................. 131.10VIEWING CAUSAL DEPENDENCIES .................................................................... 141.11CONFIGURING SIMULATION .................................................................................. 161.12 18RUNNING THE MODEL..............................................................................................1.13 18VIEWING THE VALUES OF VARIABLES..............................................................1.14 ....................................... 19DISPLAYING VARIABLE CHANGES WITH CHARTS1.14.1 19 .........................................Viewing customer and potential customer populations dynamics1.14.2Examining the adoption rate ............................................................................................ 211.14.3 ........................................................ 21Viewing the contribution of different adoption sources1.15 23CREATING A SHOW-BENCH ....................................................................................1.15.1 ............................................................................................. 23Creating animation diagram1.15.2 24Creating animated stock and flow diagram........................................................................1.15.3Adding controls................................................................................................................302. 33EXPANDING THE PRODUCT LIFE CYCLE MODEL..................................
© 1992-2004 XJ Technologies http://www.xjtek.com
iii
AnyLogic V System Dynamics Tutorial
2.1 33ADDING REPLACEMENT PURCHASES LOGIC.................................................2.1.1 33Modeling the product discard rate......................................................................................2.1.2 36Modifying the animation...................................................................................................2.2 ....................................................................... 38MODELING THE DEMAND CYCLE2.2.1Adding experimental data to model .................................................................................. 382.2.2Formulating the adoption fraction ..................................................................................... 402.3MODELING A PROMOTION STRATEGY ............................................................. 432.3.1 ..................................................................................... 43Modeling advertising expenditures2.3.2 ............................................................................................... 45Modeling a promotion plan2.4 48OPTIMIZING THE PRODUCT LAUNCH STRATEGY.......................................2.4.1 48Checking the market saturation........................................................................................2.4.2 .................................................................................................. 50Configuring optimization2.4.3 52Running optimization.......................................................................................................3.CONCLUSION..................................................................................................... 54
iv
© 1992-2004 XJ Technologies http://www.xjtek.com
About this Tutorial
AnyLogic V System Dynamics Tutorial
AnyLogic V supports different modeling techniques. This document coversSystem Dynamicsmodeling approach. There are many spheres where system dynamics simulation can be successfully appliedthe range of SD applications includes business, urban, social, ecological types of systems. AnyLogic allows you to create complex dynamic models using standard SD graphical notation. This tutorial will briefly take you through the process of constructing a simulation model using AnyLogic. It is intended to introduce you to AnyLogic interface and many of its main features. We will create a simple illustrative examplethe product life cycle model, used for forecasting sales of new products. In the first chapter we will construct the classic Bass diffusion model. Then we will expand our model by considering some details and introducing you to some advanced features of AnyLogic. Note that there are several reference files available for this model representing the milestones of the editing. You can use reference files if you experience any difficulties creating a model and you would like to compare your model with the reference file. You can use theStart Pageto open those examples.Start Pagewill appear automatically once you close the model you are editing.
© 1992-2004 XJ Technologies http://www.xjtek.com
1
AnyLogic V System Dynamics Tutorial 1. The Product Life Cycle Model
We will create the product life cycle model. The model describes a product diffusion process. Potential customers of a product are influenced into buying the product by advertising and by word of mouth from customers  those who have already purchased the new product. Adoption of a new product driven by word of mouth is likewise an epidemic. Potential customers come into contact with customers through social interactions. A fraction of these contacts results in the purchase of the new product. The advertising causes a constant fraction of the potential customer population to adopt each time period.
1.1 Creating a new project
First, we will create a new project for your model.
Create a new project 1.Click theNew Project button. toolbar TheNew Projectdialog appears. 2.Click theChoose Locationbutton and browse for the folder where you want to store your project file. 3.Specify the project name. In theProject nameedit box, typeProduct Life Cycle. 4.ClickOK. New project is created. You see thestructure diagram is displayed in the center of the workspace, theProject windowis displayed in the left panel, and thePropertieswindowin the right one.
2
© 1992-2004 XJ Technologies http://www.xjtek.com
1.2
AnyLogic V System Dynamics Tutorial
When working with a project, do not forget to save it by clickingSave .
Analyzing the model
Now we need to analyze the model to decide how it can be described in the system dynamics terms. We should distinguish the key variables of the model and their patterns of influence and then create stock and flow diagram of the model. When constructing stock and flow diagram, we should consider what variables should be modeled with stocks, flows or auxiliaries. Stocks (also known as levels, accumulations, or state variables) change their value continuously over time. Flows, also known as rates, change the value of stocks. In turn, stocks in a system determine the values of flows. Intermediate concepts are known as auxiliaries and can change instantaneously.
© 1992-2004 XJ Technologies http://www.xjtek.com
3
1.3
AnyLogic V System Dynamics Tutorial When constructing a stock and flow diagram, consider what variables accumulate over a period of time. In our model, customer and potential customer populations are stocks and the adoption rate  a flow. The system dynamics presentation of the model is shown in the following figure. Stocks are denoted with squares, flow with a valve, and auxiliaries with circles. Arrows denote causal dependencies in the model.
In AnyLogic you define stock and flow diagram using thestructure diagram. There you can graphically define stocks, flows and auxiliaries. Open the structure diagram by double-clickingMainitem in the workspace tree in theProject window.
Modeling customer and potential customer populations as stocks
First, we will add two stocks to model customer and potential customer populations. In AnyLogic a stock is represented by avariable.
4
© 1992-2004 XJ Technologies http://www.xjtek.com
AnyLogic V System Dynamics Tutorial
Add a stock to model potential customer population 1.Click theVariable toolbar button. 2.Click the diagram where you want to place the stock. A new variable appears on the diagram, displayed as the blue circle.
3.Once you have placed the element onto the structure diagram, it becomes selected and its properties are displayed in thePropertieswindow. You can adjust element properties as your model requires. To adjust properties at a later time, click the element on the structure diagram to select it and modify the properties you want. 4.Change the name of the stock. In thePropertieswindow, typeseroPettnai_luCtsmoin theNameedit box. 5.In theEquationsection, chooseIntegral or Stockfrom theFormdrop-down list. You see the stock shape is turned into the square to match the system dynamics notation.
© 1992-2004 XJ Technologies http://www.xjtek.com
5
AnyLogic V System Dynamics Tutorial
Add a stock to model customer population 1.Add the stock in the same way. Name itCustomers.
At this point, the stocks are not defined properly. Later we will define the integral functions for stocks and specify stock initial values. But we need to create the adoption flow first.
6
© 1992-2004 XJ Technologies http://www.xjtek.com
1.4 Modeling adoption as a flow
AnyLogic V System Dynamics Tutorial
Now we will model the adoption flow, which increases the customer population, while decreasing the potential customer population. Flow is represented in AnyLogic by a variable. Flow value is calculated according to the specified formula.
Create thedAtiop_Roneatflow 1.Click theVariable button. toolbar 2.Click the diagram where you want to place a flow. 3.Change the flow name. In thePropertieswindow, typeteoitpaR_nodAin theNameedit box. 4.Change theEquation FormtoFormula. We will define the flow formula later on.
1.5 Defining adoption flow influence on populations
Now we will model the flow influence on the stocks values. Stock value is calculated according to the integral function you specify. The function should be defined in the following form: <inflow 1 inflow 2>  - <outflow 1> - <outflow 2> > + < The value of inflows i.e. flows that increase stock value, are added and the value of outflows, i.e. flows that decrease stock are subtracted from the current value of the stock.
Define adoption outflow from potential customers pool 1.Click thestCul_iaseromtnetoPvariable on the structure diagram. 2.In thePropertieswindow, define the function:_naRtpoiA-odte. Use the function wizard to avoid typing the whole names of variables and functions in equation expressions. To open the function wizard, click at the desired position in the
© 1992-2004 XJ Technologies http://www.xjtek.com
7
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents