版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、系統(tǒng)動力學簡稱SD(System Dynamics),系統(tǒng)動力學原理 建模基本步驟 VensimPLE軟件,系統(tǒng)動力學模型(System Dynamics)被譽為實際系統(tǒng)的實驗室,是美國麻省理工學院(MIT)福瑞斯特Forrester (Jay W .Forrester)教授于1956年首創(chuàng)的一種運用結(jié)構(gòu)、功能、歷史相結(jié)合的方法,借助于計算機仿真而定量地研究非線性(Non-linearity)、多重反饋(Information feedback)、復雜時變(Dynamic complexity)系統(tǒng)的系統(tǒng)分析技術??捎糜谘芯刻幚砩鐣?jīng)濟生態(tài)和生物等復雜系統(tǒng)問題,它可在宏觀層次和微觀層次上對復雜
2、、多層次、多部門、非線性的大規(guī)模系統(tǒng)進行綜合研究。,反饋(feedback)是控制系統(tǒng)的一種方法。它是把系統(tǒng)輸出去的一部分信息(給定信息)作用于被控對象后產(chǎn)生的結(jié)果(真實信息)再返回給輸入,并對系統(tǒng)的再輸出產(chǎn)生影響的過程。系統(tǒng)所具有的這種功能和過程稱之為系統(tǒng)反饋。系統(tǒng)動力學認為幾乎所有人工的系統(tǒng)都是反饋系統(tǒng) 。,動態(tài)( Dynamic)即系統(tǒng)動力學所包含的量是隨時間變化的,能以時間為坐標的圖形表示。譬如,人口的增長,就業(yè)人數(shù)的增減,城鎮(zhèn)與農(nóng)村的生活質(zhì)量和物價的漲落等都是動態(tài)問題。學習定義動態(tài)問題的技巧是學習系統(tǒng)動力學的第一步。,1系統(tǒng)的流,系統(tǒng)動力學主要利用四種流來構(gòu)成模型 物流 訂貨流 資金
3、流 信息流,2水平(積累、狀態(tài))level變量,水平(積累)是系統(tǒng)的流的積累。例如,庫存量、存款、人口、資源等都可作為水平變量。一個水平方程相當于個容器,它積累變化的流速率。其流速有輸入流速和輸出流速,容器內(nèi)的水平正是其輸入流速與輸出流速的差量的積累。,怎樣計算水平變量?,用DT近似表示dt ,上式寫成,一階差分方程,符號DT表示時間的差分,即兩次計算之間時間間隔的長度。,因此,一個水平變量的新值等于它前一時刻的值加上或者減去時間間隔所產(chǎn)生的變化值。 這就是系統(tǒng)動力學的水平方程(Level方程)。 在一個水平方程中,可以有一個或者幾個流入速率,也可以同時有一個或者幾個流出速率。 水平方程實際是
4、積分運算,用微積分符號可將上式寫成:,3速率(Rate)變量,速率(流速) (Rate)表示系統(tǒng)中水平變量變化的強度,具有瞬時性的特征,反映單位時間內(nèi)水平變量增加或減少的量。 水平變量是系統(tǒng)活動結(jié)果的狀態(tài)變量,而速率則是對水平變量變化過程及其控制的描述。 速率的基本形式有兩種,流入速率和流出速率。,4延遲(Delay),在復雜的社會經(jīng)濟系統(tǒng)中存在廣泛的延遲(Delay)現(xiàn)象即系統(tǒng)中的物流或信息流從它們的輸入到它們的輸出響應,總不可避免地有一段時間的延遲,這段時間就是延遲時間或延遲。 例如,從訂貨到收貨,固定資產(chǎn)的投資到發(fā)揮經(jīng)濟效益,從下種到莊稼收獲,從投入教育經(jīng)費到人才的產(chǎn)出,從污染物散入環(huán)境
5、到危害人類健康,等等都存在著一段或長或短的延遲時間,這些是物流的延遲。 同樣信息流也存在延遲。如,商品供求關系的變化要經(jīng)過一段時間才會引起商品價格的變動;產(chǎn)品質(zhì)量影響工廠的聲譽也需要一段時間。,延遲實際上是將系統(tǒng)中流入速率變?yōu)榱鞒鏊俾实姆N轉(zhuǎn)換過程。一個動態(tài)的流體系統(tǒng)通常是同一瞬間流入速度不等于流出速率,這就是說從這一輸入到輸出的過程中會有一種延遲傳送的流量:當流入速率大于流出速率時,延遲傳送的流量就增多;當流出速率大于流入速率時,延遲傳送的流量就減少。 因此,延遲是一種特殊的水平變量,特殊的積累,延遲是一個“積累容器”、但它又不同于一般的水平變量。因為延遲的流出速率只受延遲時間的影響,與外界因
6、素無關;而一般水平變量的流出速率除受本身的特性決定以外,還受外界因素的影響。,一個簡單的疾病蔓延模型,三個水平變量:未患病者;患病者;康復者; 為分析需要,增加新的水平變量:INC處于潛伏期者,其輸入速率為感染率INF,輸出速率為疾病顯現(xiàn)率SYMP。,5信息反饋系統(tǒng),控制論系統(tǒng)可以劃分為開環(huán)系統(tǒng)和閉環(huán)系統(tǒng)。閉環(huán)系統(tǒng)又叫信息反饋系統(tǒng)。 如果系統(tǒng)的輸出量對系統(tǒng)的輸入量沒有影響,即對系統(tǒng)的控制作用沒有影響,則叫做開環(huán)系統(tǒng)。例如,洗滌機就是這種系統(tǒng)在洗滌機中依次進行著浸濕、洗滌和漂清的過程。在洗滌機中不需要對輸出信號,即衣服的清潔度進行測量。 開環(huán)系統(tǒng),不需對輸出量進行測量,也不需將輸出量反饋到輸入端
7、與輸入量進行比較。這種系統(tǒng)不是反饋控制系統(tǒng),當出現(xiàn)擾動時,開環(huán)控制系統(tǒng)就不能完成既定任務。,閉環(huán)系統(tǒng)是指系統(tǒng)的輸出對系統(tǒng)的輸入有影響的系統(tǒng),也就是系統(tǒng)輸出信息對控制作用有直接影響的系統(tǒng)。因此,閉環(huán)系統(tǒng)又叫信息反饋系統(tǒng)。輸入信號和反饋信號之差,叫誤差信號。誤差信號送到控制器上,以減少系統(tǒng)的誤差,使系統(tǒng)的輸出量趨于所希望的目標值。 例如,商業(yè)中,訂貨庫存系統(tǒng)就是反饋系統(tǒng)。訂貨與庫存水平產(chǎn)生生產(chǎn)決策,生產(chǎn)決策又引起供貨、調(diào)整庫存,最后再引起生產(chǎn)決策,具有市場信息反饋的生產(chǎn)系統(tǒng)是一個反饋系統(tǒng)。該系統(tǒng)根據(jù)市場信息控制產(chǎn)品生產(chǎn)。,信息反饋系統(tǒng)又可以劃分為兩種系統(tǒng):正反饋系統(tǒng)Positive (Reinfo
8、rcing) Feedback Loop 、負反饋系統(tǒng)Negative (Balancing) Feedback Loop 。 正反饋系統(tǒng)是指系統(tǒng)運行發(fā)生一個持續(xù)增長過程,因為在該系統(tǒng)中控制作用引起的結(jié)果會導致發(fā)生更強的控制作用。 負反饋系統(tǒng),是系統(tǒng)運行時尋求目標,若沒有達到目標就會不斷產(chǎn)生反應的系統(tǒng)。 劃分一個特定反饋系統(tǒng)是正反饋系統(tǒng)還是負反饋系統(tǒng)或者開環(huán)系統(tǒng),也是相對的。這取決于觀測者確定系統(tǒng)目標時的特殊著眼點(觀點)。,6因果關系,系統(tǒng)由相互依存、相關作用的要素組成。如果要素A的量的變化會引起要素B的量的變化,則稱A與B之間存在著因果關系。反映系統(tǒng)各要素之間因果關系的圖就稱為因果關系圖。
9、 系統(tǒng)動力學用矢線表示系統(tǒng)中兩個要素(變量)之間的聯(lián)系,稱為因果鏈或因果環(huán)(Causal Link)。如果有兩個因素(變量)A和B,它們之間存在因果聯(lián)系,如果A變化A,則引起B(yǎng)變化B或-B。這時,可把A看作B變化的原因,B是A的結(jié)果。,正因果關系:設有兩個因素(變量)A和B。如果A變化A,則使B變化B,A和B變化是同號。也就是說,如果A增加引起B(yǎng)增加,或者A減少引起B(yǎng)減少,即A對B的關系是正因果關系,記作A+B,如人口總數(shù)和出生率的關系是正因果關系。 負因果關系:設有兩個因素(變量)A和B。如果A變化A,則使B變化-B,A和B變化是異號。也就是說,如果A增加引起B(yǎng)減少,或者A減少引起B(yǎng)增加,即
10、A對B的關系是負因果關系,記作A-B。如死亡率和人口總數(shù)的關系就是負因果關系。 A對B的因果關系無論是正因果關系還是負因果關系,反過來并不一定成立。例如,死亡率對人口總數(shù)是負因果關系,但人口總數(shù)對死亡率卻是正因果關系,7反饋回路,系統(tǒng)中有兩個或者兩個以上的變量(水平變量、關于水平變量的信息變量),按照它們的因果反饋關系,組成一個閉合的因果反饋回路(又稱因果反饋環(huán))。,正反饋回路(self-reinforcement自我增強):一個反饋回路,假設其中某一變量有一個變化(增加),依次通過回路中其他變量的因果關系之后,結(jié)果是加強原來變量的變化(增加);或者,這個變量有一個變化(減少),經(jīng)過一系列因果
11、關系后,結(jié)果是減弱這個變量的變化(減少)。那么,這個回路叫正反饋回路,記作“(+)”。 負反饋回路(goal-seeking向目標追尋):一個反饋回路,假設其中某一變量有一個變化(增加),依次通過回路中其他變量的因果關系之后,結(jié)果減弱了原來變量的變化(減少);或者,這個變量有一個變化(減少),經(jīng)過一系列因果關系后,結(jié)果是增強這個變量的變化(增加)。那么,這個回路叫負反饋回路,記作“(-)” 判斷一個反饋回路是正還是負有一條簡明的規(guī)則:把反饋回路中所有的負號(負因果鏈)的個數(shù)都加起來,如果負號鋒的個數(shù)之和為零或偶數(shù)時則為正反饋回路,如果是奇數(shù),則為負反饋回路,8因果反饋回路圖,一個復雜的系統(tǒng)由幾
12、個或多個子系統(tǒng)組成系統(tǒng)動力學用數(shù)學模型來模擬系統(tǒng)并利用信息把系統(tǒng)定量化。一個系統(tǒng)就是一個模型。一個復雜模型可以分解為若干個子模型(模塊)。一個子模型中又有若干個反饋回路,包括正、負相結(jié)合的反饋回路,把這些反饋回路按其內(nèi)在因果關系聯(lián)結(jié)起來,就構(gòu)成整個模型的因果反饋圖。,一階正反饋回路,一階是指一個水平變量 舉例:已知人口的年增加值和總?cè)丝跇?gòu)成一階正反饋回路,現(xiàn)假設人口的年增長率為2%,期初人口為100萬。試構(gòu)造因果反饋結(jié)構(gòu)并進行計算機仿真模擬。,手工仿真計算的前幾步:,(1)birth=birth rate* population Units: Year (2)birth rate=0.02 U
13、nits: *undefined* (3)FINAL TIME = 100 Units: Year The final time for the simulation. (4)INITIAL TIME = 0 Units: Year The initial time for the simulation. (5)population= INTEG (birth,100) Units: *undefined* (6)SAVEPER = TIME STEP Units: Year 0,? The frequency with which output is stored. (7)TIME STEP
14、 = 1 Units: Year 0,? The time step for the simulation.,注釋: INTEGRAL:積分 即population是birth的積分,初始值為100。 SAVERPER:the frequency with which values are saved for latter display TME STEP:the integration solution interval.,Time (Year)population Runs: 0 100 1102 2104.04 3106.121 4108.243 5110.408 6112.616 71
15、14.869 8117.166 9119.509 10121.899 11124.337 12126.824 13129.361 14131.948 15134.587 16137.279 17140.024 18142.825 19145.681,一階負反饋回路,舉例:一個基本的庫存控制系統(tǒng)。 現(xiàn)假設初始庫存量為 1000噸,期望庫存量為6000噸,由當前庫存量調(diào)整到期望庫存量所需要的時間AT為5周,試構(gòu)造因果反饋結(jié)構(gòu)并進行計算機仿真模擬。,手工仿真計算的前幾步:,水平變量是庫存量,記為I。 訂貨速率為OR,OR可以為正,也可為負。正的表示訂貨增加庫存量,負的表示將現(xiàn)有的庫存量退回供應部門以
16、減少庫存量。 系統(tǒng)的目標是要求的庫存量,記為DI。 由當前庫存量調(diào)整到期望庫存量所需時間,記為AT,一階負反饋回路:庫存量模擬結(jié)果,Current表示調(diào)整時間為2天run2表示調(diào)整時間為1天,總結(jié):兩種反饋回路,一階正反饋回路具有自我加強的作用,對系統(tǒng)起強化作用,經(jīng)過若干年后總?cè)丝跀?shù)會越來越多,每年增加的人口數(shù)也相應地越來越多。 一階負反饋回路具有自我平衡的作用,經(jīng)過若干時間(周、天)后,庫存量會越來越接近于期望庫存量,定貨速率也相應地越來越小,庫存差額相應地減小。,畫出系統(tǒng)的因果反饋圖是建立系統(tǒng)動力學的數(shù)學模型的基礎。 在因果反饋圖中采用名詞,不用動詞。變量之間的影響和作用用以帶箭頭的因果鏈
17、表示。 明確變量增減的涵義。 盡可能確定變量的量綱,這有助于突出因果反饋圖中文字敘述的涵義。 反饋結(jié)構(gòu)一定形成閉合回路。 畫好各子模型中的反饋回路,區(qū)別正反饋還是負反饋,不能產(chǎn)生差錯。,系統(tǒng)動力學仿真的基本步驟,Vensim軟件介紹,界面及工具 建立因果反饋圖( causal loop diagrams )和流圖( Stock and Flow Diagrams ) 模擬過程 函數(shù):LOOKUP、TIME、STEP,What is Vensim?,Vensim is a visual modeling tool that allows you to conceptualize, documen
18、t, simulate, analyze, and optimize models of dynamic systems. Vensim provides a simple and flexible way of building simulation models from causal loop or stock and flow diagrams. By connecting words with arrows, relationships among system variables are entered and recorded as causal connections. Thi
19、s information is used by the Equation Editor to help you form a complete simulation model. You can analyze your model throughout the building process, looking at the causes and uses of a variable, and also at the loops involving the variable. When you have built a model that can be simulated, Vensim
20、 lets you thoroughly explore the behavior of the model. -Vensim Users Guide Version 5,界面及工具,標題Title Bar,菜單Menu,Toolbar,繪圖工具Sketch Tools,狀態(tài)條Status Bar,Structural Analysis Tools Causes Tree creates a tree-type graphical representation showing the causes of the Workbench Variable.因果樹圖 Uses Tree create
21、a tree-type graphical representation showing the uses of the Workbench Variable.使用樹圖 Loops displays a list of all feedback loops passing through the Workbench Variable.反饋圖 Document reviews equations, definitions, units of measure, and selected values for the Workbench Variable. Dataset Analysis Tool
22、s Causes Strip Graph displays simple graphs in a strip, allowing you to trace causality by showing the direct causes (as shown) of the Workbench Variable.顯示與所選擇變量有直接關系的變量的模擬結(jié)果 Graph displays behavior in a larger graph than the Strip Graph, and contains different options for output than the Strip Gra
23、ph. Table generates a table of values for the Workbench Variable. Runs Compare compares all Lookups and Constants in the first loaded dataset to those in the second loaded dataset.,分析工具,Analysis Tool Output,控制板The Control PanelThe Control Panel allows you to change internal settings that govern the
24、operation of Vensim, such as which Workbench Variable is selected or what Datasets are loaded.,2. 建立因果反饋圖( Causal loop diagram)和建立流圖(Stock and flow diagram),1)建立因果反饋圖(causal loop diagrams):以Savings-Interest為例,演示,3種分析工具:Cause Tree ; Uses Tree;Loops,分析因果反饋圖的邏輯結(jié)構(gòu),兩個圖經(jīng)由變量savings的因果關系而連接,剛好分別前后對調(diào);當反饋環(huán)向后回
25、到該變量,則用括號括起來。,確定savings為變量后,點擊Loops,列舉全部有關該變量的因果反饋圖,Loop Number 1 of length 1 saving interest Loop Number 2 of length 2 saving work effort income,因果反饋圖只能描述反饋結(jié)構(gòu)的基本方面,不能表示不同性質(zhì)的變量的區(qū)別,這是其根本弱點。如狀態(tài)變量的積累概念,是系統(tǒng)動力學中最重要的量,然而因果反饋圖全然忽視了這一點。因此,需要建立流圖。,2)建立流圖(Stock and Flow Diagrams ) -以workforce-inventory為例,cons
26、truct Inventory as a Level, then add a rate flowing in and a rate flowing out.,Now we need to figure out how production gets determined. add the level Workforce. net hire rate can either increase or decrease the workforce.,add the proportionality constant productivity. Also, net hire rate is depende
27、nt on the value of Workforce.,add in the variables target workforce and time to adjust workforce and connect them.,Add the concept of target production, and connect it to target workforce. We will set target production on the basis of sales.,introduce target inventory, inventory correction and two a
28、dditional Constants. The idea is simple . target inventory is the amount of stock that should be held based on expectations about sales. The inventory correction is the correction for a deviation of Inventory from its target.,3. 模擬:以workforce-inventory為例,The following steps are typical for building
29、and using Vensim models. Construct a model or open an existing model. Examine the structure using the structural Analysis tools (Tree Diagrams.). Simulate the model moving around model parameters to see how it responds. Examine interesting behavior in more detail using the dataset Analysis tools (Gr
30、aphs and Tables). Perform controlled simulation experiments and refine the model. Present the model and its behavior to your audience using SyntheSim results, Analysis tool output customer Graphs and Tables.,1) open an existing model:c:Program FilesVensimmodelsguidechap03WFINV.MDL,2)Examine the stru
31、cture using the structural Analysis tools (Tree Diagrams.).,Causes Tree Diagram (Workbench Variable, Inventory, is on the right and everything that causes it to change (up to 2 connections distant) is on the left.),the Workbench Variable on the left and where it is used in the model (what it causes
32、change, up to 2 connections distant) on the right.,Uses Tree Diagram,the Loops Analysis tool:variable net hire rate,Loop Number 1 of length 1 net hire rate Workforce Loop Number 2 of length 6 net hire rate Workforce production Inventory inventory correction target production target workforce,display
33、s all variables in all feedback loops (two) that pass through the Workbench Variable (net hire rate).,3)Simulating the Model:amount of Inventory over time.,Double click on the simulation Runname editing box on the Toolbar to highlight the default name Current (or click once and drag over the name Cu
34、rrent), then type in the name baserun. Click on the SyntheSim button,Double click on the simulation Runname editing box on the Toolbar again and replace the name baserun with experiment.,Using the mouse drag the slider below productivity back and forth. As you move the slider the model will simulate
35、 and the results will display in blue, with the results from baserun being shown in red.,4)Examining Behavior,Position the mouse over Workforce and leave it there. A graph should pop up just below workforce.,Click on Workforce to select it into the Workbench. Click on the Graph Analysis tool Two thi
36、ngs are worth noting about the above graph. First both runs show a pattern of behavior known as damped oscillation. Second, the two runs are identical except for scaling.,Click on the variable Inventory appearing in the sketch and then click on the Graph tool,We see a graph of Inventory with oscilla
37、ting behavior similar to workforce, although Inventory starts out by declining before increasing in value. More importantly, there is only one graph visible.,Click on the Table tool,Only one graph line is visible for Inventory because the values are identical for both runs. Changing productivity imp
38、acts only Workforce, target workforce and net hire rate. This is quite clear just by looking at the model diagram as you drag the slider and occurs because productivity really just scales the number of people required to produce one item.,Click on the Reset Slider button or press the Home key to ret
39、urn the value of productivity to its original setting. Repeat the above experimentation process with each of the three remaining constants. Drag the sliders observing behavior and then bring up more detailed graphs when you see something interesting.,The things to be looking for when you are evaluat
40、ing behavior are the period of oscillation(振動), the extent by which variables change and the degree of damping(衰減). The period of oscillation is the time from one peak to the next on the time graphs. Damping is the decrease in amplitude that occurs from peak to peak, where amplitude is the distance
41、along the y axis from the eventual value the variable settles to. It should be easy to see that productivity and inventory coverage do not significantly change these while time to adjust workforce and time to correct inventory do.,time to adjust workforce,5)Causal Tracing,Just as you looked at the c
42、auses of Inventory by using the Causes Tree Diagram Analysis tool, you can also look at graphs of behavior of the variables that cause Inventory to change.,Click on the Reset All button or use the key combination Ctrl+Home. Click on Inventory to select it into the workbench. Click on the Causes Strip Analysis tool,A strip graph is generat
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度新能源汽車充電樁安裝與維護個人聘用合同4篇
- 2025年食堂外包項目績效考核與評估合同3篇
- 2025年度個人消費分期貸款合同模板(2025版)4篇
- 2025年度個人工廠品牌形象及營銷權(quán)轉(zhuǎn)讓合同2篇
- 2025年全球及中國三環(huán)癸烷二甲醇二甲基丙烯酸酯行業(yè)頭部企業(yè)市場占有率及排名調(diào)研報告
- 2025年全球及中國全自動線材前處理機行業(yè)頭部企業(yè)市場占有率及排名調(diào)研報告
- 2025-2030全球調(diào)濕蒸紗機行業(yè)調(diào)研及趨勢分析報告
- 2025年度個人借款延期還款及擔保人責任合同2篇
- 2025年度個人房產(chǎn)交易定金擔保合同范本2篇
- 2025年度企業(yè)間技術秘密保密及合作開發(fā)合同4篇
- 勵志課件-如何做好本職工作
- 2024年山東省濟南市中考英語試題卷(含答案解析)
- 2024年社區(qū)警務規(guī)范考試題庫
- 2024年食用牛脂項目可行性研究報告
- 靜脈治療護理技術操作標準(2023版)解讀 2
- 2024年全國各地中考試題分類匯編(一):現(xiàn)代文閱讀含答案
- 2024-2030年中國戶外音箱行業(yè)市場發(fā)展趨勢與前景展望戰(zhàn)略分析報告
- GB/T 30306-2024家用和類似用途飲用水處理濾芯
- 家務分工與責任保證書
- 消防安全隱患等級
- 溫室氣體(二氧化碳和甲烷)走航監(jiān)測技術規(guī)范
評論
0/150
提交評論